aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GalleryDirectory.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/GalleryDirectory.vue')
-rw-r--r--viewer/src/views/GalleryDirectory.vue18
1 files changed, 14 insertions, 4 deletions
diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue
index bed1664..1dda027 100644
--- a/viewer/src/views/GalleryDirectory.vue
+++ b/viewer/src/views/GalleryDirectory.vue
@@ -1,20 +1,30 @@
1<template> 1<template>
2 <div> 2 <div>
3 <strong>Directory: {{directory.path}}</strong> 3 <strong>Directory: {{directory.path}}</strong>
4 <div v-for="(item, index) in directory.properties.items" :key="item.path"> 4 <div class="flex-thumbnails">
5 <router-link :to="item.path">Thumbnail: {{index}}-{{item.path}}</router-link> 5 <div v-for="(item) in directory.properties.items" :key="item.path">
6 <router-link :to="item.path">
7 <gallery-thumbnail :item="item" />
8 </router-link>
9 </div>
6 </div> 10 </div>
7 </div> 11 </div>
8</template> 12</template>
9 13
10<script lang="ts"> 14<script lang="ts">
11import { Component, Vue, Prop } from "vue-property-decorator"; 15import { Component, Vue, Prop } from "vue-property-decorator";
16import GalleryThumbnail from "./GalleryThumbnail.vue";
12 17
13@Component 18@Component({
19 components: { GalleryThumbnail },
20})
14export default class GalleryDirectory extends Vue { 21export default class GalleryDirectory extends Vue {
15 @Prop({ type: Array, required: true }) readonly directory!: Gallery.Directory; 22 @Prop({ required: true }) readonly directory!: Gallery.Directory;
16} 23}
17</script> 24</script>
18 25
19<style lang="scss"> 26<style lang="scss">
27.flex-thumbnails {
28 display: flex;
29}
20</style> 30</style>