From 7e0e108d1d5d9a86a33322432c3d7e8218961121 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Mon, 11 May 2020 22:42:20 +0200
Subject: viewer: item information (raw implementation)

---
 viewer/src/components/LdInformation.vue | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 viewer/src/components/LdInformation.vue

(limited to 'viewer/src/components/LdInformation.vue')

diff --git a/viewer/src/components/LdInformation.vue b/viewer/src/components/LdInformation.vue
new file mode 100644
index 0000000..ac526d5
--- /dev/null
+++ b/viewer/src/components/LdInformation.vue
@@ -0,0 +1,41 @@
+<!-- ldgallery - A static generator which turns a collection of tagged
+--             pictures into a searchable web gallery.
+--
+-- Copyright (C) 2019-2020  Guillaume FOUET
+--
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as
+-- published by the Free Software Foundation, either version 3 of the
+-- License, or (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+--
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <https://www.gnu.org/licenses/>.
+-->
+
+<template>
+  <div class="flex-column">
+    <div>{{item.title}}</div>
+    <div>{{item.description}}</div>
+    <div>{{item.datetime}}</div>
+    <b-taglist>
+      <b-tag v-for="tag in item.tags" :key="tag">{{tag}}</b-tag>
+    </b-taglist>
+  </div>
+</template>
+
+<script lang="ts">
+import { Component, Vue, Prop } from "vue-property-decorator";
+
+@Component
+export default class LdInformation extends Vue {
+  @Prop({ required: true }) readonly item!: Gallery.Item;
+}
+</script>
+
+<style lang="scss">
+</style>
-- 
cgit v1.2.3

