aboutsummaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
authorZero~Informatique2020-02-14 09:19:53 +0100
committerZero~Informatique2020-02-24 00:04:39 +0100
commit370e3db3455f548699ff5e046e0f8dcc304991ac (patch)
treee29fe9e2afb940eea74c8ed510c46a1eb0fa4d84 /viewer
parente42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff)
downloadldgallery-370e3db3455f548699ff5e046e0f8dcc304991ac.tar.gz
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)
Diffstat (limited to 'viewer')
-rw-r--r--viewer/package-lock.json63
-rw-r--r--viewer/package.json14
-rw-r--r--viewer/src/assets/scss/global.scss9
-rw-r--r--viewer/src/assets/scss/theme.scss15
-rw-r--r--viewer/src/components/LdBreadcrumb.vue17
-rw-r--r--viewer/src/components/LdCommand.vue16
-rw-r--r--viewer/src/components/LdCommandSearch.vue (renamed from viewer/src/components/LdModeRadio.vue)32
-rw-r--r--viewer/src/components/LdGallery.vue47
-rw-r--r--viewer/src/components/LdPicture.vue2
-rw-r--r--viewer/src/components/LdProposition.vue35
-rw-r--r--viewer/src/components/LdTagInput.vue75
-rw-r--r--viewer/src/components/LdThumbnail.vue4
-rw-r--r--viewer/src/locales/en.json10
-rw-r--r--viewer/src/plugins/buefy.ts4
-rw-r--r--viewer/src/plugins/fontawesome.ts2
-rw-r--r--viewer/src/plugins/router.ts17
-rw-r--r--viewer/src/services/dragscrollclickfix.ts (renamed from viewer/src/dragscrollclickfix.ts)0
-rw-r--r--viewer/src/services/indexfactory.ts101
-rw-r--r--viewer/src/services/indexsearch.ts (renamed from viewer/src/views/MainGallery.vue)66
-rw-r--r--viewer/src/services/navigation.ts (renamed from viewer/src/tools.ts)20
-rw-r--r--viewer/src/store/galleryStore.ts51
-rw-r--r--viewer/src/store/uiStore.ts22
-rw-r--r--viewer/src/views/GalleryDirectory.vue14
-rw-r--r--viewer/src/views/GalleryNavigation.vue63
-rw-r--r--viewer/src/views/GallerySearch.vue36
-rw-r--r--viewer/src/views/MainLayout.vue4
-rw-r--r--viewer/src/views/PanelLeft.vue34
-rw-r--r--viewer/src/views/PanelTop.vue7
-rw-r--r--viewer/visualstudio.code-workspace1
29 files changed, 459 insertions, 322 deletions
diff --git a/viewer/package-lock.json b/viewer/package-lock.json
index 87825c8..955e21e 100644
--- a/viewer/package-lock.json
+++ b/viewer/package-lock.json
@@ -1283,12 +1283,12 @@
1283 } 1283 }
1284 }, 1284 },
1285 "@typescript-eslint/eslint-plugin": { 1285 "@typescript-eslint/eslint-plugin": {
1286 "version": "2.19.2", 1286 "version": "2.20.0",
1287 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.19.2.tgz", 1287 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.20.0.tgz",
1288 "integrity": "sha512-HX2qOq2GOV04HNrmKnTpSIpHjfl7iwdXe3u/Nvt+/cpmdvzYvY0NHSiTkYN257jHnq4OM/yo+OsFgati+7LqJA==", 1288 "integrity": "sha512-cimIdVDV3MakiGJqMXw51Xci6oEDEoPkvh8ggJe2IIzcc0fYqAxOXN6Vbeanahz6dLZq64W+40iUEc9g32FLDQ==",
1289 "dev": true, 1289 "dev": true,
1290 "requires": { 1290 "requires": {
1291 "@typescript-eslint/experimental-utils": "2.19.2", 1291 "@typescript-eslint/experimental-utils": "2.20.0",
1292 "eslint-utils": "^1.4.3", 1292 "eslint-utils": "^1.4.3",
1293 "functional-red-black-tree": "^1.0.1", 1293 "functional-red-black-tree": "^1.0.1",
1294 "regexpp": "^3.0.0", 1294 "regexpp": "^3.0.0",
@@ -1296,32 +1296,32 @@
1296 } 1296 }
1297 }, 1297 },
1298 "@typescript-eslint/experimental-utils": { 1298 "@typescript-eslint/experimental-utils": {
1299 "version": "2.19.2", 1299 "version": "2.20.0",
1300 "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.2.tgz", 1300 "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.20.0.tgz",
1301 "integrity": "sha512-B88QuwT1wMJR750YvTJBNjMZwmiPpbmKYLm1yI7PCc3x0NariqPwqaPsoJRwU9DmUi0cd9dkhz1IqEnwfD+P1A==", 1301 "integrity": "sha512-fEBy9xYrwG9hfBLFEwGW2lKwDRTmYzH3DwTmYbT+SMycmxAoPl0eGretnBFj/s+NfYBG63w/5c3lsvqqz5mYag==",
1302 "dev": true, 1302 "dev": true,
1303 "requires": { 1303 "requires": {
1304 "@types/json-schema": "^7.0.3", 1304 "@types/json-schema": "^7.0.3",
1305 "@typescript-eslint/typescript-estree": "2.19.2", 1305 "@typescript-eslint/typescript-estree": "2.20.0",
1306 "eslint-scope": "^5.0.0" 1306 "eslint-scope": "^5.0.0"
1307 } 1307 }
1308 }, 1308 },
1309 "@typescript-eslint/parser": { 1309 "@typescript-eslint/parser": {
1310 "version": "2.19.2", 1310 "version": "2.20.0",
1311 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.19.2.tgz", 1311 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.20.0.tgz",
1312 "integrity": "sha512-8uwnYGKqX9wWHGPGdLB9sk9+12sjcdqEEYKGgbS8A0IvYX59h01o8os5qXUHMq2na8vpDRaV0suTLM7S8wraTA==", 1312 "integrity": "sha512-o8qsKaosLh2qhMZiHNtaHKTHyCHc3Triq6aMnwnWj7budm3xAY9owSZzV1uon5T9cWmJRJGzTFa90aex4m77Lw==",
1313 "dev": true, 1313 "dev": true,
1314 "requires": { 1314 "requires": {
1315 "@types/eslint-visitor-keys": "^1.0.0", 1315 "@types/eslint-visitor-keys": "^1.0.0",
1316 "@typescript-eslint/experimental-utils": "2.19.2", 1316 "@typescript-eslint/experimental-utils": "2.20.0",
1317 "@typescript-eslint/typescript-estree": "2.19.2", 1317 "@typescript-eslint/typescript-estree": "2.20.0",
1318 "eslint-visitor-keys": "^1.1.0" 1318 "eslint-visitor-keys": "^1.1.0"
1319 } 1319 }
1320 }, 1320 },
1321 "@typescript-eslint/typescript-estree": { 1321 "@typescript-eslint/typescript-estree": {
1322 "version": "2.19.2", 1322 "version": "2.20.0",
1323 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.2.tgz", 1323 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.20.0.tgz",
1324 "integrity": "sha512-Xu/qa0MDk6upQWqE4Qy2X16Xg8Vi32tQS2PR0AvnT/ZYS4YGDvtn2MStOh5y8Zy2mg4NuL06KUHlvCh95j9C6Q==", 1324 "integrity": "sha512-WlFk8QtI8pPaE7JGQGxU7nGcnk1ccKAJkhbVookv94ZcAef3m6oCE/jEDL6dGte3JcD7reKrA0o55XhBRiVT3A==",
1325 "dev": true, 1325 "dev": true,
1326 "requires": { 1326 "requires": {
1327 "debug": "^4.1.1", 1327 "debug": "^4.1.1",
@@ -2883,9 +2883,9 @@
2883 } 2883 }
2884 }, 2884 },
2885 "buefy": { 2885 "buefy": {
2886 "version": "0.8.10", 2886 "version": "0.8.12",
2887 "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.10.tgz", 2887 "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.12.tgz",
2888 "integrity": "sha512-Lw/UP3Ku7o+oqam9TIoRMG5SrytGQwXWAoxAtqt6Wb9eSsMEqp/5o+jZnz8oteR06YWgjdSIfOv2YeEdjEkQCg==", 2888 "integrity": "sha512-scKb+0piTAEYk8mopu5HzshlGsT0K9ChlfkGhQgAF7jC9lH3Ta7anYXG+l8uBoSpqgChK0H19jPP55FbeKn1nA==",
2889 "requires": { 2889 "requires": {
2890 "bulma": "0.7.5" 2890 "bulma": "0.7.5"
2891 } 2891 }
@@ -4881,11 +4881,12 @@
4881 } 4881 }
4882 }, 4882 },
4883 "eslint-plugin-vue": { 4883 "eslint-plugin-vue": {
4884 "version": "6.1.2", 4884 "version": "6.2.1",
4885 "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-6.1.2.tgz", 4885 "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-6.2.1.tgz",
4886 "integrity": "sha512-M75oAB+2a/LNkLKRbeEaS07EjzjIUaV7/hYoHAfRFeeF8ZMmCbahUn8nQLsLP85mkar24+zDU3QW2iT1JRsACw==", 4886 "integrity": "sha512-MiIDOotoWseIfLIfGeDzF6sDvHkVvGd2JgkvjyHtN3q4RoxdAXrAMuI3SXTOKatljgacKwpNAYShmcKZa4yZzw==",
4887 "dev": true, 4887 "dev": true,
4888 "requires": { 4888 "requires": {
4889 "natural-compare": "^1.4.0",
4889 "semver": "^5.6.0", 4890 "semver": "^5.6.0",
4890 "vue-eslint-parser": "^7.0.0" 4891 "vue-eslint-parser": "^7.0.0"
4891 } 4892 }
@@ -11950,9 +11951,9 @@
11950 "dev": true 11951 "dev": true
11951 }, 11952 },
11952 "typescript": { 11953 "typescript": {
11953 "version": "3.7.5", 11954 "version": "3.8.2",
11954 "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", 11955 "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.2.tgz",
11955 "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", 11956 "integrity": "sha512-EgOVgL/4xfVrCMbhYKUQTdF37SQn4Iw73H5BgCrF1Abdun7Kwy/QZsE/ssAy0y4LxBbvua3PIbFsbRczWWnDdQ==",
11956 "dev": true 11957 "dev": true
11957 }, 11958 },
11958 "uglify-js": { 11959 "uglify-js": {
@@ -12248,9 +12249,9 @@
12248 "dev": true 12249 "dev": true
12249 }, 12250 },
12250 "v-lazy-image": { 12251 "v-lazy-image": {
12251 "version": "1.3.2", 12252 "version": "1.4.0",
12252 "resolved": "https://registry.npmjs.org/v-lazy-image/-/v-lazy-image-1.3.2.tgz", 12253 "resolved": "https://registry.npmjs.org/v-lazy-image/-/v-lazy-image-1.4.0.tgz",
12253 "integrity": "sha512-yZYMLoy95S4K9mWE/2DMZcwvaWnGiAHGXcKRruyrFvAdFm2fsnfyL0yj2UwXEGliNZO7I4mRy9/RB7J4CT0HAQ==" 12254 "integrity": "sha512-Xp/fM786hdXlP10HatvtNsvvPjW6yOsH17lvVEEuGiNMnyiafT9XVomQRRM4t+IzN21cz3SQcw9cqd486yhpgQ=="
12254 }, 12255 },
12255 "v8-compile-cache": { 12256 "v8-compile-cache": {
12256 "version": "2.1.0", 12257 "version": "2.1.0",
@@ -12303,9 +12304,9 @@
12303 "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==" 12304 "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
12304 }, 12305 },
12305 "vue-class-component": { 12306 "vue-class-component": {
12306 "version": "7.2.2", 12307 "version": "7.2.3",
12307 "resolved": "https://registry.npmjs.org/vue-class-component/-/vue-class-component-7.2.2.tgz", 12308 "resolved": "https://registry.npmjs.org/vue-class-component/-/vue-class-component-7.2.3.tgz",
12308 "integrity": "sha512-QjVfjRffux0rUBNtxr1hvUxDrfifDvk9q/OSdB/sKIlfxAudDF2E1YTeiEC+qOYIOOBGWkgSKQSnast6H+S38w==" 12309 "integrity": "sha512-oEqYpXKaFN+TaXU+mRLEx8dX0ah85aAJEe61mpdoUrq0Bhe/6sWhyZX1JjMQLhVsHAkncyhedhmCdDVSasUtDw=="
12309 }, 12310 },
12310 "vue-cli-plugin-buefy": { 12311 "vue-cli-plugin-buefy": {
12311 "version": "0.3.7", 12312 "version": "0.3.7",
diff --git a/viewer/package.json b/viewer/package.json
index 212c2e6..7218cda 100644
--- a/viewer/package.json
+++ b/viewer/package.json
@@ -13,11 +13,11 @@
13 "@fortawesome/fontawesome-svg-core": "^1.2.27", 13 "@fortawesome/fontawesome-svg-core": "^1.2.27",