From 89bcb2dbe5b5e6eb8e8ba13ceecee2770dfe4cd4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 9 Jan 2020 02:10:35 +0100 Subject: viewer: Changed "image" type to "picture". Adapted the code to the current compiler output format. The currentItem and currentPath are calculated in the store for easier multi-component access. Breadcrumb for current's position and navigation. --- viewer/src/views/Gallery.vue | 36 ++++++++++--------- viewer/src/views/GalleryDirectory.vue | 1 - viewer/src/views/GalleryImage.vue | 22 ------------ viewer/src/views/GalleryPicture.vue | 21 +++++++++++ viewer/src/views/GallerySearch.vue | 2 +- viewer/src/views/GalleryThumbnail.vue | 4 +-- viewer/src/views/MainLayout.vue | 19 +++++----- viewer/src/views/PanelTop.vue | 67 +++++++++++++++++++++++++++++++++++ 8 files changed, 119 insertions(+), 53 deletions(-) delete mode 100644 viewer/src/views/GalleryImage.vue create mode 100644 viewer/src/views/GalleryPicture.vue create mode 100644 viewer/src/views/PanelTop.vue (limited to 'viewer/src/views') diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 4deb937..a53df3d 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue @@ -1,32 +1,41 @@ - - 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 @@ + + + + + diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue index 887c1a3..44f312b 100644 --- a/viewer/src/views/GallerySearch.vue +++ b/viewer/src/views/GallerySearch.vue @@ -16,7 +16,7 @@ import GalleryThumbnail from "./GalleryThumbnail.vue"; @Component({ components: { GalleryThumbnail }, }) -export default class GalleryImage extends Vue { +export default class GalleryPicture extends Vue { @Prop({ required: true }) readonly items!: Gallery.Item[]; } diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue index fdfd9d3..d7ef44c 100644 --- a/viewer/src/views/GalleryThumbnail.vue +++ b/viewer/src/views/GalleryThumbnail.vue @@ -1,6 +1,6 @@