diff options
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/@types/Operation.ts | 6 | ||||
-rw-r--r-- | viewer/src/@types/gallery.d.ts | 102 | ||||
-rw-r--r-- | viewer/src/@types/tag.d.ts | 38 | ||||
-rw-r--r-- | viewer/src/@types/v-lazy-image.d.ts | 2 | ||||
-rw-r--r-- | viewer/src/@types/vue-dragscroll.d.ts | 2 | ||||
-rw-r--r-- | viewer/src/assets/scss/buefy.scss | 6 | ||||
-rw-r--r-- | viewer/src/assets/scss/palette.scss | 20 | ||||
-rw-r--r-- | viewer/src/components/index.ts | 30 | ||||
-rw-r--r-- | viewer/src/locales/en.json | 2 | ||||
-rw-r--r-- | viewer/src/main.ts | 2 | ||||
-rw-r--r-- | viewer/src/plugins/buefy.ts | 16 | ||||
-rw-r--r-- | viewer/src/plugins/dragscroll.ts | 3 | ||||
-rw-r--r-- | viewer/src/plugins/fontawesome.ts | 48 | ||||
-rw-r--r-- | viewer/src/services/indexfactory.ts | 6 | ||||
-rw-r--r-- | viewer/src/services/indexsearch.ts | 2 | ||||
-rw-r--r-- | viewer/src/services/ldzoom.ts | 10 | ||||
-rw-r--r-- | viewer/src/shims-tsx.d.ts | 4 | ||||
-rw-r--r-- | viewer/src/store/galleryStore.ts | 190 | ||||
-rw-r--r-- | viewer/src/store/index.ts | 10 | ||||
-rw-r--r-- | viewer/src/store/uiStore.ts | 30 |
20 files changed, 264 insertions, 265 deletions
diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts index ba31bc0..e7aad27 100644 --- a/viewer/src/@types/Operation.ts +++ b/viewer/src/@types/Operation.ts | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | export enum Operation { | 20 | export enum Operation { |
21 | INTERSECTION = '', | 21 | INTERSECTION = "", |
22 | ADDITION = '+', | 22 | ADDITION = "+", |
23 | SUBSTRACTION = '-', | 23 | SUBSTRACTION = "-", |
24 | }; | 24 | }; |
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 956ab6b..066aedf 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts | |||
@@ -18,57 +18,57 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | declare namespace Gallery { | 20 | declare namespace Gallery { |
21 | interface Config { | 21 | interface Config { |
22 | galleryRoot: string, | 22 | galleryRoot: string, |
23 | } | 23 | } |
24 | 24 | ||
25 | interface GalleryProperties { | 25 | interface GalleryProperties { |
26 | galleryTitle: string, | 26 | galleryTitle: string, |
27 | tagCategories: RawTag[] | 27 | tagCategories: RawTag[] |
28 | } | 28 | } |
29 | interface Index { | 29 | interface Index { |
30 | properties: GalleryProperties, | 30 | properties: GalleryProperties, |
31 | tree: Directory | 31 | tree: Directory |
32 | } | 32 | } |
33 | 33 | ||
34 | interface Other extends Item { | 34 | interface Other extends Item { |
35 | properties: OtherProperties, | 35 | properties: OtherProperties, |
36 | } | 36 | } |
37 | interface Picture extends Item { | 37 | interface Picture extends Item { |
38 | properties: PictureProperties, | 38 | properties: PictureProperties, |
39 | } | 39 | } |
40 | interface Directory extends Item { | 40 | interface Directory extends Item { |
41 | properties: DirectoryProperties, | 41 | properties: DirectoryProperties, |
42 | } | 42 | } |
43 | interface Item { | 43 | interface Item { |
44 | title: string, | 44 | title: string, |
45 | datetime: string, | 45 | datetime: string, |
46 | description: string, | 46 | description: string, |
47 | tags: RawTag[], | 47 | tags: RawTag[], |
48 | path: string, | 48 | path: string, |
49 | thumbnail?: Thumbnail | 49 | thumbnail?: Thumbnail |
50 | properties: OtherProperties | PictureProperties | DirectoryProperties, | 50 | properties: OtherProperties | PictureProperties | DirectoryProperties, |
51 | } | 51 | } |
52 | interface Resolution { | 52 | interface Resolution { |
53 | width: number, | 53 | width: number, |
54 | height: number, | 54 | height: number, |
55 | } | 55 | } |
56 | interface OtherProperties { | 56 | interface OtherProperties { |
57 | type: "other", | 57 | type: "other", |
58 | } | 58 | } |
59 | interface PictureProperties { | 59 | interface PictureProperties { |
60 | type: "picture", | 60 | type: "picture", |
61 | resource: string, | 61 | resource: string, |
62 | resolution: Resolution | 62 | resolution: Resolution |
63 | } | 63 | } |
64 | interface DirectoryProperties { | 64 | interface DirectoryProperties { |
65 | type: "directory", | 65 | type: "directory", |
66 | items: Item[] | 66 | items: Item[] |
67 | } | 67 | } |
68 | interface Thumbnail { | 68 | interface Thumbnail { |
69 | resource: string, | 69 | resource: string, |
70 | resolution: Resolution | 70 | resolution: Resolution |
71 | } | 71 | } |
72 | type RawTag = string; | 72 | type RawTag = string; |
73 | type ItemType = "other" | "picture" | "directory"; | 73 | type ItemType = "other" | "picture" | "directory"; |
74 | } | 74 | } |
diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 8f7e6a9..76f1207 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts | |||
@@ -18,24 +18,24 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | declare namespace Tag { | 20 | declare namespace Tag { |
21 | interface Node { | 21 | interface Node { |
22 | tag: Gallery.RawTag; | 22 | tag: Gallery.RawTag; |
23 | tagfiltered: Gallery.RawTag; | 23 | tagfiltered: Gallery.RawTag; |
24 | rootPart: boolean; | 24 | rootPart: boolean; |
25 | childPart: boolean; | 25 | childPart: boolean; |
26 | items: Gallery.Item[]; | 26 | items: Gallery.Item[]; |
27 | children: Index; | 27 | children: Index; |
28 | } | 28 | } |
29 | interface Search extends Node { | 29 | interface Search extends Node { |
30 | parent?: Node; | 30 | parent?: Node; |
31 | operation: string; // Enum Operation | 31 | operation: string; // Enum Operation |
32 | display: string; | 32 | display: string; |
33 | } | 33 | } |
34 | type SearchByOperation = { [index: string]: Tag.Search[] }; | 34 | type SearchByOperation = { [index: string]: Tag.Search[] }; |
35 | type Index = { [index: string]: Node }; | 35 | type Index = { [index: string]: Node }; |
36 | 36 | ||
37 | interface Category { | 37 | interface Category { |
38 | tag: string; | 38 | tag: string; |
39 | index: Index; | 39 | index: Index; |
40 | } | 40 | } |
41 | } | 41 | } |
diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts index df29484..2777921 100644 --- a/viewer/src/@types/v-lazy-image.d.ts +++ b/viewer/src/@types/v-lazy-image.d.ts | |||
@@ -17,4 +17,4 @@ | |||
17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. | 17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | declare module 'v-lazy-image'; | 20 | declare module "v-lazy-image"; |
diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts index 052023d..c07c7d8 100644 --- a/viewer/src/@types/vue-dragscroll.d.ts +++ b/viewer/src/@types/vue-dragscroll.d.ts | |||
@@ -17,4 +17,4 @@ | |||
17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. | 17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | declare module 'vue-dragscroll'; | 20 | declare module "vue-dragscroll"; |
diff --git a/viewer/src/assets/scss/buefy.scss b/viewer/src/assets/scss/buefy.scss index 735ce6a..2bc4985 100644 --- a/viewer/src/assets/scss/buefy.scss +++ b/viewer/src/assets/scss/buefy.scss | |||
@@ -32,12 +32,12 @@ | |||
32 | $addColors: ( | 32 | $addColors: ( |
33 | "green": ( | 33 | "green": ( |
34 | $green, | 34 | $green, |
35 | $green-invert | 35 | $green-invert, |
36 | ), | 36 | ), |
37 | "purple": ( | 37 | "purple": ( |
38 | $purple, | 38 | $purple, |
39 | $purple-invert | 39 | $purple-invert, |
40 | ) | 40 | ), |
41 | ); | 41 | ); |
42 | $colors: map-merge($colors, $addColors); | 42 | $colors: map-merge($colors, $addColors); |
43 | 43 | ||
diff --git a/viewer/src/assets/scss/palette.scss b/viewer/src/assets/scss/palette.scss index f7eab11..e70e8a1 100644 --- a/viewer/src/assets/scss/palette.scss +++ b/viewer/src/assets/scss/palette.scss | |||
@@ -18,14 +18,14 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | // Material Design Blue Gray colour palette | 20 | // Material Design Blue Gray colour palette |
21 | $palette-000: #FFFFFF; | 21 | $palette-000: #ffffff; |
22 | $palette-050: #ECEFF1; | 22 | $palette-050: #eceff1; |
23 | $palette-100: #CFD8DC; | 23 | $palette-100: #cfd8dc; |
24 | $palette-200: #B0BEC5; | 24 | $palette-200: #b0bec5; |
25 | $palette-300: #90A4AE; | 25 | $palette-300: #90a4ae; |
26 | $palette-400: #78909C; | 26 | $palette-400: #78909c; |
27 | $palette-500: #607D8B; | 27 | $palette-500: #607d8b; |
28 | $palette-600: #546E7A; | 28 | $palette-600: #546e7a; |
29 | $palette-700: #455A64; | 29 | $palette-700: #455a64; |
30 | $palette-800: #37474F; | 30 | $palette-800: #37474f; |
31 | $palette-900: #263238; | 31 | $palette-900: #263238; |
diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.t |