create-bubbles 0.1.13 → 0.1.17

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 (357) hide show
  1. package/dist/index.js +7 -8
  2. package/index.js +2 -2
  3. package/package.json +49 -48
  4. package/template-vp-monorepo-react-nestjs/.vscode/extensions.json +3 -3
  5. package/LICENSE +0 -21
  6. package/template-nextjs-vinext-eslint/.dockerignore +0 -3
  7. package/template-nextjs-vinext-eslint/.vscode/settings.json +0 -53
  8. package/template-nextjs-vinext-eslint/Dockerfile +0 -21
  9. package/template-nextjs-vinext-eslint/README.md +0 -100
  10. package/template-nextjs-vinext-eslint/commitlint.config.js +0 -1
  11. package/template-nextjs-vinext-eslint/docker-compose.yaml +0 -22
  12. package/template-nextjs-vinext-eslint/eslint.config.js +0 -20
  13. package/template-nextjs-vinext-eslint/lefthook.yml +0 -11
  14. package/template-nextjs-vinext-eslint/next.config.ts +0 -8
  15. package/template-nextjs-vinext-eslint/nginx.conf +0 -14
  16. package/template-nextjs-vinext-eslint/package.json +0 -50
  17. package/template-nextjs-vinext-eslint/pnpm-workspace.yaml +0 -7
  18. package/template-nextjs-vinext-eslint/public/file.svg +0 -1
  19. package/template-nextjs-vinext-eslint/public/globe.svg +0 -1
  20. package/template-nextjs-vinext-eslint/public/logo-white.svg +0 -128
  21. package/template-nextjs-vinext-eslint/public/next.svg +0 -1
  22. package/template-nextjs-vinext-eslint/public/vercel.svg +0 -1
  23. package/template-nextjs-vinext-eslint/public/window.svg +0 -1
  24. package/template-nextjs-vinext-eslint/src/app/_components/Header/header.module.css +0 -0
  25. package/template-nextjs-vinext-eslint/src/app/_components/Header/header.tsx +0 -7
  26. package/template-nextjs-vinext-eslint/src/app/_components/Main/index.tsx +0 -13
  27. package/template-nextjs-vinext-eslint/src/app/antd-provider.tsx +0 -30
  28. package/template-nextjs-vinext-eslint/src/app/icon.svg +0 -26
  29. package/template-nextjs-vinext-eslint/src/app/layout.tsx +0 -68
  30. package/template-nextjs-vinext-eslint/src/app/page.module.css +0 -141
  31. package/template-nextjs-vinext-eslint/src/app/page.tsx +0 -43
  32. package/template-nextjs-vinext-eslint/src/app/uno-css.tsx +0 -7
  33. package/template-nextjs-vinext-eslint/src/assets/icon/logo-white.svg +0 -128
  34. package/template-nextjs-vinext-eslint/src/assets/icon/logo.svg +0 -26
  35. package/template-nextjs-vinext-eslint/src/assets/image/QR.png +0 -0
  36. package/template-nextjs-vinext-eslint/src/assets/image/banner_1.png +0 -0
  37. package/template-nextjs-vinext-eslint/src/assets/image/banner_2.png +0 -0
  38. package/template-nextjs-vinext-eslint/src/assets/image/banner_3.png +0 -0
  39. package/template-nextjs-vinext-eslint/src/assets/image/banner_4.png +0 -0
  40. package/template-nextjs-vinext-eslint/src/assets/image/banner_top.png +0 -0
  41. package/template-nextjs-vinext-eslint/src/assets/image/icon_title_left.png +0 -0
  42. package/template-nextjs-vinext-eslint/src/assets/image/icon_title_right.png +0 -0
  43. package/template-nextjs-vinext-eslint/src/assets/image/img.png +0 -0
  44. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_COCT.png +0 -0
  45. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/207/347/247/221.png +0 -0
  46. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/205/264.png +0 -0
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/350/205/276/350/256/257.png +0 -0
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/230/277/351/207/214/344/272/221.png +0 -0
  70. 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
  71. package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/276/231/346/271/226.png +0 -0
  72. package/template-nextjs-vinext-eslint/src/styles/globals.css +0 -47
  73. package/template-nextjs-vinext-eslint/src/types/vite-env.d.ts +0 -18
  74. package/template-nextjs-vinext-eslint/src/utils/env.ts +0 -14
  75. package/template-nextjs-vinext-eslint/src/utils/index.ts +0 -0
  76. package/template-nextjs-vinext-eslint/src/utils/request/core/index.ts +0 -182
  77. package/template-nextjs-vinext-eslint/src/utils/request/core/utils.ts +0 -30
  78. package/template-nextjs-vinext-eslint/src/utils/request/index.ts +0 -48
  79. package/template-nextjs-vinext-eslint/tsconfig.json +0 -34
  80. package/template-nextjs-vinext-eslint/uno.config.ts +0 -8
  81. package/template-nextjs-vinext-eslint/vite.config.ts +0 -8
  82. package/template-react-rsbuild-biome/.env +0 -5
  83. package/template-react-rsbuild-biome/.env.development +0 -1
  84. package/template-react-rsbuild-biome/.env.production +0 -1
  85. package/template-react-rsbuild-biome/.prettierignore +0 -34
  86. package/template-react-rsbuild-biome/.prettierrc +0 -16
  87. package/template-react-rsbuild-biome/.vscode/settings.json +0 -10
  88. package/template-react-rsbuild-biome/README.md +0 -29
  89. package/template-react-rsbuild-biome/biome.json +0 -116
  90. package/template-react-rsbuild-biome/commitlint.config.js +0 -1
  91. package/template-react-rsbuild-biome/index.html +0 -7
  92. package/template-react-rsbuild-biome/lefthook.yml +0 -14
  93. package/template-react-rsbuild-biome/package.json +0 -42
  94. package/template-react-rsbuild-biome/public/.gitkeep +0 -0
  95. package/template-react-rsbuild-biome/rsbuild.config.ts +0 -44
  96. package/template-react-rsbuild-biome/src/App.tsx +0 -9
  97. package/template-react-rsbuild-biome/src/assets/font/AlimamaShuHeiTi-Bold.ttf +0 -0
  98. package/template-react-rsbuild-biome/src/assets/icon/logo.svg +0 -7
  99. package/template-react-rsbuild-biome/src/components/Loading/PageLoading.tsx +0 -11
  100. package/template-react-rsbuild-biome/src/env.d.ts +0 -1
  101. package/template-react-rsbuild-biome/src/index.tsx +0 -18
  102. package/template-react-rsbuild-biome/src/layout/default/index.tsx +0 -10
  103. package/template-react-rsbuild-biome/src/pages/home/index.tsx +0 -5
  104. package/template-react-rsbuild-biome/src/router/index.tsx +0 -38
  105. package/template-react-rsbuild-biome/src/store/index.ts +0 -0
  106. package/template-react-rsbuild-biome/src/store/modules/user.ts +0 -11
  107. package/template-react-rsbuild-biome/src/styles/fonts.scss +0 -4
  108. package/template-react-rsbuild-biome/src/styles/index.scss +0 -19
  109. package/template-react-rsbuild-biome/src/styles/variables.scss +0 -4
  110. package/template-react-rsbuild-biome/src/types/auto-import.d.ts +0 -49
  111. package/template-react-rsbuild-biome/src/utils/env.ts +0 -10
  112. package/template-react-rsbuild-biome/src/utils/request/core/index.ts +0 -166
  113. package/template-react-rsbuild-biome/src/utils/request/core/utils.ts +0 -38
  114. package/template-react-rsbuild-biome/src/utils/request/index.ts +0 -43
  115. package/template-react-rsbuild-biome/tsconfig.json +0 -35
  116. package/template-react-rsbuild-biome/uno.config.ts +0 -8
  117. package/template-taro-vue-eslint/.editorconfig +0 -12
  118. package/template-taro-vue-eslint/.env +0 -3
  119. package/template-taro-vue-eslint/.env.development +0 -5
  120. package/template-taro-vue-eslint/.env.production +0 -5
  121. package/template-taro-vue-eslint/.vscode/settings.json +0 -57
  122. package/template-taro-vue-eslint/babel.config.js +0 -12
  123. package/template-taro-vue-eslint/commitlint.config.mjs +0 -1
  124. package/template-taro-vue-eslint/config/dev.ts +0 -27
  125. package/template-taro-vue-eslint/config/index.ts +0 -129
  126. package/template-taro-vue-eslint/config/output-root.ts +0 -11
  127. package/template-taro-vue-eslint/config/prod.ts +0 -39
  128. package/template-taro-vue-eslint/config/release.ts +0 -113
  129. package/template-taro-vue-eslint/eslint.config.mjs +0 -22
  130. package/template-taro-vue-eslint/lefthook.yaml +0 -13
  131. package/template-taro-vue-eslint/package.json +0 -115
  132. package/template-taro-vue-eslint/patches/@tarojs__plugin-mini-ci.patch +0 -13
  133. package/template-taro-vue-eslint/pnpm-workspace.yaml +0 -2
  134. package/template-taro-vue-eslint/project.config.json +0 -16
  135. package/template-taro-vue-eslint/src/api/common/upload.ts +0 -53
  136. package/template-taro-vue-eslint/src/app.config.ts +0 -19
  137. package/template-taro-vue-eslint/src/app.ts +0 -14
  138. package/template-taro-vue-eslint/src/assets/image/.gitkeep +0 -0
  139. package/template-taro-vue-eslint/src/index.html +0 -17
  140. package/template-taro-vue-eslint/src/pages/example/upload/index.config.ts +0 -3
  141. package/template-taro-vue-eslint/src/pages/example/upload/index.module.scss +0 -4
  142. package/template-taro-vue-eslint/src/pages/example/upload/index.vue +0 -71
  143. package/template-taro-vue-eslint/src/pages/index/index.config.ts +0 -3
  144. package/template-taro-vue-eslint/src/pages/index/index.module.scss +0 -4
  145. package/template-taro-vue-eslint/src/pages/index/index.vue +0 -71
  146. package/template-taro-vue-eslint/src/store/index.ts +0 -10
  147. package/template-taro-vue-eslint/src/store/modules/user.ts +0 -15
  148. package/template-taro-vue-eslint/src/store/taroStorage.ts +0 -7
  149. package/template-taro-vue-eslint/src/styles/index.css +0 -1
  150. package/template-taro-vue-eslint/src/styles/nut-theme.css +0 -4
  151. package/template-taro-vue-eslint/src/utils/env.ts +0 -13
  152. package/template-taro-vue-eslint/src/utils/index.ts +0 -40
  153. package/template-taro-vue-eslint/src/utils/request/core/index.ts +0 -193
  154. package/template-taro-vue-eslint/src/utils/request/core/utils.ts +0 -30
  155. package/template-taro-vue-eslint/src/utils/request/index.ts +0 -73
  156. package/template-taro-vue-eslint/tsconfig.json +0 -30
  157. package/template-taro-vue-eslint/types/components.d.ts +0 -12
  158. package/template-taro-vue-eslint/types/global.d.ts +0 -31
  159. package/template-taro-vue-eslint/types/vue.d.ts +0 -10
  160. package/template-taro-vue-eslint/unocss.config.ts +0 -38
  161. package/template-vp-monorepo-react-nestjs/.oxfmtrc.jsonc +0 -8
  162. package/template-vp-monorepo-react-nestjs/.oxlintrc.jsonc +0 -3
  163. package/template-vp-monorepo-react-nestjs/.specs//351/234/200/346/261/202.md +0 -5
  164. package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +0 -1
  165. package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +0 -1
  166. package/template-vp-monorepo-react-nestjs/README.md +0 -29
  167. package/template-vp-monorepo-react-nestjs/apps/service/.oxlintrc.jsonc +0 -3
  168. package/template-vp-monorepo-react-nestjs/apps/web/.env +0 -1
  169. package/template-vp-monorepo-react-nestjs/apps/web/.oxlintrc.jsonc +0 -4
  170. package/template-vp-monorepo-react-nestjs/apps/web/index.html +0 -13
  171. package/template-vp-monorepo-react-nestjs/apps/web/package.json +0 -39
  172. package/template-vp-monorepo-react-nestjs/apps/web/public/favicon.svg +0 -1
  173. package/template-vp-monorepo-react-nestjs/apps/web/public/icons.svg +0 -24
  174. package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +0 -24
  175. package/template-vp-monorepo-react-nestjs/apps/web/src/assets/hero.png +0 -0
  176. package/template-vp-monorepo-react-nestjs/apps/web/src/assets/react.svg +0 -1
  177. package/template-vp-monorepo-react-nestjs/apps/web/src/assets/vite.svg +0 -1
  178. package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.tsx +0 -11
  179. package/template-vp-monorepo-react-nestjs/apps/web/src/main.tsx +0 -5
  180. package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +0 -17
  181. package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +0 -25
  182. package/template-vp-monorepo-react-nestjs/apps/web/src/router/modules/.gitkeep +0 -0
  183. package/template-vp-monorepo-react-nestjs/apps/web/src/styles/index.css +0 -7
  184. package/template-vp-monorepo-react-nestjs/apps/web/src/types/auto-imports.d.ts +0 -58
  185. package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +0 -32
  186. package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +0 -32
  187. package/template-vp-monorepo-react-nestjs/commitlint.config.js +0 -0
  188. package/template-vp-monorepo-react-nestjs/package.json +0 -20
  189. package/template-vp-monorepo-react-nestjs/packages/utils/README.md +0 -23
  190. package/template-vp-monorepo-react-nestjs/packages/utils/package.json +0 -39
  191. package/template-vp-monorepo-react-nestjs/packages/utils/src/index.ts +0 -3
  192. package/template-vp-monorepo-react-nestjs/packages/utils/tests/index.test.ts +0 -6
  193. package/template-vp-monorepo-react-nestjs/packages/utils/tsconfig.json +0 -20
  194. package/template-vp-monorepo-react-nestjs/packages/utils/tsdown.config.ts +0 -9
  195. package/template-vp-monorepo-react-nestjs/packages/utils/vite.config.ts +0 -7
  196. package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +0 -23
  197. package/template-vp-monorepo-react-nestjs/tsconfig.json +0 -9
  198. package/template-vp-monorepo-react-nestjs/vite.config.ts +0 -8
  199. package/template-vp-react/.env +0 -1
  200. package/template-vp-react/.oxfmtrc.jsonc +0 -8
  201. package/template-vp-react/.oxlintrc.jsonc +0 -11
  202. package/template-vp-react/.vite-hooks/commit-msg +0 -1
  203. package/template-vp-react/.vite-hooks/pre-commit +0 -1
  204. package/template-vp-react/.vscode/extensions.json +0 -3
  205. package/template-vp-react/.vscode/settings.json +0 -11
  206. package/template-vp-react/commitlint.config.js +0 -0
  207. package/template-vp-react/index.html +0 -13
  208. package/template-vp-react/package.json +0 -41
  209. package/template-vp-react/public/favicon.svg +0 -1
  210. package/template-vp-react/public/icons.svg +0 -24
  211. package/template-vp-react/src/App.tsx +0 -24
  212. package/template-vp-react/src/assets/hero.png +0 -0
  213. package/template-vp-react/src/assets/react.svg +0 -1
  214. package/template-vp-react/src/assets/vite.svg +0 -1
  215. package/template-vp-react/src/components/Loading/PageLoading.tsx +0 -11
  216. package/template-vp-react/src/main.tsx +0 -5
  217. package/template-vp-react/src/pages/home/index.tsx +0 -17
  218. package/template-vp-react/src/router/index.tsx +0 -25
  219. package/template-vp-react/src/router/modules/.gitkeep +0 -0
  220. package/template-vp-react/src/styles/index.css +0 -7
  221. package/template-vp-react/src/types/auto-imports.d.ts +0 -58
  222. package/template-vp-react/tsconfig.json +0 -32
  223. package/template-vp-react/vite.config.ts +0 -35
  224. package/template-vp-react-shadcn/.env +0 -1
  225. package/template-vp-react-shadcn/.oxfmtrc.jsonc +0 -8
  226. package/template-vp-react-shadcn/.oxlintrc.jsonc +0 -3
  227. package/template-vp-react-shadcn/.vite-hooks/commit-msg +0 -1
  228. package/template-vp-react-shadcn/.vite-hooks/pre-commit +0 -1
  229. package/template-vp-react-shadcn/.vscode/extensions.json +0 -3
  230. package/template-vp-react-shadcn/.vscode/settings.json +0 -12
  231. package/template-vp-react-shadcn/agents.md +0 -44
  232. package/template-vp-react-shadcn/commitlint.config.js +0 -1
  233. package/template-vp-react-shadcn/components.json +0 -25
  234. package/template-vp-react-shadcn/index.html +0 -13
  235. package/template-vp-react-shadcn/package.json +0 -56
  236. package/template-vp-react-shadcn/public/favicon.svg +0 -1
  237. package/template-vp-react-shadcn/public/icons.svg +0 -24
  238. package/template-vp-react-shadcn/src/App.tsx +0 -24
  239. package/template-vp-react-shadcn/src/api/.gitkeep +0 -0
  240. package/template-vp-react-shadcn/src/assets/hero.png +0 -0
  241. package/template-vp-react-shadcn/src/assets/react.svg +0 -1
  242. package/template-vp-react-shadcn/src/assets/vite.svg +0 -1
  243. package/template-vp-react-shadcn/src/components/Loading/PageLoading.tsx +0 -11
  244. package/template-vp-react-shadcn/src/components/Player/VideoJS/index.tsx +0 -163
  245. package/template-vp-react-shadcn/src/components/Player/index.ts +0 -7
  246. package/template-vp-react-shadcn/src/components/ui/button.tsx +0 -67
  247. package/template-vp-react-shadcn/src/components/ui/sonner.tsx +0 -43
  248. package/template-vp-react-shadcn/src/components/ui/spinner.tsx +0 -17
  249. package/template-vp-react-shadcn/src/hooks/.gitkeep +0 -0
  250. package/template-vp-react-shadcn/src/lib/utils.ts +0 -6
  251. package/template-vp-react-shadcn/src/main.tsx +0 -5
  252. package/template-vp-react-shadcn/src/pages/home/index.tsx +0 -96
  253. package/template-vp-react-shadcn/src/router/index.tsx +0 -25
  254. package/template-vp-react-shadcn/src/router/modules/.gitkeep +0 -0
  255. package/template-vp-react-shadcn/src/store/.gitkeep +0 -0
  256. package/template-vp-react-shadcn/src/styles/index.css +0 -16
  257. package/template-vp-react-shadcn/src/styles/shadcn.css +0 -127
  258. package/template-vp-react-shadcn/src/types/auto-imports.d.ts +0 -58
  259. package/template-vp-react-shadcn/src/utils/env/index.tsx +0 -6
  260. package/template-vp-react-shadcn/src/utils/request/alova-core/index.ts +0 -276
  261. package/template-vp-react-shadcn/src/utils/request/alova-core/utils.ts +0 -24
  262. package/template-vp-react-shadcn/src/utils/request/index.ts +0 -48
  263. package/template-vp-react-shadcn/src/utils/request/readme.md +0 -176
  264. package/template-vp-react-shadcn/tsconfig.json +0 -32
  265. package/template-vp-react-shadcn/vite.config.ts +0 -35
  266. package/template-vue-rolldown-oxc/.env +0 -4
  267. package/template-vue-rolldown-oxc/.env.development +0 -1
  268. package/template-vue-rolldown-oxc/.env.production +0 -1
  269. package/template-vue-rolldown-oxc/.gitlab-ci.yml +0 -84
  270. package/template-vue-rolldown-oxc/.oxlintrc.json +0 -4
  271. package/template-vue-rolldown-oxc/.prettierignore +0 -34
  272. package/template-vue-rolldown-oxc/.prettierrc +0 -18
  273. package/template-vue-rolldown-oxc/.vscode/settings.json +0 -11
  274. package/template-vue-rolldown-oxc/README.md +0 -3
  275. package/template-vue-rolldown-oxc/commitlint.config.js +0 -1
  276. package/template-vue-rolldown-oxc/index.html +0 -13
  277. package/template-vue-rolldown-oxc/lefthook.yml +0 -11
  278. package/template-vue-rolldown-oxc/package.json +0 -55
  279. package/template-vue-rolldown-oxc/public/vite.svg +0 -1
  280. package/template-vue-rolldown-oxc/src/App.vue +0 -17
  281. package/template-vue-rolldown-oxc/src/assets/icon/vue.svg +0 -1
  282. package/template-vue-rolldown-oxc/src/components/Icon/svg-icon.vue +0 -29
  283. package/template-vue-rolldown-oxc/src/layout/default/index.vue +0 -3
  284. package/template-vue-rolldown-oxc/src/main.ts +0 -13
  285. package/template-vue-rolldown-oxc/src/router/guard/index.tsx +0 -7
  286. package/template-vue-rolldown-oxc/src/router/guard/permissionGuard.ts +0 -8
  287. package/template-vue-rolldown-oxc/src/router/index.tsx +0 -15
  288. package/template-vue-rolldown-oxc/src/router/modules/index.tsx +0 -31
  289. package/template-vue-rolldown-oxc/src/store/index.ts +0 -10
  290. package/template-vue-rolldown-oxc/src/store/modules/user.ts +0 -17
  291. package/template-vue-rolldown-oxc/src/styles/element-plus-variables.css +0 -4
  292. package/template-vue-rolldown-oxc/src/styles/font.scss +0 -0
  293. package/template-vue-rolldown-oxc/src/styles/index.scss +0 -31
  294. package/template-vue-rolldown-oxc/src/styles/variables.scss +0 -3
  295. package/template-vue-rolldown-oxc/src/utils/env.ts +0 -10
  296. package/template-vue-rolldown-oxc/src/utils/request/core/index.ts +0 -166
  297. package/template-vue-rolldown-oxc/src/utils/request/core/utils.ts +0 -38
  298. package/template-vue-rolldown-oxc/src/utils/request/index.ts +0 -39
  299. package/template-vue-rolldown-oxc/src/views/home/index.vue +0 -16
  300. package/template-vue-rolldown-oxc/src/views/model/index.vue +0 -7
  301. package/template-vue-rolldown-oxc/src/vite-env.d.ts +0 -13
  302. package/template-vue-rolldown-oxc/tsconfig.json +0 -36
  303. package/template-vue-rolldown-oxc/uno.config.ts +0 -10
  304. package/template-vue-rolldown-oxc/vite.config.ts +0 -51
  305. package/template-vue-vite-eslint/.env +0 -6
  306. package/template-vue-vite-eslint/.env.development +0 -2
  307. package/template-vue-vite-eslint/.env.production +0 -1
  308. package/template-vue-vite-eslint/README.md +0 -3
  309. package/template-vue-vite-eslint/commitlint.config.js +0 -1
  310. package/template-vue-vite-eslint/eslint.config.js +0 -69
  311. package/template-vue-vite-eslint/index.html +0 -13
  312. package/template-vue-vite-eslint/lefthook.yml +0 -11
  313. package/template-vue-vite-eslint/package.json +0 -56
  314. package/template-vue-vite-eslint/public/vite.svg +0 -1
  315. package/template-vue-vite-eslint/src/App.vue +0 -19
  316. package/template-vue-vite-eslint/src/api/index.ts +0 -12
  317. package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +0 -3
  318. package/template-vue-vite-eslint/src/assets/icon/cpu.svg +0 -3
  319. package/template-vue-vite-eslint/src/assets/icon/data-search.svg +0 -3
  320. package/template-vue-vite-eslint/src/assets/icon/home.svg +0 -3
  321. package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +0 -3
  322. package/template-vue-vite-eslint/src/assets/icon/logo.svg +0 -1
  323. package/template-vue-vite-eslint/src/assets/icon/robot.svg +0 -3
  324. package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
  325. package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +0 -29
  326. package/template-vue-vite-eslint/src/hooks/chart/lib.ts +0 -57
  327. package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +0 -65
  328. package/template-vue-vite-eslint/src/layout/default/header/index.vue +0 -12
  329. package/template-vue-vite-eslint/src/layout/default/index.vue +0 -55
  330. package/template-vue-vite-eslint/src/main.ts +0 -16
  331. package/template-vue-vite-eslint/src/router/guard/index.ts +0 -7
  332. package/template-vue-vite-eslint/src/router/guard/permissionGuard.ts +0 -13
  333. package/template-vue-vite-eslint/src/router/index.ts +0 -18
  334. package/template-vue-vite-eslint/src/router/interface.ts +0 -9
  335. package/template-vue-vite-eslint/src/router/modules/example.ts +0 -21
  336. package/template-vue-vite-eslint/src/router/modules/index.ts +0 -36
  337. package/template-vue-vite-eslint/src/store/index.ts +0 -11
  338. package/template-vue-vite-eslint/src/store/modules/user.ts +0 -20
  339. package/template-vue-vite-eslint/src/styles/font.scss +0 -0
  340. package/template-vue-vite-eslint/src/styles/index.scss +0 -29
  341. package/template-vue-vite-eslint/src/styles/variables.scss +0 -3
  342. package/template-vue-vite-eslint/src/types/auto-import.d.ts +0 -78
  343. package/template-vue-vite-eslint/src/types/components.d.ts +0 -18
  344. package/template-vue-vite-eslint/src/types/vite-env.d.ts +0 -15
  345. package/template-vue-vite-eslint/src/utils/env.ts +0 -11
  346. package/template-vue-vite-eslint/src/utils/request/core/index.ts +0 -186
  347. package/template-vue-vite-eslint/src/utils/request/core/utils.ts +0 -41
  348. package/template-vue-vite-eslint/src/utils/request/index.ts +0 -42
  349. package/template-vue-vite-eslint/src/views/example/echart/config.ts +0 -1794
  350. package/template-vue-vite-eslint/src/views/example/echart/index.vue +0 -22
  351. package/template-vue-vite-eslint/src/views/example/h-full.vue +0 -24
  352. package/template-vue-vite-eslint/src/views/example/tree-chart.vue +0 -94
  353. package/template-vue-vite-eslint/src/views/home/index.vue +0 -25
  354. package/template-vue-vite-eslint/src/views/login/index.vue +0 -9
  355. package/template-vue-vite-eslint/tsconfig.json +0 -36
  356. package/template-vue-vite-eslint/uno.config.ts +0 -21
  357. package/template-vue-vite-eslint/vite.config.ts +0 -60
