create-bubbles 0.1.20 → 0.1.23

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.
Files changed (272) hide show
  1. package/dist/{index.js → index.mjs} +14 -7
  2. package/package.json +5 -4
  3. package/template-nextjs-vinext-eslint/vite.config.ts +1 -1
  4. 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
  5. package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +1 -0
  6. package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +2 -1
  7. package/template-vp-monorepo-react-nestjs/.vscode/settings.json +26 -0
  8. package/template-vp-monorepo-react-nestjs/AGENTS.md +16 -0
  9. package/template-vp-monorepo-react-nestjs/README.md +2 -2
  10. package/template-vp-monorepo-react-nestjs/apps/server/.env.development +61 -0
  11. package/template-vp-monorepo-react-nestjs/apps/server/.env.production +20 -0
  12. package/template-vp-monorepo-react-nestjs/apps/server/README.md +3 -0
  13. package/template-vp-monorepo-react-nestjs/apps/server/drizzle.config.ts +15 -0
  14. package/template-vp-monorepo-react-nestjs/apps/server/nest-cli.json +8 -0
  15. package/template-vp-monorepo-react-nestjs/apps/server/package.json +57 -0
  16. package/template-vp-monorepo-react-nestjs/apps/server/src/app.controller.ts +12 -0
  17. package/template-vp-monorepo-react-nestjs/apps/server/src/app.module.ts +58 -0
  18. package/template-vp-monorepo-react-nestjs/apps/server/src/app.service.ts +8 -0
  19. package/template-vp-monorepo-react-nestjs/apps/server/src/common/constants/decorator.ts +2 -0
  20. package/template-vp-monorepo-react-nestjs/apps/server/src/common/constants/response.ts +15 -0
  21. package/template-vp-monorepo-react-nestjs/apps/server/src/common/decorators/bypass.ts +12 -0
  22. package/template-vp-monorepo-react-nestjs/apps/server/src/common/interceptors/transform.ts +34 -0
  23. package/template-vp-monorepo-react-nestjs/apps/server/src/common/model/response.ts +23 -0
  24. package/template-vp-monorepo-react-nestjs/apps/server/src/config/app.config.ts +6 -0
  25. package/template-vp-monorepo-react-nestjs/apps/server/src/config/auth.config.ts +64 -0
  26. package/template-vp-monorepo-react-nestjs/apps/server/src/config/database.config.ts +10 -0
  27. package/template-vp-monorepo-react-nestjs/apps/server/src/config/index.ts +5 -0
  28. package/template-vp-monorepo-react-nestjs/apps/server/src/config/llm.config.ts +7 -0
  29. package/template-vp-monorepo-react-nestjs/apps/server/src/config/redis.config.ts +18 -0
  30. package/template-vp-monorepo-react-nestjs/apps/server/src/database/db.module.ts +32 -0
  31. package/template-vp-monorepo-react-nestjs/apps/server/src/database/schema.ts +73 -0
  32. package/template-vp-monorepo-react-nestjs/apps/server/src/main.ts +34 -0
  33. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.controller.ts +28 -0
  34. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.module.ts +9 -0
  35. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/db.service.ts +22 -0
  36. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/db/dto/create-user.dto.ts +27 -0
  37. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/dto/redis-quary.dto.ts +18 -0
  38. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.controller.ts +31 -0
  39. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.module.ts +9 -0
  40. package/template-vp-monorepo-react-nestjs/apps/server/src/modules/test/redis/redis.service.ts +37 -0
  41. package/template-vp-monorepo-react-nestjs/apps/server/src/utils/server-address.ts +33 -0
  42. package/template-vp-monorepo-react-nestjs/apps/server/tsconfig.build.json +4 -0
  43. package/template-vp-monorepo-react-nestjs/apps/server/tsconfig.json +28 -0
  44. package/template-vp-monorepo-react-nestjs/apps/web/.env +1 -0
  45. package/template-vp-monorepo-react-nestjs/apps/web/.env.dev +1 -0
  46. package/template-vp-monorepo-react-nestjs/apps/web/.env.prod +1 -0
  47. package/template-vp-monorepo-react-nestjs/apps/web/package.json +21 -25
  48. package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +5 -4
  49. package/template-vp-monorepo-react-nestjs/apps/web/src/locales/en_US.json +4 -0
  50. package/template-vp-monorepo-react-nestjs/apps/web/src/locales/zh_CN.json +4 -0
  51. package/template-vp-monorepo-react-nestjs/apps/web/src/main.tsx +4 -4
  52. package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +38 -8
  53. package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +15 -15
  54. package/template-vp-monorepo-react-nestjs/apps/web/src/utils/env/index.ts +6 -0
  55. package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/core/index.ts +420 -0
  56. package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/core/utils.ts +39 -0
  57. package/template-vp-monorepo-react-nestjs/apps/web/src/utils/request/index.ts +61 -0
  58. package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +10 -14
  59. package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +15 -2
  60. package/template-vp-monorepo-react-nestjs/apps/web-vue/.env.production +2 -0
  61. package/template-vp-monorepo-react-nestjs/apps/web-vue/.vscode/extensions.json +3 -0
  62. package/template-vp-monorepo-react-nestjs/apps/web-vue/AGENTS.md +16 -0
  63. package/template-vp-monorepo-react-nestjs/apps/web-vue/README.md +98 -0
  64. package/template-vp-monorepo-react-nestjs/apps/web-vue/commitlint.config.js +1 -0
  65. package/template-vp-monorepo-react-nestjs/apps/web-vue/eslint.config.js +13 -0
  66. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/lefthook.yml +1 -1
  67. package/template-vp-monorepo-react-nestjs/apps/web-vue/package.json +67 -0
  68. package/template-vp-monorepo-react-nestjs/apps/web-vue/pnpm-workspace.yaml +16 -0
  69. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/App.vue +12 -0
  70. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/api/index.ts +12 -0
  71. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/assets/image/.gitkeep +0 -0
  72. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/components/Icon/svg-icon.vue +3 -3
  73. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/hooks/chart/lib.ts +6 -6
  74. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/hooks/chart/useEcharts.ts +65 -0
  75. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/i18n/instance.ts +8 -0
  76. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/layout/default/header/index.vue +30 -0
  77. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/layout/default/index.vue +138 -0
  78. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/locales/en_US.json +4 -0
  79. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/locales/zh_CN.json +4 -0
  80. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/main.ts +0 -3
  81. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/guard/index.ts +7 -0
  82. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/guard/permissionGuard.ts +13 -0
  83. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/router/index.ts +7 -7
  84. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/router/interface.ts +9 -0
  85. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/router/modules/index.ts +1 -4
  86. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/store/index.ts +11 -0
  87. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/store/modules/user.ts +17 -0
  88. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/styles/font.scss +0 -0
  89. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/styles/index.scss +3 -3
  90. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/types/components.d.ts +8 -0
  91. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/types/vite-env.d.ts +15 -0
  92. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/utils/env.ts +1 -1
  93. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/utils/request/index.ts +5 -3
  94. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/views/example/echart/config.ts +687 -687
  95. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/example/echart/index.vue +20 -0
  96. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/example/tree-chart.vue +16 -0
  97. package/template-vp-monorepo-react-nestjs/apps/web-vue/src/views/home/index.vue +27 -0
  98. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/tsconfig.json +2 -9
  99. package/template-vp-monorepo-react-nestjs/apps/web-vue/uno.config.ts +17 -0
  100. package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/vite.config.ts +4 -6
  101. package/template-vp-monorepo-react-nestjs/commitlint.config.js +0 -0
  102. package/template-vp-monorepo-react-nestjs/docker-compose.yml +41 -0
  103. package/template-vp-monorepo-react-nestjs/mise.toml +3 -0
  104. package/template-vp-monorepo-react-nestjs/package.json +16 -11
  105. package/template-vp-monorepo-react-nestjs/packages/i18n/core/package.json +20 -0
  106. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/format.ts +9 -0
  107. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/i18n.ts +73 -0
  108. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/index.ts +24 -0
  109. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/storage.ts +47 -0
  110. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/store.ts +48 -0
  111. package/template-vp-monorepo-react-nestjs/packages/i18n/core/src/types.ts +36 -0
  112. package/template-vp-monorepo-react-nestjs/packages/i18n/core/tsconfig.json +15 -0
  113. package/template-vp-monorepo-react-nestjs/packages/i18n/core/vite.config.ts +13 -0
  114. package/template-vp-monorepo-react-nestjs/packages/i18n/react/package.json +28 -0
  115. package/template-vp-monorepo-react-nestjs/packages/i18n/react/src/index.tsx +26 -0
  116. package/template-vp-monorepo-react-nestjs/packages/i18n/react/src/use-store.ts +14 -0
  117. package/template-vp-monorepo-react-nestjs/packages/i18n/react/tsconfig.json +16 -0
  118. package/template-vp-monorepo-react-nestjs/packages/i18n/react/vite.config.ts +16 -0
  119. package/template-vp-monorepo-react-nestjs/packages/i18n/vue/package.json +27 -0
  120. package/template-vp-monorepo-react-nestjs/packages/i18n/vue/src/index.ts +52 -0
  121. package/template-vp-monorepo-react-nestjs/packages/i18n/vue/src/use-store.ts +19 -0
  122. package/template-vp-monorepo-react-nestjs/packages/i18n/vue/tsconfig.json +15 -0
  123. package/template-vp-monorepo-react-nestjs/packages/i18n/vue/vite.config.ts +16 -0
  124. package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +97 -9
  125. package/template-vp-monorepo-react-nestjs/vite.config.ts +16 -4
  126. package/template-vp-vue-eslint-vapor/.env +6 -0
  127. package/template-vp-vue-eslint-vapor/.env.development +2 -0
  128. package/template-vp-vue-eslint-vapor/.env.production +2 -0
  129. package/template-vp-vue-eslint-vapor/.vite-hooks/commit-msg +1 -0
  130. package/template-vp-vue-eslint-vapor/.vite-hooks/pre-commit +1 -0
  131. package/template-vp-vue-eslint-vapor/.vscode/extensions.json +3 -0
  132. package/template-vp-vue-eslint-vapor/AGENTS.md +16 -0
  133. package/template-vp-vue-eslint-vapor/README.md +93 -0
  134. package/template-vp-vue-eslint-vapor/commitlint.config.js +1 -0
  135. package/template-vp-vue-eslint-vapor/eslint.config.js +13 -0
  136. package/template-vp-vue-eslint-vapor/index.html +13 -0
  137. package/template-vp-vue-eslint-vapor/package.json +64 -0
  138. package/template-vp-vue-eslint-vapor/pnpm-workspace.yaml +2 -0
  139. package/template-vp-vue-eslint-vapor/public/vite.svg +1 -0
  140. package/template-vp-vue-eslint-vapor/src/App.vue +7 -0
  141. package/template-vp-vue-eslint-vapor/src/api/index.ts +12 -0
  142. package/template-vp-vue-eslint-vapor/src/assets/icon/home.svg +3 -0
  143. package/template-vp-vue-eslint-vapor/src/assets/icon/logo.svg +1 -0
  144. package/template-vp-vue-eslint-vapor/src/assets/image/.gitkeep +0 -0
  145. package/template-vp-vue-eslint-vapor/src/components/Icon/svg-icon.vue +29 -0
  146. package/template-vp-vue-eslint-vapor/src/hooks/chart/lib.ts +57 -0
  147. package/template-vp-vue-eslint-vapor/src/hooks/chart/useEcharts.ts +65 -0
  148. package/template-vp-vue-eslint-vapor/src/layout/default/header/index.vue +57 -0
  149. package/template-vp-vue-eslint-vapor/src/layout/default/index.vue +138 -0
  150. package/template-vp-vue-eslint-vapor/src/main.ts +19 -0
  151. package/template-vp-vue-eslint-vapor/src/router/guard/index.ts +7 -0
  152. package/{template-vue-vite-eslint → template-vp-vue-eslint-vapor}/src/router/guard/permissionGuard.ts +3 -3
  153. package/template-vp-vue-eslint-vapor/src/router/index.ts +18 -0
  154. package/template-vp-vue-eslint-vapor/src/router/interface.ts +9 -0
  155. package/template-vp-vue-eslint-vapor/src/router/modules/index.ts +33 -0
  156. package/template-vp-vue-eslint-vapor/src/store/index.ts +11 -0
  157. package/template-vp-vue-eslint-vapor/src/store/modules/user.ts +17 -0
  158. package/template-vp-vue-eslint-vapor/src/styles/font.scss +0 -0
  159. package/template-vp-vue-eslint-vapor/src/styles/index.scss +29 -0
  160. package/template-vp-vue-eslint-vapor/src/styles/variables.scss +3 -0
  161. package/template-vp-vue-eslint-vapor/src/types/vite-env.d.ts +15 -0
  162. package/template-vp-vue-eslint-vapor/src/utils/env.ts +11 -0
  163. package/template-vp-vue-eslint-vapor/src/utils/request/core/index.ts +425 -0
  164. package/template-vp-vue-eslint-vapor/src/utils/request/core/utils.ts +39 -0
  165. package/template-vp-vue-eslint-vapor/src/utils/request/index.ts +44 -0
  166. package/template-vp-vue-eslint-vapor/src/views/example/echart/config.ts +1794 -0
  167. package/template-vp-vue-eslint-vapor/src/views/example/echart/index.vue +20 -0
  168. package/template-vp-vue-eslint-vapor/src/views/example/tree-chart.vue +16 -0
  169. package/template-vp-vue-eslint-vapor/src/views/home/index.vue +16 -0
  170. package/template-vp-vue-eslint-vapor/src/views/login/index.vue +9 -0
  171. package/template-vp-vue-eslint-vapor/tsconfig.json +32 -0
  172. package/template-vp-vue-eslint-vapor/tsconfig.tsbuildinfo +1 -0
  173. package/template-vp-vue-eslint-vapor/uno.config.ts +17 -0
  174. package/template-vp-vue-eslint-vapor/vite.config.ts +66 -0
  175. package/template-vue-vp-eslint/.env +6 -0
  176. package/template-vue-vp-eslint/.env.development +2 -0
  177. package/template-vue-vp-eslint/.env.production +2 -0
  178. package/template-vue-vp-eslint/.vscode/extensions.json +3 -0
  179. package/template-vue-vp-eslint/AGENTS.md +16 -0
  180. package/template-vue-vp-eslint/README.md +98 -0
  181. package/template-vue-vp-eslint/commitlint.config.js +1 -0
  182. package/template-vue-vp-eslint/eslint.config.js +13 -0
  183. package/template-vue-vp-eslint/index.html +13 -0
  184. package/template-vue-vp-eslint/lefthook.yml +11 -0
  185. package/template-vue-vp-eslint/package.json +63 -0
  186. package/template-vue-vp-eslint/pnpm-workspace.yaml +3 -0
  187. package/template-vue-vp-eslint/public/vite.svg +1 -0
  188. package/template-vue-vp-eslint/src/App.vue +7 -0
  189. package/template-vue-vp-eslint/src/api/index.ts +12 -0
  190. package/template-vue-vp-eslint/src/assets/icon/home.svg +3 -0
  191. package/template-vue-vp-eslint/src/assets/icon/logo.svg +1 -0
  192. package/template-vue-vp-eslint/src/assets/image/.gitkeep +0 -0
  193. package/template-vue-vp-eslint/src/components/Icon/svg-icon.vue +29 -0
  194. package/template-vue-vp-eslint/src/hooks/chart/lib.ts +57 -0
  195. package/template-vue-vp-eslint/src/hooks/chart/useEcharts.ts +65 -0
  196. package/template-vue-vp-eslint/src/layout/default/header/index.vue +30 -0
  197. package/template-vue-vp-eslint/src/layout/default/index.vue +138 -0
  198. package/template-vue-vp-eslint/src/main.ts +16 -0
  199. package/template-vue-vp-eslint/src/router/guard/index.ts +7 -0
  200. package/template-vue-vp-eslint/src/router/guard/permissionGuard.ts +13 -0
  201. package/template-vue-vp-eslint/src/router/index.ts +18 -0
  202. package/template-vue-vp-eslint/src/router/interface.ts +9 -0
  203. package/template-vue-vp-eslint/src/router/modules/index.ts +33 -0
  204. package/template-vue-vp-eslint/src/store/index.ts +11 -0
  205. package/template-vue-vp-eslint/src/store/modules/user.ts +17 -0
  206. package/template-vue-vp-eslint/src/styles/font.scss +0 -0
  207. package/template-vue-vp-eslint/src/styles/index.scss +29 -0
  208. package/template-vue-vp-eslint/src/styles/variables.scss +3 -0
  209. package/template-vue-vp-eslint/src/types/vite-env.d.ts +15 -0
  210. package/template-vue-vp-eslint/src/utils/env.ts +11 -0
  211. package/template-vue-vp-eslint/src/utils/request/core/index.ts +425 -0
  212. package/template-vue-vp-eslint/src/utils/request/core/utils.ts +39 -0
  213. package/template-vue-vp-eslint/src/utils/request/index.ts +44 -0
  214. package/template-vue-vp-eslint/src/views/example/echart/config.ts +1794 -0
  215. package/template-vue-vp-eslint/src/views/example/echart/index.vue +20 -0
  216. package/template-vue-vp-eslint/src/views/example/tree-chart.vue +16 -0
  217. package/template-vue-vp-eslint/src/views/home/index.vue +16 -0
  218. package/template-vue-vp-eslint/src/views/login/index.vue +9 -0
  219. package/template-vue-vp-eslint/tsconfig.json +29 -0
  220. package/template-vue-vp-eslint/uno.config.ts +17 -0
  221. package/template-vue-vp-eslint/vite.config.ts +58 -0
  222. package/template-vp-monorepo-react-nestjs/.oxfmtrc.jsonc +0 -8
  223. package/template-vp-monorepo-react-nestjs/.oxlintrc.jsonc +0 -3
  224. package/template-vp-monorepo-react-nestjs/.specs//351/234/200/346/261/202.md +0 -5
  225. package/template-vp-monorepo-react-nestjs/apps/service/.oxlintrc.jsonc +0 -3
  226. package/template-vp-monorepo-react-nestjs/apps/web/.oxlintrc.jsonc +0 -4
  227. package/template-vp-monorepo-react-nestjs/packages/utils/README.md +0 -23
  228. package/template-vp-monorepo-react-nestjs/packages/utils/package.json +0 -39
  229. package/template-vp-monorepo-react-nestjs/packages/utils/src/index.ts +0 -3
  230. package/template-vp-monorepo-react-nestjs/packages/utils/tests/index.test.ts +0 -6
  231. package/template-vp-monorepo-react-nestjs/packages/utils/tsconfig.json +0 -20
  232. package/template-vp-monorepo-react-nestjs/packages/utils/tsdown.config.ts +0 -9
  233. package/template-vp-monorepo-react-nestjs/packages/utils/vite.config.ts +0 -7
  234. package/template-vue-vite-eslint/.env.production +0 -1
  235. package/template-vue-vite-eslint/README.md +0 -3
  236. package/template-vue-vite-eslint/commitlint.config.js +0 -1
  237. package/template-vue-vite-eslint/eslint.config.js +0 -69
  238. package/template-vue-vite-eslint/package.json +0 -56
  239. package/template-vue-vite-eslint/src/App.vue +0 -19
  240. package/template-vue-vite-eslint/src/api/index.ts +0 -12
  241. package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +0 -65
  242. package/template-vue-vite-eslint/src/layout/default/header/index.vue +0 -12
  243. package/template-vue-vite-eslint/src/layout/default/index.vue +0 -55
  244. package/template-vue-vite-eslint/src/router/guard/index.ts +0 -7
  245. package/template-vue-vite-eslint/src/router/interface.ts +0 -9
  246. package/template-vue-vite-eslint/src/router/modules/example.ts +0 -21
  247. package/template-vue-vite-eslint/src/store/index.ts +0 -11
  248. package/template-vue-vite-eslint/src/store/modules/user.ts +0 -20
  249. package/template-vue-vite-eslint/src/types/vite-env.d.ts +0 -15
  250. package/template-vue-vite-eslint/src/views/example/echart/index.vue +0 -22
  251. package/template-vue-vite-eslint/src/views/example/h-full.vue +0 -24
  252. package/template-vue-vite-eslint/src/views/example/tree-chart.vue +0 -94
  253. package/template-vue-vite-eslint/src/views/home/index.vue +0 -25
  254. package/template-vue-vite-eslint/uno.config.ts +0 -21
  255. /package/{template-vue-vite-eslint/src/assets/image/.gitkeep → template-vp-monorepo-react-nestjs/.agents/auth.config.ts} +0 -0
  256. /package/{template-vue-vite-eslint/src/styles/font.scss → template-vp-monorepo-react-nestjs/apps/server/src/config/security.config.ts} +0 -0
  257. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/.env +0 -0
  258. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/.env.development +0 -0
  259. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/index.html +0 -0
  260. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/public/vite.svg +0 -0
  261. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/computer-data.svg +0 -0
  262. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/cpu.svg +0 -0
  263. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/data-search.svg +0 -0
  264. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/home.svg +0 -0
  265. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/knowledge-graph.svg +0 -0
  266. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/logo.svg +0 -0
  267. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/assets/icon/robot.svg +0 -0
  268. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/styles/variables.scss +0 -0
  269. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/types/auto-import.d.ts +0 -0
  270. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/utils/request/core/index.ts +0 -0
  271. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/utils/request/core/utils.ts +0 -0
  272. /package/{template-vue-vite-eslint → template-vp-monorepo-react-nestjs/apps/web-vue}/src/views/login/index.vue +0 -0
