From 69dc0d20706ed41e5ecdbb77515066d8a7d7703b Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 19 Jun 2020 22:12:03 +0200 Subject: viewer: code update (no functional change) Types { [x: T]: R } updated to Record Methods in template updated to getters (computed in VueJS), which are reactive and cached Code formatting --- viewer/src/views/PanelLeft.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/views/PanelLeft.vue') diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index e3821a8..1d49648 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -34,7 +34,7 @@ :show-category="$galleryStore.tagsCategories.length > 1" :search-filters.sync="searchFilters" :tags-index="category.index" - :current-tags="currentTags()" + :current-tags="currentTags" /> @@ -72,7 +72,7 @@ export default class PanelLeft extends Vue { return query; } - currentTags() { + get currentTags() { return this.$galleryStore.currentItem?.tags ?? []; } -- cgit v1.2.3 From 170d7a61f720ece9dc4b347b19f5a8213f1d8984 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 20 Jun 2020 16:50:49 +0200 Subject: viewer: prettier formatting based on eslint-prettier plugin --- viewer/src/views/PanelLeft.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/views/PanelLeft.vue') diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 1d49648..9dc76a0 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -25,10 +25,10 @@ @onkeyenter-empty="search" /> -

{{$t('panelLeft.propositions')}}

+

{{ $t("panelLeft.propositions") }}

{{ $t("panelLeft.propositions") }}

-
+
+ +

+ Informations + +

+ +
@@ -49,6 +56,7 @@ import IndexFactory from "@/services/indexfactory"; @Component export default class PanelLeft extends Vue { searchFilters: Tag.Search[] = []; + infoOpen: boolean = true; mounted() { this.restoreSearchFilters(this.$route); @@ -93,6 +101,11 @@ export default class PanelLeft extends Vue { padding: 0.2em 0.5em; margin: 0 0 1px 0; font-variant: small-caps; + justify-content: space-between; + user-select: none; + > svg { + color: $link; + } } } -- cgit v1.2.3 From 4c839e0f30fad9e5df29f1f0682380581c582713 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 20 Aug 2020 00:14:27 +0200 Subject: viewer: information panel with markdown github: resolves #214 github: resolves #37 --- viewer/src/views/PanelLeft.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'viewer/src/views/PanelLeft.vue') diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 6341beb..f8d6faf 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -38,9 +38,9 @@ />
-

- Informations - +

+ {{ $t("panelLeft.information.title") }} +

@@ -105,7 +105,8 @@ export default class PanelLeft extends Vue { user-select: none; > svg { color: $link; - } + margin-top: 2px; // Fixes a vertical centering issue with the carret + } } } -- cgit v1.2.3 From 6737bfd38a0568d61c691a507303a65550ae23fc Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 10 Sep 2020 18:44:05 +0200 Subject: viewer: information panel scrollbar and collapse with animation github: resolves #78 --- viewer/src/views/PanelLeft.vue | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'viewer/src/views/PanelLeft.vue') diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index f8d6faf..12c95d1 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -18,7 +18,7 @@ --> @@ -92,11 +92,11 @@ export default class PanelLeft extends Vue { } - -- cgit v1.2.3 From f89ed0bd94ea570d9e6533301783d13b13033db0 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 11 Sep 2020 20:10:56 +0200 Subject: viewer: PR #238 code review changes --- viewer/src/views/PanelLeft.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/views/PanelLeft.vue') diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 12c95d1..0ab3aa8 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -26,7 +26,7 @@ />

{{ $t("panelLeft.propositions") }}

-
+
-- cgit v1.2.3