@@ -1,176 +0,0 @@
1
- # request 使用说明
2
-
3
- `src/utils/request/index.ts` 导出的是项目统一的 alova 请求实例,业务接口建议统一放在 `src/api` 里封装,页面和组件不要直接散写请求配置。
4
-
5
- ## 基础用法
6
-
7
- 请求方法会创建 alova `Method` 实例,不会在创建时立刻发送请求。可以在组件中交给 `useRequest`,也可以在普通函数里直接 `await`。
8
-
9
- ```ts
10
- import alovaRequest from "@/utils/request";
11
-
12
- interface DramaItem {
13
- id: number;
14
- title: string;
15
- }
16
-
17
- interface DramaListParams {
18
- page: number;
19
- pageSize: number;
20
- }
21
-
22
- export const getDramaList = (params: DramaListParams) => {
23
- return alovaRequest.Get<DramaItem[]>("/drama/list", { params });
24
- };
25
- ```
26
-
27
- 组件中使用:
28
-
29
- ```tsx
30
- import { useRequest } from "alova/client";
31
-
32
- import { getDramaList } from "@/api";
33
-
34
- export function DramaList() {
35
- const { data, loading, error } = useRequest(getDramaList({ page: 1, pageSize: 20 }), {
36
- initialData: [],
37
- });
38
-
39
- // ...
40
- }
41
- ```
42
-
43
- 普通异步函数中使用:
44
-
45
- ```ts
46
- const list = await getDramaList({ page: 1, pageSize: 20 });
47
- ```
48
-
49
- ## 请求参数
50
-
51
- GET 查询参数放在第二个参数的 `params` 里:
52
-
53
- ```ts
54
- alovaRequest.Get<UserInfo>("/user/detail", {
55
- params: {
56
- id: 1,
57
- },
58
- });
59
- ```
60
-
61
- POST、PUT、PATCH、DELETE 的 body 放在第二个参数,配置放在第三个参数:
62
-
63
- ```ts
64
- alovaRequest.Post<CreateUserResult>("/user/create", {
65
- name: "Tom",
66
- });
67
-
68
- alovaRequest.Post<CreateUserResult>(
69
- "/user/create",
70
- { name: "Tom" },
71
- {
72
- meta: {
73
- isShowSuccessMessage: true,
74
- },
75
- },
76
- );
77
- ```
78
-
79
- ## 返回结构
80
-
81
- 默认按下面这种后端格式处理:
82
-
83
- ```ts
84
- interface ApiResponse<T> {
85
- code: number;
86
- data: T;
87
- msg: string;
88
- }
89
- ```
90
-
91
- 默认规则:
92
-
93
- - HTTP 状态码 `200`、`201`、`204` 视为成功。
94
- - 业务 `code` 在 `codeMap.success` 中视为成功,当前默认是 `[200]`。
95
- - 成功后返回 `data` 字段,所以 `alovaRequest.Get<User[]>` 的最终数据类型就是 `User[]`。
96
- - 如果响应不是普通对象,会直接返回解析后的原始数据,比如字符串。
97
-
98
- ## 提示开关
99
-
100
- 单次请求可以通过 `meta` 控制是否转换响应、是否显示成功提示、是否显示错误提示。
101
-
102
- ```ts
103
- alovaRequest.Post(
104
- "/user/update",
105
- { id: 1, name: "Tom" },
106
- {
107
- meta: {
108
- isShowSuccessMessage: true,
109
- isShowErrorMessage: false,
110
- },
111
- },
112
- );
113
- ```
114
-
115
- 也可以创建一个带临时配置的请求实例:
116
-
117
- ```ts
118
- const silentRequest = alovaRequest({
119
- isShowErrorMessage: false,
120
- });
121
-
122
- silentRequest.Get<UserInfo>("/user/detail", {
123
- params: { id: 1 },
124
- });
125
- ```
126
-
127
- ## 原始响应
128
-
129
- 下载文件、读取响应头、或不想走业务 `code/data/msg` 转换时,关闭 `isTransformResponse`。
130
-
131
- ```ts
132
- const downloadFile = () => {
133
- return alovaRequest.Get<Response>("/file/download", {
134
- meta: {
135
- isTransformResponse: false,
136
- },
137
- });
138
- };
139
-
140
- const response = await downloadFile();
141
- const blob = await response.blob();
142
- ```
143
-
144
- ## 错误处理
145
-
146
- HTTP 状态码错误、业务 `code` 错误都会抛出 `RequestError`,alova hook 会进入 `error` 分支。
147
-
148
- ```ts
149
- import { RequestError } from "@/utils/request/alova-core";
150
-
151
- try {
152
- await getDramaList({ page: 1, pageSize: 20 });
153
- } catch (error) {
154
- if (error instanceof RequestError) {
155
- console.log(error.status, error.code, error.message);
156
- }
157
- }
158
- ```
159
-
160
- `401` 会自动执行 `unAuthorizedResponseFunc`,当前行为是跳转到 `/login` 并提示登录过期。
161
-
162
- ## 环境变量
163
-
164
- 请求基础路径来自 `VITE_API_AFFIX`:
165
-
166
- ```env
167
- VITE_API_AFFIX=/api
168
- ```
169
-
170
- 没有配置时会使用 `/`,避免出现 `/undefined`。
171
-
172
- ## 注意事项
173
-
174
- - 业务接口优先写成函数并标注返回泛型,例如 `alovaRequest.Get<UserInfo>()`,组件里的 `useRequest` 会自动推断数据类型。
175
- - 不要把 GET 查询参数直接作为第二个裸对象传入,第二个参数是配置对象,查询参数必须放到 `{ params }`。
176
- - 需要局部关闭错误提示时优先用 `meta.isShowErrorMessage`,不要在组件里重复 toast。
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2023",
4
- "useDefineForClassFields": true,
5
- "module": "ESNext",
6
- "lib": ["ES2023", "DOM", "DOM.Iterable"],
7
- "types": ["vite/client"],
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
- "jsx": "react-jsx",
17
-
18
- /* Linting */
19
- "strict": true,
20
- "noUnusedLocals": true,
21
- "noUnusedParameters": true,
22
- "erasableSyntaxOnly": true,
23
- "noFallthroughCasesInSwitch": true,
24
- "noUncheckedSideEffectImports": true,
25
-
26
- "baseUrl": ".",
27
- "paths": {
28
- "@/*": ["src/*"]
29
- }
30
- },
31
- "include": ["src"]
32
- }
@@ -1,35 +0,0 @@
1
- import path from "path";
2
-
3
- import tailwindcss from "@tailwindcss/vite";
4
- import react from "@vitejs/plugin-react";
5
- import AutoImport from "unplugin-auto-import/vite";
6
- import { defineConfig, loadEnv } from "vite-plus";
7
-
8
- export default defineConfig(({ mode }) => {
9
- const root = process.cwd();
10
- const env = loadEnv(mode, root);
11
- const { VITE_PORT } = env;
12
-
13
- return {
14
- resolve: {
15
- alias: {
16
- "@": path.resolve(__dirname, "src"),
17
- },
18
- },
19
- server: {
20
- port: Number(VITE_PORT),
21
- host: "0.0.0.0",
22
- },
23
- plugins: [
24
- react(),
25
- AutoImport({
26
- imports: ["react", "react-router", "react-dom"],
27
- dts: "./src/types/auto-imports.d.ts",
28
- }),
29
- tailwindcss(),
30
- ],
31
- staged: {
32
- "*": "vp check --fix",
33
- },
34
- };
35
- });
@@ -1,4 +0,0 @@
1
- VITE_PORT = 9405
2
- VITE_PATH = '/'
3
- VITE_APP_NAME = "xxx"
4
- VITE_API_AFFIX = 'api'
@@ -1 +0,0 @@
1
- PUBLIC_API_URL = 'http://localhost:8080'
@@ -1 +0,0 @@
1
- PUBLIC_API_URL = 'http://localhost:8080'
@@ -1,84 +0,0 @@
1
- .send_dingtalk_notification: &send_dingtalk_notification |
2
- case "$CI_JOB_STAGE" in
3
- "build")
4
- stage_name="构建"
5
- ;;
6
- "deploy")
7
- stage_name="部署"
8
- ;;
9
- esac
10
-
11
- if [ "$CI_JOB_STATUS" == "success" ]; then
12
- title="==✅ ${stage_name}成功=="
13
- else
14
- title="==❌ ${stage_name}失败=="
15
- fi
16
-
17
- curl -s -X POST ${DINGTALK_WEBHOOK} \
18
- -H "Content-Type: application/json" \
19
- -d "{
20
- \"msgtype\": \"markdown\",
21
- \"markdown\": {
22
- \"title\": \"GitLab CI/CD 通知\",
23
- \"text\": \"### ${title}\n\n- **项目**: ${CI_PROJECT_NAME}\n- **项目地址**: ${CI_PROJECT_URL}\n- **阶段**: ${stage_name}\n- **任务**: [查看详情](${CI_JOB_URL})\n- **分支**: ${CI_COMMIT_REF_NAME}\n- **提交人**: ${CI_COMMIT_AUTHOR}\n- **提交信息**: ${CI_COMMIT_MESSAGE}\n- **时间**: $(date '+%Y-%m-%d %H:%M:%S')\"
24
- }
25
- }"
26
-
27
- stages:
28
- - build
29
- - deploy
30
-
31
- variables:
32
- DEPLOY_PATH: '/usr/local/bee/web/pipe-network/pipe-network-model'
33
- MOCK_DEPLOY_PATH: '/usr/local/bee/web/pipe-network/pipe-network-model-mock'
34
- DINGTALK_WEBHOOK: 'https://oapi.dingtalk.com/robot/send?access_token=${DING_TALK_ACCESS_TOKEN}'
35
-
36
- cache:
37
- paths:
38
- - node_modules/
39
-
40
- # 打包
41
- build:
42
- stage: build
43
- script:
44
- - cd ${CI_PROJECT_DIR}
45
- - whoami
46
- - echo "===== 开始构建 ====="
47
- - pnpm install
48
- - pnpm build
49
- - echo "===== 构建完成 ====="
50
- only:
51
- - dev
52
- - mock
53
- artifacts:
54
- paths:
55
- - dist/
56
- after_script:
57
- #钉钉通知
58
- - *send_dingtalk_notification
59
-
60
- # 部署
61
- deploy:
62
- stage: deploy
63
- needs: ['build']
64
- only:
65
- - dev
66
- - mock
67
- script:
68
- - echo "-----------------开始部署------------------"
69
- - |
70
- if [ "$CI_COMMIT_BRANCH" == "dev" ]; then
71
- ssh root@192.168.2.245 "rm -rf $DEPLOY_PATH/*" || { echo "❌ 清理245失败"; exit 1; }
72
- scp -r dist/* root@192.168.2.245:$DEPLOY_PATH || { echo "❌ 传输到245失败"; exit 1; }
73
- ssh root@192.168.2.57 "rm -rf $DEPLOY_PATH/*" || { echo "❌ 清理57失败"; exit 1; }
74
- scp -r dist/* root@192.168.2.57:$DEPLOY_PATH || { echo "❌ 传输到57失败"; exit 1; }
75
- elif [ "$CI_COMMIT_BRANCH" == "mock" ]; then
76
- ssh root@192.168.2.57 "rm -rf $MOCK_DEPLOY_PATH/*" || { echo "❌ 清理57失败"; exit 1; }
77
- scp -r dist/* root@192.168.2.57:$MOCK_DEPLOY_PATH || { echo "❌ 传输到57失败"; exit 1; }
78
- else
79
- echo "没有匹配到需要部署的分支或标签,跳过部署"
80
- exit 0
81
- fi
82
- after_script:
83
- #钉钉通知
84
- - *send_dingtalk_notification
@@ -1,4 +0,0 @@
1
- {
2
- "plugins": ["vue", "import", "oxc", "unicorn"],
3
- "ignorePatterns": ["node_modules", "dist", "public", "*.d.ts"]
4
- }
@@ -1,34 +0,0 @@
1
- **/*.png
2
- **/*.svg
3
- CODEOWNERS
4
- .dockerignore
5
- Dockerfile.ui-test
6
- .dumi/tmp
7
- .dumi/tmp-production
8
- !dumi
9
- # AUTHORS.txt
10
- lib/
11
- es/
12
- dist/
13
- # _site/
14
- # server
15
- # coverage/
16
- # CNAME
17
- LICENSE
18
- yarn.lock
19
- # netlify.toml
20
- yarn-error.log
21
- *.sh
22
- *.snap
23
- components/*/*.js
24
- components/*/*.jsx
25
- .gitignore
26
- .npmignore
27
- .prettierignore
28
- .DS_Store
29
- .editorconfig
30
- .eslintignore
31
- .history
32
- **/*.yml
33
- *.html
34
- CHANGELOG.*.md
@@ -1,18 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "jsxSingleQuote": false,
4
- "trailingComma": "all",
5
- "printWidth": 100,
6
- "proseWrap": "never",
7
- "semi": false,
8
- "importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
9
- "plugins": ["@ianvs/prettier-plugin-sort-imports", "@prettier/plugin-oxc"],
10
- "overrides": [
11
- {
12
- "files": ".prettierrc",
13
- "options": {
14
- "parser": "json"
15
- }
16
- }
17
- ]
18
- }
@@ -1,11 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "editor.defaultFormatter": "esbenp.prettier-vscode",
4
- "editor.codeActionsOnSave": {
5
- "source.fixAll.oxc": "explicit",
6
- "source.organizeImports.prettier": "explicit"
7
- },
8
- "cSpell.words": ["Alova", "alove", "AMAP", "autofit", "unocss", "VITE"],
9
- "biome.enabled": false,
10
- "eslint.enable": false
11
- }
@@ -1,3 +0,0 @@
1
- ### ui 组件库
2
-
3
- element-plus pro-components
@@ -1 +0,0 @@
1
- export default { extends: ['@commitlint/config-conventional'] }
@@ -1,13 +0,0 @@
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>
@@ -1,11 +0,0 @@
1
- pre-commit:
2
- commands:
3
- check:
4
- glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
5
- run: npx oxlint --fix --fix-suggestions {staged_files}
6
- stage_fixed: true
7
-
8
- commit-msg:
9
- commands:
10
- 'lint commit message':
11
- run: npx commitlint --edit {1}
@@ -1,55 +0,0 @@
1
- {
2
- "name": "template-vue-rolldown-oxlint",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite",
8
- "build": "vue-tsc -b && vite build",
9
- "preview": "vite preview",
10
- "lint": "pnpm lint:oxlint",
11
- "lint:oxlint": "oxlint --fix",
12
- "format": "prettier --write ."
13
- },
14
- "lint-staged": {
15
- "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,astro,svelte}": "oxlint"
16
- },
17
- "dependencies": {
18
- "@alova/adapter-axios": "^2.0.16",
19
- "@element-plus/icons-vue": "^2.3.2",
20
- "@vueuse/core": "^13.9.0",
21
- "alova": "^3.3.4",
22
- "axios": "^1.12.2",
23
- "dayjs": "^1.11.18",
24
- "echarts": "^6.0.0",
25
- "element-plus": "^2.11.5",
26
- "pinia": "^3.0.3",
27
- "pinia-plugin-persistedstate": "^4.5.0",
28
- "plus-pro-components": "^0.1.30",
29
- "radashi": "^12.7.0",
30
- "vue": "^3.5.22",
31
- "vue-router": "^4.6.3"
32
- },
33
- "devDependencies": {
34
- "@commitlint/cli": "^20.1.0",
35
- "@commitlint/config-conventional": "^20.0.0",
36
- "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
37
- "@plus-pro-components/resolver": "^0.0.3",
38
- "@prettier/plugin-oxc": "^0.0.4",
39
- "@vitejs/plugin-vue": "^6.0.1",
40
- "@vue/tsconfig": "^0.8.1",
41
- "fast-glob": "^3.3.3",
42
- "lefthook": "^1.13.6",
43
- "oxlint": "^1.23.0",
44
- "prettier": "^3.6.2",
45
- "sass": "^1.93.2",
46
- "typescript": "~5.9.3",
47
- "unocss": "^66.5.4",
48
- "unplugin-auto-import": "^20.2.0",
49
- "unplugin-vue-components": "^30.0.0",
50
- "vite": "npm:rolldown-vite@7.1.17",
51
- "vite-plugin-inspect": "^11.3.3",
52
- "vite-plugin-svg-icons": "^2.0.1",
53
- "vue-tsc": "^3.1.1"
54
- }
55
- }
@@ -1 +0,0 @@
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>
@@ -1,17 +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
- </script>
5
-
6
- <template>
7
- <el-config-provider
8
- :locale="{
9
- ...zhCn,
10
- ...plusZhCn,
11
- }"
12
- >
13
- <RouterView />
14
- </el-config-provider>
15
- </template>
16
-
17
- <style scoped></style>
@@ -1 +0,0 @@
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>
@@ -1,29 +0,0 @@
1
- <template>
2
- <svg class="svg-icon" aria-hidden="true" v-bind="attrs">
3
- <use :href="`#icon-${name}`" />
4
- </svg>
5
- </template>
6
-
7
- <script setup lang="ts">
8
- const attrs = useAttrs()
9
- defineProps<{
10
- name: string
11
- }>()
12
- </script>
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>
@@ -1,3 +0,0 @@
1
- <template>
2
- <router-view />
3
- </template>
@@ -1,13 +0,0 @@
1
- import '@/styles/element-plus-variables.css'
2
- import '@/styles/index.scss'
3
- import 'virtual:svg-icons-register'
4
- import 'virtual:uno.css'
5
- import { createApp } from 'vue'
6
- import App from './App.vue'
7
- import { setupRouter } from './router'
8
- import { setupStore } from './store'
9
-
10
- const app = createApp(App)
11
- setupRouter(app)
12
- setupStore(app)
13
- app.mount('#app')
@@ -1,7 +0,0 @@
1
- import type { Router } from 'vue-router'
2
-
3
- import { createPermissionGuard } from './permissionGuard'
4
-
5
- export const setupGuard = (router: Router) => {
6
- createPermissionGuard(router)
7
- }
@@ -1,8 +0,0 @@
1
- import type { Router } from 'vue-router'
2
-
3
- export const createPermissionGuard = (router: Router) => {
4
- router.beforeEach((to, from, next) => {
5
- next()
6
- })
7
- router.afterEach((to, from) => {})
8
- }
@@ -1,15 +0,0 @@
1
- import type { App } from 'vue'
2
- import { createRouter, createWebHistory } from 'vue-router'
3
-
4
- import { routes } from './modules'
5
-
6
- export const router = createRouter({
7
- history: createWebHistory(import.meta.env.PUBLIC_PATH),
8
- routes: routes,
9
- strict: true,
10
- scrollBehavior: () => ({ left: 0, top: 0 }),
11
- })
12
-
13
- export const setupRouter = (app: App) => {
14
- app.use(router)
15
- }
@@ -1,31 +0,0 @@
1
- import type { RouteRecordRaw } from 'vue-router'
2
-
3
- /**
4
- * IsMaskAll 代表 是不是要和模型交互 为true 全部遮罩
5
- */
6
-
7
- export const routes: RouteRecordRaw[] = [
8
- {
9
- path: '/',
10
- name: 'layout',
11
- component: () => import('@/layout/default/index.vue'),
12
- children: [
13
- {
14
- path: '/',
15
- redirect: '/home',
16
- },
17
- {
18
- path: '/home',
19
- name: 'Home',
20
- meta: { title: '研发A区数字孪生可视化大屏', isHideBack: true },
21
- component: () => import('@/views/home/index.vue'),
22
- },
23
- ],
24
- },
25
- {
26
- path: '/model',
27
- name: 'model',
28
- meta: {},
29
- component: () => import('@/views/model/index.vue'),
30
- },
31
- ]
@@ -1,10 +0,0 @@
1
- import type { App } from 'vue'
2
- import { createPinia } from 'pinia'
3
- import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
4
-
5
- export const store = createPinia()
6
- store.use(piniaPluginPersistedstate)
7
-
8
- export const setupStore = (app: App) => {
9
- app.use(store)
10
- }