diff options
author | Zero~Informatique | 2020-02-14 09:19:53 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-24 00:04:39 +0100 |
commit | 370e3db3455f548699ff5e046e0f8dcc304991ac (patch) | |
tree | e29fe9e2afb940eea74c8ed510c46a1eb0fa4d84 /viewer/src/store/uiStore.ts | |
parent | e42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff) | |
download | ldgallery-370e3db3455f548699ff5e046e0f8dcc304991ac.tar.gz |
viewer: major code and search mode overhaul
Updated libraries to the lastest version
SCSS Formatter as suggested VSC extensions
Renamed toolbar-color by scrollbar-color
LD components use Props in favor of touching the stores directly (when possible)
Moved most common algorithms to a "services" folder
Complete search overhaul (lots of code change)
Diffstat (limited to 'viewer/src/store/uiStore.ts')
-rw-r--r-- | viewer/src/store/uiStore.ts | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index f7484de..5b6e1ca 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts | |||
@@ -28,18 +28,8 @@ export default class UIStore extends VuexModule { | |||
28 | 28 | ||
29 | fullscreen: boolean = false; | 29 | fullscreen: boolean = false; |
30 | fullWidth: boolean = true; | 30 | fullWidth: boolean = true; |
31 | mode: "navigation" | "search" = "navigation"; | 31 | searchMode: boolean = false; |
32 | currentTags: Tag.Search[] = []; | 32 | searchFilters: Tag.Search[] = []; |
33 | |||
34 | // --- | ||
35 | |||
36 | get isModeSearch() { | ||
37 | return this.mode === "search"; | ||
38 | } | ||
39 | |||
40 | get isModeNavigation() { | ||
41 | return this.mode === "navigation"; | ||
42 | } | ||
43 | 33 | ||
44 | // --- | 34 | // --- |
45 | 35 | ||
@@ -50,12 +40,4 @@ export default class UIStore extends VuexModule { | |||
50 | @mutation toggleFullWidth() { | 40 | @mutation toggleFullWidth() { |
51 | this.fullWidth = !this.fullWidth; | 41 | this.fullWidth = !this.fullWidth; |
52 | } | 42 | } |
53 | |||
54 | @mutation setModeNavigation() { | ||
55 | this.mode = "navigation"; | ||
56 | } | ||
57 | |||
58 | @mutation setModeSearch() { | ||
59 | this.mode = "search"; | ||
60 | } | ||
61 | } | 43 | } |