aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--viewer/.eslintrc.js3
-rw-r--r--viewer/.vscode/tasks.json19
-rw-r--r--viewer/src/@types/Operation.ts2
-rw-r--r--viewer/src/@types/gallery.d.ts2
-rw-r--r--viewer/src/@types/scrollposition.d.ts2
-rw-r--r--viewer/src/@types/tag.d.ts2
-rw-r--r--viewer/src/@types/v-lazy-image.d.ts2
-rw-r--r--viewer/src/@types/vue-dragscroll.d.ts2
-rw-r--r--viewer/src/components/LdKeyPress.vue2
-rw-r--r--viewer/src/components/index.ts2
-rw-r--r--viewer/src/dragscrollclickfix.ts2
-rw-r--r--viewer/src/plugins/buefy.ts2
-rw-r--r--viewer/src/store/galleryStore.ts2
-rw-r--r--viewer/src/tools.ts2
-rw-r--r--viewer/visualstudio.code-workspace2
15 files changed, 34 insertions, 14 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 40d2a11..e1ad89b 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -13,6 +13,7 @@ module.exports = {
13 rules: { 13 rules: {
14 "no-console": "off", 14 "no-console": "off",
15 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", 15 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
16 'eol-last': ['warn', 'always'],
16 'vue/attribute-hyphenation': 'warn', 17 'vue/attribute-hyphenation': 'warn',
17 'vue/html-closing-bracket-spacing': 'warn', 18 'vue/html-closing-bracket-spacing': 'warn',
18 'vue/html-end-tags': 'error', 19 'vue/html-end-tags': 'error',
@@ -24,7 +25,7 @@ module.exports = {
24 'vue/v-bind-style': 'warn', 25 'vue/v-bind-style': 'warn',
25 'vue/v-on-style': 'warn', 26 'vue/v-on-style': 'warn',
26 'vue/attributes-order': 'warn', 27 'vue/attributes-order': 'warn',
27 'vue/this-in-template': 'warn' 28 'vue/this-in-template': 'warn',
28 }, 29 },
29 30
30 parserOptions: { 31 parserOptions: {
diff --git a/viewer/.vscode/tasks.json b/viewer/.vscode/tasks.json
index 3c02098..102002d 100644
--- a/viewer/.vscode/tasks.json
+++ b/viewer/.vscode/tasks.json
@@ -9,7 +9,10 @@
9 "group": { 9 "group": {
10 "kind": "build", 10 "kind": "build",
11 "isDefault": true 11 "isDefault": true
12 } 12 },
13 "problemMatcher": [
14 "$tsc"
15 ]
13 }, 16 },
14 { 17 {
15 "type": "npm", 18 "type": "npm",
@@ -17,6 +20,20 @@
17 "problemMatcher": [ 20 "problemMatcher": [
18 "$tsc" 21 "$tsc"
19 ] 22 ]
23 },
24 {
25 "type": "npm",
26 "script": "lint-autoformat",
27 "problemMatcher": [
28 "$tsc"
29 ]
30 },
31 {
32 "type": "npm",
33 "script": "lint",
34 "problemMatcher": [
35 "$tsc"
36 ]
20 } 37 }
21 ] 38 ]
22} \ No newline at end of file 39} \ No newline at end of file
diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts
index f1e7a41..ba31bc0 100644
--- a/viewer/src/@types/Operation.ts
+++ b/viewer/src/@types/Operation.ts
@@ -21,4 +21,4 @@ export enum Operation {
21 INTERSECTION = '', 21 INTERSECTION = '',
22 ADDITION = '+', 22 ADDITION = '+',
23 SUBSTRACTION = '-', 23 SUBSTRACTION = '-',
24}; \ No newline at end of file 24};
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 1987416..14a7ed9 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -56,4 +56,4 @@ declare namespace Gallery {
56 } 56 }
57 type RawTag = string; 57 type RawTag = string;
58 type ItemType = "other" | "picture" | "directory"; 58 type ItemType = "other" | "picture" | "directory";
59} \ No newline at end of file 59}
diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts
index d4fad52..b2147fa 100644
--- a/viewer/src/@types/scrollposition.d.ts
+++ b/viewer/src/@types/scrollposition.d.ts
@@ -17,4 +17,4 @@
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18*/ 18*/
19 19
20type ScrollPosition = { [index: string]: number } \ No newline at end of file 20type ScrollPosition = { [index: string]: number }
diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts
index 1d5df88..a390c80 100644
--- a/viewer/src/@types/tag.d.ts
+++ b/viewer/src/@types/tag.d.ts
@@ -31,4 +31,4 @@ declare namespace Tag {
31 } 31 }
32 type SearchByOperation = { [index: string]: Tag.Search[] }; 32 type SearchByOperation = { [index: string]: Tag.Search[] };
33 type Index = { [index: string]: Node }; 33 type Index = { [index: string]: Node };
34} \ No newline at end of file 34}
diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts
index e307751..df29484 100644
--- a/viewer/src/@types/v-lazy-image.d.ts
+++ b/viewer/src/@types/v-lazy-image.d.ts
@@ -17,4 +17,4 @@
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18*/ 18*/
19 19
20declare module 'v-lazy-image'; \ No newline at end of file 20declare module 'v-lazy-image';
diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts
index b0967a9..052023d 100644
--- a/viewer/src/@types/vue-dragscroll.d.ts
+++ b/viewer/src/@types/vue-dragscroll.d.ts
@@ -17,4 +17,4 @@
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18*/ 18*/
19 19
20declare module 'vue-dragscroll'; \ No newline at end of file 20declare module 'vue-dragscroll';
diff --git a/viewer/src/components/LdKeyPress.vue b/viewer/src/components/LdKeyPress.vue
index 8276607..c507b33 100644
--- a/viewer/src/components/LdKeyPress.vue
+++ b/viewer/src/components/LdKeyPress.vue
@@ -46,4 +46,4 @@ export default class LdKeyPress extends Vue {
46 return e; 46 return e;
47 } 47 }
48} 48}
49</script> \ No newline at end of file 49</script>
diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.ts
index 8e73274..ef55489 100644
--- a/viewer/src/components/index.ts
+++ b/viewer/src/components/index.ts
@@ -38,4 +38,4 @@ requireComponent.keys().forEach(fileName => {
38 // otherwise fall back to module's root. 38 // otherwise fall back to module's root.
39 componentConfig.default ?? componentConfig 39 componentConfig.default ?? componentConfig
40 ) 40 )
41}) \ No newline at end of file 41})
diff --git a/viewer/src/dragscrollclickfix.ts b/viewer/src/dragscrollclickfix.ts
index 00360fb..38eb106 100644
--- a/viewer/src/dragscrollclickfix.ts
+++ b/viewer/src/dragscrollclickfix.ts
@@ -49,4 +49,4 @@ export default class DragScrollClickFix {
49 e.stopPropagation(); 49 e.stopPropagation();
50 } 50 }
51 } 51 }
52} \ No newline at end of file 52}
diff --git a/viewer/src/plugins/buefy.ts b/viewer/src/plugins/buefy.ts
index fbffd55..74b6176 100644
--- a/viewer/src/plugins/buefy.ts
+++ b/viewer/src/plugins/buefy.ts
@@ -39,4 +39,4 @@ declare module 'vue/types/vue' {
39 interface Vue { 39 interface Vue {
40 $buefy: any; 40 $buefy: any;
41 } 41 }
42} \ No newline at end of file 42}
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index 1c95fe7..5ab0c33 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -108,4 +108,4 @@ export default class GalleryStore extends VuexModule {
108 } 108 }
109 return []; 109 return [];
110 } 110 }
111} \ No newline at end of file 111}
diff --git a/viewer/src/tools.ts b/viewer/src/tools.ts
index 124e183..80a7ef0 100644
--- a/viewer/src/tools.ts
+++ b/viewer/src/tools.ts
@@ -56,4 +56,4 @@ export default class Tools {
56 } 56 }
57 } 57 }
58 58
59} \ No newline at end of file 59}
diff --git a/viewer/visualstudio.code-workspace b/viewer/visualstudio.code-workspace
index 0ba3584..da96c0a 100644
--- a/viewer/visualstudio.code-workspace
+++ b/viewer/visualstudio.code-workspace
@@ -7,6 +7,8 @@
7 "settings": { 7 "settings": {
8 "editor.formatOnSave": true, 8 "editor.formatOnSave": true,
9 "editor.wordBasedSuggestions": false, 9 "editor.wordBasedSuggestions": false,
10 "files.insertFinalNewline": true,
11 "files.trimFinalNewlines": true,
10 "javascript.format.semicolons": "insert", 12 "javascript.format.semicolons": "insert",
11 "typescript.disableAutomaticTypeAcquisition": true, 13 "typescript.disableAutomaticTypeAcquisition": true,
12 "vue-i18n-ally.keystyle": "flat", 14 "vue-i18n-ally.keystyle": "flat",