chore: 统一代码风格并配置ESLint和Prettier

配置ESLint和Prettier规则
添加前端和后端的忽略文件
统一代码格式和缩进
修复代码风格问题
This commit is contained in:
zhang1106
2026-02-10 11:04:01 +08:00
parent f82d82e57e
commit afc372a432
61 changed files with 14976 additions and 6124 deletions
+14 -8
View File
@@ -5,9 +5,9 @@
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f5f7fa;
@@ -149,19 +149,24 @@ body {
transform: translateY(-1px);
}
.ant-input, .ant-select-selector, .ant-picker {
.ant-input,
.ant-select-selector,
.ant-picker {
border-radius: 8px !important;
border: 1px solid #d9d9d9 !important;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.ant-input:hover, .ant-select-selector:hover, .ant-picker:hover {
.ant-input:hover,
.ant-select-selector:hover,
.ant-picker:hover {
border-color: #40a9ff !important;
box-shadow: 0 2px 6px rgba(24, 144, 255, 0.15) !important;
}
.ant-input:focus, .ant-input-focused,
.ant-input:focus,
.ant-input-focused,
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
border-color: #1890ff !important;
@@ -188,7 +193,8 @@ body {
box-shadow: 0 2px 6px rgba(24, 144, 255, 0.15) !important;
}
.ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-focused {
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
border-color: #1890ff !important;
box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15) !important;
}
@@ -881,4 +887,4 @@ body {
.welcome-banner p {
color: rgba(255, 255, 255, 0.9);
margin: 0;
}
}