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,129 +0,0 @@
1
- import type { UserConfigExport } from '@tarojs/cli'
2
- import process from 'node:process'
3
- import NutUIResolver from '@nutui/auto-import-resolver'
4
- import { defineConfig } from '@tarojs/cli'
5
- import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'
6
- import UnoCSS from 'unocss/webpack'
7
- import Components from 'unplugin-vue-components/webpack'
8
- import devConfig from './dev'
9
- import { outputRootMap } from './output-root'
10
- import prodConfig from './prod'
11
- import { CIPluginFn } from './release'
12
-
13
- // https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数
14
- export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
15
- const baseConfig: UserConfigExport<'webpack5'> = {
16
- projectName: 'myApp',
17
- date: '2026-2-24',
18
- designWidth: (input: any) => {
19
- // 配置 NutUI 375 尺寸
20
- if (input?.file?.replace(/\\+/g, '/').indexOf('@nutui') > -1) {
21
- return 375
22
- }
23
- // 全局使用 Taro 默认的 750 尺寸
24
- return 750
25
- },
26
- deviceRatio: {
27
- 640: 2.34 / 2,
28
- 750: 1,
29
- 375: 2,
30
- 828: 1.81 / 2,
31
- },
32
- sourceRoot: 'src',
33
- outputRoot: outputRootMap[process.env.TARO_ENV] || 'dist/other',
34
- plugins: [
35
- '@tarojs/plugin-generator',
36
- '@tarojs/plugin-html',
37
- ['@tarojs/plugin-mini-ci', CIPluginFn],
38
- ],
39
- defineConstants: {
40
- },
41
- copy: {
42
- patterns: [
43
- ],
44
- options: {
45
- },
46
- },
47
- framework: 'vue3',
48
- compiler: 'webpack5',
49
- cache: {
50
- enable: false, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
51
- },
52
- mini: {
53
- postcss: {
54
- pxtransform: {
55
- enable: true,
56
- config: {
57
-
58
- },
59
- },
60
- cssModules: {
61
- enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true
62
- config: {
63
- namingPattern: 'module', // 转换模式,取值为 global/module
64
- generateScopedName: '[name]__[local]___[hash:base64:5]',
65
- },
66
- },
67
- },
68
- webpackChain(chain) {
69
- chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
70
- chain.plugin('unplugin-vue-components').use(Components({
71
- resolvers: [NutUIResolver({ taro: true })],
72
- dts: './types/components.d.ts',
73
- }))
74
- chain.plugin('unocss').use(UnoCSS())
75
- },
76
- },
77
- h5: {
78
- publicPath: '/',
79
- staticDirectory: 'static',
80
- output: {
81
- filename: 'js/[name].[hash:8].js',
82
- chunkFilename: 'js/[name].[chunkhash:8].js',
83
- },
84
- miniCssExtractPluginOption: {
85
- ignoreOrder: true,
86
- filename: 'css/[name].[hash].css',
87
- chunkFilename: 'css/[name].[chunkhash].css',
88
- },
89
- postcss: {
90
- autoprefixer: {
91
- enable: true,
92
- config: {},
93
- },
94
- cssModules: {
95
- enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true
96
- config: {
97
- namingPattern: 'module', // 转换模式,取值为 global/module
98
- generateScopedName: '[name]__[local]___[hash:base64:5]',
99
- },
100
- },
101
- },
102
- webpackChain(chain) {
103
- chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
104
- chain.plugin('unplugin-vue-components').use(Components({
105
- resolvers: [NutUIResolver({ taro: true })],
106
- dts: './types/components.d.ts',
107
- }))
108
- chain.plugin('unocss').use(UnoCSS())
109
- },
110
- },
111
- rn: {
112
- appName: 'taroDemo',
113
- postcss: {
114
- cssModules: {
115
- enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
116
- },
117
- },
118
- },
119
- }
120
-
121
- process.env.BROWSERSLIST_ENV = process.env.NODE_ENV
122
-
123
- if (process.env.NODE_ENV === 'development') {
124
- // 本地开发构建配置(不混淆压缩)
125
- return merge({}, baseConfig, devConfig)
126
- }
127
- // 生产构建配置(默认开启压缩混淆等)
128
- return merge({}, baseConfig, prodConfig)
129
- })
@@ -1,11 +0,0 @@
1
- export const outputRootMap = {
2
- 'weapp': 'dist/weapp',
3
- 'swan': 'dist/swan',
4
- 'alipay': 'dist/alipay',
5
- 'tt': 'dist/tt',
6
- 'h5': 'dist/h5',
7
- 'rn': 'dist/rn',
8
- 'qq': 'dist/qq',
9
- 'jd': 'dist/jd',
10
- 'harmony-hybrid': 'dist/harmony-hybrid',
11
- }
@@ -1,39 +0,0 @@
1
- import type { UserConfigExport } from '@tarojs/cli'
2
-
3
- export default {
4
- mini: {},
5
- h5: {
6
- compile: {
7
- include: [
8
- // 确保产物为 es5
9
- filename => /node_modules\/(?!(@babel|core-js|style-loader|css-loader|react|react-dom))/.test(filename),
10
- ],
11
- },
12
- /**
13
- * WebpackChain 插件配置
14
- * @docs https://github.com/neutrinojs/webpack-chain
15
- */
16
- // webpackChain (chain) {
17
- // /**
18
- // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
19
- // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
20
- // */
21
- // chain.plugin('analyzer')
22
- // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
23
- // /**
24
- // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
25
- // * @docs https://github.com/chrisvfritz/prerender-spa-plugin
26
- // */
27
- // const path = require('path')
28
- // const Prerender = require('prerender-spa-plugin')
29
- // const staticDir = path.join(__dirname, '..', 'dist')
30
- // chain
31
- // .plugin('prerender')
32
- // .use(new Prerender({
33
- // staticDir,
34
- // routes: [ '/pages/index/index' ],
35
- // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
36
- // }))
37
- // }
38
- },
39
- } satisfies UserConfigExport<'webpack5'>
@@ -1,113 +0,0 @@
1
- import { execSync } from 'node:child_process'
2
- import * as fs from 'node:fs'
3
- import * as path from 'node:path'
4
- import process from 'node:process'
5
-
6
- /**
7
- * 获取package.json中的版本号
8
- */
9
- function getPackageVersion(): string {
10
- try {
11
- const packagePath = path.join(process.cwd(), 'package.json')
12
- const packageContent = fs.readFileSync(packagePath, 'utf8')
13
- const packageData = JSON.parse(packageContent)
14
- return packageData.version || '1.0.0'
15
- } catch {
16
- console.warn('⚠️ 获取package.json版本号失败,使用默认版本 1.0.0')
17
- return '1.0.0'
18
- }
19
- }
20
-
21
- /**
22
- * 获取最新的Git提交信息
23
- */
24
- function getLatestCommitMessage(): string {
25
- try {
26
- const message = execSync('git log -1 --pretty=%B', { encoding: 'utf8' }).trim()
27
- return message || '版本更新'
28
- } catch {
29
- console.warn('⚠️ 获取Git提交信息失败,使用默认描述')
30
- return '版本更新'
31
- }
32
- }
33
-
34
- /**
35
- * 获取当前分支名
36
- */
37
- function getCurrentBranch(): string {
38
- try {
39
- return execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf8' }).trim()
40
- } catch {
41
- return 'unknown'
42
- }
43
- }
44
-
45
- /**
46
- * 获取提交者信息
47
- */
48
- function getCommitAuthor(): string {
49
- try {
50
- return execSync('git log -1 --pretty=%an', { encoding: 'utf8' }).trim()
51
- } catch {
52
- return 'unknown'
53
- }
54
- }
55
-
56
- /**
57
- * CI插件配置函数
58
- * 自动读取版本号和提交信息
59
- * @returns CIOptions配置
60
- */
61
- export async function CIPluginFn() {
62
- // 动态获取版本信息
63
- const version = getPackageVersion()
64
- const commitMessage = getLatestCommitMessage()
65
- const branch = getCurrentBranch()
66
- const author = getCommitAuthor()
67
-
68
- // 构建发布描述
69
- const desc = `${commitMessage}\n\n📦 版本: ${version}\n🌿 分支: ${branch}\n👤 提交者: ${author}\n⏰ 发布时间: ${new Date().toLocaleString('zh-CN')}`
70
-
71
- console.warn('🚀 CI发布配置:')
72
- console.warn(`📦 版本号: ${version}`)
73
- console.warn(`📝 提交信息: ${commitMessage}`)
74
- console.warn(`🌿 分支: ${branch}`)
75
- console.warn(`👤 提交者: ${author}`)
76
-
77
- /**
78
- * @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
79
- * @type {CIOptions}
80
- */
81
- return {
82
- weapp: {
83
- appid: process.env.TARO_APP_MODE === 'development' ? 'abc' : 'abc',
84
- privateKeyPath:
85
- process.env.TARO_APP_MODE === 'development' ? 'key/private.abc.key' : 'key/private.abc.key',
86
- devToolsInstallPath: `C:\\Program Files (x86)\\Tencent\\微信web开发者工具`,
87
- },
88
- // tt: {
89
- // email: '字节小程序邮箱',
90
- // password: '字节小程序密码',
91
- // },
92
- // alipay: {
93
- // appid: '支付宝小程序appid',
94
- // toolId: '工具id',
95
- // privateKeyPath: '密钥文件相对项目根目录的相对路径,例如 key/pkcs8-private-pem',
96
- // },
97
- // dd: {
98
- // appid: '钉钉小程序appid,即钉钉开放平台后台应用管理的 MiniAppId 选项',
99
- // token: '令牌,从钉钉后台获取',
100
- // },
101
- // swan: {
102
- // token: '鉴权需要的token令牌',
103
- // },
104
- // 动态版本号
105
- version,
106
- // 动态版本发布描述
107
- desc,
108
- }
109
- }
110
-
111
- // export const config = {
112
- // plugin: [['@tarojs/plugin-mini-ci', CIPluginFn]],
113
- // }
@@ -1,22 +0,0 @@
1
- import antfu from '@antfu/eslint-config'
2
-
3
- export default antfu(
4
- {
5
- extends: ['taro/vue3'],
6
- formatters: true,
7
- unocss: true,
8
- vue: true,
9
- typescript: true,
10
- stylistic: {
11
- indent: 2, // 4, or 'tab'
12
- quotes: 'single', // or 'double'
13
- },
14
- // Parse the `.gitignore` file to get the ignores, on by default
15
- gitignore: true,
16
- },
17
- {
18
- rules: {
19
- 'n/prefer-global/process': 'off',
20
- },
21
- },
22
- )
@@ -1,13 +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: pnpm lint:fix {staged_files}
6
- stage_fixed: true
7
-
8
- commit-msg:
9
- commands:
10
- lint commit message:
11
- run: npx commitlint --edit {1}
12
-
13
-
@@ -1,115 +0,0 @@
1
- {
2
- "name": "bubbles-project",
3
- "version": "1.0.0",
4
- "private": true,
5
- "description": "vue-taro-eslint",
6
- "author": "",
7
- "templateInfo": {
8
- "name": "default",
9
- "typescript": true,
10
- "css": "Sass",
11
- "framework": "Vue3"
12
- },
13
- "scripts": {
14
- "new": "taro new",
15
- "build:weapp": "taro build --type weapp --open",
16
- "build:swan": "taro build --type swan",
17
- "build:alipay": "taro build --type alipay",
18
- "build:tt": "taro build --type tt",
19
- "build:h5": "taro build --type h5",
20
- "build:h5:prod": "taro build --type h5 --mode production",
21
- "build:rn": "taro build --type rn",
22
- "build:qq": "taro build --type qq",
23
- "build:jd": "taro build --type jd",
24
- "build:harmony-hybrid": "taro build --type harmony-hybrid",
25
- "dev:weapp": "npm run build:weapp -- --watch",
26
- "dev:swan": "npm run build:swan -- --watch",
27
- "dev:alipay": "npm run build:alipay -- --watch",
28
- "dev:tt": "npm run build:tt -- --watch",
29
- "dev:h5": "npm run build:h5 -- --watch",
30
- "dev:rn": "npm run build:rn -- --watch",
31
- "dev:qq": "npm run build:qq -- --watch",
32
- "dev:jd": "npm run build:jd -- --watch",
33
- "dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch",
34
- "prepare": "lefthook install",
35
- "lint": "eslint",
36
- "lint:fix": "eslint --fix"
37
- },
38
- "browserslist": {
39
- "development": [
40
- "defaults and fully supports es6-module",
41
- "maintained node versions"
42
- ],
43
- "production": [
44
- "last 3 versions",
45
- "Android >= 4.1",
46
- "ios >= 8"
47
- ]
48
- },
49
- "dependencies": {
50
- "@alova/adapter-taro": "^2.0.14",
51
- "@babel/runtime": "^7.24.4",
52
- "@nutui/nutui-taro": "^4.3.14",
53
- "@nutui/touch-emulator": "^1.0.0",
54
- "@tarojs/components": "4.1.11",
55
- "@tarojs/helper": "4.1.11",
56
- "@tarojs/plugin-framework-vue3": "4.1.11",
57
- "@tarojs/plugin-html": "4.1.11",
58
- "@tarojs/plugin-platform-alipay": "4.1.11",
59
- "@tarojs/plugin-platform-h5": "4.1.11",
60
- "@tarojs/plugin-platform-harmony-hybrid": "4.1.11",
61
- "@tarojs/plugin-platform-jd": "4.1.11",
62
- "@tarojs/plugin-platform-qq": "4.1.11",
63
- "@tarojs/plugin-platform-swan": "4.1.11",
64
- "@tarojs/plugin-platform-tt": "4.1.11",
65
- "@tarojs/plugin-platform-weapp": "4.1.11",
66
- "@tarojs/runtime": "4.1.11",
67
- "@tarojs/shared": "4.1.11",
68
- "@tarojs/taro": "4.1.11",
69
- "alova": "^3.5.0",
70
- "pinia": "^3.0.4",
71
- "pinia-plugin-persistedstate": "^4.7.1",
72
- "spark-md5": "^3.0.2",
73
- "vue": "^3.0.0"
74
- },
75
- "devDependencies": {
76
- "@antfu/eslint-config": "^7.4.3",
77
- "@babel/core": "^7.24.4",
78
- "@babel/plugin-transform-class-properties": "7.25.9",
79
- "@commitlint/cli": "^20.4.2",
80
- "@commitlint/config-conventional": "^20.4.2",
81
- "@nutui/auto-import-resolver": "^1.0.0",
82
- "@tarojs/cli": "4.1.11",
83
- "@tarojs/plugin-generator": "4.1.11",
84
- "@tarojs/plugin-mini-ci": "^4.1.11",
85
- "@tarojs/taro-loader": "4.1.11",
86
- "@tarojs/test-utils-vue3": "^0.1.1",
87
- "@tarojs/webpack5-runner": "4.1.11",
88
- "@types/minimatch": "^5",
89
- "@types/node": "^18",
90
- "@types/webpack-env": "^1.13.6",
91
- "@unocss/eslint-plugin": "^66.6.2",
92
- "@unocss/webpack": "0.58.9",
93
- "@vue/babel-plugin-jsx": "^1.2.2",
94
- "@vue/compiler-sfc": "^3.0.0",
95
- "autoprefixer": "^10.4.24",
96
- "babel-preset-taro": "4.1.11",
97
- "css-loader": "^7.1.1",
98
- "eslint": "^10.0.2",
99
- "eslint-config-taro": "4.1.11",
100
- "eslint-plugin-format": "^1.4.0",
101
- "eslint-plugin-vue": "^9.17.0",
102
- "lefthook": "^2.1.1",
103
- "miniprogram-ci": "^2.1.26",
104
- "postcss": "^8.5.6",
105
- "sass": "^1.75.0",
106
- "style-loader": "^3.3.4",
107
- "tsconfig-paths-webpack-plugin": "^4.1.0",
108
- "typescript": "^5.9.3",
109
- "unocss": "0.58.9",
110
- "unocss-preset-weapp": "0.58.8",
111
- "unplugin-vue-components": "^0.26.0",
112
- "vue-loader": "^17.4.2",
113
- "webpack": "5.91.0"
114
- }
115
- }
@@ -1,13 +0,0 @@
1
- diff --git a/dist/WeappCI.js b/dist/WeappCI.js
2
- index 778b65b4f366611ed3c577d3d470da391c3ca879..f6049120970a60a1cd9bbc420a7b835ea2056a49 100644
3
- --- a/dist/WeappCI.js
4
- +++ b/dist/WeappCI.js
5
- @@ -67,7 +67,7 @@ class WeappCI extends BaseCi_1.default {
6
- printLog("error" /* processTypeEnum.ERROR */, '命令行工具路径不存在', cliPath);
7
- }
8
- printLog("start" /* processTypeEnum.START */, '微信开发者工具...', this.projectPath);
9
- - shell.exec(`${cliPath} open --project ${this.projectPath}`);
10
- + shell.exec(`"${cliPath}" open --project "${this.projectPath}"`, { encoding: 'utf8' });
11
- }
12
- async preview() {
13
- const { chalk, printLog, processTypeEnum } = this.ctx.helper;
@@ -1,2 +0,0 @@
1
- patchedDependencies:
2
- '@tarojs/plugin-mini-ci': patches/@tarojs__plugin-mini-ci.patch
@@ -1,16 +0,0 @@
1
- {
2
- "miniprogramRoot": "./dist/weapp",
3
- "projectname": "myApp",
4
- "description": "vue-taro-eslint",
5
- "appid": "wxac3f99d8814754aa",
6
- "setting": {
7
- "urlCheck": true,
8
- "es6": false,
9
- "enhance": false,
10
- "compileHotReLoad": false,
11
- "postcss": false,
12
- "minified": false,
13
- "minifyWXML": true
14
- },
15
- "compileType": "miniprogram"
16
- }
@@ -1,53 +0,0 @@
1
- import { isH5, uploadApiAffix } from '@/utils/env'
2
- import { alovaUploadRequest } from '@/utils/request'
3
-
4
- interface UploadBaseParams {
5
- fileMd5: string
6
- fileSize: number
7
- filename: string
8
- companyId: string
9
- projectId: string
10
- indexDbId: number
11
- }
12
-
13
- export interface H5UploadParams extends UploadBaseParams {
14
- file: Blob
15
- }
16
-
17
- export interface MpUploadParams extends UploadBaseParams {
18
- filePath: string
19
- }
20
-
21
- export type UploadParams = H5UploadParams | MpUploadParams
22
-
23
- export function uploadFile(data: any) {
24
- if (isH5) {
25
- // H5 端用 fetch 发送 FormData,绕过 Taro 适配器的序列化问题
26
- return fetch(`/${uploadApiAffix}/files/uploadFileAppend`, {
27
- method: 'POST',
28
- body: data,
29
- // headers: {
30
- // 'Content-Type': 'multipart/form-data',
31
- // authorization: 'Bearer 9a2d60a8-d9a6-40a3-9b13-4288225d855d',
32
- // },
33
- }).then(res => res.json())
34
- }
35
- else {
36
- // 小程序端:用 Taro uploadFile 适配器
37
- const { filePath, fileMd5, fileSize, filename, companyId, projectId, indexDbId } = data
38
- return alovaUploadRequest.Post(`/files/uploadFileAppend`, {
39
- name: 'file',
40
- filePath,
41
- fileMd5,
42
- fileSize,
43
- filename,
44
- companyId,
45
- projectId,
46
- indexDbId,
47
- }, {
48
- requestType: 'upload',
49
- fileName: filename,
50
- meta: { isWrapped: false },
51
- })
52
- }
53
- }
@@ -1,19 +0,0 @@
1
- export default defineAppConfig({
2
- pages: [
3
- 'pages/index/index',
4
- ],
5
- subPackages: [
6
- {
7
- root: 'pages/example',
8
- pages: [
9
- 'upload/index',
10
- ],
11
- },
12
- ],
13
- window: {
14
- backgroundTextStyle: 'light',
15
- navigationBarBackgroundColor: '#fff',
16
- navigationBarTitleText: 'WeChat',
17
- navigationBarTextStyle: 'black',
18
- },
19
- })
@@ -1,14 +0,0 @@
1
- import { createApp } from 'vue'
2
-
3
- import { setupStore } from './store'
4
- import '@nutui/touch-emulator'
5
- import 'uno.css'
6
- import '@/styles/index.css'
7
-
8
- const App = createApp({
9
- onShow(_options) {},
10
- })
11
-
12
- setupStore(App)
13
-
14
- export default App
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
5
- <meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
6
- <meta name="apple-mobile-web-app-capable" content="yes">
7
- <meta name="apple-touch-fullscreen" content="yes">
8
- <meta name="format-detection" content="telephone=no,address=no">
9
- <meta name="apple-mobile-web-app-status-bar-style" content="white">
10
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
11
- <title>myApp</title>
12
- <script><%= htmlWebpackPlugin.options.script %></script>
13
- </head>
14
- <body>
15
- <div id="app"></div>
16
- </body>
17
- </html>
@@ -1,3 +0,0 @@
1
- export default definePageConfig({
2
- navigationBarTitleText: '首页',
3
- })
@@ -1,4 +0,0 @@
1
- .red {
2
- color: #fff;
3
- background-color: red;
4
- }
@@ -1,71 +0,0 @@
1
- <script lang="ts" setup>
2
- import Taro from '@tarojs/taro'
3
- import { uploadFile } from '@/api/common/upload'
4
- import { canvasToFile, file2Md5 } from '@/utils'
5
- import { isH5 } from '@/utils/env'
6
-
7
- async function handleConfirm(canvas: any, data: string) {
8
- if (isH5) {
9
- const file = await canvasToFile(canvas)
10
- const fileMd5 = await file2Md5(file)
11
- const data = new FormData()
12
- data.append('file', file)
13
- data.append('companyId', 'c35bd5e0d5834eccb1cfbf4dd538eb61')
14
- data.append('projectId', 'eb42a2b7e680a4124e78951ccf7f1268')
15
- data.append('indexDbId', '0')
16
- data.append('fileMd5', fileMd5)
17
- data.append('fileSize', `${file.size}`)
18
- data.append('filename', file.name)
19
- try {
20
- const res = await uploadFile(data)
21
- if (res.code === 200) {
22
- // console.log('💦res.data', res.data)
23
- }
24
- else {
25
- Taro.showToast({
26
- title: res.message,
27
- })
28
- }
29
- }
30
- catch {
31
- Taro.showToast({
32
- title: '服务异常',
33
- })
34
- }
35
- }
36
- else {
37
- // 小程序端:用 Taro uploadFile 适配器
38
- Taro.getFileSystemManager().getFileInfo({
39
- filePath: data,
40
- success: async (res) => {
41
- const params = {
42
- filePath: data,
43
- companyId: 'c35bd5e0d5834eccb1cfbf4dd538eb61',
44
- projectId: 'eb42a2b7e680a4124e78951ccf7f1268',
45
- indexDbId: '0',
46
- fileMd5: res.digest,
47
- fileSize: res.size,
48
- filename: `${res.digest}.png`,
49
- }
50
- const uploadResStr = await uploadFile(params)
51
- const uploadRes = JSON.parse(uploadResStr)
52
- if (uploadRes.code === 200) {
53
- // console.log('💦uploadRes.data', uploadRes.data)
54
- }
55
- else {
56
- Taro.showToast({
57
- title: uploadRes.message,
58
- })
59
- }
60
- },
61
- })
62
- }
63
- }
64
- </script>
65
-
66
- <template>
67
- <div class="text-red">
68
- 1112
69
- <nut-signature @confirm="handleConfirm" />
70
- </div>
71
- </template>
@@ -1,3 +0,0 @@
1
- export default definePageConfig({
2
- navigationBarTitleText: '首页'
3
- })