Skip to content

Commit

Permalink
feat: 🚀 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Halsey committed Jan 16, 2023
1 parent 9084230 commit cd333df
Show file tree
Hide file tree
Showing 73 changed files with 386 additions and 960 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ indent_style = tab # 缩进风格(tab | space)
indent_size = 2 # 缩进大小
max_line_length = 130 # 最大行长度

[*.md] # 表示仅 md 文件适用以下规则
[*.md] # 表示仅对 md 文件适用以下规则
max_line_length = off # 关闭最大行长度限制
trim_trailing_whitespace = false # 关闭末尾空格修剪
10 changes: 5 additions & 5 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 本地环境
NODE_ENV = 'development'

# 本地环境接口地址
VITE_API_URL = '/api'
# 本地环境
NODE_ENV = 'development'

# 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = '/api'
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 测试环境
NODE_ENV = "test"

# 测试环境接口地址(easymock)
VITE_API_URL = "https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e"
# 测试环境接口地址(fastmock)
VITE_API_URL = "https://www.fastmock.site/mock/f81e8333c1a9276214bcdbc170d9e0a0"
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules
.vscode
.idea
dist
html
/public
/docs
.husky
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lerna-debug.log*

node_modules
dist
html
dist-ssr
*.local
stats.html
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/dist/*
/html/*
.local
/node_modules/**

Expand Down
6 changes: 3 additions & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
semi: true,
// 使用单引号(true单双引号,false双引号)
singleQuote: false,
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
// 更改引用对象属性的时间 可选值 "<as-needed|consistent|preserve>"
quoteProps: "as-needed",
// 在对象,数组括号与文字之间加空格 "{ foo: bar }"
bracketSpacing: true,
Expand All @@ -27,9 +27,9 @@ module.exports = {
requirePragma: false,
// 默认值。因为使用了一些折行敏感型的渲染器(如GitHub comment)而按照markdown文本样式进行折行
proseWrap: "preserve",
// 在html中空格是否是敏感的 "css" - 遵守CSS显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的
// 在html中空格是否是敏感的 "css" - 遵守 CSS 显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的
htmlWhitespaceSensitivity: "css",
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
// 换行符使用 lf 结尾是 可选值 "<auto|lf|crlf|cr>"
endOfLine: "auto",
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
rangeStart: 0,
Expand Down
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist/*
/html/*
/public/*
public/*
9 changes: 6 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"recommendations": [
"vue.volar",
"hollowtree.vue-snippets",
"vue.vscode-typescript-vue-plugin",
"stylelint.vscode-stylelint",
"hollowtree.vue-snippets",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"esbenp.prettier-vscode"
"streetsidesoftware.code-spell-checker",
"syler.sass-indented",
"mikestead.dotenv"
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"acroutes",
"adcode",
"Alipay",
"AMAP",
"Anglar",
"antd",
"apng",
Expand All @@ -54,7 +55,6 @@
"commitlint",
"contentleft",
"contentright",
"cropperjs",
"CSDN",
"curveness",
"daterange",
Expand Down Expand Up @@ -102,6 +102,7 @@
"topleft",
"topright",
"truetype",
"Uncapitalize",
"unplugin",
"unref",
"vite",
Expand Down
175 changes: 76 additions & 99 deletions README.md

Large diffs are not rendered by default.

Loading

1 comment on commit cd333df

@vercel
Copy link

@vercel vercel bot commented on cd333df Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.