create-bubbles 0.1.25 → 0.1.26
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/dist/index.js +3 -9
- package/package.json +1 -1
- package/template-nextjs-vinext-eslint/Dockerfile +4 -4
- package/template-nextjs-vinext-eslint/README.md +6 -2
- package/template-nextjs-vinext-eslint/docker-compose.yaml +4 -4
- package/template-nextjs-vinext-eslint/eslint.config.js +2 -0
- package/template-nextjs-vinext-eslint/package.json +28 -26
- package/template-nextjs-vinext-eslint/pnpm-workspace.yaml +13 -1
- package/template-nextjs-vinext-eslint/src/utils/request/core/index.ts +63 -45
- package/template-nextjs-vinext-eslint/src/utils/request/core/utils.ts +12 -6
- package/template-nextjs-vinext-eslint/vite.config.ts +1 -1
- package/template-react-rsbuild-biome/.agents/rules/SVG/344/275/277/347/224/250.md +8 -0
- package/template-react-rsbuild-biome/AGENTS.md +11 -0
- package/template-react-rsbuild-biome/index.html +2 -2
- package/template-react-rsbuild-biome/package.json +25 -24
- package/template-react-rsbuild-biome/pnpm-workspace.yaml +5 -0
- package/template-react-rsbuild-biome/rsbuild.config.ts +1 -1
- package/template-react-rsbuild-biome/src/assets/icon/logo.svg +1 -1
- package/template-react-rsbuild-biome/src/assets/svg/draft.svg +4 -0
- package/template-react-rsbuild-biome/src/components/Icon/svg-icon/README.md +37 -0
- package/template-react-rsbuild-biome/src/components/Icon/svg-icon/SvgIcon.tsx +27 -0
- package/template-react-rsbuild-biome/src/env.d.ts +7 -0
- package/template-react-rsbuild-biome/src/utils/request/index.ts +3 -4
- package/template-react-rsbuild-biome/tsconfig.json +1 -2
- package/template-taro-react-oxc/.oxlintrc.json +0 -1
- package/template-taro-react-oxc/package.json +53 -52
- package/template-taro-react-oxc/pnpm-workspace.yaml +46 -0
- package/template-taro-vue-eslint/package.json +56 -56
- package/template-vp-monorepo-react-hono/apps/web/.agents/rules/SVG/344/275/277/347/224/250.md +8 -0
- package/template-vp-monorepo-react-hono/apps/web/AGENTS.md +11 -0
- package/template-vp-monorepo-react-hono/apps/web/package.json +1 -0
- package/template-vp-monorepo-react-hono/apps/web/src/assets/svg/draft.svg +4 -0
- package/template-vp-monorepo-react-hono/apps/web/src/components/Icon/svg-icon/README.md +37 -0
- package/template-vp-monorepo-react-hono/apps/web/src/components/Icon/svg-icon/SvgIcon.tsx +27 -0
- package/template-vp-monorepo-react-hono/apps/web/tsconfig.json +1 -1
- package/template-vp-monorepo-react-hono/apps/web/vite.config.ts +2 -0
- package/template-vp-monorepo-react-hono/pnpm-workspace.yaml +1 -0
- package/template-vp-monorepo-react-nestjs/.agents/rules//344/273/243/347/240/201/350/256/276/350/256/241.md +4 -0
- package/template-vp-monorepo-react-nestjs/.agents/rules//345/205/261/344/272/253/344/273/243/347/240/201.md +4 -0
- package/template-vp-monorepo-react-nestjs/.spaces/01./344/274/201/344/270/232/347/272/247/351/241/271/347/233/256/347/272/247//351/234/200/346/261/202/346/226/207/346/241/243.md +177 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server/04.upload.md +4504 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server/05./344/270/212/344/274/240/346/224/271/351/200/240/346/226/271/346/241/210/README.md +858 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server/06./345/205/254/345/205/261/351/230/237/345/210/227/346/216/245/345/205/245/346/226/271/346/241/210/README.md +1890 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server/06./345/205/254/345/205/261/351/230/237/345/210/227/346/216/245/345/205/245/346/226/271/346/241/210//344/270/212/344/274/240/346/270/205/347/220/206.md +1465 -0
- package/template-vp-monorepo-react-nestjs/AGENTS.md +8 -12
- package/template-vp-monorepo-react-nestjs/apps/server/.agents/rules/error-handling.md +84 -0
- package/template-vp-monorepo-react-nestjs/apps/server/.env.development +60 -0
- package/template-vp-monorepo-react-nestjs/apps/server/.env.production +16 -0
- package/template-vp-monorepo-react-nestjs/apps/server/AGENTS.md +9 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle/0000_military_colonel_america.sql +11 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle/0001_loud_siren.sql +27 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle/meta/0000_snapshot.json +97 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle/meta/0001_snapshot.json +354 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle/meta/_journal.json +20 -0
- package/template-vp-monorepo-react-nestjs/apps/server/package.json +4 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/app.module.ts +14 -2
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/adapters/fastify.adapter.ts +6 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/index.ts +2 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/queue.config.ts +105 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/storage.config.ts +33 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/database/schema.ts +57 -1
- package/template-vp-monorepo-react-nestjs/apps/server/src/main.ts +1 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/auth/auth.service.ts +1 -3
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/auth/dto/auth-repsponse.dto.ts +2 -2
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/queue-worker.bootstrap.ts +24 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/task-queue.constants.ts +24 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/task-queue.contracts.ts +35 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/task-queue.module.ts +56 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/task-queue.processor.ts +62 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/task-queue/task-queue.service.ts +58 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/error-catelog.spec.ts +34 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/dto/initiate-mutipart-upload.dto.ts +26 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/dto/upload-params.dto.ts +15 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/storage/exact-size.transform.ts +66 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/storage/minio-storage.adapter.ts +239 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/storage/storage.port.ts +61 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.constants.ts +23 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.controller.ts +109 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.errors.ts +80 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.module.ts +20 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.reponsitory.ts +166 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/upload.service.ts +696 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/upload/utils/object-key.ts +10 -0
- package/template-vp-monorepo-react-nestjs/apps/server/test/task-queue.integration.spec.ts +120 -0
- package/template-vp-monorepo-react-nestjs/apps/server/test/task-queue.processor.spec.ts +63 -0
- package/template-vp-monorepo-react-nestjs/apps/server/test/task-queue.service.spec.ts +106 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules/SVG/344/275/277/347/224/250.md +8 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules//345/274/271/347/252/227/347/273/204/344/273/266.md +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules//346/226/207/344/273/266/346/213/206/345/210/206.md +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules//347/273/204/344/273/266/345/221/275/345/220/215.md +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules//350/241/250/346/240/274/351/241/265/351/235/242.md +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.agents/rules//351/241/265/351/235/242/346/216/245/345/217/243.md +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env.dev +1 -1
- package/template-vp-monorepo-react-nestjs/apps/web/AGENTS.md +16 -0
- package/template-vp-monorepo-react-nestjs/apps/web/README.MD +153 -0
- package/template-vp-monorepo-react-nestjs/apps/web/index.html +3 -2
- package/template-vp-monorepo-react-nestjs/apps/web/package.json +6 -1
- package/template-vp-monorepo-react-nestjs/apps/web/public/favicon.svg +9 -1
- package/template-vp-monorepo-react-nestjs/apps/web/src/App.module.css +5 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +16 -9
- package/template-vp-monorepo-react-nestjs/apps/web/src/api/auth.ts +9 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/svg/draft.svg +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/DraftProTable/DraftProTable.module.css +78 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/DraftProTable/DraftProTable.tsx +99 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/DraftProTable/README.md +34 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/FullHeightProTable/FullHeightProTable.module.css +54 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/FullHeightProTable/FullHeightProTable.tsx +41 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Icon/svg-icon/README.md +37 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Icon/svg-icon/SvgIcon.tsx +27 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.module.css +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.tsx +2 -1
- package/template-vp-monorepo-react-nestjs/apps/web/src/config/theme.ts +20 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/layouts/BasicLayout.module.css +17 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/layouts/BasicLayout.tsx +106 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/i18n/index.module.css +23 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/i18n/index.tsx +53 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/components/ProjectFormDialog.tsx +132 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/config/columns.tsx +121 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/config/index.ts +77 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/components/DraftProjectFormDialog.tsx +140 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/config/columns.tsx +127 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/config/index.ts +39 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/config/projects.ts +48 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/index.module.css +49 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/draft/index.tsx +163 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/index.module.css +53 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/examples/pro-table/index.tsx +135 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.module.css +23 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +26 -43
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/login/api.ts +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/login/index.tsx +183 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/login/login.css +164 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +36 -12
- package/template-vp-monorepo-react-nestjs/apps/web/src/styles/index.css +11 -4
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/core/index.ts +55 -47
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/index.ts +10 -5
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/storage/cookie.ts +50 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/storage/session.ts +33 -0
- package/template-vp-monorepo-react-nestjs/apps/web/test/draft-projects.spec.ts +89 -0
- package/template-vp-monorepo-react-nestjs/apps/web/test/request.spec.ts +145 -0
- package/template-vp-monorepo-react-nestjs/apps/web/test/storage.spec.ts +108 -0
- package/template-vp-monorepo-react-nestjs/apps/web/test/tsconfig.json +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +1 -1
- package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/tsconfig.tsbuildinfo +1 -0
- package/template-vp-monorepo-react-nestjs/docker-compose.yml +19 -0
- package/template-vp-monorepo-react-nestjs/mise.toml +1 -1
- package/template-vp-monorepo-react-nestjs/package.json +1 -6
- package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +9 -1
- package/template-vp-react/.agents/rules/SVG/344/275/277/347/224/250.md +8 -0
- package/template-vp-react/AGENTS.md +11 -0
- package/template-vp-react/commitlint.config.js +0 -0
- package/template-vp-react/package.json +21 -26
- package/template-vp-react/pnpm-workspace.yaml +6 -0
- package/template-vp-react/src/assets/svg/draft.svg +4 -0
- package/template-vp-react/src/components/Icon/svg-icon/README.md +37 -0
- package/template-vp-react/src/components/Icon/svg-icon/SvgIcon.tsx +27 -0
- package/template-vp-react/src/utils/request/index.ts +18 -5
- package/template-vp-react/tsconfig.json +2 -3
- package/template-vp-react/vite.config.ts +2 -0
- package/template-vp-react-shadcn/.agents/rules/SVG/344/275/277/347/224/250.md +8 -0
- package/template-vp-react-shadcn/.vscode/settings.json +2 -2
- package/template-vp-react-shadcn/{agents.md → AGENTS.md} +12 -2
- package/template-vp-react-shadcn/README.md +41 -0
- package/template-vp-react-shadcn/commitlint.config.js +1 -1
- package/template-vp-react-shadcn/components.json +1 -1
- package/template-vp-react-shadcn/package.json +25 -32
- package/template-vp-react-shadcn/pnpm-workspace.yaml +10 -0
- package/template-vp-react-shadcn/src/App.tsx +10 -10
- package/template-vp-react-shadcn/src/assets/svg/draft.svg +4 -0
- package/template-vp-react-shadcn/src/components/Icon/svg-icon/README.md +37 -0
- package/template-vp-react-shadcn/src/components/Icon/svg-icon/SvgIcon.tsx +27 -0
- package/template-vp-react-shadcn/src/components/Loading/PageLoading.tsx +4 -4
- package/template-vp-react-shadcn/src/components/Player/VideoJS/index.tsx +94 -78
- package/template-vp-react-shadcn/src/components/Player/index.ts +1 -1
- package/template-vp-react-shadcn/src/components/ui/button.tsx +25 -32
- package/template-vp-react-shadcn/src/components/ui/spinner.tsx +8 -7
- package/template-vp-react-shadcn/src/components/ui/toast.tsx +229 -0
- package/template-vp-react-shadcn/src/lib/utils.ts +3 -3
- package/template-vp-react-shadcn/src/main.tsx +5 -4
- package/template-vp-react-shadcn/src/pages/home/index.tsx +43 -35
- package/template-vp-react-shadcn/src/router/index.tsx +15 -15
- package/template-vp-react-shadcn/src/styles/index.css +4 -4
- package/template-vp-react-shadcn/src/styles/shadcn.css +2 -2
- package/template-vp-react-shadcn/src/utils/env/index.tsx +2 -2
- package/template-vp-react-shadcn/src/utils/request/alova-core/index.ts +102 -30
- package/template-vp-react-shadcn/src/utils/request/alova-core/utils.ts +5 -2
- package/template-vp-react-shadcn/src/utils/request/index.ts +32 -19
- package/template-vp-react-shadcn/src/utils/request/readme.md +41 -38
- package/template-vp-react-shadcn/tsconfig.json +2 -3
- package/template-vp-react-shadcn/vite.config.ts +29 -15
- package/template-vp-vue-eslint-vapor/package.json +26 -33
- package/template-vp-vue-eslint-vapor/pnpm-workspace.yaml +29 -1
- package/template-vue-vp-eslint/README.md +3 -10
- package/template-vue-vp-eslint/package.json +27 -34
- package/template-vue-vp-eslint/pnpm-workspace.yaml +27 -2
- package/template-vue-vp-eslint/src/layout/default/index.vue +4 -3
- package/template-vp-monorepo-react-nestjs/.agents/auth.config.ts +0 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server/todo.md +0 -991
- package/template-vp-monorepo-react-nestjs/apps/server/README.md +0 -3
- package/template-vp-react-shadcn/.oxfmtrc.jsonc +0 -8
- package/template-vp-react-shadcn/.oxlintrc.jsonc +0 -3
- package/template-vp-react-shadcn/src/components/ui/sonner.tsx +0 -43
|
@@ -11,34 +11,29 @@
|
|
|
11
11
|
"check": "vp check"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alova/adapter-axios": "^2.0.
|
|
15
|
-
"@tailwindcss/vite": "^4.3.
|
|
16
|
-
"alova": "^3.5.
|
|
17
|
-
"antd": "^6.
|
|
18
|
-
"axios": "^1.
|
|
14
|
+
"@alova/adapter-axios": "^2.0.20",
|
|
15
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
16
|
+
"alova": "^3.5.5",
|
|
17
|
+
"antd": "^6.6.3",
|
|
18
|
+
"axios": "^1.20.0",
|
|
19
19
|
"classnames": "^2.5.1",
|
|
20
|
-
"dayjs": "^1.11.
|
|
21
|
-
"react": "^19.2.
|
|
22
|
-
"react-dom": "^19.2.
|
|
23
|
-
"react-router": "^
|
|
24
|
-
"tailwindcss": "^4.3.
|
|
20
|
+
"dayjs": "^1.11.23",
|
|
21
|
+
"react": "^19.2.8",
|
|
22
|
+
"react-dom": "^19.2.8",
|
|
23
|
+
"react-router": "^8.3.1",
|
|
24
|
+
"tailwindcss": "^4.3.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@commitlint/cli": "^21.
|
|
28
|
-
"@commitlint/config-conventional": "^21.
|
|
29
|
-
"@types/
|
|
30
|
-
"@types/react
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"vite
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"pnpm": {
|
|
39
|
-
"overrides": {
|
|
40
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
41
|
-
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
|
|
42
|
-
}
|
|
27
|
+
"@commitlint/cli": "^21.2.2",
|
|
28
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
29
|
+
"@types/node": "^26.5.0",
|
|
30
|
+
"@types/react": "^19.2.18",
|
|
31
|
+
"@types/react-dom": "^19.2.7",
|
|
32
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
33
|
+
"typescript": "~7.0.2",
|
|
34
|
+
"unplugin-auto-import": "^21.1.0",
|
|
35
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
36
|
+
"vite-plugin-svgr": "^5.2.0",
|
|
37
|
+
"vite-plus": "0.3.0"
|
|
43
38
|
}
|
|
44
39
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<path d="M6.5 3.5h11L21 12v7a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 19v-7Z" />
|
|
3
|
+
<path d="M3 12h5.25a3.75 3.75 0 0 0 7.5 0H21" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# SvgIcon
|
|
2
|
+
|
|
3
|
+
使用 `vite-plugin-svgr` 将本地 SVG 导入为 React 组件,再由 `SvgIcon` 统一控制大小与颜色。
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import DraftIcon from '@/assets/svg/draft.svg?react'
|
|
7
|
+
import SvgIcon from '@/components/Icon/svg-icon/SvgIcon'
|
|
8
|
+
;<SvgIcon icon={DraftIcon} size={24} color="#1677ff" />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| 参数 | 说明 |
|
|
12
|
+
| -------------------- | ----------------------------------------------------------------- |
|
|
13
|
+
| `icon` | 通过 `?react` 导入的 SVG 组件,必填 |
|
|
14
|
+
| `size` | 字号,数字按 px 处理,也支持 `1.5rem` 等 CSS 长度;不传时继承父级 |
|
|
15
|
+
| `color` | 图标颜色;不传时继承父级 |
|
|
16
|
+
| `className`、`style` | 原生 SVG 样式;`style` 中的同名设置优先 |
|
|
17
|
+
|
|
18
|
+
SVG 的宽高统一为 `1em`,因此 `font-size` 决定图标大小。`ref`、事件和其他 SVG 属性继续透传。默认作为装饰图标隐藏于辅助技术;需要独立表达含义时传 `role="img"` 和 `aria-label`。
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
<span style={{ fontSize: 20, color: '#1677ff' }}>
|
|
22
|
+
<SvgIcon icon={DraftIcon} />
|
|
23
|
+
草稿
|
|
24
|
+
</span>
|
|
25
|
+
|
|
26
|
+
<SvgIcon icon={DraftIcon} size={24} role="img" aria-label="草稿" />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
源文件规范:
|
|
30
|
+
|
|
31
|
+
- 保留 `viewBox`,保证缩放正确。
|
|
32
|
+
- 单色填充图标使用 `fill="currentColor"`;线条图标使用 `stroke="currentColor"`。
|
|
33
|
+
- 保留 `fill="none"`、`stroke="none"`,避免填实空心图形。
|
|
34
|
+
- 内部元素若写死颜色,也需要在源文件中改成 `currentColor` 才能跟随文字颜色。
|
|
35
|
+
- SVGR 与组件保留多色和渐变,不会强制覆盖所有颜色。
|
|
36
|
+
|
|
37
|
+
现有 `draft.svg` 已遵循上述规范。直接导入 `draft.svg` 仍然得到资源 URL,只有 `draft.svg?react` 会转换为 React 组件。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ComponentType, SVGProps } from 'react'
|
|
2
|
+
|
|
3
|
+
export type SvgIconProps = Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> & {
|
|
4
|
+
icon: ComponentType<SVGProps<SVGSVGElement>>
|
|
5
|
+
size?: number | string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** SVG 源文件使用 currentColor;不传 size、color 时继承父级文字样式。 */
|
|
9
|
+
export default function SvgIcon({ icon: Icon, size, color, style, ...props }: SvgIconProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Icon
|
|
12
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
13
|
+
focusable="false"
|
|
14
|
+
{...props}
|
|
15
|
+
width="1em"
|
|
16
|
+
height="1em"
|
|
17
|
+
style={{
|
|
18
|
+
display: 'inline-block',
|
|
19
|
+
verticalAlign: '-0.125em',
|
|
20
|
+
flexShrink: 0,
|
|
21
|
+
fontSize: size,
|
|
22
|
+
color,
|
|
23
|
+
...style,
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import { axiosRequestAdapter } from '@alova/adapter-axios'
|
|
2
|
-
import reactHook from 'alova/react'
|
|
1
|
+
import { axiosRequestAdapter, type AlovaAxiosRequestConfig } from '@alova/adapter-axios'
|
|
2
|
+
import reactHook, { type ReactHookExportType } from 'alova/react'
|
|
3
3
|
import { message } from 'antd'
|
|
4
|
+
import type { AxiosResponse, AxiosResponseHeaders } from 'axios'
|
|
4
5
|
import { navigator } from '@/router'
|
|
5
6
|
import { envVariables } from '@/utils/env'
|
|
6
|
-
import { createDualCallInstance } from './core'
|
|
7
|
+
import { createDualCallInstance, type BaseRequestOption } from './core'
|
|
8
|
+
|
|
9
|
+
type WebRequestOption = BaseRequestOption<
|
|
10
|
+
AlovaAxiosRequestConfig,
|
|
11
|
+
AxiosResponse,
|
|
12
|
+
AxiosResponseHeaders,
|
|
13
|
+
ReactHookExportType<unknown>
|
|
14
|
+
>
|
|
7
15
|
|
|
8
16
|
function normalizeBaseUrl(apiAffix?: string) {
|
|
9
17
|
if (!apiAffix) return '/'
|
|
@@ -14,7 +22,7 @@ function normalizeBaseUrl(apiAffix?: string) {
|
|
|
14
22
|
return `/${apiAffix}`
|
|
15
23
|
}
|
|
16
24
|
|
|
17
|
-
function getBaseConfig():
|
|
25
|
+
function getBaseConfig(): WebRequestOption {
|
|
18
26
|
return {
|
|
19
27
|
baseUrl: normalizeBaseUrl(envVariables.API_AFFIX),
|
|
20
28
|
statusMap: {
|
|
@@ -43,6 +51,11 @@ function getBaseConfig(): Parameters<typeof createDualCallInstance>[0] {
|
|
|
43
51
|
}
|
|
44
52
|
}
|
|
45
53
|
|
|
46
|
-
const alovaRequest = createDualCallInstance
|
|
54
|
+
const alovaRequest = createDualCallInstance<
|
|
55
|
+
AlovaAxiosRequestConfig,
|
|
56
|
+
AxiosResponse,
|
|
57
|
+
AxiosResponseHeaders,
|
|
58
|
+
ReactHookExportType<unknown>
|
|
59
|
+
>(getBaseConfig())
|
|
47
60
|
|
|
48
61
|
export default alovaRequest
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"useDefineForClassFields": true,
|
|
5
5
|
"module": "ESNext",
|
|
6
6
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
7
|
-
"types": ["vite/client"],
|
|
7
|
+
"types": ["vite/client", "vite-plugin-svgr/client"],
|
|
8
8
|
"skipLibCheck": true,
|
|
9
9
|
|
|
10
10
|
/* Bundler mode */
|
|
@@ -23,9 +23,8 @@
|
|
|
23
23
|
"noFallthroughCasesInSwitch": true,
|
|
24
24
|
"noUncheckedSideEffectImports": true,
|
|
25
25
|
|
|
26
|
-
"baseUrl": ".",
|
|
27
26
|
"paths": {
|
|
28
|
-
"@/*": ["src/*"]
|
|
27
|
+
"@/*": ["./src/*"]
|
|
29
28
|
}
|
|
30
29
|
},
|
|
31
30
|
"include": ["src"]
|
|
@@ -3,6 +3,7 @@ import path from 'path'
|
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite'
|
|
4
4
|
import react from '@vitejs/plugin-react'
|
|
5
5
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
6
|
+
import svgr from 'vite-plugin-svgr'
|
|
6
7
|
import { defineConfig, loadEnv } from 'vite-plus'
|
|
7
8
|
|
|
8
9
|
export default defineConfig(({ mode }) => {
|
|
@@ -22,6 +23,7 @@ export default defineConfig(({ mode }) => {
|
|
|
22
23
|
},
|
|
23
24
|
plugins: [
|
|
24
25
|
react(),
|
|
26
|
+
svgr({ svgrOptions: { icon: true, ref: true } }),
|
|
25
27
|
AutoImport({
|
|
26
28
|
imports: ['react', 'react-router', 'react-dom'],
|
|
27
29
|
dts: './src/types/auto-imports.d.ts',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# SVG 使用
|
|
2
|
+
|
|
3
|
+
- 图标通过 `*.svg?react` 导入,使用 `@/components/Icon/svg-icon/SvgIcon` 渲染;用 `size`、`color` 控制大小和颜色,默认继承父级。
|
|
4
|
+
- 公共图标放 `src/assets/svg/`,页面专用图标放所属页面的 `assets/svg/`。
|
|
5
|
+
- 保留 `viewBox`;单色图标用 `currentColor`,保留 `none`、多色和渐变。
|
|
6
|
+
- 图片或背景直接导入 `*.svg` 获取 URL。
|
|
7
|
+
|
|
8
|
+
参数、无障碍设置及示例见 [SvgIcon 使用说明](../../src/components/Icon/svg-icon/README.md)。
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## 项目约定
|
|
4
4
|
|
|
5
5
|
- 项目是 Vite+、React 19、TypeScript 前端应用,路径别名 `@/*` 指向 `src/*`。
|
|
6
|
-
- 路由使用 React Router
|
|
6
|
+
- 路由使用 React Router 8,集中维护在 `src/router/index.tsx`。
|
|
7
7
|
- 路由页面放在 `src/pages/<route>/index.tsx`,保持现有 `lazyLoad()` 导入规则。
|
|
8
8
|
- `src/types/auto-imports.d.ts` 是生成文件,不要手动编辑。
|
|
9
9
|
|
|
@@ -17,8 +17,10 @@ tsc && vp build
|
|
|
17
17
|
|
|
18
18
|
## UI 与样式
|
|
19
19
|
|
|
20
|
-
- UI 组件使用 shadcn/ui
|
|
20
|
+
- UI 组件使用 shadcn/ui 的 Base UI 版本(`base-nova`),已有组件位于 `src/components/ui`。
|
|
21
21
|
- 新增 shadcn/ui 组件使用 `pnpm shadcn add xxx`。
|
|
22
|
+
- 组合触发器使用 Base UI 的 `render` API;链接使用 `<a>` / `<Link>` 配合 `buttonVariants()`。
|
|
23
|
+
- 消息提示从 `@/components/ui/toast` 导入 `toast`,使用 `toast.add({ type: 'success', description: '操作成功' })`。
|
|
22
24
|
- 图标优先使用 `lucide-react`。
|
|
23
25
|
- 动效:引人注目的关键区域可适当加入动画,复杂动效优先使用已安装的 `gsap`,避免过度动画影响可用性。
|
|
24
26
|
- 样式优先使用 Tailwind CSS classNames。
|
|
@@ -42,3 +44,11 @@ tsc && vp build
|
|
|
42
44
|
|
|
43
45
|
- 普通代码改动:执行 `vp check` 和 `tsc && vp build`。
|
|
44
46
|
- 视觉改动:启动 `vp dev`,在浏览器中检查受影响页面。
|
|
47
|
+
|
|
48
|
+
## 按需规则
|
|
49
|
+
|
|
50
|
+
根据当前任务匹配下表,在执行相关操作前读取对应规则。不要预先加载整个 `.agents/rules/` 目录;任务范围变化时补读新命中的规则。
|
|
51
|
+
|
|
52
|
+
| 适用条件 | 规则文件 |
|
|
53
|
+
| -------------------- | ------------------------------------ |
|
|
54
|
+
| 新增、修改或使用 SVG | [SVG 使用](.agents/rules/SVG使用.md) |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Vite+ React shadcn 模板
|
|
2
|
+
|
|
3
|
+
基于 React 19、React Router 8、TypeScript 7、Tailwind CSS 4 和 Vite+ 0.3。
|
|
4
|
+
shadcn/ui 使用 Base UI 的 `base-nova` 风格,底层依赖为 `@base-ui/react`。
|
|
5
|
+
|
|
6
|
+
## 启动与验证
|
|
7
|
+
|
|
8
|
+
先安装全局 Vite+ CLI,再执行:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
vp install
|
|
12
|
+
vp dev
|
|
13
|
+
vp check
|
|
14
|
+
vp run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## UI 组件
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm exec shadcn info
|
|
21
|
+
pnpm exec shadcn add dialog
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
组件源码位于 `src/components/ui`,`components.json` 会让后续新增组件继续使用 Base UI。
|
|
25
|
+
shadcn 仍支持 Radix UI;本模板已从 Radix UI 迁移到 Base UI。
|
|
26
|
+
|
|
27
|
+
- Button 和触发器组合使用 Base UI 的 `render` API,不再使用 `asChild`。
|
|
28
|
+
- 链接使用 `<a>` 或 React Router 的 `<Link>`,样式通过 `buttonVariants()` 生成。
|
|
29
|
+
- 消息提示使用 `@/components/ui/toast`,应用入口已挂载 `<Toaster />`。
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { toast } from '@/components/ui/toast'
|
|
33
|
+
|
|
34
|
+
toast.add({ type: 'success', description: '操作成功' })
|
|
35
|
+
toast.add({ type: 'error', description: '操作失败' })
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
依赖覆盖配置集中在 `pnpm-workspace.yaml`,将 `vite` 固定到 Vite+ 对应版本。
|
|
39
|
+
播放器使用 `@videojs/react@10.0.0-beta.32`,仍处于 beta 阶段,因此固定精确版本。
|
|
40
|
+
|
|
41
|
+
参考:[shadcn Base UI Button](https://ui.shadcn.com/docs/components/base/button)、[Toast](https://ui.shadcn.com/docs/components/base/toast)。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default { extends: [
|
|
1
|
+
export default { extends: ['@commitlint/config-conventional'] }
|
|
@@ -11,46 +11,39 @@
|
|
|
11
11
|
"check": "vp check"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
14
|
+
"@base-ui/react": "^1.8.0",
|
|
15
|
+
"@fontsource-variable/geist": "^5.3.0",
|
|
16
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
17
|
+
"@videojs/react": "10.0.0-beta.32",
|
|
18
|
+
"alova": "^3.5.5",
|
|
18
19
|
"class-variance-authority": "^0.7.1",
|
|
19
20
|
"classnames": "^2.5.1",
|
|
20
21
|
"clsx": "^2.1.1",
|
|
21
|
-
"dayjs": "^1.11.
|
|
22
|
+
"dayjs": "^1.11.23",
|
|
22
23
|
"gsap": "^3.15.0",
|
|
23
|
-
"lucide-react": "^1.
|
|
24
|
-
"next-themes": "^0.4.6",
|
|
24
|
+
"lucide-react": "^1.42.0",
|
|
25
25
|
"radashi": "^12.9.1",
|
|
26
|
-
"
|
|
27
|
-
"react": "^19.2.
|
|
28
|
-
"react-
|
|
29
|
-
"react-router": "^7.17.0",
|
|
30
|
-
"sonner": "^2.0.7",
|
|
26
|
+
"react": "^19.2.8",
|
|
27
|
+
"react-dom": "^19.2.8",
|
|
28
|
+
"react-router": "^8.3.1",
|
|
31
29
|
"tailwind-merge": "^3.6.0",
|
|
32
|
-
"tailwindcss": "^4.3.
|
|
30
|
+
"tailwindcss": "^4.3.3",
|
|
33
31
|
"tw-animate-css": "^1.4.0",
|
|
34
|
-
"zustand": "^5.0.
|
|
32
|
+
"zustand": "^5.0.15"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|
|
37
|
-
"@commitlint/cli": "^21.
|
|
38
|
-
"@commitlint/config-conventional": "^21.
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/react
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"vite
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"pnpm": {
|
|
51
|
-
"overrides": {
|
|
52
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
53
|
-
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
|
|
54
|
-
}
|
|
35
|
+
"@commitlint/cli": "^21.2.2",
|
|
36
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
37
|
+
"@types/node": "^26.5.0",
|
|
38
|
+
"@types/react": "^19.2.18",
|
|
39
|
+
"@types/react-dom": "^19.2.7",
|
|
40
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
41
|
+
"sass": "^1.104.0",
|
|
42
|
+
"shadcn": "^4.21.0",
|
|
43
|
+
"typescript": "~7.0.2",
|
|
44
|
+
"unplugin-auto-import": "^21.1.0",
|
|
45
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
46
|
+
"vite-plugin-svgr": "^5.2.0",
|
|
47
|
+
"vite-plus": "0.3.0"
|
|
55
48
|
}
|
|
56
49
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import dayjs from
|
|
2
|
-
import
|
|
3
|
-
import { Suspense } from
|
|
4
|
-
import { RouterProvider } from
|
|
1
|
+
import dayjs from 'dayjs'
|
|
2
|
+
import 'dayjs/locale/zh-cn'
|
|
3
|
+
import { Suspense } from 'react'
|
|
4
|
+
import { RouterProvider } from 'react-router'
|
|
5
5
|
|
|
6
|
-
import PageLoading from
|
|
7
|
-
import { Toaster } from
|
|
6
|
+
import PageLoading from '@/components/Loading/PageLoading'
|
|
7
|
+
import { Toaster } from '@/components/ui/toast'
|
|
8
8
|
|
|
9
|
-
import { router } from
|
|
9
|
+
import { router } from './router'
|
|
10
10
|
|
|
11
|
-
dayjs.locale(
|
|
11
|
+
dayjs.locale('zh-cn')
|
|
12
12
|
|
|
13
13
|
function App() {
|
|
14
14
|
return (
|
|
@@ -18,7 +18,7 @@ function App() {
|
|
|
18
18
|
</Suspense>
|
|
19
19
|
<Toaster />
|
|
20
20
|
</>
|
|
21
|
-
)
|
|
21
|
+
)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export default App
|
|
24
|
+
export default App
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<path d="M6.5 3.5h11L21 12v7a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 19v-7Z" />
|
|
3
|
+
<path d="M3 12h5.25a3.75 3.75 0 0 0 7.5 0H21" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# SvgIcon
|
|
2
|
+
|
|
3
|
+
使用 `vite-plugin-svgr` 将本地 SVG 导入为 React 组件,再由 `SvgIcon` 统一控制大小与颜色。
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import DraftIcon from '@/assets/svg/draft.svg?react'
|
|
7
|
+
import SvgIcon from '@/components/Icon/svg-icon/SvgIcon'
|
|
8
|
+
;<SvgIcon icon={DraftIcon} size={24} color="#1677ff" />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| 参数 | 说明 |
|
|
12
|
+
| -------------------- | ----------------------------------------------------------------- |
|
|
13
|
+
| `icon` | 通过 `?react` 导入的 SVG 组件,必填 |
|
|
14
|
+
| `size` | 字号,数字按 px 处理,也支持 `1.5rem` 等 CSS 长度;不传时继承父级 |
|
|
15
|
+
| `color` | 图标颜色;不传时继承父级 |
|
|
16
|
+
| `className`、`style` | 原生 SVG 样式;`style` 中的同名设置优先 |
|
|
17
|
+
|
|
18
|
+
SVG 的宽高统一为 `1em`,因此 `font-size` 决定图标大小。`ref`、事件和其他 SVG 属性继续透传。默认作为装饰图标隐藏于辅助技术;需要独立表达含义时传 `role="img"` 和 `aria-label`。
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
<span style={{ fontSize: 20, color: '#1677ff' }}>
|
|
22
|
+
<SvgIcon icon={DraftIcon} />
|
|
23
|
+
草稿
|
|
24
|
+
</span>
|
|
25
|
+
|
|
26
|
+
<SvgIcon icon={DraftIcon} size={24} role="img" aria-label="草稿" />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
源文件规范:
|
|
30
|
+
|
|
31
|
+
- 保留 `viewBox`,保证缩放正确。
|
|
32
|
+
- 单色填充图标使用 `fill="currentColor"`;线条图标使用 `stroke="currentColor"`。
|
|
33
|
+
- 保留 `fill="none"`、`stroke="none"`,避免填实空心图形。
|
|
34
|
+
- 内部元素若写死颜色,也需要在源文件中改成 `currentColor` 才能跟随文字颜色。
|
|
35
|
+
- SVGR 与组件保留多色和渐变,不会强制覆盖所有颜色。
|
|
36
|
+
|
|
37
|
+
现有 `draft.svg` 已遵循上述规范。直接导入 `draft.svg` 仍然得到资源 URL,只有 `draft.svg?react` 会转换为 React 组件。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ComponentType, SVGProps } from 'react'
|
|
2
|
+
|
|
3
|
+
export type SvgIconProps = Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> & {
|
|
4
|
+
icon: ComponentType<SVGProps<SVGSVGElement>>
|
|
5
|
+
size?: number | string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** SVG 源文件使用 currentColor;不传 size、color 时继承父级文字样式。 */
|
|
9
|
+
export default function SvgIcon({ icon: Icon, size, color, style, ...props }: SvgIconProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Icon
|
|
12
|
+
aria-hidden={props['aria-label'] || props['aria-labelledby'] ? undefined : true}
|
|
13
|
+
focusable="false"
|
|
14
|
+
{...props}
|
|
15
|
+
width="1em"
|
|
16
|
+
height="1em"
|
|
17
|
+
style={{
|
|
18
|
+
display: 'inline-block',
|
|
19
|
+
verticalAlign: '-0.125em',
|
|
20
|
+
flexShrink: 0,
|
|
21
|
+
fontSize: size,
|
|
22
|
+
color,
|
|
23
|
+
...style,
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Spinner } from
|
|
1
|
+
import { Spinner } from '@/components/ui/spinner'
|
|
2
2
|
|
|
3
3
|
const Loading = () => {
|
|
4
4
|
return (
|
|
5
5
|
<div className="flex h-full w-full items-center justify-center">
|
|
6
6
|
<Spinner className="size-6" />
|
|
7
7
|
</div>
|
|
8
|
-
)
|
|
9
|
-
}
|
|
8
|
+
)
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
export default Loading
|
|
11
|
+
export default Loading
|