From 7ae68f079ddfb74c9a1b17c4f30dfe4c258d4a9f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 20 Dec 2019 17:47:04 +0100 Subject: Viewer project foundations --- viewer/src/views/LdGallery.vue | 82 ++++++++++++++++++++++++++++++++++++++++++ viewer/src/views/Root.vue | 18 ++++++++++ 2 files changed, 100 insertions(+) create mode 100644 viewer/src/views/LdGallery.vue create mode 100644 viewer/src/views/Root.vue (limited to 'viewer/src/views') diff --git a/viewer/src/views/LdGallery.vue b/viewer/src/views/LdGallery.vue new file mode 100644 index 0000000..a77dc24 --- /dev/null +++ b/viewer/src/views/LdGallery.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/viewer/src/views/Root.vue b/viewer/src/views/Root.vue new file mode 100644 index 0000000..384dcbe --- /dev/null +++ b/viewer/src/views/Root.vue @@ -0,0 +1,18 @@ + + + + + -- cgit v1.2.3 From bdce958eddc527912a57afa5b8151e1a90e38355 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 20 Dec 2019 23:54:56 +0100 Subject: Updated EsLint Removed logic from the view --- viewer/src/views/LdGallery.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'viewer/src/views') diff --git a/viewer/src/views/LdGallery.vue b/viewer/src/views/LdGallery.vue index a77dc24..98f083f 100644 --- a/viewer/src/views/LdGallery.vue +++ b/viewer/src/views/LdGallery.vue @@ -3,11 +3,7 @@
header
panel
- + @@ -17,6 +13,10 @@ import { Component, Vue } from "vue-property-decorator"; @Component export default class LdGallery extends Vue { fullscreen: boolean = false; + + toggleFullscreen() { + this.fullscreen = !this.fullscreen; + } } -- cgit v1.2.3 From 62005141132da1e9761598fa3e4b35b4dab38a89 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 02:06:02 +0100 Subject: Implemented VueX and a basic UIStore with the fullscreen mutation Some renaming --- viewer/src/views/LdGallery.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'viewer/src/views') diff --git a/viewer/src/views/LdGallery.vue b/viewer/src/views/LdGallery.vue index 98f083f..d22bfa6 100644 --- a/viewer/src/views/LdGallery.vue +++ b/viewer/src/views/LdGallery.vue @@ -1,9 +1,13 @@ @@ -11,13 +15,7 @@ import { Component, Vue } from "vue-property-decorator"; @Component -export default class LdGallery extends Vue { - fullscreen: boolean = false; - - toggleFullscreen() { - this.fullscreen = !this.fullscreen; - } -} +export default class LdGallery extends Vue {} diff --git a/viewer/src/views/LdGallery.vue b/viewer/src/views/LdGallery.vue deleted file mode 100644 index 04474c3..0000000 --- a/viewer/src/views/LdGallery.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue new file mode 100644 index 0000000..9f3a17b --- /dev/null +++ b/viewer/src/views/MainLayout.vue @@ -0,0 +1,100 @@ + + + + + \ No newline at end of file diff --git a/viewer/src/views/Root.vue b/viewer/src/views/Root.vue deleted file mode 100644 index 384dcbe..0000000 --- a/viewer/src/views/Root.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -- cgit v1.2.3 From 91d3148f97ca59769648f9307f3d7e65b1bd7e95 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 11:04:14 +0100 Subject: viewer: ESLint rules --- viewer/src/views/Gallery.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/views') diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 3625838..55b93db 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue @@ -44,7 +44,7 @@ export default class Root extends Vue { return null; } - private checkType(type: string) { + private checkType(type: string): boolean { return (this.currentItem && this.currentItem.properties.type === type) || false; } } -- cgit v1.2.3 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/views') 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 @@ + + 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 @@ + + + + + -- cgit v1.2.3 From c2b4c5d144db17ebf2dc9de32ba25cc836831ae2 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 21:15:59 +0100 Subject: viewer: Improved the Gallery type definitions. Basic display of the images and thumbnails example: "thumbnails" instead of "thumbs" --- viewer/src/views/Gallery.vue | 8 +------- viewer/src/views/GalleryDirectory.vue | 18 ++++++++++++++---- viewer/src/views/GalleryImage.vue | 7 ++++++- viewer/src/views/GalleryThumbnail.vue | 23 +++++++++++++++++++++++ 4 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 viewer/src/views/GalleryThumbnail.vue (limited to 'viewer/src/views') diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 10ff323..954903a 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue @@ -1,5 +1,5 @@ -- cgit v1.2.3 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 @@