From c8e203b909d27b7836d0fe035511db75601ee7a9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 19 Feb 2018 18:26:20 +0900 Subject: [PATCH] wip --- .eslintrc | 17 ++ package.json | 3 + .../-tags/home-widgets/timemachine.tag | 23 -- .../app/desktop/views/components/calendar.vue | 9 +- src/web/app/desktop/views/components/home.vue | 224 ++++++++---------- src/web/app/desktop/views/components/index.ts | 4 + .../app/desktop/views/components/timeline.vue | 15 +- .../views/components/widgets/timemachine.vue | 28 +++ 8 files changed, 161 insertions(+), 162 deletions(-) create mode 100644 .eslintrc delete mode 100644 src/web/app/desktop/-tags/home-widgets/timemachine.tag create mode 100644 src/web/app/desktop/views/components/widgets/timemachine.vue diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 000000000..d30cf2aa5 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,17 @@ +{ + "parserOptions": { + "parser": "typescript-eslint-parser" + }, + "extends": [ + "eslint:recommended", + "plugin:vue/recommended" + ], + "rules": { + "vue/require-v-for-key": false, + "vue/max-attributes-per-line": false, + "vue/html-indent": false, + "vue/html-self-closing": false, + "vue/no-unused-vars": false, + "no-console": 0 + } +} diff --git a/package.json b/package.json index e87be0ab2..727c4af71 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,8 @@ "diskusage": "0.2.4", "elasticsearch": "14.1.0", "escape-regexp": "0.0.1", + "eslint": "^4.18.0", + "eslint-plugin-vue": "^4.2.2", "eventemitter3": "3.0.0", "exif-js": "2.3.0", "express": "4.16.2", @@ -174,6 +176,7 @@ "ts-node": "4.1.0", "tslint": "5.9.1", "typescript": "2.7.1", + "typescript-eslint-parser": "^13.0.0", "uglify-es": "3.3.9", "uglifyjs-webpack-plugin": "1.1.8", "uuid": "3.2.1", diff --git a/src/web/app/desktop/-tags/home-widgets/timemachine.tag b/src/web/app/desktop/-tags/home-widgets/timemachine.tag deleted file mode 100644 index 43f59fe67..000000000 --- a/src/web/app/desktop/-tags/home-widgets/timemachine.tag +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/src/web/app/desktop/views/components/calendar.vue b/src/web/app/desktop/views/components/calendar.vue index 338077402..e548a82c5 100644 --- a/src/web/app/desktop/views/components/calendar.vue +++ b/src/web/app/desktop/views/components/calendar.vue @@ -7,16 +7,15 @@
+