From c49641d988a2f404b04d4fcc9642b26d1c22f550 Mon Sep 17 00:00:00 2001 From: preschool Date: Tue, 13 Aug 2024 13:46:09 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=8E=88=20perf:=E7=A7=BB=E9=99=A4style?= =?UTF-8?q?lint=E5=B7=B2=E5=BC=83=E7=94=A8=E7=9A=84=E8=A7=84=E5=88=99?= =?UTF-8?q?=E3=80=81=E5=BC=80=E5=90=AF=E4=BF=9D=E5=AD=98=E6=97=B6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8stylelint=E6=A0=BC=E5=BC=8F=E5=8C=96=E3=80=81=E7=A7=BB?= =?UTF-8?q?=E9=99=A4tsconfig=E6=8A=A5=E9=94=99=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- stylelint.config.js | 10 +++++----- tsconfig.json | 10 +++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 54be7d8c..7d8aed49 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -83,7 +83,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" }, "[vue]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" diff --git a/stylelint.config.js b/stylelint.config.js index 890b45bc..b3367850 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -13,19 +13,19 @@ module.exports = { 'at-rule-no-unknown': [ true, { - ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin'] + ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin', 'extend'] } ], 'media-query-no-invalid': null, 'function-no-unknown': null, 'no-empty-source': null, 'named-grid-areas-no-invalid': null, - 'unicode-bom': 'never', + // 'unicode-bom': 'never', 'no-descending-specificity': null, 'font-family-no-missing-generic-family-keyword': null, - 'declaration-colon-space-after': 'always-single-line', - 'declaration-colon-space-before': 'never', - 'declaration-block-trailing-semicolon': null, + // 'declaration-colon-space-after': 'always-single-line', + // 'declaration-colon-space-before': 'never', + // 'declaration-block-trailing-semicolon': null, 'rule-empty-line-before': [ 'always', { diff --git a/tsconfig.json b/tsconfig.json index 182852ac..38376ef9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,11 +24,11 @@ "@/*": ["src/*"] }, "types": [ - "@intlify/unplugin-vue-i18n/types", - "vite/client", - "element-plus/global", - "@types/qrcode", - "vite-plugin-svg-icons/client" + // "@intlify/unplugin-vue-i18n/types", + "vite/client" + // "element-plus/global", + // "@types/qrcode", + // "vite-plugin-svg-icons/client" ], "outDir": "target", // 请保留这个属性,防止tsconfig.json文件报错 "typeRoots": ["./node_modules/@types/", "./types"] From 1a4c7175843bbadaac04a280f5e4b8207f04bce9 Mon Sep 17 00:00:00 2001 From: preschool Date: Tue, 13 Aug 2024 16:31:45 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=8E=88=20perf:=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=AA=97=E5=8F=A3=E9=AB=98=E5=BA=A6=E3=80=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E5=85=A5=E5=9C=BA=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E3=80=81=E7=99=BB=E5=BD=95=E9=A1=B5=E6=9A=97=E9=BB=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E5=88=86=E5=89=B2=E7=BA=BF=E5=92=8C=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/index.scss | 1 + src/styles/theme.scss | 11 +++++++++++ src/views/Login/Login.vue | 10 ++++++---- src/views/Login/SocialLogin.vue | 12 +++++++----- src/views/Login/components/QrCodeForm.vue | 2 +- src/views/Login/components/RegisterForm.vue | 2 +- src/views/ai/write/index/components/Left.vue | 2 +- .../components/history/MemberBrowsingHistory.vue | 2 +- 8 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/styles/index.scss b/src/styles/index.scss index fbe76f23..766f983e 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,5 +1,6 @@ @import './var.css'; @import './FormCreate/index.scss'; +@import './theme.scss'; @import 'element-plus/theme-chalk/dark/css-vars.css'; .reset-margin [class*='el-icon'] + span { diff --git a/src/styles/theme.scss b/src/styles/theme.scss index 39b03b3d..149002cf 100644 --- a/src/styles/theme.scss +++ b/src/styles/theme.scss @@ -4,3 +4,14 @@ // .dark .dark\:text-color { // color: rgba(255, 255, 255, var(--dark-text-color)); // } + +// 登录页 +.dark .login-form { + .el-divider__text { + background-color: var(--login-bg-color); + } + + .el-card { + background-color: var(--login-bg-color); + } +} diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 5d349ce3..e1245757 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -5,7 +5,7 @@ >
@@ -27,7 +27,9 @@
-