@moluoxixi/create-app 2.0.435 → 2.0.437

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 (250) hide show
  1. package/dist/constants/index.d.ts +5 -0
  2. package/dist/constants/index.js +8 -0
  3. package/dist/core/feature.d.ts +26 -20
  4. package/dist/core/feature.js +47 -52
  5. package/dist/core/prompts.js +6 -3
  6. package/dist/core/template.js +1 -1
  7. package/dist/generators/project.js +8 -0
  8. package/dist/types/packageJson.d.ts +2 -0
  9. package/dist/utils/deepMerge.d.ts +1 -1
  10. package/dist/utils/file.js +6 -2
  11. package/dist/utils/framework.d.ts +11 -0
  12. package/dist/utils/framework.js +13 -0
  13. package/dist/utils/index.d.ts +1 -0
  14. package/dist/utils/index.js +1 -0
  15. package/package.json +4 -5
  16. package/templates/common/base/_npmrc +2 -0
  17. package/templates/common/base/_yarnrc.yml +3 -0
  18. package/templates/common/base/node_modules/.bin/browserslist +17 -0
  19. package/templates/common/base/node_modules/.bin/parser +17 -0
  20. package/templates/common/base/node_modules/.bin/rollup +17 -0
  21. package/templates/common/base/node_modules/.bin/sass +2 -2
  22. package/templates/common/base/node_modules/.bin/terser +17 -0
  23. package/templates/common/base/node_modules/.bin/vite +2 -2
  24. package/templates/common/base/node_modules/.bin/yaml +17 -0
  25. package/templates/common/base/package.json +2 -4
  26. package/templates/common/base/scripts/build.mts +15 -10
  27. package/templates/common/base/src/apis/request.ts +23 -32
  28. package/templates/common/base/src/apis/services/example.ts +2 -2
  29. package/templates/common/base/src/apis/services/user.ts +2 -2
  30. package/templates/common/base/tsconfig.app.json +25 -0
  31. package/templates/common/base/tsconfig.base.json +17 -0
  32. package/templates/common/base/tsconfig.json +11 -0
  33. package/templates/common/base/tsconfig.node.json +14 -0
  34. package/templates/common/base/vite.config.ts +5 -2
  35. package/templates/common/features/eslint/node_modules/.bin/browserslist +17 -0
  36. package/templates/common/features/eslint/node_modules/.bin/jiti +17 -0
  37. package/templates/common/features/eslint/node_modules/.bin/sass +17 -0
  38. package/templates/common/features/eslint/node_modules/.bin/terser +17 -0
  39. package/templates/common/features/eslint/node_modules/.bin/tsc +17 -0
  40. package/templates/common/features/eslint/node_modules/.bin/tsserver +17 -0
  41. package/templates/common/features/eslint/node_modules/.bin/tsx +17 -0
  42. package/templates/common/features/eslint/node_modules/.bin/vitest +17 -0
  43. package/templates/common/features/eslint/node_modules/.bin/yaml +17 -0
  44. package/templates/common/features/eslint/tsconfig.base.json +17 -0
  45. package/templates/common/features/eslint/tsconfig.json +8 -0
  46. package/templates/common/features/eslint/tsconfig.node.json +13 -0
  47. package/templates/common/features/husky/.husky/pre-commit +1 -1
  48. package/templates/common/features/husky/node_modules/.bin/commitizen +2 -2
  49. package/templates/common/features/husky/node_modules/.bin/commitlint +2 -2
  50. package/templates/common/features/husky/node_modules/.bin/cz +2 -2
  51. package/templates/common/features/husky/node_modules/.bin/git-cz +2 -2
  52. package/templates/common/features/husky/tsconfig.base.json +17 -0
  53. package/templates/common/features/husky/tsconfig.json +8 -0
  54. package/templates/common/features/husky/tsconfig.node.json +13 -0
  55. package/templates/react/base/node_modules/.bin/jiti +17 -0
  56. package/templates/react/base/node_modules/.bin/sass +17 -0
  57. package/templates/react/base/node_modules/.bin/terser +17 -0
  58. package/templates/react/base/node_modules/.bin/tsx +17 -0
  59. package/templates/react/base/node_modules/.bin/vite +17 -0
  60. package/templates/react/base/node_modules/.bin/yaml +17 -0
  61. package/templates/react/base/package.json +2 -1
  62. package/templates/react/base/src/main.tsx +1 -1
  63. package/templates/react/base/src/router/index.tsx +26 -0
  64. package/templates/react/base/src/utils/common.ts +126 -0
  65. package/templates/react/base/src/utils/index.ts +7 -0
  66. package/templates/react/base/tsconfig.app.json +13 -5
  67. package/templates/react/base/tsconfig.node.json +6 -7
  68. package/templates/react/features/ant-design/tsconfig.app.json +25 -0
  69. package/templates/react/features/ant-design/tsconfig.base.json +22 -0
  70. package/templates/react/features/ant-design/tsconfig.json +11 -0
  71. package/templates/react/features/ant-design/tsconfig.node.json +14 -0
  72. package/templates/react/features/i18n/node_modules/.bin/tsc +17 -0
  73. package/templates/react/features/i18n/node_modules/.bin/tsserver +17 -0
  74. package/templates/react/features/i18n/tsconfig.app.json +25 -0
  75. package/templates/react/features/i18n/tsconfig.base.json +22 -0
  76. package/templates/react/features/i18n/tsconfig.json +11 -0
  77. package/templates/react/features/i18n/tsconfig.node.json +14 -0
  78. package/templates/react/features/manualRoutes/tsconfig.app.json +25 -0
  79. package/templates/react/features/manualRoutes/tsconfig.base.json +26 -0
  80. package/templates/react/features/manualRoutes/tsconfig.json +11 -0
  81. package/templates/react/features/manualRoutes/tsconfig.node.json +14 -0
  82. package/templates/react/features/pageRoutes/tsconfig.app.json +25 -0
  83. package/templates/react/features/pageRoutes/tsconfig.base.json +26 -0
  84. package/templates/react/features/pageRoutes/tsconfig.json +11 -0
  85. package/templates/react/features/pageRoutes/tsconfig.node.json +14 -0
  86. package/templates/react/features/sentry/tsconfig.app.json +25 -0
  87. package/templates/react/features/sentry/tsconfig.base.json +22 -0
  88. package/templates/react/features/sentry/tsconfig.json +11 -0
  89. package/templates/react/features/sentry/tsconfig.node.json +14 -0
  90. package/templates/react/features/zustand/tsconfig.app.json +25 -0
  91. package/templates/react/features/zustand/tsconfig.base.json +26 -0
  92. package/templates/react/features/zustand/tsconfig.json +11 -0
  93. package/templates/react/features/zustand/tsconfig.node.json +14 -0
  94. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti +17 -0
  95. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass +17 -0
  96. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser +17 -0
  97. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc +17 -0
  98. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver +17 -0
  99. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx +17 -0
  100. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
  101. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml +17 -0
  102. package/templates/react/micro-frontends/qiankun/base/package.json +1 -1
  103. package/templates/react/micro-frontends/qiankun/base/src/main.tsx +3 -3
  104. package/templates/react/micro-frontends/qiankun/base/tsconfig.app.json +25 -0
  105. package/templates/react/micro-frontends/qiankun/base/tsconfig.base.json +26 -0
  106. package/templates/react/micro-frontends/qiankun/base/tsconfig.json +11 -0
  107. package/templates/react/micro-frontends/qiankun/base/tsconfig.node.json +14 -0
  108. package/templates/vue/base/node_modules/.bin/tsc +17 -0
  109. package/templates/vue/base/node_modules/.bin/tsserver +17 -0
  110. package/templates/vue/base/node_modules/.bin/vue-tsc +2 -2
  111. package/templates/vue/base/package.json +3 -2
  112. package/templates/vue/base/src/assets/fonts/index.css +6 -0
  113. package/templates/vue/base/src/assets/styles/base.scss +33 -0
  114. package/templates/vue/base/src/assets/styles/custom.scss +20 -0
  115. package/templates/vue/base/src/assets/styles/main.scss +8 -0
  116. package/templates/vue/base/src/assets/styles/tailwind.scss +3 -0
  117. package/templates/vue/base/src/main.ts +3 -3
  118. package/templates/vue/base/src/router/index.ts +25 -0
  119. package/templates/vue/base/src/utils/common.ts +126 -0
  120. package/templates/vue/base/src/utils/index.ts +4 -0
  121. package/templates/vue/base/tsconfig.app.json +10 -3
  122. package/templates/vue/base/tsconfig.base.json +2 -6
  123. package/templates/vue/base/tsconfig.json +1 -0
  124. package/templates/vue/base/tsconfig.node.json +1 -2
  125. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc +17 -0
  126. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver +17 -0
  127. package/templates/vue/features/ant-design-vue/tsconfig.app.json +33 -0
  128. package/templates/vue/features/ant-design-vue/tsconfig.base.json +25 -0
  129. package/templates/vue/features/ant-design-vue/tsconfig.json +12 -0
  130. package/templates/vue/features/ant-design-vue/tsconfig.node.json +14 -0
  131. package/templates/vue/features/element-plus/node_modules/.bin/tsc +17 -0
  132. package/templates/vue/features/element-plus/node_modules/.bin/tsserver +17 -0
  133. package/templates/vue/features/element-plus/package.json +3 -0
  134. package/templates/vue/features/element-plus/src/assets/styles/main.scss +0 -1
  135. package/templates/vue/features/element-plus/src/layouts/element.vue +1 -1
  136. package/templates/vue/features/element-plus/src/stores/modules/system.ts +1 -1
  137. package/templates/vue/features/element-plus/tsconfig.app.json +33 -0
  138. package/templates/vue/features/element-plus/tsconfig.base.json +25 -0
  139. package/templates/vue/features/element-plus/tsconfig.json +12 -0
  140. package/templates/vue/features/element-plus/tsconfig.node.json +14 -0
  141. package/templates/vue/features/i18n/node_modules/.bin/tsc +17 -0
  142. package/templates/vue/features/i18n/node_modules/.bin/tsserver +17 -0
  143. package/templates/vue/features/i18n/tsconfig.app.json +33 -0
  144. package/templates/vue/features/i18n/tsconfig.base.json +25 -0
  145. package/templates/vue/features/i18n/tsconfig.json +12 -0
  146. package/templates/vue/features/i18n/tsconfig.node.json +14 -0
  147. package/templates/vue/features/manualRoutes/node_modules/.bin/tsc +17 -0
  148. package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver +17 -0
  149. package/templates/vue/features/manualRoutes/package.json +2 -1
  150. package/templates/vue/features/manualRoutes/src/layouts/index.ts +26 -0
  151. package/templates/vue/features/manualRoutes/src/router/index.ts +1 -1
  152. package/templates/vue/features/manualRoutes/src/stores/modules/system.ts +1 -1
  153. package/templates/vue/features/manualRoutes/tsconfig.app.json +33 -0
  154. package/templates/vue/features/manualRoutes/tsconfig.base.json +25 -0
  155. package/templates/vue/features/manualRoutes/tsconfig.json +12 -0
  156. package/templates/vue/features/manualRoutes/tsconfig.node.json +14 -0
  157. package/templates/vue/features/pageRoutes/node_modules/.bin/tsc +17 -0
  158. package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver +17 -0
  159. package/templates/vue/features/pageRoutes/package.json +2 -1
  160. package/templates/vue/features/pageRoutes/src/layouts/index.ts +26 -0
  161. package/templates/vue/features/pageRoutes/src/stores/modules/system.ts +1 -1
  162. package/templates/vue/features/pageRoutes/tsconfig.app.json +33 -0
  163. package/templates/vue/features/pageRoutes/tsconfig.base.json +25 -0
  164. package/templates/vue/features/pageRoutes/tsconfig.json +12 -0
  165. package/templates/vue/features/pageRoutes/tsconfig.node.json +14 -0
  166. package/templates/vue/features/pinia/node_modules/.bin/tsc +17 -0
  167. package/templates/vue/features/pinia/node_modules/.bin/tsserver +17 -0
  168. package/templates/vue/features/pinia/package.json +3 -0
  169. package/templates/vue/features/pinia/src/stores/modules/system.ts +1 -1
  170. package/templates/vue/features/pinia/tsconfig.app.json +33 -0
  171. package/templates/vue/features/pinia/tsconfig.base.json +25 -0
  172. package/templates/vue/features/pinia/tsconfig.json +12 -0
  173. package/templates/vue/features/pinia/tsconfig.node.json +14 -0
  174. package/templates/vue/features/sentry/node_modules/.bin/tsc +17 -0
  175. package/templates/vue/features/sentry/node_modules/.bin/tsserver +17 -0
  176. package/templates/vue/features/sentry/tsconfig.app.json +33 -0
  177. package/templates/vue/features/sentry/tsconfig.base.json +25 -0
  178. package/templates/vue/features/sentry/tsconfig.json +12 -0
  179. package/templates/vue/features/sentry/tsconfig.node.json +14 -0
  180. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti +17 -0
  181. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass +17 -0
  182. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser +17 -0
  183. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc +17 -0
  184. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver +17 -0
  185. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx +17 -0
  186. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
  187. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml +17 -0
  188. package/templates/vue/micro-frontends/qiankun/base/package.json +5 -1
  189. package/templates/vue/micro-frontends/qiankun/base/src/App.vue +13 -0
  190. package/templates/vue/micro-frontends/qiankun/base/src/assets/fonts/index.css +6 -0
  191. package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/base.scss +33 -0
  192. package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/custom.scss +20 -0
  193. package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/main.scss +8 -0
  194. package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/tailwind.scss +3 -0
  195. package/templates/vue/micro-frontends/qiankun/base/src/directives/index.ts +36 -0
  196. package/templates/vue/micro-frontends/qiankun/base/src/main.ts +5 -5
  197. package/templates/vue/micro-frontends/qiankun/base/src/router/index.ts +27 -0
  198. package/templates/vue/micro-frontends/qiankun/base/src/stores/index.ts +8 -0
  199. package/templates/vue/micro-frontends/qiankun/base/tsconfig.app.json +33 -0
  200. package/templates/vue/micro-frontends/qiankun/base/tsconfig.base.json +25 -0
  201. package/templates/vue/micro-frontends/qiankun/base/tsconfig.json +12 -0
  202. package/templates/vue/micro-frontends/qiankun/base/tsconfig.node.json +14 -0
  203. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti +17 -0
  204. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass +17 -0
  205. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser +17 -0
  206. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc +17 -0
  207. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver +17 -0
  208. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx +17 -0
  209. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite +17 -0
  210. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml +17 -0
  211. package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +3 -0
  212. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/main.scss +0 -1
  213. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/modules/system.ts +1 -1
  214. package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.app.json +33 -0
  215. package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.base.json +25 -0
  216. package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.json +12 -0
  217. package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.node.json +14 -0
  218. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti +17 -0
  219. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass +17 -0
  220. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser +17 -0
  221. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc +17 -0
  222. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver +17 -0
  223. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx +17 -0
  224. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite +17 -0
  225. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml +17 -0
  226. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/package.json +2 -1
  227. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/layouts/index.ts +26 -0
  228. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/modules/system.ts +1 -1
  229. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.app.json +33 -0
  230. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.base.json +25 -0
  231. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.json +12 -0
  232. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.node.json +14 -0
  233. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti +17 -0
  234. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass +17 -0
  235. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser +17 -0
  236. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc +17 -0
  237. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver +17 -0
  238. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx +17 -0
  239. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite +17 -0
  240. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml +17 -0
  241. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +2 -1
  242. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/modules/system.ts +1 -1
  243. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.app.json +33 -0
  244. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.base.json +25 -0
  245. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.json +12 -0
  246. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.node.json +14 -0
  247. package/dist/test.d.ts +0 -5
  248. package/dist/test.js +0 -508
  249. package/templates/common/base/src/utils/index.ts +0 -87
  250. /package/templates/vue/features/element-plus/src/assets/styles/{element.scss → element/index.scss} +0 -0
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/terser" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/terser" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
17
+ fi
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
17
+ fi
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "dependencies": {
3
+ "vue": "^3.5.13",
4
+ "vue-router": "^4.5.0",
3
5
  "vite-plugin-qiankun": "^1.0.15"
4
6
  },