@@ -0,0 +1,20 @@
1
+ <script setup lang="ts">
2
+ import { useECharts } from "@/hooks/chart/useEcharts";
3
+
4
+ import { getOption } from "./config";
5
+
6
+ const dom = useTemplateRef("chart");
7
+ const { setOptions } = useECharts(dom);
8
+
9
+ onMounted(() => {
10
+ setOptions(getOption());
11
+ });
12
+ </script>
13
+
14
+ <template>
15
+ <div class="h-100vh w-full bg-black">
16
+ <div ref="chart" class="h-30% w-30%" />
17
+ </div>
18
+ </template>
19
+
20
+ <style lang="scss" scoped></style>
@@ -0,0 +1,16 @@
1
+ <script setup lang="ts">
2
+
3
+
4
+ defineOptions({ name: 'tree-chart' })
5
+
6
+ </script>
7
+
8
+ <template>
9
+ <div class="tree-chart-container">
10
+
11
+ </div>
12
+ </template>
13
+
14
+ <style lang="scss" scoped>
15
+
16
+ </style>
@@ -0,0 +1,16 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <div class="flex-center flex-col gap-4 h-full w-full">
7
+ <h1 class="text-2xl font-bold">
8
+ Welcome to Vue Template
9
+ </h1>
10
+ <p class="text-gray-500">
11
+ Vite+ + Vue 3 + Antdv Next + UnoCSS + ESLint
12
+ </p>
13
+ </div>
14
+ </template>
15
+
16
+ <style lang="scss" scoped></style>
@@ -0,0 +1,9 @@
1
+ <script setup lang="ts">
2
+ // const a = 123
3
+ </script>
4
+
5
+ <template>
6
+ <div>login</div>
7
+ </template>
8
+
9
+ <style lang="scss" scoped></style>
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
5
+ "moduleDetection": "force",
6
+ "useDefineForClassFields": true,
7
+ "module": "ESNext",
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "paths": {
12
+ "@/*": ["./src/*"]
13
+ },
14
+ "types": ["vite/client", "vue", "node"],
15
+ "allowImportingTsExtensions": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noEmit": true,
23
+ "verbatimModuleSyntax": true,
24
+ "erasableSyntaxOnly": true,
25
+ "skipLibCheck": true,
26
+ "noUncheckedSideEffectImports": true
27
+ },
28
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue", "node_modules/antdv-next/global.d.ts"]
29
+ }
@@ -0,0 +1,17 @@
1
+ import presetAttributify from "@unocss/preset-attributify";
2
+ import presetWind4 from "@unocss/preset-wind4";
3
+ import { defineConfig } from "unocss";
4
+
5
+ export default defineConfig({
6
+ // content: {
7
+ // filesystem: [
8
+ // '**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}',
9
+ // ],
10
+ // },
11
+ shortcuts: [
12
+ {
13
+ "flex-center": "flex justify-center items-center",
14
+ },
15
+ ],
16
+ presets: [presetWind4(), presetAttributify()],
17
+ });
@@ -0,0 +1,58 @@
1
+ import path from 'node:path'
2
+ import process from 'node:process'
3
+
4
+ import { AntdvNextResolver } from '@antdv-next/auto-import-resolver'
5
+ import Vue from '@vitejs/plugin-vue'
6
+ import UnoCSS from 'unocss/vite'
7
+ import AutoImport from 'unplugin-auto-import/vite'
8
+ import Components from 'unplugin-vue-components/vite'
9
+ import Inspect from 'vite-plugin-inspect'
10
+ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
11
+ import { defineConfig, lazyPlugins, loadEnv } from 'vite-plus'
12
+
13
+ // https://vite.dev/config/
14
+ export default defineConfig(({ mode }) => {
15
+ const root = process.cwd()
16
+ const env = loadEnv(mode, root)
17
+ const { VITE_PORT, VITE_API_URL, VITE_API_AFFIX } = env
18
+
19
+ return {
20
+ resolve: {
21
+ alias: {
22
+ '@': path.resolve(__dirname, 'src'),
23
+ },
24
+ },
25
+ server: {
26
+ port: Number(VITE_PORT),
27
+ host: '0.0.0.0',
28
+ open: false,
29
+ proxy: {
30
+ [`^/${VITE_API_AFFIX}`]: {
31
+ target: VITE_API_URL,
32
+ changeOrigin: true,
33
+ // secure: false, // Disable SSL certificate verification
34
+ rewrite: path => path.replace(new RegExp(`^/${VITE_API_AFFIX}`), ''),
35
+ },
36
+ },
37
+ },
38
+ plugins: lazyPlugins(() => [
39
+ Vue(),
40
+ AutoImport({
41
+ imports: ['vue', 'vue-router'],
42
+ dts: './src/types/auto-import.d.ts',
43
+ }),
44
+ Components({
45
+ resolvers: [AntdvNextResolver()],
46
+ dts: './src/types/components.d.ts',
47
+ }),
48
+ createSvgIconsPlugin({
49
+ // Specify the icon folder to be cached
50
+ iconDirs: [path.resolve(__dirname, 'src/assets/icon')],
51
+ // Specify symbolId format
52
+ symbolId: 'icon-[dir]-[name]',
53
+ }),
54
+ UnoCSS(),
55
+ Inspect(),
56
+ ]),
57
+ }
58
+ })
@@ -1,8 +0,0 @@
1
- {
2
- "printWidth": 80,
3
- "semi": false,
4
- "singleQuote": true,
5
- "sortImports": {},
6
- "sortTailwindcss": {},
7
- "sortPackageJson": true,
8
- }
@@ -1,3 +0,0 @@
1
- {
2
- "plugins": ["import", "promise", "jsdoc", "vitest"],
3
- }
@@ -1,5 +0,0 @@
1
- ##
2
-
3
- 一共分为两个端一个前端一个后端
4
-
5
-
@@ -1,3 +0,0 @@
1
- {
2
- "plugins": ["node"],
3
- }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": ["../.oxlintrc.jsonc"],
3
- "plugins": ["react", "react-perf", "jsx-a11y"],
4
- }
@@ -1,23 +0,0 @@
1
- # tsdown-starter
2
-
3
- A starter for creating a TypeScript package.
4
-
5
- ## Development
6
-
7
- - Install dependencies:
8
-
9
- ```bash
10
- npm install
11
- ```
12
-
13
- - Run the unit tests:
14
-
15
- ```bash
16
- npm run test
17
- ```
18
-
19
- - Build the library:
20
-
21
- ```bash
22
- npm run build
23
- ```
@@ -1,39 +0,0 @@
1
- {
2
- "name": "utils",
3
- "version": "0.0.0",
4
- "description": "A starter for creating a TypeScript package.",
5
- "homepage": "https://github.com/author/library#readme",
6
- "bugs": {
7
- "url": "https://github.com/author/library/issues"
8
- },
9
- "license": "MIT",
10
- "author": "Author Name <author.name@mail.com>",
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/author/library.git"
14
- },
15
- "files": [
16
- "dist"
17
- ],
18
- "type": "module",
19
- "exports": {
20
- ".": "./dist/index.mjs",
21
- "./package.json": "./package.json"
22
- },
23
- "scripts": {
24
- "build": "vp pack",
25
- "dev": "vp pack --watch",
26
- "test": "vp test",
27
- "typecheck": "tsc --noEmit",
28
- "release": "bumpp",
29
- "prepublishOnly": "pnpm run build"
30
- },
31
- "devDependencies": {
32
- "@types/node": "^25.5.0",
33
- "@typescript/native-preview": "7.0.0-dev.20260328.1",
34
- "bumpp": "^11.0.1",
35
- "typescript": "^6.0.2",
36
- "vite-plus": "catalog:",
37
- "vitest": "catalog:"
38
- }
39
- }
@@ -1,3 +0,0 @@
1
- export function fn() {
2
- return "Hello, tsdown!";
3
- }
@@ -1,6 +0,0 @@
1
- import { expect, test } from "vite-plus/test";
2
- import { fn } from "../src";
3
-
4
- test("fn", () => {
5
- expect(fn()).toBe("Hello, tsdown!");
6
- });
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "lib": ["es2023"],
5
- "moduleDetection": "force",
6
- "module": "preserve",
7
- "moduleResolution": "bundler",
8
- "resolveJsonModule": true,
9
- "types": ["node"],
10
- "strict": true,
11
- "noUnusedLocals": true,
12
- "declaration": true,
13
- "emitDeclarationOnly": true,
14
- "esModuleInterop": true,
15
- "isolatedModules": true,
16
- "verbatimModuleSyntax": true,
17
- "skipLibCheck": true
18
- },
19
- "include": ["src"]
20
- }
@@ -1,9 +0,0 @@
1
- import { defineConfig } from "vite-plus/pack";
2
-
3
- export default defineConfig({
4
- dts: {
5
- tsgo: true,
6
- },
7
- exports: true,
8
- // ...config options
9
- });
@@ -1,7 +0,0 @@
1
- import tsdownConfig from "./tsdown.config.js";
2
-
3
- import { defineConfig } from "vite-plus";
4
-
5
- export default defineConfig({
6
- pack: tsdownConfig,
7
- });
@@ -1 +0,0 @@
1
- PUBLIC_API_URL = 'http://localhost:8080'
@@ -1,3 +0,0 @@
1
- ### ui 组件库
2
-
3
- element-plus pro-components
@@ -1 +0,0 @@
1
- export default { extends: ['@commitlint/config-conventional'] }
@@ -1,69 +0,0 @@
1
- import antfu from '@antfu/eslint-config'
2
-
3
- export default antfu({
4
- formatters: {
5
- css: true, // 启用 CSS、LESS、SCSS 及 Vue <style> 块格式化
6
- html: true, // 启用 HTML 文件格式化
7
- },
8
- vue: true,
9
- unocss: true,
10
- },
11
- // import rules
12
- {
13
- rules: {
14
- 'perfectionist/sort-imports': [ // 配置导入排序
15
- 'error',
16
- {
17
- customGroups: {
18
- type: {
19
- 'vue-type': ['^vue$', '^vue-.+', '^@vue/.+'],
20
- },
21
- value: {
22
- vue: ['^vue$', '^vue-.+', '^@vue/.+'], // Vue 相关库
23
- components: ['^@/components/.+', '@/tmui/.+'], // 组件
24
- stores: ['^@/store/.+'], // 状态管理
25
- utils: ['^@/utils/.+'], // 工具函数
26
- constants: ['^@/constants/.+'], // 常量
27
- hooks: ['^@/hooks/.+'], // 自定义 hooks
28
- api: ['^@/service/.+'], // API 服务
29
- },
30
- },
31
- environment: 'node',
32
- groups: [
33
- // 类型导入
34
- ['external-type', 'builtin-type', 'type'],
35
- 'vue-type',
36
- ['parent-type', 'sibling-type', 'index-type'],
37
- ['internal-type'],
38
- // 值导入
39
- 'builtin',
40
- 'vue',
41
- 'external',
42
- 'internal',
43
- // 内部模块
44
- 'components',
45
- 'stores',
46
- 'utils',
47
- 'constants',
48
- 'hooks',
49
- 'api',
50
- // 其他
51
- ['parent', 'sibling', 'index'],
52
- 'side-effect',
53
- 'side-effect-style',
54
- 'style',
55
- 'object',
56
- 'unknown',
57
- ],
58
- internalPattern: ['^@/.+'], // 内部模块路径匹配
59
- newlinesBetween: 'always', // 导入组之间空行
60
- order: 'asc', // 升序排序
61
- type: 'natural', // 自然排序
62
- },
63
- ],
64
- },
65
- }, {
66
- rules: {
67
- 'n/prefer-global/process': 'off',
68
- },
69
- })
@@ -1,56 +0,0 @@
1
- {
2
- "name": "bubbles-project",
3
- "type": "module",
4
- "version": "0.0.1",
5
- "private": true,
6
- "scripts": {
7
- "dev": "vite --mode development",
8
- "build": "vue-tsc -b && vite build",
9
- "preview": "vite preview",
10
- "lint": "eslint",
11
- "lint:fix": "eslint --fix"
12
- },
13
- "dependencies": {
14
- "@alova/adapter-axios": "^2.0.18",
15
- "@antdv-next/icons": "^1.0.8",
16
- "@unocss/preset-wind3": "^66.7.0",
17
- "alova": "^3.5.1",
18
- "antdv-next": "^1.3.3",
19
- "axios": "^1.17.0",
20
- "dayjs": "^1.11.21",
21
- "echarts": "^6.1.0",
22
- "nprogress": "^0.2.0",
23
- "pinia": "^3.0.4",
24
- "pinia-plugin-persistedstate": "^4.7.1",
25
- "plus-pro-components": "^0.1.31",
26
- "radashi": "^12.9.1",
27
- "vue": "^3.5.35",
28
- "vue-router": "^5.1.0"
29
- },
30
- "devDependencies": {
31
- "@antdv-next/auto-import-resolver": "^1.1.0",
32
- "@antfu/eslint-config": "^9.0.0",
33
- "@commitlint/cli": "^21.0.2",
34
- "@commitlint/config-conventional": "^21.0.2",
35
- "@plus-pro-components/resolver": "^0.0.3",
36
- "@types/node": "^24.12.3",
37
- "@types/nprogress": "^0.2.3",
38
- "@unocss/eslint-plugin": "^66.7.0",
39
- "@unocss/preset-attributify": "^66.7.0",
40
- "@vitejs/plugin-vue": "^6.0.7",
41
- "@vue/tsconfig": "^0.9.1",
42
- "eslint": "10.4.1",
43
- "eslint-plugin-format": "^2.0.1",
44
- "fast-glob": "^3.3.3",
45
- "lefthook": "^2.1.6",
46
- "sass": "^1.100.0",
47
- "typescript": "~6.0.3",
48
- "unocss": "66.6.8",
49
- "unplugin-auto-import": "^21.0.0",
50
- "unplugin-vue-components": "^32.1.0",
51
- "vite": "8.0.11",
52
- "vite-plugin-inspect": "^11.4.1",
53
- "vite-plugin-svg-icons": "^2.0.1",
54
- "vue-tsc": "^3.3.4"
55
- }
56
- }
@@ -1,19 +0,0 @@
1
- <script setup lang="ts">
2
- import zhCn from 'element-plus/es/locale/lang/zh-cn'
3
- import plusZhCn from 'plus-pro-components/es/locale/lang/zh-cn'
4
-
5
- const locale = {
6
- ...zhCn,
7
- ...plusZhCn,
8
- }
9
- </script>
10
-
11
- <template>
12
- <el-config-provider
13
- :locale="locale"
14
- >
15
- <RouterView />
16
- </el-config-provider>
17
- </template>
18
-
19
- <style scoped></style>
@@ -1,12 +0,0 @@
1
- import request from '@/utils/request'
2
-
3
- export const EXPIRE_TIME = 60 * 10 * 1000
4
-
5
- export function getTree() {
6
- return request.Get('/xxx/xx', {
7
- cacheFor: {
8
- mode: 'restore',
9
- expire: EXPIRE_TIME,
10
- },
11
- })
12
- }
@@ -1,65 +0,0 @@
1
- import type { EChartsOption } from 'echarts'
2
-
3
- import type { ShallowRef } from 'vue'
4
-
5
- import { debounce } from 'radashi'
6
-
7
- import echarts from './lib'
8
-
9
- type setOptionsType = (options: EChartsOption, clear?: boolean) => void
10
-
11
- export function useECharts(elRef: Ref<HTMLDivElement> | Readonly<ShallowRef<HTMLDivElement | null>>) {
12
- let chartInstance: echarts.ECharts | null = null
13
- let resizeObserver: ResizeObserver | undefined
14
-
15
- const resize = () => {
16
- chartInstance?.resize()
17
- }
18
-
19
- const initCharts = () => {
20
- if (!elRef)
21
- return
22
- const el = unref(elRef)
23
- if (!el)
24
- return
25
-
26
- resizeObserver = new ResizeObserver(debounce(
27
- {
28
- delay: 100,
29
- },
30
- resize,
31
- ))
32
- resizeObserver.observe(el)
33
-
34
- chartInstance = echarts.init(el)
35
- }
36
-
37
- const setOptions: setOptionsType = (options, clear = true) => {
38
- if (!chartInstance) {
39
- initCharts()
40
- if (!chartInstance)
41
- return
42
- }
43
- clear && chartInstance?.clear()
44
- chartInstance?.setOption(options)
45
- }
46
-
47
- const getInstance: () => echarts.ECharts | null = () => {
48
- if (!chartInstance)
49
- initCharts()
50
- return chartInstance
51
- }
52
-
53
- onUnmounted(() => {
54
- chartInstance?.dispose()
55
- resizeObserver?.disconnect()
56
- resizeObserver = undefined
57
- })
58
-
59
- return {
60
- setOptions,
61
- resize,
62
- echarts,
63
- getInstance,
64
- }
65
- }
@@ -1,12 +0,0 @@
1
- <script setup lang="ts">
2
- </script>
3
-
4
- <template>
5
- <div class="index-container">
6
- 111
7
- </div>
8
- </template>
9
-
10
- <style lang="scss" scoped>
11
-
12
- </style>
@@ -1,55 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { MenuRouteRecordRawType } from '@/router/interface'
3
-
4
- import LogoIcon from '@/assets/icon/logo.svg'
5
- import { menuRoutes } from '@/router/modules'
6
-
7
- import SvgIcon from '@/components/Icon/svg-icon.vue'
8
-
9
- import Header from './header/index.vue'
10
-
11
- function getRoutes(routes: MenuRouteRecordRawType[]) {
12
- const result = routes.map((item) => {
13
- const isSvgIcon = (item.meta?.icon as string | undefined)?.startsWith('svg-')
14
- return ({
15
- path: item.path,
16
- name: item.name,
17
- component: item.component,
18
- meta: {
19
- title: item.meta?.title,
20
- icon: isSvgIcon ? h(SvgIcon, { icon: (item.meta?.icon as string).replace('svg-', ''), style: { fontSize: '20px' } }) : undefined,
21
- hideInMenu: item.meta?.hideInMenu,
22
- },
23
- children: item.children,
24
- })
25
- })
26
- result.forEach((item) => {
27
- if (item.children) {
28
- item.children = getRoutes(item.children) as MenuRouteRecordRawType[]
29
- }
30
- })
31
- return result
32
- }
33
-
34
- const routes = getRoutes(menuRoutes)
35
- </script>
36
-
37
- <template>
38
- <PlusLayout
39
- :sidebar-props="{ routes }"
40
- :has-breadcrumb="false"
41
- :header-props="{
42
- hasUserInfo: false,
43
- }"
44
- >
45
- <template #header-left>
46
- <h1>111</h1>
47
- </template>
48
-
49
- <template #header-right>
50
- <Header />
51
- </template>
52
-
53
- <router-view />
54
- </PlusLayout>
55
- </template>
@@ -1,7 +0,0 @@
1
- import type { Router } from 'vue-router'
2
-
3
- import { createPermissionGuard } from './permissionGuard'
4
-
5
- export function setupGuard(router: Router) {
6
- createPermissionGuard(router)
7
- }
@@ -1,9 +0,0 @@
1
- import type { RouteRecordRaw } from 'vue-router'
2
-
3
- export type MenuRouteRecordRawType = RouteRecordRaw & {
4
- meta?: {
5
- title?: string
6
- icon?: string
7
- hideInMenu?: boolean
8
- }
9
- }
@@ -1,21 +0,0 @@
1
- import type { RouteRecordRaw } from 'vue-router'
2
-
3
- export const ExampleRoutes: RouteRecordRaw[] = [
4
- {
5
- path: '/example',
6
- name: 'Example',
7
- children: [
8
- {
9
- path: 'echart',
10
- name: 'Echart',
11
- component: () => import('@/views/example/echart/index.vue'),
12
- },
13
-
14
- {
15
- path: 'tree-chart',
16
- name: 'TreeChart',
17
- component: () => import('@/views/example/tree-chart.vue'),
18
- },
19
- ],
20
- },
21
- ]