aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GallerySearch.vue
diff options
context:
space:
mode:
authorZero~Informatique2019-12-22 07:40:55 +0100
committerZero~Informatique2019-12-22 07:40:55 +0100
commitdc251fffc2998f1cf4f8e9631928c4b92ac0d90e (patch)
tree2d0fbf73d63ce2c1f02bde7385688c45eb2a260a /viewer/src/views/GallerySearch.vue
parent65465dd7d76b5729b62e39711004529e8d444241 (diff)
downloadldgallery-dc251fffc2998f1cf4f8e9631928c4b92ac0d90e.tar.gz
viewer: Implemented the search by tags. Pushed the special urls to ENV.
Diffstat (limited to 'viewer/src/views/GallerySearch.vue')
-rw-r--r--viewer/src/views/GallerySearch.vue25
1 files changed, 25 insertions, 0 deletions
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 @@
1<template>
2 <div class="flex">
3 <div v-for="(item) in items" :key="item.path">
4 <router-link :to="item.path" @click.native="$uiStore.setModeNavigation()">
5 <gallery-thumbnail :item="item" />
6 </router-link>
7 </div>
8 <div v-if="items.length===0">{{$t('search.no-results')}}</div>
9 </div>
10</template>
11
12<script lang="ts">
13import { Component, Vue, Prop } from "vue-property-decorator";
14import GalleryThumbnail from "./GalleryThumbnail.vue";
15
16@Component({
17 components: { GalleryThumbnail },
18})
19export default class GalleryImage extends Vue {
20 @Prop({ required: true }) readonly items!: Gallery.Item[];
21}
22</script>
23
24<style lang="scss">
25</style>