create-bubbles 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-vp-monorepo-react-nestjs/.oxfmtrc.jsonc +8 -0
- package/template-vp-monorepo-react-nestjs/.oxlintrc.jsonc +3 -0
- package/template-vp-monorepo-react-nestjs/.specs//351/234/200/346/261/202.md +5 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +1 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +1 -0
- package/template-vp-monorepo-react-nestjs/.vscode/extensions.json +3 -0
- package/template-vp-monorepo-react-nestjs/README.md +29 -0
- package/template-vp-monorepo-react-nestjs/apps/service/.oxlintrc.jsonc +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.oxlintrc.jsonc +4 -0
- package/{template-vue-vite-biome → template-vp-monorepo-react-nestjs/apps/web}/index.html +4 -4
- package/template-vp-monorepo-react-nestjs/apps/web/package.json +39 -0
- package/template-vp-monorepo-react-nestjs/apps/web/public/favicon.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/public/icons.svg +24 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +24 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/hero.png +0 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/react.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/vite.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/main.tsx +5 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +17 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +25 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/styles/index.css +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/types/auto-imports.d.ts +58 -0
- package/{template-vue-vite-biome → template-vp-monorepo-react-nestjs/apps/web}/tsconfig.json +5 -9
- package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +32 -0
- package/template-vp-monorepo-react-nestjs/commitlint.config.js +0 -0
- package/template-vp-monorepo-react-nestjs/package.json +20 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/README.md +23 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/package.json +39 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/src/index.ts +3 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tests/index.test.ts +6 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tsconfig.json +20 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tsdown.config.ts +9 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/vite.config.ts +7 -0
- package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +23 -0
- package/template-vp-monorepo-react-nestjs/tsconfig.json +9 -0
- package/template-vp-monorepo-react-nestjs/vite.config.ts +8 -0
- package/template-vp-react/package.json +10 -10
- package/template-vue-vite-eslint/package.json +29 -33
- package/template-vue-vite-eslint/src/main.ts +0 -1
- package/template-vue-vite-eslint/src/styles/index.scss +0 -3
- package/template-vue-vite-eslint/src/types/components.d.ts +0 -4
- package/template-vue-vite-eslint/src/utils/request/index.ts +4 -4
- package/template-vue-vite-eslint/vite.config.ts +2 -4
- package/template-vue-rsbuild-biome/.env +0 -5
- package/template-vue-rsbuild-biome/.env.development +0 -1
- package/template-vue-rsbuild-biome/.env.production +0 -1
- package/template-vue-rsbuild-biome/.prettierignore +0 -4
- package/template-vue-rsbuild-biome/.prettierrc +0 -18
- package/template-vue-rsbuild-biome/.vscode/settings.json +0 -13
- package/template-vue-rsbuild-biome/README.md +0 -29
- package/template-vue-rsbuild-biome/biome.json +0 -109
- package/template-vue-rsbuild-biome/index.html +0 -7
- package/template-vue-rsbuild-biome/lefthook.yml +0 -11
- package/template-vue-rsbuild-biome/package.json +0 -36
- package/template-vue-rsbuild-biome/rsbuild.config.ts +0 -41
- package/template-vue-rsbuild-biome/src/App.vue +0 -3
- package/template-vue-rsbuild-biome/src/index.ts +0 -13
- package/template-vue-rsbuild-biome/src/router/guard/index.tsx +0 -6
- package/template-vue-rsbuild-biome/src/router/guard/permissionGuard.ts +0 -8
- package/template-vue-rsbuild-biome/src/router/index.tsx +0 -14
- package/template-vue-rsbuild-biome/src/router/modules/index.tsx +0 -10
- package/template-vue-rsbuild-biome/src/store/index.ts +0 -7
- package/template-vue-rsbuild-biome/src/store/modules/user.ts +0 -17
- package/template-vue-rsbuild-biome/src/styles/index.css +0 -16
- package/template-vue-rsbuild-biome/src/types/auto-import.d.ts +0 -78
- package/template-vue-rsbuild-biome/src/types/components.d.ts +0 -15
- package/template-vue-rsbuild-biome/src/types/env.d.ts +0 -17
- package/template-vue-rsbuild-biome/src/utils/env.ts +0 -10
- package/template-vue-rsbuild-biome/src/utils/request/core/index.ts +0 -166
- package/template-vue-rsbuild-biome/src/utils/request/core/utils.ts +0 -38
- package/template-vue-rsbuild-biome/src/utils/request/index.ts +0 -39
- package/template-vue-rsbuild-biome/src/views/home/index.vue +0 -14
- package/template-vue-rsbuild-biome/tsconfig.json +0 -29
- package/template-vue-rsbuild-biome/uno.config.ts +0 -9
- package/template-vue-vite-biome/.env +0 -4
- package/template-vue-vite-biome/.env.development +0 -1
- package/template-vue-vite-biome/.env.production +0 -1
- package/template-vue-vite-biome/.gitlab-ci.yml +0 -84
- package/template-vue-vite-biome/.vscode/settings.json +0 -10
- package/template-vue-vite-biome/README.md +0 -3
- package/template-vue-vite-biome/biome.json +0 -109
- package/template-vue-vite-biome/commitlint.config.js +0 -1
- package/template-vue-vite-biome/lefthook.yml +0 -11
- package/template-vue-vite-biome/package.json +0 -50
- package/template-vue-vite-biome/public/vite.svg +0 -1
- package/template-vue-vite-biome/src/App.vue +0 -19
- package/template-vue-vite-biome/src/assets/icon/vue.svg +0 -1
- package/template-vue-vite-biome/src/components/Icon/svg-icon.vue +0 -29
- package/template-vue-vite-biome/src/layout/default/index.vue +0 -3
- package/template-vue-vite-biome/src/main.ts +0 -15
- package/template-vue-vite-biome/src/router/guard/index.ts +0 -7
- package/template-vue-vite-biome/src/router/guard/permissionGuard.ts +0 -13
- package/template-vue-vite-biome/src/router/index.ts +0 -17
- package/template-vue-vite-biome/src/router/modules/index.ts +0 -31
- package/template-vue-vite-biome/src/store/index.ts +0 -10
- package/template-vue-vite-biome/src/store/modules/user.ts +0 -17
- package/template-vue-vite-biome/src/styles/element-plus-variables.css +0 -4
- package/template-vue-vite-biome/src/styles/font.scss +0 -0
- package/template-vue-vite-biome/src/styles/index.scss +0 -31
- package/template-vue-vite-biome/src/styles/variables.scss +0 -3
- package/template-vue-vite-biome/src/types/vite-env.d.ts +0 -13
- package/template-vue-vite-biome/src/utils/env.ts +0 -10
- package/template-vue-vite-biome/src/utils/request/core/index.ts +0 -166
- package/template-vue-vite-biome/src/utils/request/core/utils.ts +0 -38
- package/template-vue-vite-biome/src/utils/request/index.ts +0 -39
- package/template-vue-vite-biome/src/views/home/index.vue +0 -16
- package/template-vue-vite-biome/src/views/login/index.vue +0 -11
- package/template-vue-vite-biome/src/views/model/index.vue +0 -7
- package/template-vue-vite-biome/uno.config.ts +0 -10
- package/template-vue-vite-biome/vite.config.ts +0 -51
- package/template-vue-vite-eslint/.vscode/settings.json +0 -62
- package/template-vue-vite-eslint/src/styles/element-plus-variables.css +0 -3
- package/template-vue-vite-eslint/src/styles/plus-pro-components-variables.css +0 -3
- package/template-vue-vite-eslint/src/types/index.d.ts +0 -1
- /package/{template-vue-rsbuild-biome/public → template-vp-monorepo-react-nestjs/apps/web/src/router/modules}/.gitkeep +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
packages:
|
|
2
|
+
- apps/*
|
|
3
|
+
- packages/*
|
|
4
|
+
- tools/*
|
|
5
|
+
|
|
6
|
+
catalogMode: prefer
|
|
7
|
+
|
|
8
|
+
catalog:
|
|
9
|
+
'@types/node': ^24
|
|
10
|
+
typescript: ^6.0.3
|
|
11
|
+
vite: npm:@voidzero-dev/vite-plus-core@latest
|
|
12
|
+
vitest: npm:@voidzero-dev/vite-plus-test@latest
|
|
13
|
+
vite-plus: latest
|
|
14
|
+
overrides:
|
|
15
|
+
vite: 'catalog:'
|
|
16
|
+
vitest: 'catalog:'
|
|
17
|
+
peerDependencyRules:
|
|
18
|
+
allowAny:
|
|
19
|
+
- vite
|
|
20
|
+
- vitest
|
|
21
|
+
allowedVersions:
|
|
22
|
+
vite: '*'
|
|
23
|
+
vitest: '*'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vp-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -11,27 +11,27 @@
|
|
|
11
11
|
"check": "vp check"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@tailwindcss/vite": "^4.2.
|
|
15
|
-
"antd": "^6.3.
|
|
14
|
+
"@tailwindcss/vite": "^4.2.4",
|
|
15
|
+
"antd": "^6.3.7",
|
|
16
16
|
"classnames": "^2.5.1",
|
|
17
17
|
"dayjs": "^1.11.20",
|
|
18
18
|
"react": "^19.2.4",
|
|
19
|
-
"react-dom": "^19.2.
|
|
20
|
-
"react-router": "^7.
|
|
21
|
-
"tailwindcss": "^4.2.
|
|
19
|
+
"react-dom": "^19.2.6",
|
|
20
|
+
"react-router": "^7.15.0",
|
|
21
|
+
"tailwindcss": "^4.2.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@commitlint/cli": "^20.5.
|
|
25
|
-
"@commitlint/config-conventional": "^20.5.
|
|
24
|
+
"@commitlint/cli": "^20.5.3",
|
|
25
|
+
"@commitlint/config-conventional": "^20.5.3",
|
|
26
26
|
"@types/react": "^19.2.14",
|
|
27
27
|
"@types/react-dom": "^19.2.3",
|
|
28
28
|
"@vitejs/plugin-react": "^6.0.1",
|
|
29
|
-
"typescript": "~
|
|
29
|
+
"typescript": "~6.0.3",
|
|
30
30
|
"unplugin-auto-import": "^21.0.0",
|
|
31
31
|
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
32
32
|
"vite-plus": "latest"
|
|
33
33
|
},
|
|
34
|
-
"packageManager": "pnpm@
|
|
34
|
+
"packageManager": "pnpm@11.0.8",
|
|
35
35
|
"pnpm": {
|
|
36
36
|
"overrides": {
|
|
37
37
|
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
@@ -11,50 +11,46 @@
|
|
|
11
11
|
"lint:fix": "eslint --fix"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alova/adapter-axios": "^2.0.
|
|
15
|
-
"@
|
|
16
|
-
"@unocss/preset-wind3": "^66.
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"axios": "^1.
|
|
20
|
-
"dayjs": "^1.11.
|
|
14
|
+
"@alova/adapter-axios": "^2.0.18",
|
|
15
|
+
"@antdv-next/icons": "^1.0.6",
|
|
16
|
+
"@unocss/preset-wind3": "^66.6.8",
|
|
17
|
+
"alova": "^3.5.1",
|
|
18
|
+
"antdv-next": "^1.2.2",
|
|
19
|
+
"axios": "^1.16.0",
|
|
20
|
+
"dayjs": "^1.11.20",
|
|
21
21
|
"echarts": "^6.0.0",
|
|
22
|
-
"element-plus": "^2.12.0",
|
|
23
|
-
"nanoid": "^5.1.6",
|
|
24
22
|
"nprogress": "^0.2.0",
|
|
25
23
|
"pinia": "^3.0.4",
|
|
26
24
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
27
25
|
"plus-pro-components": "^0.1.30",
|
|
28
|
-
"radashi": "^12.
|
|
29
|
-
"vue": "^3.5.
|
|
30
|
-
"vue-
|
|
31
|
-
"vue-router": "^4.6.4",
|
|
32
|
-
"vue3-blocks-tree": "^0.6.2"
|
|
26
|
+
"radashi": "^12.9.0",
|
|
27
|
+
"vue": "^3.5.34",
|
|
28
|
+
"vue-router": "^5.0.6"
|
|
33
29
|
},
|
|
34
30
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@commitlint/cli": "^20.
|
|
38
|
-
"@commitlint/config-conventional": "^20.
|
|
31
|
+
"@antdv-next/auto-import-resolver": "^1.0.7",
|
|
32
|
+
"@antfu/eslint-config": "^8.2.0",
|
|
33
|
+
"@commitlint/cli": "^20.5.3",
|
|
34
|
+
"@commitlint/config-conventional": "^20.5.3",
|
|
39
35
|
"@plus-pro-components/resolver": "^0.0.3",
|
|
40
|
-
"@types/node": "^24.
|
|
36
|
+
"@types/node": "^24.12.3",
|
|
41
37
|
"@types/nprogress": "^0.2.3",
|
|
42
|
-
"@unocss/eslint-plugin": "^66.
|
|
43
|
-
"@unocss/preset-attributify": "^66.
|
|
44
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
45
|
-
"@vue/tsconfig": "^0.
|
|
46
|
-
"eslint": "
|
|
47
|
-
"eslint-plugin-format": "^
|
|
38
|
+
"@unocss/eslint-plugin": "^66.6.8",
|
|
39
|
+
"@unocss/preset-attributify": "^66.6.8",
|
|
40
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
41
|
+
"@vue/tsconfig": "^0.9.1",
|
|
42
|
+
"eslint": "10.3.0",
|
|
43
|
+
"eslint-plugin-format": "^2.0.1",
|
|
48
44
|
"fast-glob": "^3.3.3",
|
|
49
|
-
"lefthook": "^2.
|
|
50
|
-
"sass": "^1.
|
|
51
|
-
"typescript": "~
|
|
52
|
-
"unocss": "66.
|
|
53
|
-
"unplugin-auto-import": "^
|
|
54
|
-
"unplugin-vue-components": "^
|
|
55
|
-
"vite": "8.0.
|
|
45
|
+
"lefthook": "^2.1.6",
|
|
46
|
+
"sass": "^1.99.0",
|
|
47
|
+
"typescript": "~6.0.3",
|
|
48
|
+
"unocss": "66.6.8",
|
|
49
|
+
"unplugin-auto-import": "^21.0.0",
|
|
50
|
+
"unplugin-vue-components": "^32.0.0",
|
|
51
|
+
"vite": "8.0.11",
|
|
56
52
|
"vite-plugin-inspect": "^11.3.3",
|
|
57
53
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
58
|
-
"vue-tsc": "^3.
|
|
54
|
+
"vue-tsc": "^3.2.8"
|
|
59
55
|
}
|
|
60
56
|
}
|
|
@@ -11,10 +11,6 @@ export {}
|
|
|
11
11
|
/* prettier-ignore */
|
|
12
12
|
declare module 'vue' {
|
|
13
13
|
export interface GlobalComponents {
|
|
14
|
-
ElButton: typeof import('element-plus/es')['ElButton']
|
|
15
|
-
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
|
16
|
-
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
|
17
|
-
PlusLayout: typeof import('plus-pro-components/es')['PlusLayout']
|
|
18
14
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
19
15
|
RouterView: typeof import('vue-router')['RouterView']
|
|
20
16
|
SvgIcon: typeof import('./../components/Icon/svg-icon.vue')['default']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { axiosRequestAdapter } from '@alova/adapter-axios'
|
|
2
2
|
import vueHook from 'alova/vue'
|
|
3
|
-
import {
|
|
3
|
+
import { message } from 'antdv-next'
|
|
4
4
|
|
|
5
5
|
import { router } from '@/router'
|
|
6
6
|
|
|
@@ -23,14 +23,14 @@ function getBaseConfig(): Parameters<typeof createDualCallInstance>[0] {
|
|
|
23
23
|
responseMessageKey: 'msg',
|
|
24
24
|
commonHeaders: {},
|
|
25
25
|
successMessageFunc: (msg: string) => {
|
|
26
|
-
|
|
26
|
+
message.success(msg)
|
|
27
27
|
},
|
|
28
28
|
errorMessageFunc: (msg: string) => {
|
|
29
|
-
|
|
29
|
+
message.error(msg)
|
|
30
30
|
},
|
|
31
31
|
unAuthorizedResponseFunc: () => {
|
|
32
32
|
router.push('/login')
|
|
33
|
-
|
|
33
|
+
message.error('登录过期或未登录')
|
|
34
34
|
},
|
|
35
35
|
statesHook: vueHook,
|
|
36
36
|
requestAdapter: axiosRequestAdapter(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { AntdvNextResolver } from '@antdv-next/auto-import-resolver'
|
|
4
4
|
import Vue from '@vitejs/plugin-vue'
|
|
5
5
|
import UnoCSS from 'unocss/vite'
|
|
6
6
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
7
|
-
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
8
7
|
import Components from 'unplugin-vue-components/vite'
|
|
9
8
|
import { defineConfig, loadEnv } from 'vite'
|
|
10
9
|
import Inspect from 'vite-plugin-inspect'
|
|
@@ -42,11 +41,10 @@ export default defineConfig(({ mode }) => {
|
|
|
42
41
|
Vue(),
|
|
43
42
|
AutoImport({
|
|
44
43
|
imports: ['vue', 'vue-router'],
|
|
45
|
-
resolvers: [ElementPlusResolver()],
|
|
46
44
|
dts: './src/types/auto-import.d.ts',
|
|
47
45
|
}),
|
|
48
46
|
Components({
|
|
49
|
-
resolvers: [
|
|
47
|
+
resolvers: [AntdvNextResolver()],
|
|
50
48
|
dts: './src/types/components.d.ts',
|
|
51
49
|
}),
|
|
52
50
|
createSvgIconsPlugin({
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PUBLIC_API_URL = 'http://localhost:8080'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PUBLIC_API_URL = 'http://localhost:8080'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"singleQuote": true,
|
|
3
|
-
"jsxSingleQuote": false,
|
|
4
|
-
"trailingComma": "all",
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"proseWrap": "never",
|
|
7
|
-
"semi": false,
|
|
8
|
-
"importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
|
|
9
|
-
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": ".prettierrc",
|
|
13
|
-
"options": {
|
|
14
|
-
"parser": "json"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.formatOnSave": true,
|
|
3
|
-
"editor.defaultFormatter": "biomejs.biome",
|
|
4
|
-
"editor.codeActionsOnSave": {
|
|
5
|
-
"source.fixAll.biome": "explicit"
|
|
6
|
-
},
|
|
7
|
-
"[sass]": {
|
|
8
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
9
|
-
},
|
|
10
|
-
"[vue]": {
|
|
11
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Rsbuild project
|
|
2
|
-
|
|
3
|
-
## Setup
|
|
4
|
-
|
|
5
|
-
Install the dependencies:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm install
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Get started
|
|
12
|
-
|
|
13
|
-
Start the dev server:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build the app for production:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Preview the production build locally:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pnpm preview
|
|
29
|
-
```
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
-
"files": {
|
|
4
|
-
"ignoreUnknown": true,
|
|
5
|
-
"includes": ["**", "!public/**/*", "!node_modules/**/*", "!dist/**/*"]
|
|
6
|
-
},
|
|
7
|
-
"formatter": {
|
|
8
|
-
"enabled": true,
|
|
9
|
-
"indentStyle": "space",
|
|
10
|
-
"lineWidth": 100,
|
|
11
|
-
"indentWidth": 2
|
|
12
|
-
},
|
|
13
|
-
"linter": {
|
|
14
|
-
"rules": {
|
|
15
|
-
"style": {
|
|
16
|
-
"useImportType": "off",
|
|
17
|
-
"useNumberNamespace": "off",
|
|
18
|
-
"useNodejsImportProtocol": "off",
|
|
19
|
-
"noNonNullAssertion": "off",
|
|
20
|
-
"noUnusedTemplateLiteral": "off",
|
|
21
|
-
"useConst": {
|
|
22
|
-
"level": "warn",
|
|
23
|
-
"fix": "unsafe"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"complexity": {
|
|
27
|
-
"noUselessTypeConstraint": "off",
|
|
28
|
-
"noForEach": "off",
|
|
29
|
-
"useDateNow": "off"
|
|
30
|
-
},
|
|
31
|
-
"correctness": {
|
|
32
|
-
"useExhaustiveDependencies": "off",
|
|
33
|
-
"useHookAtTopLevel": "off",
|
|
34
|
-
"noUnusedFunctionParameters": "off",
|
|
35
|
-
"noUnusedVariables": "off",
|
|
36
|
-
"useUniqueElementIds": "off",
|
|
37
|
-
"useParseIntRadix": "off"
|
|
38
|
-
},
|
|
39
|
-
"security": {
|
|
40
|
-
"noDangerouslySetInnerHtml": "off"
|
|
41
|
-
},
|
|
42
|
-
"suspicious": {
|
|
43
|
-
"noGlobalIsNan": "off",
|
|
44
|
-
"noGlobalIsFinite": "off",
|
|
45
|
-
"noExplicitAny": "off",
|
|
46
|
-
"noArrayIndexKey": "off",
|
|
47
|
-
"noConfusingVoidType": "off",
|
|
48
|
-
"noThenProperty": "off",
|
|
49
|
-
"noTemplateCurlyInString": "off"
|
|
50
|
-
},
|
|
51
|
-
"performance": {
|
|
52
|
-
"noDelete": "off",
|
|
53
|
-
"noAccumulatingSpread": "off",
|
|
54
|
-
"noDynamicNamespaceImportAccess": "off"
|
|
55
|
-
},
|
|
56
|
-
"a11y": {
|
|
57
|
-
"noAriaHiddenOnFocusable": "off",
|
|
58
|
-
"noLabelWithoutControl": "off",
|
|
59
|
-
"useFocusableInteractive": "off",
|
|
60
|
-
"useKeyWithClickEvents": "off",
|
|
61
|
-
"useSemanticElements": "off",
|
|
62
|
-
"noStaticElementInteractions": "off",
|
|
63
|
-
"useAriaPropsSupportedByRole": "off",
|
|
64
|
-
"useAriaPropsForRole": "off",
|
|
65
|
-
"useValidAnchor": "off",
|
|
66
|
-
"useMediaCaption": "off"
|
|
67
|
-
},
|
|
68
|
-
"nursery": {
|
|
69
|
-
"useSortedClasses": {
|
|
70
|
-
"level": "warn",
|
|
71
|
-
"fix": "safe"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"css": {
|
|
77
|
-
"formatter": {
|
|
78
|
-
"quoteStyle": "single"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"javascript": {
|
|
82
|
-
"jsxRuntime": "reactClassic",
|
|
83
|
-
"formatter": {
|
|
84
|
-
"quoteStyle": "single",
|
|
85
|
-
"semicolons": "asNeeded"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"assist": {
|
|
89
|
-
"enabled": true,
|
|
90
|
-
"actions": {
|
|
91
|
-
"source": {
|
|
92
|
-
"organizeImports": {
|
|
93
|
-
"level": "on",
|
|
94
|
-
"options": {
|
|
95
|
-
"identifierOrder": "natural",
|
|
96
|
-
"groups": [
|
|
97
|
-
[":NODE:", ":BUN:"],
|
|
98
|
-
":BLANK_LINE:",
|
|
99
|
-
["react", "react-dom/**", "react-dom", "react-router", "react-router-dom"],
|
|
100
|
-
["vue", "vue-router"],
|
|
101
|
-
":BLANK_LINE:",
|
|
102
|
-
["@/**", "**"]
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
pre-commit:
|
|
2
|
-
commands:
|
|
3
|
-
check:
|
|
4
|
-
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
|
|
5
|
-
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
|
|
6
|
-
stage_fixed: true
|
|
7
|
-
|
|
8
|
-
commit-msg:
|
|
9
|
-
commands:
|
|
10
|
-
'lint commit message':
|
|
11
|
-
run: npx commitlint --edit {1}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-project",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"check": "biome check --write",
|
|
9
|
-
"dev": "rsbuild dev --open",
|
|
10
|
-
"format": "prettier --write .",
|
|
11
|
-
"preview": "rsbuild preview"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@alova/adapter-axios": "^2.0.16",
|
|
15
|
-
"alova": "^3.3.4",
|
|
16
|
-
"axios": "^1.12.1",
|
|
17
|
-
"element-plus": "^2.11.2",
|
|
18
|
-
"pinia": "^3.0.3",
|
|
19
|
-
"vue": "^3.5.21",
|
|
20
|
-
"vue-router": "^4.5.1"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@biomejs/biome": "^2.2.4",
|
|
24
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
25
|
-
"@rsbuild/core": "^1.5.6",
|
|
26
|
-
"@rsbuild/plugin-sass": "^1.4.0",
|
|
27
|
-
"@rsbuild/plugin-vue": "^1.1.2",
|
|
28
|
-
"@unocss/postcss": "^66.5.1",
|
|
29
|
-
"lefthook": "^1.13.0",
|
|
30
|
-
"prettier": "^3.6.2",
|
|
31
|
-
"typescript": "^5.9.2",
|
|
32
|
-
"unocss": "^66.5.1",
|
|
33
|
-
"unplugin-auto-import": "^20.1.0",
|
|
34
|
-
"unplugin-vue-components": "^29.0.0"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from '@rsbuild/core'
|
|
2
|
-
import { pluginVue } from '@rsbuild/plugin-vue'
|
|
3
|
-
import AutoImport from 'unplugin-auto-import/rspack'
|
|
4
|
-
import UnoCSS from '@unocss/postcss'
|
|
5
|
-
import { pluginSass } from '@rsbuild/plugin-sass'
|
|
6
|
-
import Components from 'unplugin-vue-components/rspack'
|
|
7
|
-
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
html: {
|
|
11
|
-
template: './index.html',
|
|
12
|
-
},
|
|
13
|
-
resolve: {
|
|
14
|
-
alias: {
|
|
15
|
-
'@': './src',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
server: {
|
|
19
|
-
port: Number(process.env.PUBLIC_PORT),
|
|
20
|
-
},
|
|
21
|
-
plugins: [pluginVue(), pluginSass()],
|
|
22
|
-
tools: {
|
|
23
|
-
rspack: {
|
|
24
|
-
plugins: [
|
|
25
|
-
AutoImport({
|
|
26
|
-
imports: ['vue', 'vue-router'],
|
|
27
|
-
dts: './src/types/auto-import.d.ts',
|
|
28
|
-
}),
|
|
29
|
-
Components({
|
|
30
|
-
resolvers: [ElementPlusResolver()],
|
|
31
|
-
dts: './src/types/components.d.ts',
|
|
32
|
-
}),
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
postcss: {
|
|
36
|
-
postcssOptions: {
|
|
37
|
-
plugins: [UnoCSS()],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createApp } from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import '@/styles/index.css'
|
|
4
|
-
|
|
5
|
-
import { setupRouter } from './router'
|
|
6
|
-
import { setupStore } from './store'
|
|
7
|
-
|
|
8
|
-
const app = createApp(App)
|
|
9
|
-
|
|
10
|
-
setupRouter(app)
|
|
11
|
-
setupStore(app)
|
|
12
|
-
|
|
13
|
-
app.mount('#root')
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createRouter, createWebHistory } from 'vue-router';
|
|
2
|
-
import { routes } from './modules';
|
|
3
|
-
import type { App } from 'vue';
|
|
4
|
-
|
|
5
|
-
export const router = createRouter({
|
|
6
|
-
history: createWebHistory(import.meta.env.PUBLIC_PATH),
|
|
7
|
-
routes: routes,
|
|
8
|
-
strict: true,
|
|
9
|
-
scrollBehavior: () => ({ left: 0, top: 0 }),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export const setupRouter = (app: App) => {
|
|
13
|
-
app.use(router);
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineStore } from "pinia";
|
|
2
|
-
import { store } from "..";
|
|
3
|
-
|
|
4
|
-
export const useUserStore = defineStore(
|
|
5
|
-
'user',{
|
|
6
|
-
state: () => {
|
|
7
|
-
return {
|
|
8
|
-
name: 'admin',
|
|
9
|
-
token: 'admin',
|
|
10
|
-
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif'
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
export function useUserStoreWithOut() {
|
|
16
|
-
return useUserStore(store);
|
|
17
|
-
}
|