From 57d1b89d314970bf56d3d398c393f6a67a4ed0b5 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 21 Dec 2019 20:14:33 +0100
Subject: viewer: Isolated the Directory and Image views in their own
 components

---
 viewer/src/views/GalleryDirectory.vue | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 viewer/src/views/GalleryDirectory.vue

(limited to 'viewer/src/views/GalleryDirectory.vue')

diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue
new file mode 100644
index 0000000..bed1664
--- /dev/null
+++ b/viewer/src/views/GalleryDirectory.vue
@@ -0,0 +1,20 @@
+<template>
+  <div>
+    <strong>Directory: {{directory.path}}</strong>
+    <div v-for="(item, index) in directory.properties.items" :key="item.path">
+      <router-link :to="item.path">Thumbnail: {{index}}-{{item.path}}</router-link>
+    </div>
+  </div>
+</template>
+
+<script lang="ts">
+import { Component, Vue, Prop } from "vue-property-decorator";
+
+@Component
+export default class GalleryDirectory extends Vue {
+  @Prop({ type: Array, required: true }) readonly directory!: Gallery.Directory;
+}
+</script>
+
+<style lang="scss">
+</style>
-- 
cgit v1.2.3

