generated from pure-admin/pure-admin-thin
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 958edc6
Showing
162 changed files
with
18,726 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 项目本地运行端口号 | ||
VITE_PORT = 8848 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 项目本地运行端口号 | ||
VITE_PORT = 8848 | ||
|
||
# 开发环境读取配置文件路径 | ||
VITE_PUBLIC_PATH = / | ||
|
||
# 开发环境代理 | ||
VITE_PROXY_DOMAIN = /api | ||
|
||
# 开发环境路由历史模式 | ||
VITE_ROUTER_HISTORY = "hash" | ||
|
||
# 开发环境后端地址 | ||
VITE_PROXY_DOMAIN_REAL = "http://127.0.0.1:3000" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 线上环境项目打包路径 | ||
VITE_PUBLIC_PATH = / | ||
|
||
# 线上环境路由历史模式 | ||
VITE_ROUTER_HISTORY = "hash" | ||
|
||
# 线上环境后端地址 | ||
VITE_PROXY_DOMAIN_REAL = "" | ||
|
||
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false | ||
VITE_LEGACY = false | ||
|
||
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false | ||
VITE_CDN = false | ||
|
||
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) | ||
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) | ||
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) | ||
VITE_COMPRESSION = "none" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 预发布也需要生产环境的行为 | ||
# https://cn.vitejs.dev/guide/env-and-mode.html#modes | ||
NODE_ENV=production | ||
|
||
VITE_PUBLIC_PATH = / | ||
|
||
# 线上环境路由历史模式 | ||
VITE_ROUTER_HISTORY = "hash" | ||
|
||
# 线上环境后端地址 | ||
VITE_PROXY_DOMAIN_REAL = "" | ||
|
||
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false | ||
VITE_LEGACY = false | ||
|
||
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false | ||
VITE_CDN = false | ||
|
||
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) | ||
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) | ||
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) | ||
VITE_COMPRESSION = "none" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public | ||
dist | ||
*.d.ts | ||
package.json | ||
.eslintrc.js | ||
.prettierrc.js | ||
commitlint.config.js | ||
postcss.config.js | ||
tailwind.config.js | ||
stylelint.config.js |
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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
globals: { | ||
// Ref sugar (take 2) | ||
$: "readonly", | ||
$$: "readonly", | ||
$ref: "readonly", | ||
$shallowRef: "readonly", | ||
$computed: "readonly", | ||
|
||
// index.d.ts | ||
// global.d.ts | ||
Fn: "readonly", | ||
PromiseFn: "readonly", | ||
RefType: "readonly", | ||
LabelValueOptions: "readonly", | ||
EmitType: "readonly", | ||
TargetContext: "readonly", | ||
ComponentElRef: "readonly", | ||
ComponentRef: "readonly", | ||
ElRef: "readonly", | ||
global: "readonly", | ||
ForDataType: "readonly", | ||
ComponentRoutes: "readonly", | ||
|
||
// script setup | ||
defineProps: "readonly", | ||
defineEmits: "readonly", | ||
defineExpose: "readonly", | ||
withDefaults: "readonly" | ||
}, | ||
extends: [ | ||
"plugin:vue/vue3-essential", | ||
"eslint:recommended", | ||
"@vue/typescript/recommended", | ||
"@vue/prettier", | ||
"@vue/eslint-config-typescript" | ||
], | ||
parser: "vue-eslint-parser", | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
jsxPragma: "React", | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.vue"], | ||
rules: { | ||
"no-undef": "off" | ||
} | ||
}, | ||
{ | ||
files: ["*.vue"], | ||
parser: "vue-eslint-parser", | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
extraFileExtensions: [".vue"], | ||
ecmaVersion: "latest", | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
rules: { | ||
"no-undef": "off" | ||
} | ||
} | ||
], | ||
rules: { | ||
"vue/no-v-html": "off", | ||
"vue/require-default-prop": "off", | ||
"vue/require-explicit-emits": "off", | ||
"vue/multi-word-component-names": "off", | ||
"@typescript-eslint/no-explicit-any": "off", // any | ||
"no-debugger": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", // setup() | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"vue/html-self-closing": [ | ||
"error", | ||
{ | ||
html: { | ||
void: "always", | ||
normal: "always", | ||
component: "always" | ||
}, | ||
svg: "always", | ||
math: "always" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_" | ||
} | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_" | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
endOfLine: "auto" | ||
} | ||
] | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
*.local | ||
.eslintcache | ||
report.html | ||
|
||
yarn.lock | ||
npm-debug.log* | ||
.pnpm-error.log* | ||
.pnpm-debug.log | ||
tests/**/coverage/ | ||
|
||
# Editor directories and files | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
tsconfig.tsbuildinfo |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# shellcheck source=./_/husky.sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "$1" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
command_exists () { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
# Workaround for Windows 10, Git Bash and Pnpm | ||
if command_exists winpty && test -t 1; then | ||
exec < /dev/tty | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"], | ||
"{!(package)*.json}": ["prettier --write--parser json"], | ||
"package.json": ["prettier --write"], | ||
"*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"], | ||
"*.{vue,css,scss,postcss,less}": ["stylelint --fix", "prettier --write"], | ||
"*.md": ["prettier --write"] | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
. "$(dirname "$0")/common.sh" | ||
|
||
[ -n "$CI" ] && exit 0 | ||
|
||
# Format and submit code according to lintstagedrc.js configuration | ||
npm run lint:lint-staged | ||
|
||
npm run lint:pretty |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"default": true, | ||
"MD003": false, | ||
"MD033": false, | ||
"MD013": false, | ||
"MD001": false, | ||
"MD025": false, | ||
"MD024": false, | ||
"MD007": { "indent": 4 }, | ||
"no-hard-tabs": 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
shell-emulator=true |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
bracketSpacing: true, | ||
singleQuote: false, | ||
arrowParens: "avoid", | ||
trailingComma: "none" | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/dist/* | ||
/public/* | ||
public/* |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"recommendations": [ | ||
"christian-kohler.path-intellisense", | ||
"vscode-icons-team.vscode-icons", | ||
"davidanson.vscode-markdownlint", | ||
"stylelint.vscode-stylelint", | ||
"bradlc.vscode-tailwindcss", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"redhat.vscode-yaml", | ||
"csstools.postcss", | ||
"mikestead.dotenv", | ||
"eamodio.gitlens", | ||
"antfu.iconify", | ||
"Vue.volar" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"editor.formatOnType": true, | ||
"editor.formatOnSave": true, | ||
"[vue]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.tabSize": 2, | ||
"editor.formatOnPaste": true, | ||
"editor.guides.bracketPairs": "active", | ||
"files.autoSave": "afterDelay", | ||
"git.confirmSync": false, | ||
"workbench.startupEditor": "newUntitledFile", | ||
"editor.suggestSelection": "first", | ||
"editor.acceptSuggestionOnCommitCharacter": false, | ||
"css.lint.propertyIgnoredDueToDisplay": "ignore", | ||
"editor.quickSuggestions": { | ||
"other": true, | ||
"comments": true, | ||
"strings": true | ||
}, | ||
"files.associations": { | ||
"editor.snippetSuggestions": "top" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"iconify.excludes": ["el"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"Vue3.0快速生成模板": { | ||
"prefix": "Vue3.0", | ||
"body": [ | ||
"<template>", | ||
"\t<div>\n", | ||
"\t</div>", | ||
"</template>\n", | ||
"<script lang='ts'>", | ||
"export default {", | ||
"\tsetup(){", | ||
"\t\treturn{\n\n\t\t}", | ||
"\t},", | ||
"}", | ||
"</script>\n", | ||
"<style scoped>\n", | ||
"</style>", | ||
"$2" | ||
], | ||
"description": "Vue3.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"Vue3.2+快速生成模板": { | ||
"prefix": "Vue3.2+", | ||
"body": [ | ||
"<script setup lang='ts'>", | ||
"</script>\n", | ||
"<template>", | ||
"\t<div>\n", | ||
"\t</div>", | ||
"</template>\n", | ||
"<style scoped>\n", | ||
"</style>", | ||
"$2" | ||
], | ||
"description": "Vue3.2+" | ||
} | ||
} |
Oops, something went wrong.