From 370e3db3455f548699ff5e046e0f8dcc304991ac Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 14 Feb 2020 09:19:53 +0100
Subject: viewer: major code and search mode overhaul
Updated libraries to the lastest version
SCSS Formatter as suggested VSC extensions
Renamed toolbar-color by scrollbar-color
LD components use Props in favor of touching the stores directly (when possible)
Moved most common algorithms to a "services" folder
Complete search overhaul (lots of code change)
---
viewer/src/components/LdBreadcrumb.vue | 17 ++++---
viewer/src/components/LdCommand.vue | 16 +++----
viewer/src/components/LdCommandSearch.vue | 55 +++++++++++++++++++++++
viewer/src/components/LdGallery.vue | 47 +++++++++++++++++++
viewer/src/components/LdModeRadio.vue | 41 -----------------
viewer/src/components/LdPicture.vue | 2 +-
viewer/src/components/LdProposition.vue | 35 ++++++++-------
viewer/src/components/LdTagInput.vue | 75 ++++---------------------------
viewer/src/components/LdThumbnail.vue | 4 +-
9 files changed, 149 insertions(+), 143 deletions(-)
create mode 100644 viewer/src/components/LdCommandSearch.vue
create mode 100644 viewer/src/components/LdGallery.vue
delete mode 100644 viewer/src/components/LdModeRadio.vue
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/LdBreadcrumb.vue b/viewer/src/components/LdBreadcrumb.vue
index 7f7ef7d..643bfb6 100644
--- a/viewer/src/components/LdBreadcrumb.vue
+++ b/viewer/src/components/LdBreadcrumb.vue
@@ -29,24 +29,29 @@
>
diff --git a/viewer/src/components/LdCommand.vue b/viewer/src/components/LdCommand.vue
index 7590ea7..468c241 100644
--- a/viewer/src/components/LdCommand.vue
+++ b/viewer/src/components/LdCommand.vue
@@ -23,14 +23,6 @@
-
-
-
@@ -42,21 +34,23 @@
+
+
diff --git a/viewer/src/components/LdGallery.vue b/viewer/src/components/LdGallery.vue
new file mode 100644
index 0000000..169bc54
--- /dev/null
+++ b/viewer/src/components/LdGallery.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
{{noresult}}
+
+
+
+
+
+
diff --git a/viewer/src/components/LdModeRadio.vue b/viewer/src/components/LdModeRadio.vue
deleted file mode 100644
index c1d5702..0000000
--- a/viewer/src/components/LdModeRadio.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
- {{$t('mode.navigation')}}
-
-
-
- {{$t('mode.search')}}
-
-
-
-
-
-
-
diff --git a/viewer/src/components/LdPicture.vue b/viewer/src/components/LdPicture.vue
index a5faeb3..1cfcc8b 100644
--- a/viewer/src/components/LdPicture.vue
+++ b/viewer/src/components/LdPicture.vue
@@ -39,7 +39,7 @@
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue
index eff02e6..982abe4 100644
--- a/viewer/src/components/LdTagInput.vue
+++ b/viewer/src/components/LdTagInput.vue
@@ -19,7 +19,7 @@
{{displayOption(props.option)}}
{{$t('tagInput.nomatch')}}
@@ -39,80 +37,25 @@
--
cgit v1.2.3
From aacf4f902370c779cd5e64c217c061d3d044c742 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 23 Feb 2020 18:17:36 +0100
Subject: viewer: breadcrumb search is now a link, allowing the right-click
copy-link by the user
Code review fix
---
viewer/src/components/LdBreadcrumb.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/LdBreadcrumb.vue b/viewer/src/components/LdBreadcrumb.vue
index 643bfb6..2ac1216 100644
--- a/viewer/src/components/LdBreadcrumb.vue
+++ b/viewer/src/components/LdBreadcrumb.vue
@@ -37,7 +37,10 @@
-
+
+
+
+
--
cgit v1.2.3
From 1915fd6e8b7b0c83a9a1b9254fd945f1cc0c7c19 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 23 Feb 2020 18:18:17 +0100
Subject: viewer: go to parent command fix when in search mode
Code review fix
---
viewer/src/components/LdCommand.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/LdCommand.vue b/viewer/src/components/LdCommand.vue
index 468c241..c0b86be 100644
--- a/viewer/src/components/LdCommand.vue
+++ b/viewer/src/components/LdCommand.vue
@@ -46,11 +46,12 @@ export default class LdCommand extends Vue {
}
isRoot(): boolean {
- return this.currentItemPath.length <= 1;
+ return this.currentItemPath.length <= 1 && !this.$uiStore.searchMode;
}
parent(): RawLocation {
- if (!this.isRoot()) return this.currentItemPath[this.currentItemPath.length - 2];
+ if (this.$uiStore.searchMode) return this.$route.path;
+ if (this.currentItemPath.length > 1) return this.currentItemPath[this.currentItemPath.length - 2];
return "";
}
}
--
cgit v1.2.3
From eb00c2a7874608f70ec7768eae8d006a22bc0a54 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 23 Feb 2020 21:33:20 +0100
Subject: viewer: absolute path fix
---
viewer/src/components/LdTagInput.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue
index 982abe4..d9d932f 100644
--- a/viewer/src/components/LdTagInput.vue
+++ b/viewer/src/components/LdTagInput.vue
@@ -40,7 +40,7 @@
import { Component, Vue, Model, Prop } from "vue-property-decorator";
import { Operation } from "@/@types/Operation";
import Navigation from "@/services/navigation";
-import IndexFactory from "../services/indexfactory";
+import IndexFactory from "@/services/indexfactory";
@Component
export default class LdTagInput extends Vue {
--
cgit v1.2.3