diff options
Diffstat (limited to 'viewer/src/views/GalleryPicture.vue')
-rw-r--r-- | viewer/src/views/GalleryPicture.vue | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/viewer/src/views/GalleryPicture.vue b/viewer/src/views/GalleryPicture.vue new file mode 100644 index 0000000..b655162 --- /dev/null +++ b/viewer/src/views/GalleryPicture.vue | |||
@@ -0,0 +1,21 @@ | |||
1 | <template> | ||
2 | <div> | ||
3 | <img :src="pictureSrc" /> | ||
4 | </div> | ||
5 | </template> | ||
6 | |||
7 | <script lang="ts"> | ||
8 | import { Component, Vue, Prop } from "vue-property-decorator"; | ||
9 | |||
10 | @Component | ||
11 | export default class GalleryPicture extends Vue { | ||
12 | @Prop({ required: true }) readonly picture!: Gallery.Picture; | ||
13 | |||
14 | get pictureSrc() { | ||
15 | return `${process.env.VUE_APP_DATA_URL}${this.picture.properties.resource}`; | ||
16 | } | ||
17 | } | ||
18 | </script> | ||
19 | |||
20 | <style lang="scss"> | ||
21 | </style> | ||