Passed
Push — 6.4 ( 5645ce...8ba989 )
by Christian
15:05 queued 12s
created

index.ts ➔ default   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
import './page/index';
2
3
import type { Route } from 'vue-router';
4
import deDE from './snippet/de-DE.json';
5
import enGB from './snippet/en-GB.json';
6
7
const { Module } = Shopware;
8
9
/**
10
 * @package admin
11
 *
12
 * @private
13
 */
14
Module.register('sw-inactivity-login', {
15
    type: 'core',
16
    name: 'inactivity-login',
17
    title: 'sw-inactivity-login.general.mainMenuItemIndex',
18
    description: 'sw-inactivity-login.general.description',
19
    version: '1.0.0',
20
    targetVersion: '1.0.0',
21
    color: '#F19D12',
22
23
    snippets: {
24
        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
25
        'de-DE': deDE,
26
        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
27
        'en-GB': enGB,
28
    },
29
30
    routes: {
31
        index: {
32
            component: 'sw-inactivity-login',
33
            path: '/inactivity/login/:id',
34
            coreRoute: true,
35
            props: {
36
                default(route: Route) {
37
                    return {
38
                        hash: route.params.id,
39
                    };
40
                },
41
            },
42
        },
43
    },
44
});
45