-
-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
218 changed files
with
5,609 additions
and
5,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
# 修改配置后重启编辑器 | ||
# 配置项文档:https://editorconfig.org/ | ||
# 配置项文档:https://editorconfig.org(修改配置后重启编辑器) | ||
|
||
# 告知 EditorConfig 插件,当前即是根文件 | ||
## 告知 EditorConfig 插件,当前即是根文件 | ||
root = true | ||
|
||
# 适用全部文件 | ||
## 适用全部文件 | ||
[*] | ||
## 设置字符集 | ||
### 设置字符集 | ||
charset = utf-8 | ||
## 缩进风格 space | tab,建议 space(会自动继承给 Prettier) | ||
### 缩进风格 space | tab,建议 space | ||
indent_style = space | ||
## 缩进的空格数(会自动继承给 Prettier) | ||
### 缩进的空格数 | ||
indent_size = 2 | ||
## 换行符类型 lf | cr | crlf,一般都是设置为 lf | ||
### 换行符类型 lf | cr | crlf,一般都是设置为 lf | ||
end_of_line = lf | ||
## 是否在文件末尾插入空白行 | ||
### 是否在文件末尾插入空白行 | ||
insert_final_newline = true | ||
## 是否删除一行中的前后空格 | ||
### 是否删除一行中的前后空格 | ||
trim_trailing_whitespace = true | ||
|
||
# 适用 .md 文件 | ||
## 适用 .md 文件 | ||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# 所有环境自定义的环境变量(命名必须以 VITE_ 开头) | ||
# 所有环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 项目标题 | ||
VITE_APP_TITLE = V3 Admin Vite | ||
|
||
## 路由模式 hash 或 html5 | ||
VITE_ROUTER_HISTORY = hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# 开发环境自定义的环境变量(命名必须以 VITE_ 开头) | ||
# 开发环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 后端接口公共路径(如果解决跨域问题采用反向代理就只需写公共路径) | ||
VITE_BASE_API = '/api/v1' | ||
## 后端接口地址(如果解决跨域问题采用反向代理就只需写相对路径) | ||
VITE_BASE_URL = /api/v1 | ||
|
||
## 路由模式 hash 或 html5 | ||
VITE_ROUTER_HISTORY = 'hash' | ||
|
||
## 开发环境地址前缀(一般 '/','./' 都可以) | ||
VITE_PUBLIC_PATH = '/' | ||
## 开发环境域名和静态资源公共路径(一般 / 或 ./ 都可以) | ||
VITE_PUBLIC_PATH = / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# 生产环境自定义的环境变量(命名必须以 VITE_ 开头) | ||
# 生产环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) | ||
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' | ||
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径) | ||
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1 | ||
|
||
## 路由模式 hash 或 html5 | ||
VITE_ROUTER_HISTORY = 'hash' | ||
|
||
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/) | ||
VITE_PUBLIC_PATH = '/v3-admin-vite/' | ||
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下就需要填写 /v3-admin-vite/) | ||
VITE_PUBLIC_PATH = /v3-admin-vite/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# 预发布环境自定义的环境变量(命名必须以 VITE_ 开头) | ||
# 预发布环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) | ||
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' | ||
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径) | ||
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1 | ||
|
||
## 路由模式 hash 或 html5 | ||
VITE_ROUTER_HISTORY = 'hash' | ||
|
||
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/) | ||
VITE_PUBLIC_PATH = '/v3-admin-vite/' | ||
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/ 域名下就需要填写 /) | ||
VITE_PUBLIC_PATH = / |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,18 @@ | ||
# Git 会忽略的文件 | ||
|
||
.DS_Store | ||
node_modules | ||
# Common | ||
dist | ||
dist-ssr | ||
node_modules | ||
.eslintcache | ||
vite.config.*.timestamp* | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Local env files | ||
*.local | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
!.vscode/settings.json | ||
!.vscode/*.code-snippets | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Use the PNPM | ||
# Use the pnpm | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# 全局 ts 类型检查(此操作会增加 git commit 时长) | ||
npx vue-tsc --noEmit | ||
# 执行 lint-staged 中配置的任务 | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# China mirror of npm | ||
registry = https://registry.npmmirror.com | ||
|
||
# 通过该配置兜底解决组件没有类型提示的问题 | ||
shamefully-hoist = true | ||
|
||
# 安装依赖时锁定版本号 | ||
save-exact = true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"Vue3 Hook 代码结构一键生成": { | ||
"prefix": "Vue3 Hook", | ||
"Vue3 Composable 代码结构一键生成": { | ||
"prefix": "Vue3 Composable", | ||
"body": [ | ||
"import { ref } from \"vue\"\n", | ||
"const refName1 = ref<string>(\"这是一个响应式变量\")\n", | ||
"export function useHookName() {", | ||
"export function useName() {", | ||
"\tconst refName2 = ref<string>(\"这是一个响应式变量\")\n", | ||
"\tconst fnName = () => {}\n", | ||
"\treturn { refName1, refName2, fnName }", | ||
"}", | ||
"$1" | ||
], | ||
"description": "Vue3 Hook" | ||
"description": "Vue3 Composable" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,53 @@ | ||
{ | ||
// Use workspace TypeScript version | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"prettier.enable": true, | ||
|
||
// Disable the default formatter, use eslint instead | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"[vue]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[html]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[scss]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
|
||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ "rule": "style/*", "severity": "off", "fixable": true }, | ||
{ "rule": "format/*", "severity": "off", "fixable": true }, | ||
{ "rule": "*-indent", "severity": "off", "fixable": true }, | ||
{ "rule": "*-spacing", "severity": "off", "fixable": true }, | ||
{ "rule": "*-spaces", "severity": "off", "fixable": true }, | ||
{ "rule": "*-order", "severity": "off", "fixable": true }, | ||
{ "rule": "*-dangle", "severity": "off", "fixable": true }, | ||
{ "rule": "*-newline", "severity": "off", "fixable": true }, | ||
{ "rule": "*quotes", "severity": "off", "fixable": true }, | ||
{ "rule": "*semi", "severity": "off", "fixable": true } | ||
], | ||
|
||
// Enable eslint for all supported languages | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml", | ||
"toml", | ||
"xml", | ||
"gql", | ||
"graphql", | ||
"astro", | ||
"svelte", | ||
"css", | ||
"less", | ||
"scss", | ||
"pcss", | ||
"postcss" | ||
] | ||
} |
Oops, something went wrong.