Directory: {{directory.path}}
-
-
Thumbnail: {{index}}-{{item.path}}
+
diff --git a/viewer/src/views/GalleryImage.vue b/viewer/src/views/GalleryImage.vue
index daaa504..07f8cc8 100644
--- a/viewer/src/views/GalleryImage.vue
+++ b/viewer/src/views/GalleryImage.vue
@@ -1,6 +1,7 @@
Image: {{image.path}}
+
@@ -8,8 +9,12 @@
import { Component, Vue, Prop } from "vue-property-decorator";
@Component
-export default class GalleryDirectory extends Vue {
+export default class GalleryImage extends Vue {
@Prop({ required: true }) readonly image!: Gallery.Image;
+
+ get imageSrc() {
+ return `/gallery${this.image.path}`;
+ }
}
diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue
new file mode 100644
index 0000000..8e3e826
--- /dev/null
+++ b/viewer/src/views/GalleryThumbnail.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
--
cgit v1.2.3
From e34be1261d9219e5b2b92ebe271f609f11d55f63 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 22 Dec 2019 03:50:40 +0100
Subject: vewer: Tags indexing and search input
---
viewer/src/views/Gallery.vue | 6 +++---
viewer/src/views/MainLayout.vue | 7 +++++--
viewer/src/views/PanelLeft.vue | 20 ++++++++++++++++++++
3 files changed, 28 insertions(+), 5 deletions(-)
create mode 100644 viewer/src/views/PanelLeft.vue
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index 954903a..2020280 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -13,7 +13,7 @@ import GalleryImage from "./GalleryImage.vue";
@Component({
components: { GalleryDirectory, GalleryImage },
})
-export default class Root extends Vue {
+export default class Gallery extends Vue {
@Prop(String) readonly pathMatch!: string;
get isDirectory(): boolean {
@@ -25,8 +25,8 @@ export default class Root extends Vue {
}
get currentItem(): Gallery.Item | null {
- const galleryItems = this.$galleryStore.galleryItems;
- if (galleryItems) return this.searchCurrentItem(galleryItems, this.pathMatch);
+ const galleryItemsRoot = this.$galleryStore.galleryItemsRoot;
+ if (galleryItemsRoot) return this.searchCurrentItem(galleryItemsRoot, this.pathMatch);
return null;
}
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 9f3a17b..2afd4b9 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -1,7 +1,7 @@
header
-
panel
+
@@ -10,8 +10,11 @@
+
+
--
cgit v1.2.3
From dc251fffc2998f1cf4f8e9631928c4b92ac0d90e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 22 Dec 2019 07:40:55 +0100
Subject: viewer: Implemented the search by tags. Pushed the special urls to
ENV.
---
viewer/src/views/Gallery.vue | 31 ++++++++++++++++---------------
viewer/src/views/GalleryDirectory.vue | 5 +----
viewer/src/views/GalleryImage.vue | 2 +-
viewer/src/views/GallerySearch.vue | 25 +++++++++++++++++++++++++
viewer/src/views/GalleryThumbnail.vue | 10 ++++++++--
viewer/src/views/MainLayout.vue | 2 +-
viewer/src/views/PanelLeft.vue | 9 +++++----
7 files changed, 57 insertions(+), 27 deletions(-)
create mode 100644 viewer/src/views/GallerySearch.vue
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index 2020280..38199b9 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -1,17 +1,20 @@
-
-
+
+
+
diff --git a/viewer/src/views/GalleryImage.vue b/viewer/src/views/GalleryImage.vue
index 07f8cc8..04d29d9 100644
--- a/viewer/src/views/GalleryImage.vue
+++ b/viewer/src/views/GalleryImage.vue
@@ -13,7 +13,7 @@ export default class GalleryImage extends Vue {
@Prop({ required: true }) readonly image!: Gallery.Image;
get imageSrc() {
- return `/gallery${this.image.path}`;
+ return `${process.env.VUE_APP_DATA_URL}${this.image.path}`;
}
}
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue
new file mode 100644
index 0000000..887c1a3
--- /dev/null
+++ b/viewer/src/views/GallerySearch.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
{{$t('search.no-results')}}
+
+
+
+
+
+
diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue
index 8e3e826..fdfd9d3 100644
--- a/viewer/src/views/GalleryThumbnail.vue
+++ b/viewer/src/views/GalleryThumbnail.vue
@@ -1,5 +1,11 @@
-
+
+
+
+
+ {{item.path}}
+
+
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 2afd4b9..2a87ff1 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -25,7 +25,7 @@ export default class MainLayout extends Vue {
fetchGalleryItems() {
this.isLoading = true;
this.$galleryStore
- .fetchGalleryItems("/gallery/index.json")
+ .fetchGalleryItems(`${process.env.VUE_APP_DATA_URL}/index.json`)
.finally(() => (this.isLoading = false))
.catch(this.displayError);
}
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index 4b5bce0..c187ce6 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -1,8 +1,9 @@
-
-
-
-
+
+
{{$t('panelLeft.mode')}}
+
+ {{$t('panelLeft.filters')}}
+
--
cgit v1.2.3
From 7c2576b0cfb0a15b2a14f6f5ea96de16f0c23b44 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Tue, 24 Dec 2019 02:22:56 +0100
Subject: viewer: Plugin for Optional chaining and Coalesce. Implemented tag
operations (intersection, addition, substraction). Unified Tag.Search
---
viewer/src/views/Gallery.vue | 46 +++++++++++++++++++++++++++++++++++++++-----
1 file changed, 41 insertions(+), 5 deletions(-)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index 38199b9..f04b276 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -8,6 +8,7 @@
--
cgit v1.2.3
From a681accaa7617892bb7c53248aa9030a4eb47f50 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 28 Dec 2019 04:52:30 +0100
Subject: viewer: Tag propositions. Disabled directory indexation. Note: The
propositions are not based on the current search results, but on the searched
tags, which doesn't seem to be the correct way. We'll probably have to move
the search results to a store for global visibility.
---
viewer/src/views/PanelLeft.vue | 2 ++
1 file changed, 2 insertions(+)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index c187ce6..df1fe54 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -4,6 +4,8 @@
{{$t('panelLeft.filters')}}
+
{{$t('panelLeft.propositions')}}
+
--
cgit v1.2.3
From c7153c8d6d3879566b49af0f7b23593d46477eb9 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Tue, 7 Jan 2020 19:46:41 +0100
Subject: viewer: relative gallery path (NOT STABLE with current compiler)
compiler: commands for compilation on Windows
---
viewer/src/views/Gallery.vue | 1 +
1 file changed, 1 insertion(+)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index f04b276..4deb937 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -3,6 +3,7 @@
+
Unknown type
--
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 @@
-
-
-
Unknown type
+
+
+
{{$t("gallery.unknowntype")}}
-
-
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 @@
-
+
{{item.path}}
@@ -15,7 +15,7 @@ import { Component, Vue, Prop } from "vue-property-decorator";
export default class GalleryThumbnail extends Vue {
@Prop({ required: true }) readonly item!: Gallery.Item;
- get imageSrc() {
+ get pictureSrc() {
return `${process.env.VUE_APP_DATA_URL}${this.item.thumbnail}`;
}
}
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 2a87ff1..d643e66 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -1,6 +1,6 @@
-
header
+
@@ -11,9 +11,10 @@
\ No newline at end of file
diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
new file mode 100644
index 0000000..eb8e6ed
--- /dev/null
+++ b/viewer/src/views/PanelTop.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.3
From d25b5a87668bba43e81342f7385a1097653c5311 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 10 Jan 2020 22:03:30 +0100
Subject: Code review code improvements
---
viewer/src/views/Gallery.vue | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index a53df3d..1c98877 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -1,8 +1,8 @@
-
-
+
+
{{$t("gallery.unknowntype")}}
@@ -30,14 +30,6 @@ export default class Gallery extends Vue {
this.$galleryStore.setCurrentPath(this.pathMatch);
}
- get isDirectory(): boolean {
- return this.checkType("directory");
- }
-
- get isPicture(): boolean {
- return this.checkType("picture");
- }
-
// Results of the search (by tags)
get currentSearch(): Gallery.Item[] {
const byOperation = this.extractTagsByOperation(this.$uiStore.currentTags);
--
cgit v1.2.3
From 27b51018525dbb7a6edb3073819d82245387ddd3 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 10 Jan 2020 22:22:22 +0100
Subject: viewer: license headers
---
viewer/src/views/Gallery.vue | 19 +++++++++++++++++++
viewer/src/views/GalleryDirectory.vue | 19 +++++++++++++++++++
viewer/src/views/GalleryPicture.vue | 19 +++++++++++++++++++
viewer/src/views/GallerySearch.vue | 19 +++++++++++++++++++
viewer/src/views/GalleryThumbnail.vue | 19 +++++++++++++++++++
viewer/src/views/MainLayout.vue | 19 +++++++++++++++++++
viewer/src/views/PanelLeft.vue | 19 +++++++++++++++++++
viewer/src/views/PanelTop.vue | 19 +++++++++++++++++++
8 files changed, 152 insertions(+)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index 1c98877..fad7cc3 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue
index ada22c0..eb98595 100644
--- a/viewer/src/views/GalleryDirectory.vue
+++ b/viewer/src/views/GalleryDirectory.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/GalleryPicture.vue b/viewer/src/views/GalleryPicture.vue
index b655162..3689cb3 100644
--- a/viewer/src/views/GalleryPicture.vue
+++ b/viewer/src/views/GalleryPicture.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue
index 44f312b..7e61f89 100644
--- a/viewer/src/views/GallerySearch.vue
+++ b/viewer/src/views/GallerySearch.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue
index d7ef44c..4d8f604 100644
--- a/viewer/src/views/GalleryThumbnail.vue
+++ b/viewer/src/views/GalleryThumbnail.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index d643e66..5308205 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -1,3 +1,22 @@
+
+
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index df1fe54..16be249 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -1,3 +1,22 @@
+
+
{{$t('panelLeft.mode')}}
diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index eb8e6ed..0efc9b6 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -1,3 +1,22 @@
+
+