From 42105af46681d81959a5d5a9a16ec9e98463a92e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Thu, 30 Jan 2020 21:24:15 +0100
Subject: viewer: new breadcrumb. navigation buttons. and styling improvements

---
 viewer/src/views/PanelTop.vue | 78 ++++++++++++++++++++-----------------------
 1 file changed, 37 insertions(+), 41 deletions(-)

(limited to 'viewer/src/views/PanelTop.vue')

diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index 0efc9b6..7e24699 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -18,23 +18,25 @@
 -->
 
 <template>
-  <div v-if="isReady">
-    <b-steps
-      v-model="activeStep"
-      class="pathBreadcrumb"
-      type="is-info"
-      :has-navigation="false"
-      :animated="false"
-      @input="onStepClick"
-    >
-      <b-step-item
-        v-for="item in $galleryStore.currentItemPath"
-        :key="item.path"
-        :label="item.title"
-        :icon="getIcon(item)"
-        :to="item.path"
-      />
-    </b-steps>
+  <div class="flex">
+    <div class="command-btns">
+      <fa-icon icon="filter" size="lg" class="disabled" />
+      <router-link to="/" :class="{disabled: $galleryStore.currentItemPath.length <= 1}">
+        <fa-icon icon="home" size="lg" />
+      </router-link>
+      <div class="link" @click="$router.go(-1)">
+        <fa-icon icon="arrow-left" size="lg" />
+      </div>
+    </div>
+    <ul class="pathBreadcrumb">
+      <li v-for="(item,idx) in $galleryStore.currentItemPath" :key="item.path">
+        <router-link :to="item.path">
+          <fa-icon :icon="getIcon(item)" size="lg" />
+          {{item.title}}
+        </router-link>
+        <fa-icon v-if="(idx+1) < $galleryStore.currentItemPath.length" icon="angle-right" />
+      </li>
+    </ul>
   </div>
 </template>
 
