create-bubbles 0.1.19 → 0.1.22
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 → index.mjs} +9 -7
- package/package.json +7 -5
- package/template-nextjs-vinext-eslint/.dockerignore +3 -0
- package/template-nextjs-vinext-eslint/.vscode/settings.json +53 -0
- package/template-nextjs-vinext-eslint/Dockerfile +21 -0
- package/template-nextjs-vinext-eslint/README.md +100 -0
- package/template-nextjs-vinext-eslint/commitlint.config.js +1 -0
- package/template-nextjs-vinext-eslint/docker-compose.yaml +22 -0
- package/template-nextjs-vinext-eslint/eslint.config.js +20 -0
- package/template-nextjs-vinext-eslint/lefthook.yml +11 -0
- package/template-nextjs-vinext-eslint/next.config.ts +8 -0
- package/template-nextjs-vinext-eslint/nginx.conf +14 -0
- package/template-nextjs-vinext-eslint/package.json +50 -0
- package/template-nextjs-vinext-eslint/pnpm-workspace.yaml +7 -0
- package/template-nextjs-vinext-eslint/public/file.svg +1 -0
- package/template-nextjs-vinext-eslint/public/globe.svg +1 -0
- package/template-nextjs-vinext-eslint/public/logo-white.svg +128 -0
- package/template-nextjs-vinext-eslint/public/next.svg +1 -0
- package/template-nextjs-vinext-eslint/public/vercel.svg +1 -0
- package/template-nextjs-vinext-eslint/public/window.svg +1 -0
- package/template-nextjs-vinext-eslint/src/app/_components/Header/header.module.css +0 -0
- package/template-nextjs-vinext-eslint/src/app/_components/Header/header.tsx +7 -0
- package/template-nextjs-vinext-eslint/src/app/_components/Main/index.tsx +13 -0
- package/template-nextjs-vinext-eslint/src/app/antd-provider.tsx +30 -0
- package/template-nextjs-vinext-eslint/src/app/icon.svg +26 -0
- package/template-nextjs-vinext-eslint/src/app/layout.tsx +68 -0
- package/template-nextjs-vinext-eslint/src/app/page.module.css +141 -0
- package/template-nextjs-vinext-eslint/src/app/page.tsx +43 -0
- package/template-nextjs-vinext-eslint/src/app/uno-css.tsx +7 -0
- package/template-nextjs-vinext-eslint/src/assets/icon/logo-white.svg +128 -0
- package/template-nextjs-vinext-eslint/src/assets/icon/logo.svg +26 -0
- package/template-nextjs-vinext-eslint/src/assets/image/QR.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_1.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_2.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_3.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_4.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_top.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/icon_title_left.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/icon_title_right.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/img.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_COCT.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/207/347/247/221.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/205/264.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/206/266/345/273/272/345/267/245.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/270/255/351/223/201.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/272/224/345/206/266.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/272/244/351/200/232/345/273/272/350/256/276.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/345/273/272/344/270/232.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/345/273/272/347/255/221/347/247/221/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/347/224/265/345/273/272.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/351/223/201/345/273/272.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/345/256/234/351/200/232/344/270/226/347/272/252.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/225/260/347/273/264/347/251/272/351/227/264.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/226/260/346/230/212/350/276/260/345/273/272/350/256/276.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/236/227/345/220/214/346/243/252/345/233/275/351/231/205.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/270/235/351/232/206/351/233/206/345/233/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/347/273/264/345/241/224/347/247/221/346/212/200.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/350/205/276/350/256/257.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/350/265/233/350/277/252/344/277/241/346/201/257.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/344/272/244/351/200/232/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/344/272/244/351/200/232/350/201/214/344/270/232/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/267/245/345/225/206/350/201/214/344/270/232/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/267/245/347/250/213/350/201/214/344/270/232/346/212/200/346/234/257/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/273/272/345/267/245.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/230/277/351/207/214/344/272/221.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/231/206/345/206/233/345/206/233/345/214/273/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/276/231/346/271/226.png +0 -0
- package/template-nextjs-vinext-eslint/src/styles/globals.css +47 -0
- package/template-nextjs-vinext-eslint/src/types/vite-env.d.ts +18 -0
- package/template-nextjs-vinext-eslint/src/utils/env.ts +14 -0
- package/template-nextjs-vinext-eslint/src/utils/index.ts +0 -0
- package/template-nextjs-vinext-eslint/src/utils/request/core/index.ts +425 -0
- package/template-nextjs-vinext-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-nextjs-vinext-eslint/src/utils/request/index.ts +48 -0
- package/template-nextjs-vinext-eslint/tsconfig.json +34 -0
- package/template-nextjs-vinext-eslint/uno.config.ts +8 -0
- package/template-nextjs-vinext-eslint/vite.config.ts +8 -0
- package/template-react-rsbuild-biome/.env +5 -0
- package/template-react-rsbuild-biome/.env.development +1 -0
- package/template-react-rsbuild-biome/.env.production +1 -0
- package/template-react-rsbuild-biome/.prettierignore +34 -0
- package/template-react-rsbuild-biome/.prettierrc +16 -0
- package/template-react-rsbuild-biome/.vscode/settings.json +10 -0
- package/template-react-rsbuild-biome/README.md +29 -0
- package/template-react-rsbuild-biome/biome.json +116 -0
- package/template-react-rsbuild-biome/commitlint.config.js +1 -0
- package/template-react-rsbuild-biome/index.html +7 -0
- package/template-react-rsbuild-biome/lefthook.yml +14 -0
- package/template-react-rsbuild-biome/package.json +42 -0
- package/template-react-rsbuild-biome/public/.gitkeep +0 -0
- package/template-react-rsbuild-biome/rsbuild.config.ts +44 -0
- package/template-react-rsbuild-biome/src/App.tsx +9 -0
- package/template-react-rsbuild-biome/src/assets/font/AlimamaShuHeiTi-Bold.ttf +0 -0
- package/template-react-rsbuild-biome/src/assets/icon/logo.svg +7 -0
- package/template-react-rsbuild-biome/src/components/Loading/PageLoading.tsx +11 -0
- package/template-react-rsbuild-biome/src/env.d.ts +1 -0
- package/template-react-rsbuild-biome/src/index.tsx +18 -0
- package/template-react-rsbuild-biome/src/layout/default/index.tsx +10 -0
- package/template-react-rsbuild-biome/src/pages/home/index.tsx +5 -0
- package/template-react-rsbuild-biome/src/router/index.tsx +38 -0
- package/template-react-rsbuild-biome/src/store/index.ts +0 -0
- package/template-react-rsbuild-biome/src/store/modules/user.ts +11 -0
- package/template-react-rsbuild-biome/src/styles/fonts.scss +4 -0
- package/template-react-rsbuild-biome/src/styles/index.scss +19 -0
- package/template-react-rsbuild-biome/src/styles/variables.scss +4 -0
- package/template-react-rsbuild-biome/src/types/auto-import.d.ts +49 -0
- package/template-react-rsbuild-biome/src/utils/env.ts +10 -0
- package/template-react-rsbuild-biome/src/utils/request/core/index.ts +425 -0
- package/template-react-rsbuild-biome/src/utils/request/core/utils.ts +39 -0
- package/template-react-rsbuild-biome/src/utils/request/index.ts +42 -0
- package/template-react-rsbuild-biome/tsconfig.json +35 -0
- package/template-react-rsbuild-biome/uno.config.ts +8 -0
- package/template-taro-react-oxc/.editorconfig +12 -0
- package/template-taro-react-oxc/.env +1 -0
- package/template-taro-react-oxc/.env.development +6 -0
- package/template-taro-react-oxc/.env.production +5 -0
- package/template-taro-react-oxc/.oxfmtrc.json +12 -0
- package/template-taro-react-oxc/.oxlintrc.json +9 -0
- package/template-taro-react-oxc/.vscode/settings.json +13 -0
- package/template-taro-react-oxc/babel.config.js +45 -0
- package/template-taro-react-oxc/commitlint.config.mjs +1 -0
- package/template-taro-react-oxc/config/dev.ts +10 -0
- package/template-taro-react-oxc/config/index.ts +172 -0
- package/template-taro-react-oxc/config/prod.ts +39 -0
- package/template-taro-react-oxc/config/release.ts +106 -0
- package/template-taro-react-oxc/key/.gitkeep +0 -0
- package/template-taro-react-oxc/lefthook.yaml +18 -0
- package/template-taro-react-oxc/package.json +118 -0
- package/template-taro-react-oxc/patches/@tarojs__plugin-mini-ci.patch +13 -0
- package/template-taro-react-oxc/pnpm-workspace.yaml +13 -0
- package/template-taro-react-oxc/postcss.config.js +6 -0
- package/template-taro-react-oxc/project.config.json +15 -0
- package/template-taro-react-oxc/src/app.config.ts +11 -0
- package/template-taro-react-oxc/src/app.ts +14 -0
- package/template-taro-react-oxc/src/index.html +17 -0
- package/template-taro-react-oxc/src/pages/index/index.config.ts +3 -0
- package/template-taro-react-oxc/src/pages/index/index.scss +0 -0
- package/template-taro-react-oxc/src/pages/index/index.tsx +44 -0
- package/template-taro-react-oxc/src/store/taroStorage.ts +7 -0
- package/template-taro-react-oxc/src/store/user.ts +13 -0
- package/template-taro-react-oxc/src/styles/index.css +1 -0
- package/template-taro-react-oxc/src/utils/env.ts +10 -0
- package/template-taro-react-oxc/src/utils/request/core/index.ts +425 -0
- package/template-taro-react-oxc/src/utils/request/core/utils.ts +39 -0
- package/template-taro-react-oxc/src/utils/request/index.ts +37 -0
- package/template-taro-react-oxc/stylelint.config.mjs +28 -0
- package/template-taro-react-oxc/tailwind.config.js +12 -0
- package/template-taro-react-oxc/tsconfig.json +28 -0
- package/template-taro-react-oxc/types/global.d.ts +29 -0
- package/template-taro-vue-eslint/.editorconfig +12 -0
- package/template-taro-vue-eslint/.env +3 -0
- package/template-taro-vue-eslint/.env.development +5 -0
- package/template-taro-vue-eslint/.env.production +5 -0
- package/template-taro-vue-eslint/.vscode/settings.json +57 -0
- package/template-taro-vue-eslint/babel.config.js +12 -0
- package/template-taro-vue-eslint/commitlint.config.mjs +1 -0
- package/template-taro-vue-eslint/config/dev.ts +27 -0
- package/template-taro-vue-eslint/config/index.ts +134 -0
- package/template-taro-vue-eslint/config/output-root.ts +11 -0
- package/template-taro-vue-eslint/config/prod.ts +39 -0
- package/template-taro-vue-eslint/config/release.ts +113 -0
- package/template-taro-vue-eslint/eslint.config.mjs +22 -0
- package/template-taro-vue-eslint/lefthook.yaml +13 -0
- package/template-taro-vue-eslint/package.json +115 -0
- package/template-taro-vue-eslint/patches/@tarojs__plugin-mini-ci.patch +13 -0
- package/template-taro-vue-eslint/pnpm-workspace.yaml +13 -0
- package/template-taro-vue-eslint/project.config.json +16 -0
- package/template-taro-vue-eslint/src/api/common/upload.ts +53 -0
- package/template-taro-vue-eslint/src/app.config.ts +19 -0
- package/template-taro-vue-eslint/src/app.ts +14 -0
- package/template-taro-vue-eslint/src/assets/image/.gitkeep +0 -0
- package/template-taro-vue-eslint/src/index.html +17 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.vue +71 -0
- package/template-taro-vue-eslint/src/pages/index/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/index/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/index/index.vue +77 -0
- package/template-taro-vue-eslint/src/store/index.ts +10 -0
- package/template-taro-vue-eslint/src/store/modules/user.ts +15 -0
- package/template-taro-vue-eslint/src/store/taroStorage.ts +7 -0
- package/template-taro-vue-eslint/src/styles/index.css +1 -0
- package/template-taro-vue-eslint/src/styles/nut-theme.css +4 -0
- package/template-taro-vue-eslint/src/utils/env.ts +13 -0
- package/template-taro-vue-eslint/src/utils/index.ts +40 -0
- package/template-taro-vue-eslint/src/utils/request/core/index.ts +425 -0
- package/template-taro-vue-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-taro-vue-eslint/src/utils/request/index.ts +73 -0
- package/template-taro-vue-eslint/tsconfig.json +30 -0
- package/template-taro-vue-eslint/types/components.d.ts +16 -0
- package/template-taro-vue-eslint/types/global.d.ts +31 -0
- package/template-taro-vue-eslint/types/vue.d.ts +10 -0
- package/template-taro-vue-eslint/unocss.config.ts +42 -0
- package/template-vp-monorepo-react-nestjs/.agents/auth.config.ts +0 -0
- package/template-vp-monorepo-react-nestjs/.spaces/server//347/231/273/345/275/225/JWT/344/270/216RefreshToken/350/275/256/346/215/242/351/211/264/346/235/203/346/236/266/346/236/204/345/256/236/347/216/260/346/214/207/345/215/227.md +6614 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +2 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +2 -0
- package/template-vp-monorepo-react-nestjs/.vscode/settings.json +25 -0
- package/template-vp-monorepo-react-nestjs/AGENTS.md +16 -0
- package/template-vp-monorepo-react-nestjs/README.md +29 -0
- package/template-vp-monorepo-react-nestjs/apps/server/.env.development +61 -0
- package/template-vp-monorepo-react-nestjs/apps/server/.env.production +20 -0
- package/template-vp-monorepo-react-nestjs/apps/server/README.md +3 -0
- package/template-vp-monorepo-react-nestjs/apps/server/drizzle.config.ts +15 -0
- package/template-vp-monorepo-react-nestjs/apps/server/nest-cli.json +8 -0
- package/template-vp-monorepo-react-nestjs/apps/server/package.json +57 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/app.controller.ts +12 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/app.module.ts +58 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/app.service.ts +8 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/constants/decorator.ts +2 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/constants/response.ts +15 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/decorators/bypass.ts +12 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/interceptors/transform.ts +34 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/common/model/response.ts +23 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/app.config.ts +6 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/auth.config.ts +64 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/database.config.ts +10 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/index.ts +5 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/llm.config.ts +7 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/redis.config.ts +18 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/config/security.config.ts +0 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/database/db.module.ts +32 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/database/schema.ts +14 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/main.ts +34 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.controller.ts +28 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.module.ts +9 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.service.ts +22 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/dto/create-user.dto.ts +27 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/dto/redis-quary.dto.ts +18 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.controller.ts +31 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.module.ts +9 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.service.ts +37 -0
- package/template-vp-monorepo-react-nestjs/apps/server/src/utils/server-address.ts +33 -0
- package/template-vp-monorepo-react-nestjs/apps/server/tsconfig.build.json +4 -0
- package/template-vp-monorepo-react-nestjs/apps/server/tsconfig.json +28 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env +2 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env.dev +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env.prod +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/index.html +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web/package.json +35 -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 +25 -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/locales/en_US.json +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/locales/zh_CN.json +4 -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 +47 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +25 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/modules/.gitkeep +0 -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-vp-monorepo-react-nestjs/apps/web/src/utils/env/index.ts +6 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/core/index.ts +420 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/core/utils.ts +39 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/index.ts +61 -0
- package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +28 -0
- package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +45 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/.env +6 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/.env.development +2 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/.env.production +2 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/.vscode/extensions.json +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/AGENTS.md +16 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/README.md +98 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/commitlint.config.js +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/eslint.config.js +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/index.html +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/lefthook.yml +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/package.json +67 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/pnpm-workspace.yaml +16 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/public/vite.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/App.vue +12 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/api/index.ts +12 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/computer-data.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/cpu.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/data-search.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/home.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/knowledge-graph.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/logo.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/icon/robot.svg +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/image/.gitkeep +0 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/components/Icon/svg-icon.vue +29 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/hooks/chart/lib.ts +57 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/i18n/instance.ts +8 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/layout/default/header/index.vue +30 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/layout/default/index.vue +138 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/locales/en_US.json +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/locales/zh_CN.json +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/main.ts +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/guard/index.ts +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/guard/permissionGuard.ts +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/index.ts +18 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/interface.ts +9 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/modules/index.ts +33 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/store/index.ts +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/store/modules/user.ts +17 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/styles/font.scss +0 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/styles/index.scss +29 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/styles/variables.scss +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/types/auto-import.d.ts +78 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/types/components.d.ts +26 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/types/vite-env.d.ts +15 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/utils/env.ts +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/utils/request/core/index.ts +425 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/utils/request/core/utils.ts +39 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/utils/request/index.ts +44 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/example/echart/config.ts +1794 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/example/echart/index.vue +20 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/example/tree-chart.vue +16 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/home/index.vue +27 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/login/index.vue +9 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/tsconfig.json +29 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/uno.config.ts +17 -0
- package/template-vp-monorepo-react-nestjs/apps/web-vue/vite.config.ts +58 -0
- package/template-vp-monorepo-react-nestjs/commitlint.config.js +1 -0
- package/template-vp-monorepo-react-nestjs/docker-compose.yml +41 -0
- package/template-vp-monorepo-react-nestjs/mise.toml +3 -0
- package/template-vp-monorepo-react-nestjs/package.json +25 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/package.json +20 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/format.ts +9 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/i18n.ts +73 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/index.ts +24 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/storage.ts +47 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/store.ts +48 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/types.ts +36 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/tsconfig.json +15 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/core/vite.config.ts +13 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/react/package.json +28 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/react/src/index.tsx +26 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/react/src/use-store.ts +14 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/react/tsconfig.json +16 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/react/vite.config.ts +16 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/vue/package.json +27 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/vue/src/index.ts +52 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/vue/src/use-store.ts +19 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/vue/tsconfig.json +15 -0
- package/template-vp-monorepo-react-nestjs/packages/i18n/vue/vite.config.ts +16 -0
- package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +111 -0
- package/template-vp-monorepo-react-nestjs/tsconfig.json +9 -0
- package/template-vp-monorepo-react-nestjs/vite.config.ts +19 -0
- package/template-vp-react/.env +1 -0
- package/template-vp-react/.oxfmtrc.jsonc +8 -0
- package/template-vp-react/.oxlintrc.jsonc +11 -0
- package/template-vp-react/.vite-hooks/commit-msg +1 -0
- package/template-vp-react/.vite-hooks/pre-commit +1 -0
- package/template-vp-react/.vscode/extensions.json +3 -0
- package/template-vp-react/.vscode/settings.json +11 -0
- package/template-vp-react/commitlint.config.js +0 -0
- package/template-vp-react/index.html +13 -0
- package/template-vp-react/package.json +44 -0
- package/template-vp-react/public/favicon.svg +1 -0
- package/template-vp-react/public/icons.svg +24 -0
- package/template-vp-react/src/App.tsx +24 -0
- package/template-vp-react/src/assets/hero.png +0 -0
- package/template-vp-react/src/assets/react.svg +1 -0
- package/template-vp-react/src/assets/vite.svg +1 -0
- package/template-vp-react/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-react/src/main.tsx +5 -0
- package/template-vp-react/src/pages/home/index.tsx +17 -0
- package/template-vp-react/src/router/index.tsx +25 -0
- package/template-vp-react/src/router/modules/.gitkeep +0 -0
- package/template-vp-react/src/styles/index.css +7 -0
- package/template-vp-react/src/types/auto-imports.d.ts +58 -0
- package/template-vp-react/src/utils/env/index.ts +6 -0
- package/template-vp-react/src/utils/request/core/index.ts +420 -0
- package/template-vp-react/src/utils/request/core/utils.ts +39 -0
- package/template-vp-react/src/utils/request/index.ts +48 -0
- package/template-vp-react/tsconfig.json +32 -0
- package/template-vp-react/vite.config.ts +35 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/README.md +28 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/SKILL.md +249 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/references/SETUP.md +146 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/SKILL.md +260 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/agents/openai.yml +5 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/assets/shadcn-small.png +0 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/assets/shadcn.png +0 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/cli.md +276 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/customization.md +209 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/evals/evals.json +47 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/mcp.md +94 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/base-vs-radix.md +306 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/composition.md +195 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/forms.md +192 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/icons.md +101 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/styling.md +162 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/README.md +75 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/SKILL.md +322 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/evals.json +182 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/config.md +162 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/env-management.md +76 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/task-runner.md +152 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/sources.yaml +142 -0
- package/template-vp-react-shadcn/.env +1 -0
- package/template-vp-react-shadcn/.oxfmtrc.jsonc +8 -0
- package/template-vp-react-shadcn/.oxlintrc.jsonc +3 -0
- package/template-vp-react-shadcn/.vite-hooks/commit-msg +1 -0
- package/template-vp-react-shadcn/.vite-hooks/pre-commit +1 -0
- package/template-vp-react-shadcn/.vscode/extensions.json +3 -0
- package/template-vp-react-shadcn/.vscode/settings.json +12 -0
- package/template-vp-react-shadcn/agents.md +44 -0
- package/template-vp-react-shadcn/commitlint.config.js +1 -0
- package/template-vp-react-shadcn/components.json +25 -0
- package/template-vp-react-shadcn/index.html +13 -0
- package/template-vp-react-shadcn/package.json +56 -0
- package/template-vp-react-shadcn/public/favicon.svg +1 -0
- package/template-vp-react-shadcn/public/icons.svg +24 -0
- package/template-vp-react-shadcn/skills-lock.json +11 -0
- package/template-vp-react-shadcn/src/App.tsx +24 -0
- package/template-vp-react-shadcn/src/api/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/assets/hero.png +0 -0
- package/template-vp-react-shadcn/src/assets/react.svg +1 -0
- package/template-vp-react-shadcn/src/assets/vite.svg +1 -0
- package/template-vp-react-shadcn/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-react-shadcn/src/components/Player/VideoJS/index.tsx +163 -0
- package/template-vp-react-shadcn/src/components/Player/index.ts +7 -0
- package/template-vp-react-shadcn/src/components/ui/button.tsx +67 -0
- package/template-vp-react-shadcn/src/components/ui/sonner.tsx +43 -0
- package/template-vp-react-shadcn/src/components/ui/spinner.tsx +17 -0
- package/template-vp-react-shadcn/src/hooks/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/lib/utils.ts +6 -0
- package/template-vp-react-shadcn/src/main.tsx +5 -0
- package/template-vp-react-shadcn/src/pages/home/index.tsx +96 -0
- package/template-vp-react-shadcn/src/router/index.tsx +25 -0
- package/template-vp-react-shadcn/src/router/modules/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/store/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/styles/index.css +16 -0
- package/template-vp-react-shadcn/src/styles/shadcn.css +127 -0
- package/template-vp-react-shadcn/src/types/auto-imports.d.ts +58 -0
- package/template-vp-react-shadcn/src/utils/env/index.tsx +6 -0
- package/template-vp-react-shadcn/src/utils/request/alova-core/index.ts +425 -0
- package/template-vp-react-shadcn/src/utils/request/alova-core/utils.ts +39 -0
- package/template-vp-react-shadcn/src/utils/request/index.ts +48 -0
- package/template-vp-react-shadcn/src/utils/request/readme.md +176 -0
- package/template-vp-react-shadcn/tsconfig.json +32 -0
- package/template-vp-react-shadcn/vite.config.ts +35 -0
- package/template-vue-vp-eslint/.env +6 -0
- package/template-vue-vp-eslint/.env.development +2 -0
- package/template-vue-vp-eslint/.env.production +2 -0
- package/template-vue-vp-eslint/.vscode/extensions.json +3 -0
- package/template-vue-vp-eslint/AGENTS.md +16 -0
- package/template-vue-vp-eslint/README.md +98 -0
- package/template-vue-vp-eslint/commitlint.config.js +1 -0
- package/template-vue-vp-eslint/eslint.config.js +13 -0
- package/template-vue-vp-eslint/index.html +13 -0
- package/template-vue-vp-eslint/lefthook.yml +11 -0
- package/template-vue-vp-eslint/package.json +63 -0
- package/template-vue-vp-eslint/pnpm-workspace.yaml +3 -0
- package/template-vue-vp-eslint/public/vite.svg +1 -0
- package/template-vue-vp-eslint/src/App.vue +7 -0
- package/template-vue-vp-eslint/src/api/index.ts +12 -0
- package/template-vue-vp-eslint/src/assets/icon/home.svg +3 -0
- package/template-vue-vp-eslint/src/assets/icon/logo.svg +1 -0
- package/template-vue-vp-eslint/src/assets/image/.gitkeep +0 -0
- package/template-vue-vp-eslint/src/components/Icon/svg-icon.vue +29 -0
- package/template-vue-vp-eslint/src/hooks/chart/lib.ts +57 -0
- package/template-vue-vp-eslint/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vue-vp-eslint/src/layout/default/header/index.vue +30 -0
- package/template-vue-vp-eslint/src/layout/default/index.vue +138 -0
- package/template-vue-vp-eslint/src/main.ts +16 -0
- package/template-vue-vp-eslint/src/router/guard/index.ts +7 -0
- package/template-vue-vp-eslint/src/router/guard/permissionGuard.ts +13 -0
- package/template-vue-vp-eslint/src/router/index.ts +18 -0
- package/template-vue-vp-eslint/src/router/interface.ts +9 -0
- package/template-vue-vp-eslint/src/router/modules/index.ts +33 -0
- package/template-vue-vp-eslint/src/store/index.ts +11 -0
- package/template-vue-vp-eslint/src/store/modules/user.ts +17 -0
- package/template-vue-vp-eslint/src/styles/font.scss +0 -0
- package/template-vue-vp-eslint/src/styles/index.scss +29 -0
- package/template-vue-vp-eslint/src/styles/variables.scss +3 -0
- package/template-vue-vp-eslint/src/types/vite-env.d.ts +15 -0
- package/template-vue-vp-eslint/src/utils/env.ts +11 -0
- package/template-vue-vp-eslint/src/utils/request/core/index.ts +425 -0
- package/template-vue-vp-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-vue-vp-eslint/src/utils/request/index.ts +44 -0
- package/template-vue-vp-eslint/src/views/example/echart/config.ts +1794 -0
- package/template-vue-vp-eslint/src/views/example/echart/index.vue +20 -0
- package/template-vue-vp-eslint/src/views/example/tree-chart.vue +16 -0
- package/template-vue-vp-eslint/src/views/home/index.vue +16 -0
- package/template-vue-vp-eslint/src/views/login/index.vue +9 -0
- package/template-vue-vp-eslint/tsconfig.json +29 -0
- package/template-vue-vp-eslint/uno.config.ts +17 -0
- package/template-vue-vp-eslint/vite.config.ts +58 -0
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
"noConsole": {
|
|
44
|
+
"level": "warn",
|
|
45
|
+
"options": {
|
|
46
|
+
"allow": ["warn", "error"]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"noDebugger": "warn",
|
|
50
|
+
"noGlobalIsNan": "off",
|
|
51
|
+
"noGlobalIsFinite": "off",
|
|
52
|
+
"noExplicitAny": "off",
|
|
53
|
+
"noArrayIndexKey": "off",
|
|
54
|
+
"noConfusingVoidType": "off",
|
|
55
|
+
"noThenProperty": "off",
|
|
56
|
+
"noTemplateCurlyInString": "off"
|
|
57
|
+
},
|
|
58
|
+
"performance": {
|
|
59
|
+
"noDelete": "off",
|
|
60
|
+
"noAccumulatingSpread": "off",
|
|
61
|
+
"noDynamicNamespaceImportAccess": "off"
|
|
62
|
+
},
|
|
63
|
+
"a11y": {
|
|
64
|
+
"noAriaHiddenOnFocusable": "off",
|
|
65
|
+
"noLabelWithoutControl": "off",
|
|
66
|
+
"useFocusableInteractive": "off",
|
|
67
|
+
"useKeyWithClickEvents": "off",
|
|
68
|
+
"useSemanticElements": "off",
|
|
69
|
+
"noStaticElementInteractions": "off",
|
|
70
|
+
"useAriaPropsSupportedByRole": "off",
|
|
71
|
+
"useAriaPropsForRole": "off",
|
|
72
|
+
"useValidAnchor": "off",
|
|
73
|
+
"useMediaCaption": "off"
|
|
74
|
+
},
|
|
75
|
+
"nursery": {
|
|
76
|
+
"useSortedClasses": {
|
|
77
|
+
"level": "warn",
|
|
78
|
+
"fix": "safe"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"css": {
|
|
84
|
+
"formatter": {
|
|
85
|
+
"quoteStyle": "single"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"javascript": {
|
|
89
|
+
"jsxRuntime": "reactClassic",
|
|
90
|
+
"formatter": {
|
|
91
|
+
"quoteStyle": "single",
|
|
92
|
+
"semicolons": "asNeeded"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"assist": {
|
|
96
|
+
"enabled": true,
|
|
97
|
+
"actions": {
|
|
98
|
+
"source": {
|
|
99
|
+
"organizeImports": {
|
|
100
|
+
"level": "on",
|
|
101
|
+
"options": {
|
|
102
|
+
"identifierOrder": "natural",
|
|
103
|
+
"groups": [
|
|
104
|
+
[":NODE:", ":BUN:"],
|
|
105
|
+
":BLANK_LINE:",
|
|
106
|
+
["react", "react-dom/**", "react-dom", "react-router", "react-router-dom"],
|
|
107
|
+
["vue", "vue-router"],
|
|
108
|
+
":BLANK_LINE:",
|
|
109
|
+
["@/**", "**"]
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { extends: ['@commitlint/config-conventional'] }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
pre-commit:
|
|
2
|
+
commands:
|
|
3
|
+
check:
|
|
4
|
+
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
|
|
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}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-rsbuild-biomejs",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "rsbuild dev --env-mode development",
|
|
7
|
+
"dev:prod": "rsbuild dev --env-mode production",
|
|
8
|
+
"build": "rsbuild build",
|
|
9
|
+
"check": "biome check --write",
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"preview": "rsbuild preview",
|
|
12
|
+
"reinstall": "rimraf pnpm-lock.yaml && rimraf node_modules && pnpm install"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@alova/adapter-axios": "^2.0.18",
|
|
16
|
+
"@ant-design/icons": "~6.2.5",
|
|
17
|
+
"ahooks": "^3.9.7",
|
|
18
|
+
"alova": "^3.5.1",
|
|
19
|
+
"antd": "^6.4.3",
|
|
20
|
+
"dayjs": "^1.11.21",
|
|
21
|
+
"react": "^19.2.7",
|
|
22
|
+
"react-dom": "^19.2.7",
|
|
23
|
+
"react-router": "^7.17.0",
|
|
24
|
+
"zustand": "^5.0.14"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "^2.4.16",
|
|
28
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
29
|
+
"@rsbuild/core": "^2.0.11",
|
|
30
|
+
"@rsbuild/plugin-react": "^2.0.1",
|
|
31
|
+
"@rsbuild/plugin-sass": "^1.5.3",
|
|
32
|
+
"@rsbuild/plugin-svgr": "^2.0.3",
|
|
33
|
+
"@types/react": "^19.2.17",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
|
+
"@unocss/postcss": "^66.7.0",
|
|
36
|
+
"lefthook": "^2.1.9",
|
|
37
|
+
"prettier": "^3.8.3",
|
|
38
|
+
"typescript": "^6.0.3",
|
|
39
|
+
"unocss": "^66.7.0",
|
|
40
|
+
"unplugin-auto-import": "^21.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineConfig } from '@rsbuild/core'
|
|
2
|
+
import { pluginReact } from '@rsbuild/plugin-react'
|
|
3
|
+
import { pluginSass } from '@rsbuild/plugin-sass'
|
|
4
|
+
import { pluginSvgr } from '@rsbuild/plugin-svgr'
|
|
5
|
+
import UnoCSS from '@unocss/postcss'
|
|
6
|
+
import AutoImport from 'unplugin-auto-import/rspack'
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
html: {
|
|
10
|
+
template: './index.html',
|
|
11
|
+
},
|
|
12
|
+
resolve: {
|
|
13
|
+
alias: {
|
|
14
|
+
'@': './src',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
server: {
|
|
18
|
+
port: Number(process.env.PUBLIC_PORT),
|
|
19
|
+
},
|
|
20
|
+
plugins: [
|
|
21
|
+
pluginReact(),
|
|
22
|
+
pluginSass({
|
|
23
|
+
sassLoaderOptions: {
|
|
24
|
+
// additionalData: `@import "@/styles/variables.scss";`,
|
|
25
|
+
},
|
|
26
|
+
}),
|
|
27
|
+
pluginSvgr(),
|
|
28
|
+
],
|
|
29
|
+
tools: {
|
|
30
|
+
rspack: {
|
|
31
|
+
plugins: [
|
|
32
|
+
AutoImport({
|
|
33
|
+
imports: ['react', 'react-router'],
|
|
34
|
+
dts: './src/types/auto-import.d.ts',
|
|
35
|
+
}),
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
postcss: {
|
|
39
|
+
postcssOptions: {
|
|
40
|
+
plugins: [UnoCSS()],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="32" height="32" rx="8" fill="white" fill-opacity="0.96"/>
|
|
3
|
+
<path d="M19.0579 9.09827L15.8082 11.0706L12.9421 9.09827L6 13.3109V21.7368L12.9421 25.9498L16.1918 24.2105L19.0579 25.9498L26 21.7368V13.3109L19.0579 9.09827ZM12.9421 24.705L7.02568 21.1148V13.9336L12.9421 10.3433L14.7822 11.6929L12.1157 13.3112V21.7371L15.1661 23.5882L12.9421 24.705ZM13.1417 20.0549H18.8586V21.3475L16.1918 22.9658L13.1417 21.1148V20.0549ZM13.1417 18.9765V16.5097H18.8586V18.9765H13.1417ZM18.8586 15.4312H13.1417V13.9336L15.8082 12.3153L18.8586 14.1663V15.4312ZM24.9743 21.1148L19.0579 24.705L17.2178 23.5882L19.8846 21.9699V13.544L16.8342 11.6929L19.0582 10.3433L24.9746 13.9336L24.9743 21.1148Z" fill="#146AE1"/>
|
|
4
|
+
<path d="M14.573 7.86376L13.3172 5.51634C13.3835 5.37271 13.4218 5.21177 13.4218 5.04137C13.4218 4.43853 12.9568 3.94971 12.3832 3.94971C11.8097 3.94971 11.3447 4.43853 11.3447 5.04137C11.3447 5.64421 11.7792 6.0987 12.326 6.1302L13.5704 8.45652C13.6759 8.65401 13.8713 8.76487 14.0723 8.76487C14.1676 8.76487 14.2647 8.73999 14.3537 8.68708C14.6306 8.5233 14.7289 8.15479 14.573 7.86376Z" fill="#FDC23A"/>
|
|
5
|
+
<path d="M17.4268 7.86376L18.6826 5.51634C18.6164 5.37271 18.5781 5.21177 18.5781 5.04137C18.5781 4.43853 19.0431 3.94971 19.6169 3.94971C20.1904 3.94971 20.6555 4.43853 20.6555 5.04137C20.6555 5.62405 20.221 6.0987 19.6742 6.1302L18.4297 8.45652C18.3243 8.65401 18.1289 8.76487 17.9278 8.76487C17.8325 8.76487 17.7355 8.73999 17.6465 8.68708C17.3696 8.5233 17.2713 8.15479 17.4271 7.86376H17.4268Z" fill="#FDC23A"/>
|
|
6
|
+
</svg>
|
|
7
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@rsbuild/core/types" />
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { Suspense } from 'react'
|
|
2
|
+
import ReactDOM from 'react-dom/client'
|
|
3
|
+
|
|
4
|
+
import App from './App'
|
|
5
|
+
import Loading from './components/Loading/PageLoading'
|
|
6
|
+
import '@/styles/index.scss'
|
|
7
|
+
|
|
8
|
+
const rootEl = document.getElementById('root')
|
|
9
|
+
if (rootEl) {
|
|
10
|
+
const root = ReactDOM.createRoot(rootEl)
|
|
11
|
+
root.render(
|
|
12
|
+
<React.StrictMode>
|
|
13
|
+
<Suspense fallback={<Loading />}>
|
|
14
|
+
<App />
|
|
15
|
+
</Suspense>
|
|
16
|
+
</React.StrictMode>,
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createBrowserRouter, Navigate, type RouteObject } from 'react-router'
|
|
2
|
+
import Layout from '@/layout/default'
|
|
3
|
+
import { envVariables } from '@/utils/env'
|
|
4
|
+
export const lazyLoad = (path: string) => {
|
|
5
|
+
const Module = lazy(() => import(`@/pages/${path}.tsx`))
|
|
6
|
+
return <Module />
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const menuRoutes: RouteObject[] = [
|
|
10
|
+
{
|
|
11
|
+
path: 'home',
|
|
12
|
+
id: 'home',
|
|
13
|
+
handle: { title: '首页' },
|
|
14
|
+
element: lazyLoad('home/index'),
|
|
15
|
+
},
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
const routes: RouteObject[] = [
|
|
19
|
+
{
|
|
20
|
+
path: '/',
|
|
21
|
+
id: 'layout',
|
|
22
|
+
element: <Layout />,
|
|
23
|
+
children: [
|
|
24
|
+
{
|
|
25
|
+
path: '',
|
|
26
|
+
id: 'index',
|
|
27
|
+
element: <Navigate to={'/home'} />,
|
|
28
|
+
},
|
|
29
|
+
...menuRoutes,
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
export const router = createBrowserRouter(routes, {
|
|
35
|
+
basename: envVariables.PUBLIC_PATH,
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
export default router
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { create } from 'zustand'
|
|
2
|
+
|
|
3
|
+
interface searchFormState {
|
|
4
|
+
token?: string
|
|
5
|
+
setToken: (token?: string) => void
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const useUserStore = create<searchFormState>((set) => ({
|
|
9
|
+
token: undefined,
|
|
10
|
+
setToken: (token) => set(() => ({ token })),
|
|
11
|
+
}))
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@unocss preflights;
|
|
2
|
+
@unocss default;
|
|
3
|
+
@import "./variables.scss";
|
|
4
|
+
@import "./fonts.scss";
|
|
5
|
+
|
|
6
|
+
html,
|
|
7
|
+
body,
|
|
8
|
+
#root {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
*,
|
|
14
|
+
*::before,
|
|
15
|
+
*::after {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// noinspection JSUnusedGlobalSymbols
|
|
5
|
+
// Generated by unplugin-auto-import
|
|
6
|
+
// biome-ignore lint: disable
|
|
7
|
+
export {}
|
|
8
|
+
declare global {
|
|
9
|
+
const Activity: typeof import('react').Activity
|
|
10
|
+
const Fragment: typeof import('react').Fragment
|
|
11
|
+
const Suspense: typeof import('react').Suspense
|
|
12
|
+
const cache: typeof import('react').cache
|
|
13
|
+
const cacheSignal: typeof import('react').cacheSignal
|
|
14
|
+
const createContext: typeof import('react').createContext
|
|
15
|
+
const createRef: typeof import('react').createRef
|
|
16
|
+
const forwardRef: typeof import('react').forwardRef
|
|
17
|
+
const lazy: typeof import('react').lazy
|
|
18
|
+
const memo: typeof import('react').memo
|
|
19
|
+
const startTransition: typeof import('react').startTransition
|
|
20
|
+
const use: typeof import('react').use
|
|
21
|
+
const useActionState: typeof import('react').useActionState
|
|
22
|
+
const useCallback: typeof import('react').useCallback
|
|
23
|
+
const useContext: typeof import('react').useContext
|
|
24
|
+
const useDebugValue: typeof import('react').useDebugValue
|
|
25
|
+
const useDeferredValue: typeof import('react').useDeferredValue
|
|
26
|
+
const useEffect: typeof import('react').useEffect
|
|
27
|
+
const useEffectEvent: typeof import('react').useEffectEvent
|
|
28
|
+
const useHref: typeof import('react-router').useHref
|
|
29
|
+
const useId: typeof import('react').useId
|
|
30
|
+
const useImperativeHandle: typeof import('react').useImperativeHandle
|
|
31
|
+
const useInRouterContext: typeof import('react-router').useInRouterContext
|
|
32
|
+
const useInsertionEffect: typeof import('react').useInsertionEffect
|
|
33
|
+
const useLayoutEffect: typeof import('react').useLayoutEffect
|
|
34
|
+
const useLocation: typeof import('react-router').useLocation
|
|
35
|
+
const useMemo: typeof import('react').useMemo
|
|
36
|
+
const useNavigate: typeof import('react-router').useNavigate
|
|
37
|
+
const useNavigationType: typeof import('react-router').useNavigationType
|
|
38
|
+
const useOptimistic: typeof import('react').useOptimistic
|
|
39
|
+
const useOutlet: typeof import('react-router').useOutlet
|
|
40
|
+
const useOutletContext: typeof import('react-router').useOutletContext
|
|
41
|
+
const useParams: typeof import('react-router').useParams
|
|
42
|
+
const useReducer: typeof import('react').useReducer
|
|
43
|
+
const useRef: typeof import('react').useRef
|
|
44
|
+
const useResolvedPath: typeof import('react-router').useResolvedPath
|
|
45
|
+
const useRoutes: typeof import('react-router').useRoutes
|
|
46
|
+
const useState: typeof import('react').useState
|
|
47
|
+
const useSyncExternalStore: typeof import('react').useSyncExternalStore
|
|
48
|
+
const useTransition: typeof import('react').useTransition
|
|
49
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通过一个文件导出所有的环境变量这样方便统一修改
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export const envVariables = {
|
|
6
|
+
PUBLIC_PORT: import.meta.env.PUBLIC_PORT,
|
|
7
|
+
PUBLIC_PATH: import.meta.env.PUBLIC_PATH,
|
|
8
|
+
PUBLIC_APP_NAME: import.meta.env.PUBLIC_APP_NAME,
|
|
9
|
+
PUBLIC_API_AFFIX: import.meta.env.PUBLIC_API_AFFIX,
|
|
10
|
+
}
|