diff options
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/package.json | 5 | ||||
-rw-r--r-- | viewer/src/components/LdProposition.vue | 30 | ||||
-rw-r--r-- | viewer/src/locales/en.json | 6 | ||||
-rw-r--r-- | viewer/visualstudio.code-workspace | 1 |
4 files changed, 30 insertions, 12 deletions
diff --git a/viewer/package.json b/viewer/package.json index 1521dc5..e1761c9 100644 --- a/viewer/package.json +++ b/viewer/package.json | |||
@@ -5,7 +5,8 @@ | |||
5 | "scripts": { | 5 | "scripts": { |
6 | "serve": "vue-cli-service serve", | 6 | "serve": "vue-cli-service serve", |
7 | "build": "vue-cli-service build --modern", | 7 | "build": "vue-cli-service build --modern", |
8 | "lint": "vue-cli-service lint", | 8 | "lint": "vue-cli-service lint --no-fix", |
9 | "lint-autoformat": "vue-cli-service lint --fix", | ||
9 | "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue|ts)' --locales './src/locales/**/*.json'" | 10 | "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue|ts)' --locales './src/locales/**/*.json'" |
10 | }, | 11 | }, |
11 | "dependencies": { | 12 | "dependencies": { |
@@ -47,4 +48,4 @@ | |||
47 | "vue-cli-plugin-i18n": "^0.6.1", | 48 | "vue-cli-plugin-i18n": "^0.6.1", |
48 | "vue-template-compiler": "^2.6.10" | 49 | "vue-template-compiler": "^2.6.10" |
49 | } | 50 | } |
50 | } | 51 | } \ No newline at end of file |
diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index 0a293a9..395611f 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue | |||
@@ -2,6 +2,7 @@ | |||
2 | -- pictures into a searchable web gallery. | 2 | -- pictures into a searchable web gallery. |
3 | -- | 3 | -- |
4 | -- Copyright (C) 2019-2020 Guillaume FOUET | 4 | -- Copyright (C) 2019-2020 Guillaume FOUET |
5 | -- 2020 Pacien TRAN-GIRARD | ||
5 | -- | 6 | -- |
6 | -- This program is free software: you can redistribute it and/or modify | 7 | -- This program is free software: you can redistribute it and/or modify |
7 | -- it under the terms of the GNU Affero General Public License as | 8 | -- it under the terms of the GNU Affero General Public License as |
@@ -20,17 +21,28 @@ | |||
20 | <template> | 21 | <template> |
21 | <div> | 22 | <div> |
22 | <div v-for="proposed in proposedTags" :key="proposed.rawTag" class="proposition"> | 23 | <div v-for="proposed in proposedTags" :key="proposed.rawTag" class="proposition"> |
23 | <div class="operation-btns link" @click="add(Operation.SUBSTRACTION, proposed.rawTag)"> | 24 | <a |
24 | <fa-icon icon="minus" /> | 25 | class="operation-btns link" |
25 | </div> | 26 | :title="$t('tag-propositions.substraction')" |
26 | <div class="operation-btns link" @click="add(Operation.ADDITION, proposed.rawTag)"> | 27 | @click="add(Operation.SUBSTRACTION, proposed.rawTag)" |
27 | <fa-icon icon="plus" /> | 28 | ><fa-icon icon="minus" alt="[-]" /></a> |
28 | </div> | 29 | |
29 | <div | 30 | <a |
31 | class="operation-btns link" | ||
32 | :title="$t('tag-propositions.addition')" | ||
33 | @click="add(Operation.ADDITION, proposed.rawTag)" | ||
34 | ><fa-icon icon="plus" alt="[+]" /></a> | ||
35 | |||
36 | <a | ||
30 | class="operation-tag link" | 37 | class="operation-tag link" |
38 | :title="$t('tag-propositions.intersection')" | ||
31 | @click="add(Operation.INTERSECTION, proposed.rawTag)" | 39 | @click="add(Operation.INTERSECTION, proposed.rawTag)" |
32 | >{{proposed.rawTag}}</div> | 40 | >{{proposed.rawTag}}</a> |
33 | <div class="disabled">x{{proposed.count}}</div> | 41 | |
42 | <div | ||
43 | class="disabled" | ||
44 | :title="$t('tag-propositions.item-count')" | ||
45 | >{{proposed.count}}</div> | ||
34 | </div> | 46 | </div> |
35 | </div> | 47 | </div> |
36 | </template> | 48 | </template> |
diff --git a/viewer/src/locales/en.json b/viewer/src/locales/en.json index 987d4d1..453fc5f 100644 --- a/viewer/src/locales/en.json +++ b/viewer/src/locales/en.json | |||
@@ -7,9 +7,13 @@ | |||
7 | "mode.search": "Search", | 7 | "mode.search": "Search", |
8 | "search.no-results": "No results", | 8 | "search.no-results": "No results", |
9 | "panelLeft.propositions": "Proposed tags", | 9 | "panelLeft.propositions": "Proposed tags", |
10 | "tag-propositions.substraction": "Exclude items with this tag", | ||
11 | "tag-propositions.addition": "Include all items with this tag", | ||
12 | "tag-propositions.intersection": "Search for this tag", | ||
13 | "tag-propositions.item-count": "Item count", | ||
10 | "gallery.unknowntype": "Unknown item type", | 14 | "gallery.unknowntype": "Unknown item type", |
11 | "title.tags": "Tags", | 15 | "title.tags": "Tags", |
12 | "title.home": "Home", | 16 | "title.home": "Home", |
13 | "title.back": "Back", | 17 | "title.back": "Back", |
14 | "title.parent": "Parent" | 18 | "title.parent": "Parent" |
15 | } \ No newline at end of file | 19 | } |
diff --git a/viewer/visualstudio.code-workspace b/viewer/visualstudio.code-workspace index f8d83c3..0ba3584 100644 --- a/viewer/visualstudio.code-workspace +++ b/viewer/visualstudio.code-workspace | |||
@@ -16,6 +16,7 @@ | |||
16 | } | 16 | } |
17 | // Recommended Visual Studio Code extensions: | 17 | // Recommended Visual Studio Code extensions: |
18 | // - Vetur | 18 | // - Vetur |
19 | // - ESLint | ||
19 | // - Vue i18n Ally | 20 | // - Vue i18n Ally |
20 | // - SCSS Everywhere | 21 | // - SCSS Everywhere |
21 | // - Debugger for Chrome | 22 | // - Debugger for Chrome |