From 035fa114c9fd638cf467e6a73a8e4c558f503deb Mon Sep 17 00:00:00 2001 From: Soybean <2570172956@qq.com> Date: Tue, 4 Jan 2022 13:53:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=95=88=E6=9E=9C=EF=BC=9A=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 - .eslintrc.js | 1 + .gitignore | 2 ++ .prettierrc.js | 12 ++++++++++-- index.html | 18 ++++++++++++++++-- public/favicon.ico | Bin 4286 -> 16958 bytes src/App.vue | 15 +++------------ src/AppProvider.vue | 13 +++++++++++++ src/main.ts | 19 +++++++++++++------ src/plugins/index.ts | 3 ++- src/plugins/logo.ts | 28 ++++++++++++++++++++++++++++ src/store/modules/theme/index.ts | 21 +++++++++++++-------- vite.config.ts | 4 ++++ windi.config.ts | 3 ++- 14 files changed, 107 insertions(+), 33 deletions(-) create mode 100644 src/AppProvider.vue create mode 100644 src/plugins/logo.ts diff --git a/.eslintignore b/.eslintignore index 105e5d69a..1f2dc32fa 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,5 +11,4 @@ lib /docs .vscode .local -index.html !.env-config.ts diff --git a/.eslintrc.js b/.eslintrc.js index e813bffc5..0569d3854 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -135,6 +135,7 @@ module.exports = { 'no-shadow': 0, 'no-unused-vars': 'off', 'no-use-before-define': 'off', + 'vue/comment-directive': 0, 'vue/multi-word-component-names': 0, '@typescript-eslint/ban-types': 'off', '@typescript-eslint/ban-ts-ignore': 'off', diff --git a/.gitignore b/.gitignore index b4300fae9..c16790f4d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ dist-ssr *.njsproj *.sln *.sw? + +stats.html diff --git a/.prettierrc.js b/.prettierrc.js index a1267c687..4b3ba6545 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -15,5 +15,13 @@ module.exports = { requireConfig: false, // Require a 'prettierconfig' to format prettier stylelintIntegration: false, //不让prettier使用stylelint的代码格式进行校验 trailingComma: 'none', // 在对象或数组最后一个元素后面是否加逗号(在ES5中加尾逗号) - tslintIntegration: false // 不让prettier使用tslint的代码格式进行校验 -} + tslintIntegration: false, // 不让prettier使用tslint的代码格式进行校验 + overrides: [ + { + files: '*.html', + options: { + parser: 'html' + } + } + ] +}; diff --git a/index.html b/index.html index 11603f878..3f9903e89 100644 --- a/index.html +++ b/index.html @@ -4,10 +4,24 @@ -