From dc251fffc2998f1cf4f8e9631928c4b92ac0d90e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 22 Dec 2019 07:40:55 +0100 Subject: viewer: Implemented the search by tags. Pushed the special urls to ENV. --- viewer/src/views/Gallery.vue | 31 ++++++++++++++++--------------- viewer/src/views/GalleryDirectory.vue | 5 +---- viewer/src/views/GalleryImage.vue | 2 +- viewer/src/views/GallerySearch.vue | 25 +++++++++++++++++++++++++ viewer/src/views/GalleryThumbnail.vue | 10 ++++++++-- viewer/src/views/MainLayout.vue | 2 +- viewer/src/views/PanelLeft.vue | 9 +++++---- 7 files changed, 57 insertions(+), 27 deletions(-) create mode 100644 viewer/src/views/GallerySearch.vue (limited to 'viewer/src/views') diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 2020280..38199b9 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue @@ -1,17 +1,20 @@ - - + + + diff --git a/viewer/src/views/GalleryImage.vue b/viewer/src/views/GalleryImage.vue index 07f8cc8..04d29d9 100644 --- a/viewer/src/views/GalleryImage.vue +++ b/viewer/src/views/GalleryImage.vue @@ -13,7 +13,7 @@ export default class GalleryImage extends Vue { @Prop({ required: true }) readonly image!: Gallery.Image; get imageSrc() { - return `/gallery${this.image.path}`; + return `${process.env.VUE_APP_DATA_URL}${this.image.path}`; } } diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue new file mode 100644 index 0000000..887c1a3 --- /dev/null +++ b/viewer/src/views/GallerySearch.vue @@ -0,0 +1,25 @@ + + + + + + + + {{$t('search.no-results')}} + + + + + + diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue index 8e3e826..fdfd9d3 100644 --- a/viewer/src/views/GalleryThumbnail.vue +++ b/viewer/src/views/GalleryThumbnail.vue @@ -1,5 +1,11 @@ - + + + + + {{item.path}} + + diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue index 2afd4b9..2a87ff1 100644 --- a/viewer/src/views/MainLayout.vue +++ b/viewer/src/views/MainLayout.vue @@ -25,7 +25,7 @@ export default class MainLayout extends Vue { fetchGalleryItems() { this.isLoading = true; this.$galleryStore - .fetchGalleryItems("/gallery/index.json") + .fetchGalleryItems(`${process.env.VUE_APP_DATA_URL}/index.json`) .finally(() => (this.isLoading = false)) .catch(this.displayError); } diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 4b5bce0..c187ce6 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -1,8 +1,9 @@ - - - - + + {{$t('panelLeft.mode')}} + + {{$t('panelLeft.filters')}} + -- cgit v1.2.3