@ -0,0 +1,19 @@ |
|||||
|
root = true |
||||
|
|
||||
|
[*] |
||||
|
charset=utf-8 |
||||
|
end_of_line=lf |
||||
|
insert_final_newline=true |
||||
|
indent_style=space |
||||
|
indent_size=2 |
||||
|
max_line_length = 100 |
||||
|
|
||||
|
[*.{yml,yaml,json}] |
||||
|
indent_style = space |
||||
|
indent_size = 2 |
||||
|
|
||||
|
[*.md] |
||||
|
trim_trailing_whitespace = false |
||||
|
|
||||
|
[Makefile] |
||||
|
indent_style = tab |
@ -0,0 +1,20 @@ |
|||||
|
# 端口号 |
||||
|
VITE_PORT = 80 |
||||
|
|
||||
|
# 网站标题 |
||||
|
VITE_GLOB_APP_TITLE = 芋道管理系统 |
||||
|
|
||||
|
# 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符 |
||||
|
VITE_GLOB_APP_SHORT_NAME = Yudao_Admin |
||||
|
|
||||
|
# 租户开关 |
||||
|
VITE_GLOB_APP_TENANT_ENABLE = true |
||||
|
|
||||
|
# 验证码的开关 |
||||
|
VITE_GLOB_APP_CAPTCHA_ENABLE = true |
||||
|
|
||||
|
# 文档地址的开关 |
||||
|
VITE_APP_DOCALERT_ENABLE=true |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
@ -0,0 +1,25 @@ |
|||||
|
# 本地开发环境 |
||||
|
NODE_ENV=development |
||||
|
|
||||
|
# 资源公共路径,需要以 /开头和结尾 |
||||
|
VITE_PUBLIC_PATH = / |
||||
|
|
||||
|
# 本地开发代理,可以解决跨域及多地址代理 |
||||
|
# 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 |
||||
|
# 可以有多个,注意多个不能换行,否则代理将会失效 |
||||
|
VITE_PROXY = [["/dev-api","http://localhost:48080/admin-api"]] |
||||
|
# VITE_PROXY=[["/api","http://vben.xingyuv.com/test"]] |
||||
|
|
||||
|
# 是否删除Console.log |
||||
|
VITE_DROP_CONSOLE = false |
||||
|
|
||||
|
# 基础页面地址,例如 swagger 等页面 |
||||
|
VITE_GLOB_BASE_URL = "http://localhost:48080" |
||||
|
# 接口地址,如果没有跨域问题,直接在这里配置即可 |
||||
|
VITE_GLOB_API_URL = /dev-api |
||||
|
|
||||
|
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 |
||||
|
VITE_GLOB_API_URL_PREFIX = |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
@ -0,0 +1,25 @@ |
|||||
|
# 本地开发环境 |
||||
|
NODE_ENV=development |
||||
|
|
||||
|
# 资源公共路径,需要以 /开头和结尾 |
||||
|
VITE_PUBLIC_PATH = / |
||||
|
|
||||
|
# 本地开发代理,可以解决跨域及多地址代理 |
||||
|
# 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 |
||||
|
# 可以有多个,注意多个不能换行,否则代理将会失效 |
||||
|
VITE_PROXY = [["/dev-api","http://api-dashboard.yudao.iocoder.cn/admin-api"]] |
||||
|
# VITE_PROXY=[["/api","http://vben.xingyuv.com/test"]] |
||||
|
|
||||
|
# 是否删除Console.log |
||||
|
VITE_DROP_CONSOLE = false |
||||
|
|
||||
|
# 基础页面地址,例如 swagger 等页面 |
||||
|
VITE_GLOB_BASE_URL = "http://api-dashboard.yudao.iocoder.cn" |
||||
|
# 接口地址,如果没有跨域问题,直接在这里配置即可 |
||||
|
VITE_GLOB_API_URL = /dev-api |
||||
|
|
||||
|
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 |
||||
|
VITE_GLOB_API_URL_PREFIX = |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
@ -0,0 +1,27 @@ |
|||||
|
# 资源公共路径,需要以 / 开头和结尾 |
||||
|
VITE_PUBLIC_PATH = / |
||||
|
|
||||
|
# 是否删除Console.log |
||||
|
VITE_DROP_CONSOLE = true |
||||
|
|
||||
|
# 打包是否输出gz|br文件 |
||||
|
# 可选: gzip | brotli | none |
||||
|
# 也可以有多个, 例如 ‘gzip’|'brotli',这样会同时生成 .gz和.br文件 |
||||
|
VITE_BUILD_COMPRESS = 'gzip' |
||||
|
|
||||
|
# 使用compress时是否删除源文件,默认false |
||||
|
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false |
||||
|
|
||||
|
# 基础页面地址,例如 swagger 等页面 |
||||
|
VITE_GLOB_BASE_URL = "http://localhost:48080" |
||||
|
# 接口地址 可以由nginx做转发或者直接写实际地址 |
||||
|
VITE_GLOB_API_URL = http://localhost:48080/admin-api |
||||
|
|
||||
|
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 |
||||
|
VITE_GLOB_API_URL_PREFIX = |
||||
|
|
||||
|
# 打包是否开启pwa功能 |
||||
|
VITE_USE_PWA = false |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
@ -0,0 +1,30 @@ |
|||||
|
# 资源公共路径,需要以 / 开头和结尾 |
||||
|
VITE_PUBLIC_PATH = / |
||||
|
|
||||
|
# 是否删除Console.log |
||||
|
VITE_DROP_CONSOLE = true |
||||
|
|
||||
|
# 打包是否输出gz|br文件 |
||||
|
# 可选: gzip | brotli | none |
||||
|
# 也可以有多个, 例如 ‘gzip’|'brotli',这样会同时生成 .gz和.br文件 |
||||
|
VITE_BUILD_COMPRESS = 'gzip' |
||||
|
|
||||
|
# 使用compress时是否删除源文件,默认false |
||||
|
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false |
||||
|
|
||||
|
# 基础页面地址,例如 swagger 等页面 |
||||
|
VITE_GLOB_BASE_URL = "http://127.0.0.1:48080" |
||||
|
# 接口地址,如果没有跨域问题,直接在这里配置即可 |
||||
|
VITE_GLOB_API_URL = http://127.0.0.1:48080/admin-api |
||||
|
|
||||
|
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 |
||||
|
VITE_GLOB_API_URL_PREFIX = |
||||
|
|
||||
|
# 打包是否开启pwa功能 |
||||
|
VITE_USE_PWA = false |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
||||
|
|
||||
|
# 验证码的开关 |
||||
|
VITE_GLOB_APP_CAPTCHA_ENABLE = false |
@ -0,0 +1,27 @@ |
|||||
|
# 资源公共路径,需要以 / 开头和结尾 |
||||
|
VITE_PUBLIC_PATH = / |
||||
|
|
||||
|
# 是否删除Console.log |
||||
|
VITE_DROP_CONSOLE = true |
||||
|
|
||||
|
# 打包是否输出gz|br文件 |
||||
|
# 可选: gzip | brotli | none |
||||
|
# 也可以有多个, 例如 ‘gzip’|'brotli',这样会同时生成 .gz和.br文件 |
||||
|
VITE_BUILD_COMPRESS = 'gzip' |
||||
|
|
||||
|
# 使用compress时是否删除源文件,默认false |
||||
|
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false |
||||
|
|
||||
|
# 基础页面地址,例如 swagger 等页面 |
||||
|
VITE_GLOB_BASE_URL = "http://localhost:48080" |
||||
|
# 接口地址,如果没有跨域问题,直接在这里配置即可 |
||||
|
VITE_GLOB_API_URL = http://localhost:48080/admin-api |
||||
|
|
||||
|
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 |
||||
|
VITE_GLOB_API_URL_PREFIX = |
||||
|
|
||||
|
# 打包是否开启pwa功能 |
||||
|
VITE_USE_PWA = false |
||||
|
|
||||
|
# 百度统计 |
||||
|
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777 |
@ -0,0 +1,13 @@ |
|||||
|
*.sh |
||||
|
node_modules |
||||
|
*.md |
||||
|
*.woff |
||||
|
*.ttf |
||||
|
.vscode |
||||
|
.idea |
||||
|
dist |
||||
|
/public |
||||
|
/docs |
||||
|
.local |
||||
|
/bin |
||||
|
Dockerfile |
@ -0,0 +1,11 @@ |
|||||
|
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings |
||||
|
|
||||
|
# Automatically normalize line endings (to LF) for all text-based files. |
||||
|
* text=auto eol=lf |
||||
|
|
||||
|
# Declare files that will always have CRLF line endings on checkout. |
||||
|
*.{cmd,[cC][mM][dD]} text eol=crlf |
||||
|
*.{bat,[bB][aA][tT]} text eol=crlf |
||||
|
|
||||
|
# Denote all files that are truly binary and should not be modified. |
||||
|
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary |
@ -0,0 +1,33 @@ |
|||||
|
node_modules |
||||
|
.DS_Store |
||||
|
dist |
||||
|
.npmrc |
||||
|
.cache |
||||
|
|
||||
|
tests/server/static |
||||
|
tests/server/static/upload |
||||
|
|
||||
|
*.local |
||||
|
# local env files |
||||
|
.env.local |
||||
|
.env.*.local |
||||
|
.eslintcache |
||||
|
|
||||
|
# Log files |
||||
|
npm-debug.log* |
||||
|
yarn-debug.log* |
||||
|
yarn-error.log* |
||||
|
pnpm-debug.log* |
||||
|
|
||||
|
# Editor directories and files |
||||
|
.idea |
||||
|
# .vscode |
||||
|
*.suo |
||||
|
*.ntvs* |
||||
|
*.njsproj |
||||
|
*.sln |
||||
|
*.sw? |
||||
|
|
||||
|
package-lock.json |
||||
|
|
||||
|
.history |
@ -0,0 +1,6 @@ |
|||||
|
ports: |
||||
|
- port: 3344 |
||||
|
onOpen: open-preview |
||||
|
tasks: |
||||
|
- init: pnpm install |
||||
|
command: pnpm run dev |
@ -0,0 +1,16 @@ |
|||||
|
{ |
||||
|
"extends": [ |
||||
|
"development" |
||||
|
], |
||||
|
"hints": { |
||||
|
"compat-api/css": [ |
||||
|
"default", |
||||
|
{ |
||||
|
"ignore": [ |
||||
|
"-webkit-tap-highlight-color", |
||||
|
"text-size-adjust" |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
# shellcheck source=./_/husky.sh |
||||
|
. "$(dirname "$0")/_/husky.sh" |
||||
|
|
||||
|
PATH="/usr/local/bin:$PATH" |
||||
|
|
||||
|
npx --no-install commitlint --edit "$1" |
@ -0,0 +1,9 @@ |
|||||
|
#!/bin/sh |
||||
|
command_exists () { |
||||
|
command -v "$1" >/dev/null 2>&1 |
||||
|
} |
||||
|
|
||||
|
# Workaround for Windows 10, Git Bash and Yarn |
||||
|
if command_exists winpty && test -t 1; then |
||||
|
exec < /dev/tty |
||||
|
fi |
@ -0,0 +1,10 @@ |
|||||
|
#!/bin/sh |
||||
|
. "$(dirname "$0")/_/husky.sh" |
||||
|
. "$(dirname "$0")/common.sh" |
||||
|
|
||||
|
[ -n "$CI" ] && exit 0 |
||||
|
|
||||
|
PATH="/usr/local/bin:$PATH" |
||||
|
|
||||
|
# Format and submit code according to lintstagedrc.js configuration |
||||
|
npm run lint:lint-staged |
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 142 KiB |
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 348 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 238 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 201 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 130 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 150 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 177 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 97 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 173 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 77 KiB |