blob: e590b94b919fd2d8bf3f124805bf7884e7c431c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
interface SearchStoreState {
searchValue: string
}
export const searchModule = {
state: () => ({
// This is the treated value of search input
searchValue: '',
// Selected mod categories
selectedCategories: [],
showDeprecatedMods: false,
sortValue: {label: '', value: ''}
}),
getters: {
searchWords(state: SearchStoreState): string {
return state.searchValue.toLowerCase();
}
}
}
|