diff options
author | Zéro~Informatique | 2022-07-26 08:44:34 +0200 |
---|---|---|
committer | pacien | 2022-09-03 01:30:42 +0200 |
commit | 00510820a2794efcadbc83f7f8b54318fe198ecb (patch) | |
tree | a894d99c22a601197869c7a6928d40bb4ae2c392 /viewer | |
parent | 88aa098c07e067f9f737fbeba1f52a9bd5042e53 (diff) | |
download | ldgallery-00510820a2794efcadbc83f7f8b54318fe198ecb.tar.gz |
viewer: migrate to vue 3, general refactoring and cleanup
Non-exhaustive list of fixes and improvements done at the same time:
- html default background to grey (avoids white flash during init)
- unified links behavior
- added more theme variables
- removed the flex-expand transition (it wasn't working) and replaced it
with a slide
- fixed LdLoading not centered on the content
- title on removable tags
- fixed an issue with encoded URI from vue-router
- unified Item resource URLs
- removed the iframe for PlainTextViewer (it wasn't working properly)
and replaced it with a pre
- fixed clear and search buttons tabindex
- fixed the information panel bumping up during the fade animation of
tag's dropdown
- fixed some focus outlines not appearing correctly
- moved CSS variables to the :root context
- Code cleaning
GitHub: closes #217
GitHub: closes #300
GitHub: closes #297
GitHub: closes #105
GitHub: closes #267
GitHub: closes #275
GitHub: closes #228
GitHub: closes #215
GitHub: closes #112
Diffstat (limited to 'viewer')
107 files changed, 6341 insertions, 9285 deletions
diff --git a/viewer/.env b/viewer/.env index 99efa3d..b552629 100644 --- a/viewer/.env +++ b/viewer/.env | |||
@@ -1,6 +1,6 @@ | |||
1 | # Override with .env.development.local and .env.production.local | 1 | # Override with .env.development.local and .env.production.local |
2 | 2 | ||
3 | VUE_APP_I18N_LOCALE=en | ||
4 | VUE_APP_I18N_FALLBACK_LOCALE=en | ||
5 | VUE_APP_DATA_URL=./ | 3 | VUE_APP_DATA_URL=./ |
6 | VUE_APP_FULLWIDTH_LIMIT=1216 | 4 | VUE_APP_FULLWIDTH_LIMIT=1216 |
5 | VUE_APP_I18N_LOCALE=en | ||
6 | VUE_APP_I18N_FALLBACK_LOCALE=en | ||
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js index 9d3fbbc..0308e3f 100644 --- a/viewer/.eslintrc.js +++ b/viewer/.eslintrc.js | |||
@@ -1,39 +1,22 @@ | |||
1 | module.exports = { | 1 | module.exports = { |
2 | root: true, | 2 | root: true, |
3 | |||
4 | env: { | 3 | env: { |
5 | node: true, | 4 | node: true, |
6 | }, | 5 | }, |
7 | 6 | extends: [ | |
8 | plugins: ["prettier"], | 7 | 'plugin:vue/vue3-recommended', |
9 | 8 | '@vue/standard', | |
10 | extends: ["plugin:vue/essential", "plugin:prettier/recommended", "@vue/typescript"], | 9 | '@vue/typescript/recommended', |
11 | 10 | ], | |
12 | rules: { | ||
13 | "no-console": "off", | ||
14 | "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", | ||
15 | "prettier/prettier": "warn", | ||
16 | "eol-last": ["warn", "always"], | ||
17 | "object-curly-spacing": ["warn", "always"], | ||
18 | "quote-props": ["warn", "as-needed"], | ||
19 | indent: ["warn", 2, { SwitchCase: 1 }], | ||
20 | quotes: ["warn", "double"], | ||
21 | "vue/attribute-hyphenation": "warn", | ||
22 | "vue/html-closing-bracket-spacing": "warn", | ||
23 | "vue/html-end-tags": "error", |