5
7
  "devDependencies": {
6
- "vite": "7.1.11"
8
+ "@vue-macros/volar": "^3.0.0-beta.15",
9
+ "jiti": "^2.4.2",
10
+ "vite": "6.2.4"
7
11
  }
8
12
  }
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <RouterView />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ /**
7
+ * 根组件
8
+ */
9
+ import { RouterView } from 'vue-router'
10
+ </script>
11
+
12
+ <style scoped>
13
+ </style>
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 字体配置
3
+ * 自定义字体导入
4
+ */
5
+
6
+ /* 可在此添加自定义字体 */
@@ -0,0 +1,33 @@
1
+ :root {
2
+ // 这里定义变量
3
+ /* 文字颜色 */
4
+ --text-color: #2a3651;
5
+ }
6
+
7
+ ::-webkit-scrollbar {
8
+ width: 6px;
9
+ height: 6px;
10
+ }
11
+
12
+ ::-webkit-scrollbar-thumb {
13
+ background-color: #dddee0; /* 设置滑块的颜色 */
14
+ border-radius: 5px; /* 设置滑块的圆角 */
15
+ }
16
+
17
+ body {
18
+ color: var(--text-color);
19
+ transition:
20
+ color 0.5s,
21
+ background-color 0.5s;
22
+ font-size: 14px;
23
+ font-family: SourceHanSans-Regular, serif;
24
+ }
25
+
26
+ #app {
27
+ margin: 0;
28
+ padding: 0;
29
+ font-weight: normal;
30
+ background: #f1f2f4;
31
+ height: 100%;
32
+ overflow-y: auto;
33
+ }
@@ -0,0 +1,20 @@
1
+ .text-bold {
2
+ font-family: SourceHanSans-Semibold, serif;
3
+ font-weight: bold;
4
+ }
5
+
6
+ .text-medium {
7
+ font-family: SourceHanSans-Medium, serif;
8
+ }
9
+
10
+ .text-regular {
11
+ font-family: SourceHanSans-Regular, serif;
12
+ }
13
+
14
+ .text-light {
15
+ font-family: SourceHanSans-Light, serif;
16
+ }
17
+
18
+ .box-shadow {
19
+ box-shadow: 0 2px 10px 0 rgb(52 81 212 / 20%);
20
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 主样式文件
3
+ * 导入所有样式
4
+ */
5
+
6
+ @use './base.scss';
7
+ @use './custom.scss';
8
+ @use './tailwind.scss';
@@ -0,0 +1,3 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * 自定义指令
3
+ * 全局指令注册
4
+ */
5
+
6
+ import type { App } from 'vue'
7
+
8
+ /**
9
+ * 注册全局指令
10
+ * @param app Vue 应用实例
11
+ */
12
+ export default function directives(app: App): void {
13
+ // v-focus 自动聚焦指令
14
+ app.directive('focus', {
15
+ mounted(el: HTMLElement) {
16
+ el.focus()
17
+ },
18
+ })
19
+
20
+ // v-loading 加载状态指令
21
+ app.directive('loading', {
22
+ mounted(el: HTMLElement, binding) {
23
+ if (binding.value) {
24
+ el.classList.add('is-loading')
25
+ }
26
+ },
27
+ updated(el: HTMLElement, binding) {
28
+ if (binding.value) {
29
+ el.classList.add('is-loading')
30
+ }
31
+ else {
32
+ el.classList.remove('is-loading')
33
+ }
34
+ },
35
+ })
36
+ }
@@ -7,13 +7,13 @@ import { qiankunWindow, renderWithQiankun } from 'vite-plugin-qiankun/dist/helpe
7
7
  import { createApp } from 'vue'
8
8
  import directives from '@/directives'
9
9
  import { store } from '@/stores'
10
- import App from './App.vue'
11
- import getRouter from './router'
10
+ import App from '@/App.vue'
11
+ import getRouter from '@/router'
12
12
  import { setupFeatures } from './main/index'
13
13
 
14
14
  // Import styles
15
- import '@/assets/styles/main.scss'
16
- import '@/assets/fonts/index.css'
15
+ import './assets/styles/main.scss'
16
+ import './assets/fonts/index.css'
17
17
 
18
18
  let app: ReturnType<typeof createApp> | null = null
19
19
 
@@ -37,7 +37,7 @@ async function render(props: Record<string, unknown> = {}): Promise<void> {
37
37
 
38
38
  if (container) {
39
39
  const root = container.querySelector('#app')
40
- app.mount(root)
40
+ app.mount(root!)
41
41
  }
42
42
  else {
43
43
  app.mount('#app')
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 默认路由配置(最小实现)
3
+ * 此文件会被 router feature (manualRoutes/pageRoutes) 覆盖
4
+ */
5
+
6
+ import { createRouter, createWebHistory } from 'vue-router'
7
+
8
+ /**
9
+ * 创建路由实例
10
+ * @param props - 可选的渲染属性(用于 qiankun)
11
+ * @returns 路由实例
12
+ */
13
+ function getRouter(props?: Record<string, unknown>) {
14
+ const { activeRule: base = import.meta.env.VITE_APP_CODE } = props || {}
15
+ return createRouter({
16
+ history: createWebHistory(base),
17
+ routes: [
18
+ {
19
+ path: '/',
20
+ name: 'home',
21
+ component: () => import('@/App.vue'),
22
+ },
23
+ ],
24
+ })
25
+ }
26
+
27
+ export default getRouter
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Store 导出
3
+ * 注意:具体的 store 实例在 pinia feature 中创建
4
+ * 此文件提供一个基础的导出,会被 pinia feature 覆盖
5
+ */
6
+
7
+ // 基础实现,会被 pinia feature 覆盖
8
+ export const store = null as any
@@ -0,0 +1,33 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "lib": [
5
+ "DOM",
6
+ "ESNext"
7
+ ],
8
+ "types": [
9
+ "vite/client"
10
+ ],
11
+ "composite": true,
12
+ "baseUrl": ".",
13
+ "paths": {
14
+ "@/*": ["./src/*"]
15
+ }
16
+ },
17
+ "include": ["src"],
18
+ "vueCompilerOptions": {
19
+ "plugins": [
20
+ "@vue-macros/volar/define-models",
21
+ "@vue-macros/volar/define-slots",
22
+ "@vue-macros/volar/define-props",
23
+ "@vue-macros/volar/define-emits"
24
+ ]
25
+ },
26
+ "exclude": [
27
+ "dist",
28
+ "node_modules",
29
+ "cypress",
30
+ "vite",
31
+ "vite.config.*"
32
+ ]
33
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "lib": [
3
+ "DOM",
4
+ "ESNext"
5
+ ],
6
+ "compilerOptions": {
7
+ "target": "ESNext",
8
+ "module": "ESNext",
9
+ "moduleResolution": "Bundler",
10
+ "jsx": "preserve",
11
+ "resolveJsonModule": true,
12
+ "allowJs": true,
13
+ "strict": true,
14
+ "strictNullChecks": true,
15
+ "noUnusedLocals": true,
16
+ "noEmit": false,
17
+ "esModuleInterop": true,
18
+ "forceConsistentCasingInFileNames": true,
19
+ "isolatedModules": true,
20
+ "skipLibCheck": true,
21
+ "allowImportingTsExtensions": false,
22
+ "composite": true,
23
+ "declaration": true
24
+ }
25
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "files": [],
4
+ "references": [
5
+ {
6
+ "path": "./tsconfig.app.json"
7
+ },
8
+ {
9
+ "path": "./tsconfig.node.json"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "noEmit": false,
5
+ "allowImportingTsExtensions": true,
6
+ "rewriteRelativeImportExtensions": true,
7
+ "types": ["node"],
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "vite",
12
+ "vite.config.*"
13
+ ]
14
+ }
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/sass@1.97.3/node_modules/sass/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/sass@1.97.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/sass@1.97.3/node_modules/sass/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/sass@1.97.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/sass@1.97.3/node_modules/sass/sass.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/sass@1.97.3/node_modules/sass/sass.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules/terser/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/terser@5.46.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/terser" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/terser@5.46.0/node_modules/terser/bin/terser" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/vite@6.2.4_@types+node@22.19.7_jiti@2.6.1_lightningcss@1.30.2_sass-embedded@1.97.3_sass_8b0a8c2ec890dd5cbc7f2dee3cda2529/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/yaml@2.8.2/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../../../../node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/bin.mjs" "$@"
17
+ fi
@@ -6,5 +6,8 @@
6
6
  "vite-plugin-qiankun": "^1.0.15",
7
7
  "vue": "^3.5.13",
8
8
  "vue-router": "^4.4.5"
9
+ },
10
+ "devDependencies": {
11
+ "@vue-macros/volar": "^3.0.0-beta.15"
9
12
  }
10
13
  }
