diff options
author | Zero~Informatique | 2021-07-02 22:53:16 +0200 |
---|---|---|
committer | Zero~Informatique | 2021-07-03 00:05:22 +0200 |
commit | 9165cc1efcf7791f78b61b2c51a9de651b1b09aa (patch) | |
tree | 111cfdc74ddaf7b19ff27508f16ab84694b27670 /viewer/src/views | |
parent | 08ac32103fb5f8cca1861267dfd07a7c0d2faf62 (diff) | |
download | ldgallery-9165cc1efcf7791f78b61b2c51a9de651b1b09aa.tar.gz |
viewer: types normalization - gallery.d.ts
GitHub: closes #301
Diffstat (limited to 'viewer/src/views')
-rw-r--r-- | viewer/src/views/GalleryNavigation.vue | 8 | ||||
-rw-r--r-- | viewer/src/views/GallerySearch.vue | 3 | ||||
-rw-r--r-- | viewer/src/views/MainLayout.vue | 4 | ||||
-rw-r--r-- | viewer/src/views/PanelLeft.vue | 5 |
4 files changed, 9 insertions, 11 deletions
diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue index 69198f6..8bb225a 100644 --- a/viewer/src/views/GalleryNavigation.vue +++ b/viewer/src/views/GalleryNavigation.vue | |||
@@ -26,10 +26,10 @@ | |||
26 | </template> | 26 | </template> |
27 | 27 | ||
28 | <script lang="ts"> | 28 | <script lang="ts"> |
29 | import { Component, Vue, Prop, Watch } from "vue-property-decorator"; | ||
30 | import { ItemType } from "@/@types/ItemType"; | 29 | import { ItemType } from "@/@types/ItemType"; |
31 | import Navigation from "@/services/navigation"; | 30 | import Navigation from "@/services/navigation"; |
32 | import GallerySearch from "@/views/GallerySearch.vue"; | 31 | import GallerySearch from "@/views/GallerySearch.vue"; |
32 | import { Component, Prop, Vue, Watch } from "vue-property-decorator"; | ||
33 | 33 | ||
34 | @Component({ | 34 | @Component({ |
35 | components: { | 35 | components: { |
@@ -41,13 +41,13 @@ export default class GalleryNavigation extends Vue { | |||
41 | @Prop(Array) readonly query!: string[]; | 41 | @Prop(Array) readonly query!: string[]; |
42 | 42 | ||
43 | readonly COMPONENT_BY_TYPE: Record<ItemType, string> = { | 43 | readonly COMPONENT_BY_TYPE: Record<ItemType, string> = { |
44 | directory: "ld-directory", | 44 | directory: "ld-directory-viewer", |
45 | picture: "ld-picture", | 45 | picture: "ld-picture-viewer", |
46 | plaintext: "ld-plain-text-viewer", | 46 | plaintext: "ld-plain-text-viewer", |
47 | pdf: "ld-pdf-viewer", | 47 | pdf: "ld-pdf-viewer", |
48 | video: "ld-video-viewer", | 48 | video: "ld-video-viewer", |
49 | audio: "ld-audio-viewer", | 49 | audio: "ld-audio-viewer", |
50 | other: "ld-download", | 50 | other: "ld-download-viewer", |
51 | }; | 51 | }; |
52 | 52 | ||
53 | mounted() { | 53 | mounted() { |
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue index fec7216..6d3deb4 100644 --- a/viewer/src/views/GallerySearch.vue +++ b/viewer/src/views/GallerySearch.vue | |||
@@ -22,9 +22,8 @@ | |||
22 | </template> | 22 | </template> |
23 | 23 | ||
24 | <script lang="ts"> | 24 | <script lang="ts"> |
25 | import { Component, Vue, Prop } from "vue-property-decorator"; | ||
26 | import { Operation } from "@/@types/Operation"; | ||
27 | import IndexSearch from "@/services/indexsearch"; | 25 | import IndexSearch from "@/services/indexsearch"; |
26 | import { Component, Prop, Vue } from "vue-property-decorator"; | ||
28 | 27 | ||
29 | @Component | 28 | @Component |
30 | export default class GalleryPicture extends Vue { | 29 | export default class GalleryPicture extends Vue { |
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue index 9cd518b..edca4bf 100644 --- a/viewer/src/views/MainLayout.vue +++ b/viewer/src/views/MainLayout.vue | |||
@@ -29,10 +29,10 @@ | |||
29 | </template> | 29 | </template> |
30 | 30 | ||
31 | <script lang="ts"> | 31 | <script lang="ts"> |
32 | import { Component, Vue, Ref, Watch } from "vue-property-decorator"; | 32 | import { Component, Ref, Vue, Watch } from "vue-property-decorator"; |
33 | import { Route } from "vue-router"; | ||
33 | import PanelLeft from "./PanelLeft.vue"; | 34 | import PanelLeft from "./PanelLeft.vue"; |
34 | import PanelTop from "./PanelTop.vue"; | 35 | import PanelTop from "./PanelTop.vue"; |
35 | import { Route } from "vue-router"; | ||
36 | 36 | ||
37 | @Component({ | 37 | @Component({ |
38 | components: { PanelLeft, PanelTop }, | 38 | components: { PanelLeft, PanelTop }, |
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index d2a3656..5c42fa9 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue | |||
@@ -48,10 +48,9 @@ | |||
48 | </template> | 48 | </template> |
49 | 49 | ||
50 | <script lang="ts"> | 50 | <script lang="ts"> |
51 | import { Component, Vue, Prop, Watch } from "vue-property-decorator"; | ||
52 | import { Dictionary, Route } from "vue-router/types/router"; | ||
53 | import Navigation from "@/services/navigation"; | 51 | import Navigation from "@/services/navigation"; |
54 | import IndexFactory from "@/services/indexfactory"; | 52 | import { Component, Vue, Watch } from "vue-property-decorator"; |
53 | import { Dictionary, Route } from "vue-router/types/router"; | ||
55 | 54 | ||
56 | @Component | 55 | @Component |
57 | export default class PanelLeft extends Vue { | 56 | export default class PanelLeft extends Vue { |