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/Gallery.vue | 15 +++++++-------- viewer/src/views/GalleryDirectory.vue | 20 ++++++++++++++++++++ viewer/src/views/GalleryImage.vue | 17 +++++++++++++++++ 3 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 viewer/src/views/GalleryDirectory.vue create mode 100644 viewer/src/views/GalleryImage.vue (limited to 'viewer/src') diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 55b93db..10ff323 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue @@ -1,19 +1,18 @@ - - Directory: {{currentItem.path}} - - Thumbnail: {{index}}-{{item.path}} - - - Image: {{currentItem.path}} + + + + diff --git a/viewer/src/views/GalleryImage.vue b/viewer/src/views/GalleryImage.vue new file mode 100644 index 0000000..daaa504 --- /dev/null +++ b/viewer/src/views/GalleryImage.vue @@ -0,0 +1,17 @@ + + + Image: {{image.path}} + + + + + + -- cgit v1.2.3