Passed
Push — master ( 9fc554...9b0780 )
by Christian
12:25 queued 10s
created

src/Administration/Resources/app/administration/src/module/sw-settings-search/page/sw-settings-search/index.js   A

Complexity

Total Complexity 6
Complexity/F 1

Size

Lines of Code 39
Function Count 6

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 6
eloc 21
mnd 0
bc 0
fnc 6
dl 0
loc 39
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
rs 10
1
import template from './sw-settings-search.html.twig';
2
3
const { Component } = Shopware;
0 ignored issues
show
Bug introduced by
The variable Shopware seems to be never declared. If this is a global, consider adding a /** global: Shopware */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
4
5
Component.register('sw-settings-search', {
6
    template,
7
8
    data: () => {
9
        return {
10
            productSearchConfigs: {
11
                andLogic: true,
12
                minSearchLength: 2
13
            },
14
            isLoading: false
15
        };
16
    },
17
18
    created() {
19
        this.createdComponent();
20
    },
21
22
    methods: {
23
        createdComponent() {
24
            this.getProductSearchConfigs();
25
        },
26
27
        getProductSearchConfigs() {
28
            // TODO: NEXT-12994 Implement new "Search" settings module with API integration.
29
        },
30
31
        onChangeLanguage() {
32
            // TODO: NEXT-12994 Implement new "Search" settings module with API integration.
33
        },
34
35
        onSaveSearchSettings() {
36
            // TODO: NEXT-12994 Implement new "Search" settings module with API integration.
37
        }
38
    }
39
});
40