From 88372aced13f65c52af827c65fb2437b07598598 Mon Sep 17 00:00:00 2001 From: pnoker Date: Sun, 26 Jan 2020 10:49:06 +0800 Subject: [PATCH] . --- package.json | 22 ++++++++-- public/index.html | 86 ++++++++++++++++++++++++++++++++++--- public/svg/loading-init.svg | 6 +++ vue.config.js | 1 + 4 files changed, 106 insertions(+), 9 deletions(-) create mode 100644 public/svg/loading-init.svg diff --git a/package.json b/package.json index 27f70d9..50abf17 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,14 @@ { "name": "dc3-web", - "author": "pnoker", + "version": "3.0.0", "private": true, + "author": "pnoker", "description": "IOT DC3 平台UI", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "analyz": "npm_config_report=true npm run build" }, "dependencies": { "axios": "^0.19.1", @@ -32,6 +34,16 @@ "vue-cli-plugin-element": "^1.0.1", "vue-template-compiler": "^2.6.11" }, + "lint-staged": { + "*.js": [ + "vue-cli-service lint", + "git add" + ], + "*.vue": [ + "vue-cli-service lint", + "git add" + ] + }, "eslintConfig": { "root": true, "env": { @@ -42,7 +54,8 @@ "eslint:recommended" ], "rules": { - "no-console": "off" + "no-console": "off", + "no-debugger": "off" }, "parserOptions": { "parser": "babel-eslint" @@ -55,6 +68,7 @@ }, "browserslist": [ "> 1%", - "last 2 versions" + "last 2 versions", + "not ie <= 8" ] } diff --git a/public/index.html b/public/index.html index 5fb63c6..7ec8c82 100644 --- a/public/index.html +++ b/public/index.html @@ -1,16 +1,92 @@ - + - + - + + + + + IOT | DC3 + -
+
+
+
+ loading +
+ 正在加载资源 +
+
+ 初次加载资源可能需要较多时间 请耐心等待 +
+
+ +
+
diff --git a/public/svg/loading-init.svg b/public/svg/loading-init.svg new file mode 100644 index 0000000..e2166a5 --- /dev/null +++ b/public/svg/loading-init.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 629fb3b..46e9ba7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ module.exports = { publicPath: './', + lintOnSave: true, productionSourceMap: false } \ No newline at end of file