-
Notifications
You must be signed in to change notification settings - Fork 2
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 717aee1
Showing
366 changed files
with
32,190 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,11 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = 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,20 @@ | ||
VITE_BASE_URL=/ | ||
|
||
VITE_APP_NAME=SoybeanAdmin | ||
|
||
VITE_APP_TITLE=吃不胖的彭于晏 | ||
|
||
VITE_APP_DESC=SoybeanAdmin是一个中后台管理系统模版 | ||
|
||
# 权限路由模式: static | dynamic | ||
VITE_AUTH_ROUTE_MODE=dynamic | ||
|
||
# 路由首页(根路由重定向), 用于static模式的权限路由,dynamic模式取决于后端返回的路由首页 | ||
VITE_ROUTE_HOME_PATH=/dashboard/analysis | ||
|
||
# iconify图标作为组件的前缀 | ||
VITE_ICON_PREFFIX=icon | ||
|
||
# 本地SVG图标作为组件的前缀, 请注意一定要包含 VITE_ICON_PREFFIX | ||
# 格式 {VITE_ICON_PREFFIX}-{本地图标集合名称} | ||
VITE_ICON_LOCAL_PREFFIX=icon-local |
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,36 @@ | ||
/** 请求服务的环境配置 */ | ||
type ServiceEnv = Record<ServiceEnvType, ServiceEnvConfig>; | ||
|
||
/** 不同请求服务的环境配置 */ | ||
const serviceEnv: ServiceEnv = { | ||
dev: { | ||
url: 'http://localhost:5210', | ||
urlPattern: '/url-pattern', | ||
secondUrl: 'http://localhost:8081', | ||
secondUrlPattern: '/second-url-pattern' | ||
}, | ||
test: { | ||
url: 'http://localhost:8080', | ||
urlPattern: '/url-pattern', | ||
secondUrl: 'http://localhost:8081', | ||
secondUrlPattern: '/second-url-pattern' | ||
}, | ||
prod: { | ||
url: 'http://localhost:8080', | ||
urlPattern: '/url-pattern', | ||
secondUrl: 'http://localhost:8081', | ||
secondUrlPattern: '/second-url-pattern' | ||
} | ||
}; | ||
|
||
/** | ||
* 获取当前环境模式下的请求服务的配置 | ||
* @param env 环境 | ||
*/ | ||
export function getServiceEnvConfig(env: ImportMetaEnv) { | ||
const { VITE_SERVICE_ENV = 'dev' } = env; | ||
|
||
const config = serviceEnv[VITE_SERVICE_ENV]; | ||
|
||
return config; | ||
} |
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 @@ | ||
VITE_HTTP_PROXY=Y |
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 @@ | ||
VITE_VISUALIZER=N | ||
|
||
VITE_COMPRESS=N | ||
|
||
# gzip | brotliCompress | deflate | deflateRaw | ||
VITE_COMPRESS_TYPE=gzip | ||
|
||
VITE_PWA=N |
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 @@ | ||
!.env-config.ts | ||
components.d.ts | ||
router-page.d.ts |
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,126 @@ | ||
module.exports = { | ||
extends: ['soybeanjs-vue'], | ||
overrides: [ | ||
{ | ||
files: ['./scripts/*.ts'], | ||
rules: { | ||
'no-unused-expressions': 'off' | ||
} | ||
} | ||
], | ||
settings: { | ||
'import/core-modules': ['uno.css', '~icons/*', 'virtual:svg-icons-register'] | ||
}, | ||
rules: { | ||
'import/order': [ | ||
'error', | ||
{ | ||
'newlines-between': 'never', | ||
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], | ||
pathGroups: [ | ||
{ | ||
pattern: 'vue', | ||
group: 'external', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: 'vue-router', | ||
group: 'external', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: 'pinia', | ||
group: 'external', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: 'naive-ui', | ||
group: 'external', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/config', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/settings', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/enum', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/plugins', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/layouts', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/views', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/components', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/router', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/service', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/store', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/context', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/composables', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/hooks', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/utils', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/assets', | ||
group: 'internal', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '@/**', | ||
group: 'internal', | ||
position: 'before' | ||
} | ||
], | ||
pathGroupsExcludedImportTypes: ['vue', 'vue-router', 'pinia', 'naive-ui'] | ||
} | ||
] | ||
} | ||
}; |
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 @@ | ||
"*.vue" eol=lf | ||
"*.js" eol=lf | ||
"*.ts" eol=lf | ||
"*.jsx" eol=lf | ||
"*.tsx" eol=lf | ||
"*.cjs" eol=lf | ||
"*.cts" eol=lf | ||
"*.mjs" eol=lf | ||
"*.mts" eol=lf | ||
"*.json" eol=lf | ||
"*.html" eol=lf | ||
"*.css" eol=lf | ||
"*.less" eol=lf | ||
"*.scss" eol=lf | ||
"*.sass" eol=lf | ||
"*.styl" eol=lf | ||
"*.md" eol=lf |
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,36 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
dist.zip | ||
coverage | ||
*.local | ||
stats.html | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
!.vscode/launch.json | ||
!.vscode/settings.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
/src/typings/components.d.ts | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
registry=https://registry.npmmirror.com/ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
auto-install-peers=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,25 @@ | ||
{ | ||
"recommendations": [ | ||
"afzalsayed96.icones", | ||
"antfu.iconify", | ||
"antfu.unocss", | ||
"christian-kohler.path-intellisense", | ||
"dbaeumer.vscode-eslint", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"formulahendry.auto-complete-tag", | ||
"formulahendry.auto-close-tag", | ||
"formulahendry.auto-rename-tag", | ||
"kisstkondoros.vscode-gutter-preview", | ||
"lokalise.i18n-ally", | ||
"mhutchie.git-graph", | ||
"mikestead.dotenv", | ||
"naumovs.color-highlight", | ||
"pkief.material-icon-theme", | ||
"steoates.autoimport", | ||
"vue.volar", | ||
"whtouche.vscode-js-console-utils", | ||
"zhuangtongfa.material-theme" | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Vue debugger", | ||
"url": "http://localhost:3200", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Oops, something went wrong.