diff options
Diffstat (limited to 'viewer/src')
32 files changed, 139 insertions, 148 deletions
diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts index e7aad27..e566f4b 100644 --- a/viewer/src/@types/Operation.ts +++ b/viewer/src/@types/Operation.ts | |||
@@ -21,4 +21,4 @@ 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 151ae92..1342ff9 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts | |||
@@ -19,90 +19,91 @@ | |||
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 PlainText extends Item { | 40 | interface PlainText extends Item { |
41 | properties: PlainTextProperties, | 41 | properties: PlainTextProperties; |
42 | } | 42 | } |
43 | interface PDF extends Item { | 43 | interface PDF extends Item { |
44 | properties: PDFProperties, | 44 | properties: PDFProperties; |
45 | } | 45 | } |
46 | interface Video extends Item { | 46 | interface Video extends Item { |
47 | properties: VideoProperties, | 47 | properties: VideoProperties; |
48 | } | 48 | } |
49 | interface Audio extends Item { | 49 | interface Audio extends Item { |
50 | properties: AudioProperties, | 50 | properties: AudioProperties; |
51 | } | 51 | } |
52 | interface Directory extends Item { | 52 | interface Directory extends Item { |
53 | properties: DirectoryProperties, | 53 | properties: DirectoryProperties; |
54 | } | 54 | } |
55 | interface Item { | 55 | interface Item { |
56 | title: string, | 56 | title: string; |
57 | datetime: string, | 57 | datetime: string; |
58 | description: string, | 58 | description: string; |
59 | tags: RawTag[], | 59 | tags: RawTag[]; |
60 | path: string, | 60 | path: string; |
61 | thumbnail?: Thumbnail | 61 | thumbnail?: Thumbnail; |
62 | properties: OtherProperties | 62 | properties: |
63 | | PictureProperties | 63 | | OtherProperties |
64 | | PlainTextProperties | 64 | | PictureProperties |
65 | | PDFProperties | 65 | | PlainTextProperties |
66 | | VideoProperties | 66 | | PDFProperties |
67 | | AudioProperties | 67 | | VideoProperties |
68 | | DirectoryProperties, | 68 | | AudioProperties |
69 | | DirectoryProperties; | ||
69 | } | 70 | } |
70 | interface Resolution { | 71 | interface Resolution { |
71 | width: number, | 72 | width: number; |
72 | height: number, | 73 | height: number; |
73 | } | 74 | } |
74 | interface OtherProperties { | 75 | interface OtherProperties { |
75 | type: import("./ItemType").ItemType.OTHER, | 76 | type: import("./ItemType").ItemType.OTHER; |
76 | resource: string | 77 | resource: string; |
77 | } | 78 | } |
78 | interface PictureProperties { | 79 | interface PictureProperties { |
79 | type: import("./ItemType").ItemType.PICTURE, | 80 | type: import("./ItemType").ItemType.PICTURE; |
80 | resource: string, | 81 | resource: string; |
81 | resolution: Resolution | 82 | resolution: Resolution; |
82 | } | 83 | } |
83 | interface PlainTextProperties { | 84 | interface PlainTextProperties { |
84 | type: import("./ItemType").ItemType.PLAINTEXT, | 85 | type: import("./ItemType").ItemType.PLAINTEXT; |
85 | resource: string, | 86 | resource: string; |
86 | } | 87 | } |
87 | interface PDFProperties { | 88 | interface PDFProperties { |
88 | type: import("./ItemType").ItemType.PDF, | 89 | type: import("./ItemType").ItemType.PDF; |
89 | resource: string, | 90 | resource: string; |
90 | } | 91 | } |
91 | interface VideoProperties { | 92 | interface VideoProperties { |
92 | type: import("./ItemType").ItemType.VIDEO, | 93 | type: import("./ItemType").ItemType.VIDEO; |
93 | resource: string, | 94 | resource: string; |
94 | } | 95 | } |
95 | interface AudioProperties { | 96 | interface AudioProperties { |
96 | type: import("./ItemType").ItemType.AUDIO, | 97 | type: import("./ItemType").ItemType.AUDIO; |
97 | resource: string, | 98 | resource: string; |
98 | } | 99 | } |
99 | interface DirectoryProperties { | 100 | interface DirectoryProperties { |
100 | type: import("./ItemType").ItemType.DIRECTORY, | 101 | type: import("./ItemType").ItemType.DIRECTORY; |
101 | items: Item[] | 102 | items: Item[]; |
102 | } | 103 | } |
103 | interface Thumbnail { | 104 | interface Thumbnail { |
104 | resource: string, | 105 | resource: string; |
105 | resolution: Resolution | 106 | resolution: Resolution; |
106 | } | 107 | } |
107 | type RawTag = string; | 108 | type RawTag = string; |
108 | } | 109 | } |
diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts index cd393b3..2f17515 100644 --- a/viewer/src/@types/scrollposition.d.ts +++ b/viewer/src/@types/scrollposition.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 | type ScrollPosition = Record<string, number> | 20 | type ScrollPosition = Record<string, number>; |
diff --git a/viewer/src/components/LdBreadcrumb.vue b/viewer/src/components/LdBreadcrumb.vue index a8d8dcb..618b15a 100644 --- a/viewer/src/components/LdBreadcrumb.vue +++ b/viewer/src/components/LdBreadcrumb.vue | |||
@@ -29,11 +29,11 @@ | |||
29 | > | 29 | > |
30 | <div v-show="overflowMask" class="ld-breadcrumb-overflow-mask"></div> | 30 | <div v-show="overflowMask" class="ld-breadcrumb-overflow-mask"></div> |
31 | <ul class="ld-breadcrumb"> | 31 | <ul class="ld-breadcrumb"> |
32 | <li v-for="(item,idx) in currentItemPath" :key="item.path"> | 32 | <li v-for="(item, idx) in currentItemPath" :key="item.path"> |
33 | <fa-icon v-if="idx > 0" icon="angle-right" class="disabled" /> | 33 | <fa-icon v-if="idx > 0" icon="angle-right" class="disabled" /> |
34 | <router-link :to="item.path" class="link"> | 34 | <router-link :to="item.path" class="link"> |
35 | <fa-icon :icon="getIcon(item)" size="lg" /> | 35 | <fa-icon :icon="getIcon(item)" size="lg" /> |
36 | {{item.title}} | 36 | {{ item.title }} |
37 | </router-link> | 37 | </router-link> |
38 |