@@ -44,23 +46,8 @@ import Gallery from "./Gallery.vue";
 
 @Component
 export default class PanelTop extends Vue {
-  activeStep: number = -1;
-
-  mounted() {
-    this.currentItemPathChanged();
-  }
-
-  get isReady() {
-    return this.activeStep >= 0;
-  }
-
-  @Watch("$galleryStore.currentItemPath")
-  currentItemPathChanged() {
-    this.activeStep = -1;
-    this.$nextTick(() => (this.activeStep = this.$galleryStore.currentItemPath.length - 1));
-  }
-
   getIcon(item: Gallery.Item) {
+    if (item.path.length <= 1) return "home";
     switch (item.properties.type) {
       case "picture":
         return "image";
@@ -68,19 +55,28 @@ export default class PanelTop extends Vue {
         return "folder";
     }
   }
-
-  onStepClick(index: number) {
-    const item = this.$galleryStore.currentItemPath[index];
-    if (item) this.$router.push(item.path);
-  }
 }
 </script>
 
 <style lang="scss">
+@import "@/assets/scss/theme.scss";
+
 .pathBreadcrumb {
-  margin: 3px;
+  display: flex;
+  list-style: none;
+  margin: 5px;
+  a {
+    margin-right: 5px;
+  }
+  li:not(:first-child) {
+    margin-left: 10px;
+  }
 }
-.step-title {
-  color: white;
+.command-btns {
+  display: flex;
+  justify-content: space-around;
+  vertical-align: middle;
+  align-items: center;
+  width: $layout-left;
 }
 </style>
-- 
cgit v1.2.3


From 17b1598c5a5a375e6eaa0763767368c05ba0f56e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Thu, 30 Jan 2020 22:58:27 +0100
Subject: viewer: Improved the proposition layout

---
 viewer/src/views/PanelTop.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'viewer/src/views/PanelTop.vue')

diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index 7e24699..e7421f0 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -20,7 +20,7 @@
 <template>
   <div class="flex">
     <div class="command-btns">
-      <fa-icon icon="filter" size="lg" class="disabled" />
+      <fa-icon icon="tags" size="lg" class="disabled" />
       <router-link to="/" :class="{disabled: $galleryStore.currentItemPath.length <= 1}">
         <fa-icon icon="home" size="lg" />
       </router-link>
-- 
cgit v1.2.3


From 252dd6fc6f53ecd8b28e05a0514429472d53d08e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 31 Jan 2020 06:46:31 +0100
Subject: viewer: finalized the command buttons. added the 'up to parent'
 command

---
 viewer/src/views/PanelTop.vue | 64 ++++++++-----------------------------------
 1 file changed, 12 insertions(+), 52 deletions(-)

(limited to 'viewer/src/views/PanelTop.vue')

diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index e7421f0..3553789 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -19,64 +19,24 @@
 
 <template>
   <div class="flex">
-    <div class="command-btns">
-      <fa-icon icon="tags" size="lg" class="disabled" />
-      <router-link to="/" :class="{disabled: $galleryStore.currentItemPath.length <= 1}">
-        <fa-icon icon="home" size="lg" />
-      </router-link>
-      <div class="link" @click="$router.go(-1)">
-        <fa-icon icon="arrow-left" size="lg" />
-      </div>
-    </div>
-    <ul class="pathBreadcrumb">
-      <li v-for="(item,idx) in $galleryStore.currentItemPath" :key="item.path">
-        <router-link :to="item.path">
-          <fa-icon :icon="getIcon(item)" size="lg" />
-          {{item.title}}
-        </router-link>
-        <fa-icon v-if="(idx+1) < $galleryStore.currentItemPath.length" icon="angle-right" />
-      </li>
-    </ul>
+    <top-command />
+    <top-breadcrumb />
   </div>
 </template>
 
 <script lang="ts">
-import { Component, Vue, Prop, Watch } from "vue-property-decorator";
-import Gallery from "./Gallery.vue";
+import { Component, Vue } from "vue-property-decorator";
+import TopBreadcrumb from "./TopBreadcrumb.vue";
+import TopCommand from "./TopCommand.vue";
 
-@Component
-export default class PanelTop extends Vue {
-  getIcon(item: Gallery.Item) {
-    if (item.path.length <= 1) return "home";
-    switch (item.properties.type) {
-      case "picture":
-        return "image";
-      case "directory":
-        return "folder";
-    }
-  }
-}
+@Component({
+  components: {
+    TopCommand,
+    TopBreadcrumb,
+  },
+})
+export default class PanelTop extends Vue {}
 </script>
 
 <style lang="scss">
-@import "@/assets/scss/theme.scss";
-
-.pathBreadcrumb {
-  display: flex;
-  list-style: none;
-  margin: 5px;
-  a {
-    margin-right: 5px;
-  }
-  li:not(:first-child) {
-    margin-left: 10px;
-  }
-}
-.command-btns {
-  display: flex;
-  justify-content: space-around;
-  vertical-align: middle;
-  align-items: center;
-  width: $layout-left;
-}
 </style>
-- 
cgit v1.2.3


From 170da2d55fec0359cbac780786383710b734eda7 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 31 Jan 2020 09:17:57 +0100
Subject: viewer: code cleaning, moved some views to components

---
 viewer/src/views/PanelTop.vue | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'viewer/src/views/PanelTop.vue')

diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index 3553789..60722cd 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -19,22 +19,15 @@
 
 <template>
   <div class="flex">
-    <top-command />
-    <top-breadcrumb />
+    <ld-command />
+    <ld-breadcrumb />
   </div>
 </template>
 
 <script lang="ts">
 import { Component, Vue } from "vue-property-decorator";
-import TopBreadcrumb from "./TopBreadcrumb.vue";
-import TopCommand from "./TopCommand.vue";
 
-@Component({
-  components: {
-    TopCommand,
-    TopBreadcrumb,
-  },
-})
+@Component
 export default class PanelTop extends Vue {}
 </script>
 
-- 
cgit v1.2.3


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/views/PanelTop.vue | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'viewer/src/views/PanelTop.vue')

diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index 60722cd..0591f37 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -19,8 +19,11 @@
 
 <template>
   <div class="flex">
-    <ld-command />
-    <ld-breadcrumb />
+    <ld-command :current-item-path="$galleryStore.currentItemPath" />
+    <ld-breadcrumb
+      :current-item-path="$galleryStore.currentItemPath"
+      :search-mode="$uiStore.searchMode"
+    />
   </div>
 </template>
 
-- 
cgit v1.2.3

