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,27 @@
1
+ {
2
+ "name": "@bubblesjs/i18n-vue",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./src/index.ts",
9
+ "import": "./src/index.ts"
10
+ }
11
+ },
12
+ "scripts": {
13
+ "build": "vp pack"
14
+ },
15
+ "dependencies": {
16
+ "@bubblesjs/i18n-core": "workspace:*"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "catalog:",
20
+ "vite": "catalog:",
21
+ "vite-plus": "catalog:",
22
+ "vue": "catalog:"
23
+ },
24
+ "peerDependencies": {
25
+ "vue": "^3.5.39"
26
+ }
27
+ }
@@ -0,0 +1,52 @@
1
+ import {
2
+ computed,
3
+ defineComponent,
4
+ inject,
5
+ provide,
6
+ type ComputedRef,
7
+ type InjectionKey,
8
+ type PropType,
9
+ } from 'vue'
10
+ import type { I18nState, I18nStore } from '@bubblesjs/i18n-core'
11
+ import { useI18nStore } from './use-store'
12
+
13
+ export const I18nKey: InjectionKey<I18nStore> = Symbol('i18n')
14
+
15
+ export interface I18nProviderProps {
16
+ store: I18nStore
17
+ }
18
+
19
+ export interface UseI18nReturn {
20
+ tr: I18nState['tr']
21
+ loadLocale: I18nState['loadLocale']
22
+ locale: ComputedRef<I18nState['locale']>
23
+ }
24
+
25
+ export const I18nProvider = defineComponent({
26
+ name: 'I18nProvider',
27
+ props: {
28
+ store: {
29
+ type: Object as PropType<I18nStore>,
30
+ required: true,
31
+ },
32
+ },
33
+ setup(props, { slots }) {
34
+ provide(I18nKey, props.store)
35
+ return () => slots.default?.()
36
+ },
37
+ })
38
+
39
+ export function useI18n(): UseI18nReturn {
40
+ const store = inject(I18nKey)
41
+ if (!store) throw new Error('useI18n must be used within I18nProvider')
42
+
43
+ const state = useI18nStore(store)
44
+ const tr: I18nState['tr'] = (key, values) => state.value.tr(key, values)
45
+ const loadLocale: I18nState['loadLocale'] = (locale) => state.value.loadLocale(locale)
46
+ const locale = computed(() => state.value.locale)
47
+
48
+ return { tr, loadLocale, locale }
49
+ }
50
+
51
+ export { useI18nStore } from './use-store'
52
+ export default I18nProvider
@@ -0,0 +1,19 @@
1
+ import { computed, onScopeDispose, shallowRef } from 'vue'
2
+ import type { ComputedRef, ShallowRef } from 'vue'
3
+ import type { I18nState, I18nStore } from '@bubblesjs/i18n-core'
4
+
5
+ export function useI18nStore<T>(store: I18nStore, selector: (state: I18nState) => T): ComputedRef<T>
6
+ export function useI18nStore(store: I18nStore): ShallowRef<I18nState>
7
+ export function useI18nStore<T>(
8
+ store: I18nStore,
9
+ selector?: (state: I18nState) => T,
10
+ ): ComputedRef<T> | ShallowRef<I18nState> {
11
+ const state = shallowRef<I18nState>(store.getState())
12
+ const unsubscribe = store.subscribe(() => {
13
+ state.value = store.getState()
14
+ })
15
+
16
+ onScopeDispose(unsubscribe)
17
+
18
+ return selector ? computed(() => selector(state.value)) : state
19
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES2020",
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "lib": ["ES2020", "DOM"],
8
+ "types": ["vue"],
9
+ "strict": true,
10
+ "skipLibCheck": true,
11
+ "verbatimModuleSyntax": true,
12
+ "noEmit": true
13
+ },
14
+ "include": ["src"]
15
+ }
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'vite-plus'
2
+
3
+ export default defineConfig({
4
+ pack: {
5
+ entry: ['./src/index.ts'],
6
+ format: ['esm'],
7
+ platform: 'neutral',
8
+ target: 'es2020',
9
+ dts: true,
10
+ clean: true,
11
+ treeshake: true,
12
+ deps: {
13
+ neverBundle: ['vue', /^vue\//, /^@bubblesjs\//],
14
+ },
15
+ },
16
+ })
@@ -1,23 +1,111 @@
1
1
  packages:
2
2
  - apps/*
3
3
  - packages/*
4
- - tools/*
4
+ - packages/i18n/*
5
5
 
6
6
  catalogMode: prefer
7
7
 
8
8
  catalog:
9
- '@types/node': ^24
10
- typescript: ^6.0.3
11
- vite: npm:@voidzero-dev/vite-plus-core@latest
12
- vitest: npm:@voidzero-dev/vite-plus-test@latest
13
- vite-plus: latest
9
+ '@alova/adapter-axios': ^2.0.18
10
+ '@antdv-next/auto-import-resolver': ^1.1.0
11
+ '@antdv-next/icons': ^1.1.1
12
+ '@antfu/eslint-config': ^9.1.0
13
+ '@commitlint/cli': ^21.2.1
14
+ '@commitlint/config-conventional': ^21.1.0
15
+ '@fastify/cookie': ^11.1.2
16
+ '@fastify/static': ^10.1.0
17
+ '@nestjs-modules/ioredis': ^2.2.1
18
+ '@nestjs/cli': ^11.0.0
19
+ '@nestjs/common': ^11.1.27
20
+ '@nestjs/config': ^4.0.4
21
+ '@nestjs/core': ^11.0.1
22
+ '@nestjs/jwt': ^11.0.2
23
+ '@nestjs/mapped-types': '*'
24
+ '@nestjs/platform-fastify': ^11.1.27
25
+ '@nestjs/schematics': ^11.0.0
26
+ '@nestjs/swagger': ^11.4.6
27
+ '@nestjs/testing': ^11.0.1
28
+ '@tailwindcss/vite': ^4.3.1
29
+ '@types/express': ^5.0.0
30
+ '@types/node': ^26.1.1
31
+ '@types/nprogress': ^0.2.3
32
+ '@types/react': ^19.2.17
33
+ '@types/react-dom': ^19.2.3
34
+ '@typescript/native': npm:typescript@^7.0.2
35
+ '@unocss/eslint-plugin': ^66.7.2
36
+ '@unocss/preset-attributify': ^66.7.5
37
+ '@unocss/preset-wind4': ^66.7.5
38
+ '@vitejs/plugin-react': ^6.0.2
39
+ '@vitejs/plugin-vue': ^6.0.7
40
+ '@vue/tsconfig': ^0.9.1
41
+ alova: ^3.5.1
42
+ antd: ^6.4.5
43
+ antdv-next: ^1.4.1
44
+ argon2: ^0.45.0
45
+ axios: ^1.18.1
46
+ classnames: ^2.5.1
47
+ cross-env: ^10.1.0
48
+ dayjs: ^1.11.21
49
+ dotenv: ^17.4.2
50
+ drizzle-kit: ^0.31.10
51
+ drizzle-orm: ^0.45.2
52
+ drizzle-zod: ^0.8.3
53
+ echarts: ^6.1.0
54
+ eslint: 10.7.0
55
+ eslint-plugin-format: ^2.0.1
56
+ eslint-plugin-oxlint: ^1.73.0
57
+ fast-glob: ^3.3.3
58
+ fastify: ^5.10.0
59
+ globals: ^17.0.0
60
+ ioredis: ^5.11.1
61
+ lefthook: ^2.1.10
62
+ nestjs-zod: ^5.4.0
63
+ nprogress: ^0.2.0
64
+ oxlint: ^1.73.0
65
+ pg: ^8.22.0
66
+ pinia: ^3.0.4
67
+ pinia-plugin-persistedstate: ^4.7.1
68
+ radashi: ^12.9.1
69
+ react: ^19.2.7
70
+ react-dom: ^19.2.7
71
+ react-router: ^8.0.1
72
+ reflect-metadata: ^0.2.2
73
+ rxjs: ^7.8.1
74
+ sass: ^1.101.0
75
+ source-map-support: ^0.5.21
76
+ tailwindcss: ^4.3.1
77
+ ts-loader: ^9.5.2
78
+ ts-node: ^10.9.2
79
+ tsconfig-paths: ^4.2.0
80
+ typescript: ^6
81
+ unocss: 66.7.5
82
+ unplugin-auto-import: ^21.0.0
83
+ unplugin-vue-components: ^32.1.0
84
+ vite: npm:@voidzero-dev/vite-plus-core@0.2.4
85
+ vite-plugin-inspect: ^11.4.1
86
+ vite-plugin-svg-icons: ^2.0.1
87
+ vite-plus: 0.2.4
88
+ vue: ^3.5.39
89
+ vue-router: ^5.1.0
90
+ vue-tsc: ^3.3.7
91
+ zod: ^4.4.3
92
+ catalogs:
93
+ node24:
94
+ '@types/node': ^24.0.0
95
+ typescript6:
96
+ typescript: npm:@typescript/typescript6@^6.0.2
14
97
  overrides:
15
98
  vite: 'catalog:'
16
- vitest: 'catalog:'
17
99
  peerDependencyRules:
18
100
  allowAny:
19
101
  - vite
20
- - vitest
21
102
  allowedVersions:
22
103
  vite: '*'
23
- vitest: '*'
104
+ minimumReleaseAgeExclude:
105
+ - axios@1.18.1
106
+ allowBuilds:
107
+ '@parcel/watcher': true
108
+ '@scarf/scarf': true
109
+ argon2: true
110
+ esbuild: true
111
+ lefthook: true
@@ -1,8 +1,20 @@
1
- import { defineConfig } from "vite-plus";
1
+ import { defineConfig } from 'vite-plus'
2
2
 
3
3
  export default defineConfig({
4
4
  staged: {
5
- "*": "vp check --fix",
5
+ '*': 'vp check --fix',
6
6
  },
7
- lint: { options: { typeAware: true, typeCheck: true } },
8
- });
7
+ fmt: {
8
+ semi: false,
9
+ singleQuote: true,
10
+ },
11
+ lint: {
12
+ plugins: ['unicorn', 'typescript', 'oxc', 'import'],
13
+ jsPlugins: [{ name: 'vite-plus', specifier: 'vite-plus/oxlint-plugin' }],
14
+ rules: { 'vite-plus/prefer-vite-plus-imports': 'error', 'import/no-duplicates': 'error' },
15
+ options: { typeAware: true, typeCheck: true },
16
+ },
17
+ run: {
18
+ cache: true,
19
+ },
20
+ })
@@ -0,0 +1,6 @@
1
+ VITE_PORT = 9999
2
+ VITE_PATH = '/'
3
+ VITE_APP_NAME = "xxx"
4
+
5
+ # 后端
6
+ VITE_API_AFFIX = 'api'
@@ -0,0 +1,2 @@
1
+ # 后端
2
+ VITE_API_URL = 'http://localhost:8080'
@@ -0,0 +1,2 @@
1
+ # 后端
2
+ VITE_API_URL = 'http://localhost:8080'
@@ -0,0 +1 @@
1
+ NO_COLOR=1 commitlint --edit "$1"
@@ -0,0 +1 @@
1
+ NO_COLOR=1 vp staged
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["VoidZero.vite-plus-extension-pack"]
3
+ }
@@ -0,0 +1,16 @@
1
+ <!--VITE PLUS START-->
2
+
3
+ # Using Vite+, the Unified Toolchain for the Web
4
+
5
+ This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command.
6
+
7
+ Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.
8
+
9
+ ## Review Checklist
10
+
11
+ - [ ] Run `vp install` after pulling remote changes and before getting started.
12
+ - [ ] Run `vp check` and `vp test` to format, lint, type check and test changes.
13
+ - [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run <script>`.
14
+ - [ ] If setup, runtime, or package-manager behavior looks wrong, run `vp env doctor` and include its output when asking for help.
15
+
16
+ <!--VITE PLUS END-->
@@ -0,0 +1,93 @@
1
+ # template-vp-vue-eslint-vapor
2
+
3
+ Vue 3 Vapor 项目模板,基于 Vite+ 统一工具链,集成 Antdv Next UI 组件库、UnoCSS 原子化样式和 ESLint 代码规范。
4
+
5
+ ## 技术栈
6
+
7
+ | 分类 | 技术 | 说明 |
8
+ | --------- | -------------------------------------- | ----------------------------------------------- |
9
+ | 构建工具 | Vite+ (`vp`) | 统一工具链,封装 Vite + Rolldown + Oxlint |
10
+ | 框架 | Vue 3.6 RC | Composition API + `<script setup>` + Vapor 模式 |
11
+ | 语言 | TypeScript 6 | 配合 vue-tsc 进行类型检查 |
12
+ | UI 组件库 | Antdv Next | 自动按需导入 |
13
+ | 状态管理 | Pinia | 含持久化插件 |
14
+ | 路由 | Vue Router 5 | |
15
+ | 请求库 | Alova | 基于 Axios 适配器,双调用实例 |
16
+ | 样式方案 | UnoCSS | Wind4 + Attributify 预设 |
17
+ | 代码规范 | ESLint (@antfu/eslint-config) + OxLint | |
18
+ | Git 钩子 | Vite+ hooks + Commitlint | |
19
+
20
+ ## 快速开始
21
+
22
+ ```bash
23
+ # 安装依赖
24
+ pnpm install
25
+
26
+ # 启动开发服务器
27
+ pnpm dev
28
+
29
+ # 构建生产包
30
+ pnpm build
31
+
32
+ # 代码检查
33
+ pnpm lint
34
+
35
+ # 代码修复
36
+ pnpm lint:fix
37
+ ```
38
+
39
+ ## 目录结构
40
+
41
+ ```
42
+ src/
43
+ ├── api/ # API 接口定义
44
+ ├── assets/ # 静态资源
45
+ │ ├── icon/ # SVG 图标
46
+ │ └── image/ # 图片资源
47
+ ├── components/ # 公共组件
48
+ │ └── Icon/ # SVG 图标组件
49
+ ├── hooks/ # 组合式函数
50
+ ├── layout/ # 布局组件
51
+ │ └── default/ # 默认布局(侧边栏 + 顶部栏)
52
+ ├── router/ # 路由配置
53
+ │ ├── guard/ # 路由守卫
54
+ │ └── modules/ # 路由模块
55
+ ├── store/ # Pinia 状态管理
56
+ │ └── modules/ # 业务 Store
57
+ ├── styles/ # 全局样式
58
+ ├── types/ # 类型声明(自动生成)
59
+ ├── utils/ # 工具函数
60
+ │ └── request/ # Alova 请求封装
61
+ ├── views/ # 页面视图
62
+ ├── App.vue # 根组件
63
+ └── main.ts # 应用入口
64
+ ```
65
+
66
+ ## 环境变量
67
+
68
+ | 文件 | 用途 |
69
+ | ------------------ | ------------ |
70
+ | `.env` | 公共环境变量 |
71
+ | `.env.development` | 开发环境 |
72
+ | `.env.production` | 生产环境 |
73
+
74
+ 关键变量:
75
+
76
+ | 变量名 | 说明 |
77
+ | ---------------- | ------------------------ |
78
+ | `VITE_PORT` | 开发服务器端口 |
79
+ | `VITE_API_URL` | 后端 API 地址 |
80
+ | `VITE_API_AFFIX` | API 路由前缀(用于代理) |
81
+ | `VITE_APP_NAME` | 应用名称 |
82
+
83
+ ## Vapor 模式
84
+
85
+ 模板在 `vite.config.ts` 中通过 `@vitejs/plugin-vue` 开启 `features.vapor`,用于体验 Vue 3.6 的 Vapor 编译模式。
86
+
87
+ 当前使用 Vue RC 版本,更适合功能验证和提前适配;对稳定性要求较高的生产项目建议选择稳定版 Vue 模板。
88
+
89
+ ## 代码规范
90
+
91
+ - **ESLint**:使用 `@antfu/eslint-config`,单引号、无分号、自动排序 imports
92
+ - **OxLint**:作为 ESLint 的补充,提供更快的 lint 速度
93
+ - **Commitlint**:提交信息需遵循 [Conventional Commits](https://www.conventionalcommits.org/) 规范
@@ -0,0 +1 @@
1
+ export default { extends: ["@commitlint/config-conventional"] };
@@ -0,0 +1,13 @@
1
+ import antfu from '@antfu/eslint-config'
2
+ import oxlint from 'eslint-plugin-oxlint'
3
+
4
+ export default antfu(
5
+ {
6
+ formatters: {
7
+ css: true,
8
+ html: true,
9
+ },
10
+ vue: true,
11
+ unocss: true,
12
+ },
13
+ ).append(...oxlint.configs['flat/recommended'])
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Vue + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "template-vp-vue-eslint-vapor",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vp dev --mode development",
8
+ "build": "vue-tsc -b && vp build",
9
+ "preview": "vp preview",
10
+ "lint": "oxlint && eslint",
11
+ "lint:fix": "oxlint && eslint --fix",
12
+ "prepare": "vp config"
13
+ },
14
+ "dependencies": {
15
+ "@alova/adapter-axios": "^2.0.20",
16
+ "@antdv-next/icons": "^1.1.1",
17
+ "alova": "^3.5.3",
18
+ "antdv-next": "^1.4.5",
19
+ "axios": "^1.18.1",
20
+ "dayjs": "^1.11.21",
21
+ "echarts": "^6.1.0",
22
+ "nprogress": "^0.2.0",
23
+ "pinia": "^4.0.2",
24
+ "pinia-plugin-persistedstate": "^4.7.1",
25
+ "radashi": "^12.9.1",
26
+ "vue": "3.6.0-rc.2",
27
+ "vue-router": "^5.2.0"
28
+ },
29
+ "devDependencies": {
30
+ "@antdv-next/auto-import-resolver": "^1.1.0",
31
+ "@antfu/eslint-config": "^9.2.0",
32
+ "@commitlint/cli": "^21.2.1",
33
+ "@commitlint/config-conventional": "^21.2.0",
34
+ "@types/node": "^26.1.1",
35
+ "@types/nprogress": "^0.2.3",
36
+ "@unocss/eslint-plugin": "^66.7.5",
37
+ "@unocss/preset-attributify": "^66.7.5",
38
+ "@unocss/preset-wind4": "^66.7.5",
39
+ "@vitejs/plugin-vue": "^6.0.8",
40
+ "@vue/tsconfig": "^0.9.1",
41
+ "eslint": "10.8.0",
42
+ "eslint-plugin-format": "^2.0.1",
43
+ "eslint-plugin-oxlint": "^1.75.0",
44
+ "fast-glob": "^3.3.3",
45
+ "oxlint": "^1.75.0",
46
+ "sass": "^1.102.0",
47
+ "typescript": "^6.0.3",
48
+ "unocss": "66.7.5",
49
+ "unplugin-auto-import": "^21.0.0",
50
+ "unplugin-vue-components": "^32.1.0",
51
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
52
+ "vite-plugin-inspect": "^12.0.2",
53
+ "vite-plugin-svg-icons": "^2.0.1",
54
+ "vite-plus": "^0.2.6",
55
+ "vue-tsc": "^3.3.8"
56
+ },
57
+ "devEngines": {
58
+ "packageManager": {
59
+ "name": "pnpm",
60
+ "version": "11.11.0",
61
+ "onFail": "download"
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,2 @@
1
+ allowBuilds:
2
+ "@parcel/watcher": false
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <RouterView />
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.34912 1.55823C8.72361 1.23724 9.27639 1.23724 9.65088 1.55823L15.5981 6.65588C15.8493 6.87118 15.9784 7.1972 15.9419 7.526L15.0991 15.11C15.0429 15.6164 14.6145 15.9996 14.105 15.9996H3.89502C3.38553 15.9996 2.95714 15.6164 2.90088 15.11L2.05811 7.526C2.02157 7.1972 2.15067 6.87118 2.40186 6.65588L8.34912 1.55823ZM9.00049 9.99963C7.89603 9.99963 7.00066 10.8952 7.00049 11.9996V13.9996C7.00049 14.5519 7.4482 14.9996 8.00049 14.9996H10.0005C10.5526 14.9994 11.0005 14.5518 11.0005 13.9996V11.9996C11.0003 10.8953 10.1048 9.99985 9.00049 9.99963Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="currentColor" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="currentColor" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ icon: string;
4
+ }>();
5
+ const attrs = useAttrs();
6
+ </script>
7
+
8
+ <template>
9
+ <svg class="svg-icon" aria-hidden="true" v-bind="attrs">
10
+ <use :href="`#icon-${icon}`" />
11
+ </svg>
12
+ </template>
13
+
14
+ <style lang="scss" scoped>
15
+ .svg-icon {
16
+ display: flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ width: 1em;
20
+ height: 1em;
21
+ fill: currentColor;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .svg-external-icon {
26
+ background-color: currentColor;
27
+ mask-size: cover !important;
28
+ }
29
+ </style>
@@ -0,0 +1,57 @@
1
+ import {
2
+ BarChart,
3
+ GraphChart,
4
+ LineChart,
5
+ MapChart,
6
+ PictorialBarChart,
7
+ PieChart,
8
+ RadarChart,
9
+ } from "echarts/charts";
10
+ import {
11
+ AriaComponent,
12
+ CalendarComponent,
13
+ DataZoomComponent,
14
+ GraphicComponent,
15
+ GridComponent,
16
+ LegendComponent,
17
+ ParallelComponent,
18
+ PolarComponent,
19
+ RadarComponent,
20
+ TimelineComponent,
21
+ TitleComponent,
22
+ ToolboxComponent,
23
+ TooltipComponent,
24
+ VisualMapComponent,
25
+ } from "echarts/components";
26
+ import * as echarts from "echarts/core";
27
+ // TODO 如果想换成SVG渲染,就导出SVGRenderer,
28
+ // 并且放到 echarts.use 里,注释掉 CanvasRenderer
29
+ import { /* SVGRenderer */ CanvasRenderer } from "echarts/renderers";
30
+
31
+ echarts.use([
32
+ LegendComponent,
33
+ TitleComponent,
34
+ TooltipComponent,
35
+ GridComponent,
36
+ PolarComponent,
37
+ AriaComponent,
38
+ ParallelComponent,
39
+ BarChart,
40
+ LineChart,
41
+ PieChart,
42
+ MapChart,
43
+ RadarChart,
44
+ GraphChart,
45
+ // TODO 因为要兼容Online图表自适应打印,所以改成 CanvasRenderer,可能会模糊
46
+ CanvasRenderer,
47
+ PictorialBarChart,
48
+ RadarComponent,
49
+ ToolboxComponent,
50
+ DataZoomComponent,
51
+ VisualMapComponent,
52
+ TimelineComponent,
53
+ CalendarComponent,
54
+ GraphicComponent,
55
+ ]);
56
+
57
+ export default echarts;