aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GalleryPicture.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/GalleryPicture.vue')
-rw-r--r--viewer/src/views/GalleryPicture.vue21
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">
8import { Component, Vue, Prop } from "vue-property-decorator";
9
10@Component
11export 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>