@@ -6,4 +6,3 @@
6
6
  @use './base.scss';
7
7
  @use './custom.scss';
8
8
  @use './tailwind.scss';
9
- @use 'element/index.scss';
@@ -1,5 +1,5 @@
1
1
  import { defineStore } from 'pinia'
2
- import { store } from '../index.ts'
2
+ import { store } from '@/stores'
3
3
 
4
4
  /**
5
5
  * 系统对象
@@ -0,0 +1,33 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "lib": [
5
+ "DOM",
6
+ "ESNext"
7
+ ],
8
+ "types": [
9
+ "vite/client"
10
+ ],
11
+ "composite": true,
12
+ "baseUrl": ".",
13
+ "paths": {
14
+ "@/*": ["./src/*"]
15
+ }
16
+ },
17
+ "include": ["src"],
18
+ "vueCompilerOptions": {
19
+ "plugins": [
20
+ "@vue-macros/volar/define-models",
21
+ "@vue-macros/volar/define-slots",
22
+ "@vue-macros/volar/define-props",
23
+ "@vue-macros/volar/define-emits"
24
+ ]
25
+ },
26
+ "exclude": [
27
+ "dist",
28
+ "node_modules",
29
+ "cypress",
30
+ "vite",
31
+ "vite.config.*"
32
+ ]
33
+ }