aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
authorzeroinformatique2021-07-03 00:48:53 +0200
committerGitHub2021-07-03 00:48:53 +0200
commitb6605e2c4ee73ac8b994624098344db5e44ac07d (patch)
tree5ed06cc5ecdabe070f6fdb9bc4f9a8a3b435cbe6 /viewer/src/views
parent08ac32103fb5f8cca1861267dfd07a7c0d2faf62 (diff)
parent1f0377c1b4c2959c73fe4e368673f057ef369917 (diff)
downloadldgallery-b6605e2c4ee73ac8b994624098344db5e44ac07d.tar.gz
Merge pull request #302 from ldgallery/oz-types-normalization
viewer: types normalization
Diffstat (limited to 'viewer/src/views')
-rw-r--r--viewer/src/views/GalleryNavigation.vue8
-rw-r--r--viewer/src/views/GallerySearch.vue3
-rw-r--r--viewer/src/views/MainLayout.vue5
-rw-r--r--viewer/src/views/PanelLeft.vue8
4 files changed, 12 insertions, 12 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">
29import { Component, Vue, Prop, Watch } from "vue-property-decorator";
30import { ItemType } from "@/@types/ItemType"; 29import { ItemType } from "@/@types/ItemType";
31import Navigation from "@/services/navigation"; 30import Navigation from "@/services/navigation";
32import GallerySearch from "@/views/GallerySearch.vue"; 31import GallerySearch from "@/views/GallerySearch.vue";
32import { 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">
25import { Component, Vue, Prop } from "vue-property-decorator";
26import { Operation } from "@/@types/Operation";
27import IndexSearch from "@/services/indexsearch"; 25import IndexSearch from "@/services/indexsearch";
26import { Component, Prop, Vue } from "vue-property-decorator";
28 27
29@Component 28@Component
30export default class GalleryPicture extends Vue { 29export default class GalleryPicture extends Vue {
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 9cd518b..13b17b4 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -29,10 +29,11 @@
29</template> 29</template>
30 30
31<script lang="ts"> 31<script lang="ts">
32import { Component, Vue, Ref, Watch } from "vue-property-decorator"; 32import { ScrollPosition } from "@/@types/scrollposition";
33import { Component, Ref, Vue, Watch } from "vue-property-decorator";
34import { Route } from "vue-router";
33import PanelLeft from "./PanelLeft.vue"; 35import PanelLeft from "./PanelLeft.vue";
34import PanelTop from "./PanelTop.vue"; 36import PanelTop from "./PanelTop.vue";
35import { Route } from "vue-router";
36 37
37@Component({ 38@Component({
38 components: { PanelLeft, PanelTop }, 39 components: { PanelLeft, PanelTop },
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index d2a3656..ea61865 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -48,14 +48,14 @@
48</template> 48</template>
49 49
50<script lang="ts"> 50<script lang="ts">
51import { Component, Vue, Prop, Watch } from "vue-property-decorator"; 51import { TagSearch } from "@/@types/tag";
52import { Dictionary, Route } from "vue-router/types/router";
53import Navigation from "@/services/navigation"; 52import Navigation from "@/services/navigation";
54import IndexFactory from "@/services/indexfactory"; 53import { Component, Vue, Watch } from "vue-property-decorator";
54import { Dictionary, Route } from "vue-router/types/router";
55 55
56@Component 56@Component
57export default class PanelLeft extends Vue { 57export default class PanelLeft extends Vue {
58 searchFilters: Tag.Search[] = []; 58 searchFilters: TagSearch[] = [];
59 infoOpen: boolean = true; 59 infoOpen: boolean = true;
60 60
61 mounted() { 61 mounted() {