@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.
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +8 -0
- package/dist/core/feature.d.ts +26 -20
- package/dist/core/feature.js +47 -52
- package/dist/core/prompts.js +6 -3
- package/dist/core/template.js +1 -1
- package/dist/generators/project.js +8 -0
- package/dist/types/packageJson.d.ts +2 -0
- package/dist/utils/deepMerge.d.ts +1 -1
- package/dist/utils/file.js +6 -2
- package/dist/utils/framework.d.ts +11 -0
- package/dist/utils/framework.js +13 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +4 -5
- package/templates/common/base/_npmrc +2 -0
- package/templates/common/base/_yarnrc.yml +3 -0
- package/templates/common/base/node_modules/.bin/browserslist +17 -0
- package/templates/common/base/node_modules/.bin/parser +17 -0
- package/templates/common/base/node_modules/.bin/rollup +17 -0
- package/templates/common/base/node_modules/.bin/sass +2 -2
- package/templates/common/base/node_modules/.bin/terser +17 -0
- package/templates/common/base/node_modules/.bin/vite +2 -2
- package/templates/common/base/node_modules/.bin/yaml +17 -0
- package/templates/common/base/package.json +2 -4
- package/templates/common/base/scripts/build.mts +15 -10
- package/templates/common/base/src/apis/request.ts +23 -32
- package/templates/common/base/src/apis/services/example.ts +2 -2
- package/templates/common/base/src/apis/services/user.ts +2 -2
- package/templates/common/base/tsconfig.app.json +25 -0
- package/templates/common/base/tsconfig.base.json +17 -0
- package/templates/common/base/tsconfig.json +11 -0
- package/templates/common/base/tsconfig.node.json +14 -0
- package/templates/common/base/vite.config.ts +5 -2
- package/templates/common/features/eslint/node_modules/.bin/browserslist +17 -0
- package/templates/common/features/eslint/node_modules/.bin/jiti +17 -0
- package/templates/common/features/eslint/node_modules/.bin/sass +17 -0
- package/templates/common/features/eslint/node_modules/.bin/terser +17 -0
- package/templates/common/features/eslint/node_modules/.bin/tsc +17 -0
- package/templates/common/features/eslint/node_modules/.bin/tsserver +17 -0
- package/templates/common/features/eslint/node_modules/.bin/tsx +17 -0
- package/templates/common/features/eslint/node_modules/.bin/vitest +17 -0
- package/templates/common/features/eslint/node_modules/.bin/yaml +17 -0
- package/templates/common/features/eslint/tsconfig.base.json +17 -0
- package/templates/common/features/eslint/tsconfig.json +8 -0
- package/templates/common/features/eslint/tsconfig.node.json +13 -0
- package/templates/common/features/husky/.husky/pre-commit +1 -1
- package/templates/common/features/husky/node_modules/.bin/commitizen +2 -2
- package/templates/common/features/husky/node_modules/.bin/commitlint +2 -2
- package/templates/common/features/husky/node_modules/.bin/cz +2 -2
- package/templates/common/features/husky/node_modules/.bin/git-cz +2 -2
- package/templates/common/features/husky/tsconfig.base.json +17 -0
- package/templates/common/features/husky/tsconfig.json +8 -0
- package/templates/common/features/husky/tsconfig.node.json +13 -0
- package/templates/react/base/node_modules/.bin/jiti +17 -0
- package/templates/react/base/node_modules/.bin/sass +17 -0
- package/templates/react/base/node_modules/.bin/terser +17 -0
- package/templates/react/base/node_modules/.bin/tsx +17 -0
- package/templates/react/base/node_modules/.bin/vite +17 -0
- package/templates/react/base/node_modules/.bin/yaml +17 -0
- package/templates/react/base/package.json +2 -1
- package/templates/react/base/src/main.tsx +1 -1
- package/templates/react/base/src/router/index.tsx +26 -0
- package/templates/react/base/src/utils/common.ts +126 -0
- package/templates/react/base/src/utils/index.ts +7 -0
- package/templates/react/base/tsconfig.app.json +13 -5
- package/templates/react/base/tsconfig.node.json +6 -7
- package/templates/react/features/ant-design/tsconfig.app.json +25 -0
- package/templates/react/features/ant-design/tsconfig.base.json +22 -0
- package/templates/react/features/ant-design/tsconfig.json +11 -0
- package/templates/react/features/ant-design/tsconfig.node.json +14 -0
- package/templates/react/features/i18n/node_modules/.bin/tsc +17 -0
- package/templates/react/features/i18n/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/i18n/tsconfig.app.json +25 -0
- package/templates/react/features/i18n/tsconfig.base.json +22 -0
- package/templates/react/features/i18n/tsconfig.json +11 -0
- package/templates/react/features/i18n/tsconfig.node.json +14 -0
- package/templates/react/features/manualRoutes/tsconfig.app.json +25 -0
- package/templates/react/features/manualRoutes/tsconfig.base.json +26 -0
- package/templates/react/features/manualRoutes/tsconfig.json +11 -0
- package/templates/react/features/manualRoutes/tsconfig.node.json +14 -0
- package/templates/react/features/pageRoutes/tsconfig.app.json +25 -0
- package/templates/react/features/pageRoutes/tsconfig.base.json +26 -0
- package/templates/react/features/pageRoutes/tsconfig.json +11 -0
- package/templates/react/features/pageRoutes/tsconfig.node.json +14 -0
- package/templates/react/features/sentry/tsconfig.app.json +25 -0
- package/templates/react/features/sentry/tsconfig.base.json +22 -0
- package/templates/react/features/sentry/tsconfig.json +11 -0
- package/templates/react/features/sentry/tsconfig.node.json +14 -0
- package/templates/react/features/zustand/tsconfig.app.json +25 -0
- package/templates/react/features/zustand/tsconfig.base.json +26 -0
- package/templates/react/features/zustand/tsconfig.json +11 -0
- package/templates/react/features/zustand/tsconfig.node.json +14 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml +17 -0
- package/templates/react/micro-frontends/qiankun/base/package.json +1 -1
- package/templates/react/micro-frontends/qiankun/base/src/main.tsx +3 -3
- package/templates/react/micro-frontends/qiankun/base/tsconfig.app.json +25 -0
- package/templates/react/micro-frontends/qiankun/base/tsconfig.base.json +26 -0
- package/templates/react/micro-frontends/qiankun/base/tsconfig.json +11 -0
- package/templates/react/micro-frontends/qiankun/base/tsconfig.node.json +14 -0
- package/templates/vue/base/node_modules/.bin/tsc +17 -0
- package/templates/vue/base/node_modules/.bin/tsserver +17 -0
- package/templates/vue/base/node_modules/.bin/vue-tsc +2 -2
- package/templates/vue/base/package.json +3 -2
- package/templates/vue/base/src/assets/fonts/index.css +6 -0
- package/templates/vue/base/src/assets/styles/base.scss +33 -0
- package/templates/vue/base/src/assets/styles/custom.scss +20 -0
- package/templates/vue/base/src/assets/styles/main.scss +8 -0
- package/templates/vue/base/src/assets/styles/tailwind.scss +3 -0
- package/templates/vue/base/src/main.ts +3 -3
- package/templates/vue/base/src/router/index.ts +25 -0
- package/templates/vue/base/src/utils/common.ts +126 -0
- package/templates/vue/base/src/utils/index.ts +4 -0
- package/templates/vue/base/tsconfig.app.json +10 -3
- package/templates/vue/base/tsconfig.base.json +2 -6
- package/templates/vue/base/tsconfig.json +1 -0
- package/templates/vue/base/tsconfig.node.json +1 -2
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/ant-design-vue/tsconfig.app.json +33 -0
- package/templates/vue/features/ant-design-vue/tsconfig.base.json +25 -0
- package/templates/vue/features/ant-design-vue/tsconfig.json +12 -0
- package/templates/vue/features/ant-design-vue/tsconfig.node.json +14 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/element-plus/package.json +3 -0
- package/templates/vue/features/element-plus/src/assets/styles/main.scss +0 -1
- package/templates/vue/features/element-plus/src/layouts/element.vue +1 -1
- package/templates/vue/features/element-plus/src/stores/modules/system.ts +1 -1
- package/templates/vue/features/element-plus/tsconfig.app.json +33 -0
- package/templates/vue/features/element-plus/tsconfig.base.json +25 -0
- package/templates/vue/features/element-plus/tsconfig.json +12 -0
- package/templates/vue/features/element-plus/tsconfig.node.json +14 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/i18n/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/i18n/tsconfig.app.json +33 -0
- package/templates/vue/features/i18n/tsconfig.base.json +25 -0
- package/templates/vue/features/i18n/tsconfig.json +12 -0
- package/templates/vue/features/i18n/tsconfig.node.json +14 -0
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/manualRoutes/package.json +2 -1
- package/templates/vue/features/manualRoutes/src/layouts/index.ts +26 -0
- package/templates/vue/features/manualRoutes/src/router/index.ts +1 -1
- package/templates/vue/features/manualRoutes/src/stores/modules/system.ts +1 -1
- package/templates/vue/features/manualRoutes/tsconfig.app.json +33 -0
- package/templates/vue/features/manualRoutes/tsconfig.base.json +25 -0
- package/templates/vue/features/manualRoutes/tsconfig.json +12 -0
- package/templates/vue/features/manualRoutes/tsconfig.node.json +14 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/pageRoutes/package.json +2 -1
- package/templates/vue/features/pageRoutes/src/layouts/index.ts +26 -0
- package/templates/vue/features/pageRoutes/src/stores/modules/system.ts +1 -1
- package/templates/vue/features/pageRoutes/tsconfig.app.json +33 -0
- package/templates/vue/features/pageRoutes/tsconfig.base.json +25 -0
- package/templates/vue/features/pageRoutes/tsconfig.json +12 -0
- package/templates/vue/features/pageRoutes/tsconfig.node.json +14 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/pinia/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/pinia/package.json +3 -0
- package/templates/vue/features/pinia/src/stores/modules/system.ts +1 -1
- package/templates/vue/features/pinia/tsconfig.app.json +33 -0
- package/templates/vue/features/pinia/tsconfig.base.json +25 -0
- package/templates/vue/features/pinia/tsconfig.json +12 -0
- package/templates/vue/features/pinia/tsconfig.node.json +14 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsc +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsserver +17 -0
- package/templates/vue/features/sentry/tsconfig.app.json +33 -0
- package/templates/vue/features/sentry/tsconfig.base.json +25 -0
- package/templates/vue/features/sentry/tsconfig.json +12 -0
- package/templates/vue/features/sentry/tsconfig.node.json +14 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml +17 -0
- package/templates/vue/micro-frontends/qiankun/base/package.json +5 -1
- package/templates/vue/micro-frontends/qiankun/base/src/App.vue +13 -0
- package/templates/vue/micro-frontends/qiankun/base/src/assets/fonts/index.css +6 -0
- package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/base.scss +33 -0
- package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/custom.scss +20 -0
- package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/main.scss +8 -0
- package/templates/vue/micro-frontends/qiankun/base/src/assets/styles/tailwind.scss +3 -0
- package/templates/vue/micro-frontends/qiankun/base/src/directives/index.ts +36 -0
- package/templates/vue/micro-frontends/qiankun/base/src/main.ts +5 -5
- package/templates/vue/micro-frontends/qiankun/base/src/router/index.ts +27 -0
- package/templates/vue/micro-frontends/qiankun/base/src/stores/index.ts +8 -0
- package/templates/vue/micro-frontends/qiankun/base/tsconfig.app.json +33 -0
- package/templates/vue/micro-frontends/qiankun/base/tsconfig.base.json +25 -0
- package/templates/vue/micro-frontends/qiankun/base/tsconfig.json +12 -0
- package/templates/vue/micro-frontends/qiankun/base/tsconfig.node.json +14 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +3 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/main.scss +0 -1
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/modules/system.ts +1 -1
- package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.app.json +33 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.base.json +25 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.json +12 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/tsconfig.node.json +14 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml +17 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/package.json +2 -1
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/layouts/index.ts +26 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/modules/system.ts +1 -1
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.app.json +33 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.base.json +25 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.json +12 -0
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/tsconfig.node.json +14 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +2 -1
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/modules/system.ts +1 -1
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.app.json +33 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.base.json +25 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.json +12 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/tsconfig.node.json +14 -0
- package/dist/test.d.ts +0 -5
- package/dist/test.js +0 -508
- package/templates/common/base/src/utils/index.ts +0 -87
- /package/templates/vue/features/element-plus/src/assets/styles/{element.scss → element/index.scss} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "react-jsx",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"noUncheckedSideEffectImports": true,
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"esModuleInterop": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -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,25 @@
|
|
|
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
|
+
"exclude": [
|
|
19
|
+
"dist",
|
|
20
|
+
"node_modules",
|
|
21
|
+
"cypress",
|
|
22
|
+
"vite",
|
|
23
|
+
"vite.config.*"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "react-jsx",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"noUncheckedSideEffectImports": true,
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"esModuleInterop": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
@@ -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
|
|
@@ -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@
|
|
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@
|
|
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
|
|
@@ -7,12 +7,12 @@ import { qiankunWindow, renderWithQiankun } from 'vite-plugin-qiankun/dist/helpe
|
|
|
7
7
|
import React from 'react'
|
|
8
8
|
import ReactDOM from 'react-dom/client'
|
|
9
9
|
import { RouterProvider } from 'react-router-dom'
|
|
10
|
-
import { createRouter } from '
|
|
10
|
+
import { createRouter } from './router'
|
|
11
11
|
import { setupFeatures } from './main/index'
|
|
12
12
|
|
|
13
13
|
// Import styles
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
14
|
+
import './assets/styles/main.scss'
|
|
15
|
+
import './assets/fonts/index.css'
|
|
16
16
|
|
|
17
17
|
let root: ReturnType<typeof ReactDOM.createRoot> | null = null
|
|
18
18
|
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
"exclude": [
|
|
19
|
+
"dist",
|
|
20
|
+
"node_modules",
|
|
21
|
+
"cypress",
|
|
22
|
+
"vite",
|
|
23
|
+
"vite.config.*"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "react-jsx",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"noUncheckedSideEffectImports": true,
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"esModuleInterop": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
@@ -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/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
|
|
@@ -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/vue-tsc@
|
|
9
|
+
export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/node_modules/vue-tsc/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/node_modules/vue-tsc/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/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/vue-tsc@
|
|
11
|
+
export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/node_modules/vue-tsc/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/node_modules/vue-tsc/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vue-tsc@3.2.4_typescript@5.8.3/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/../vue-tsc/bin/vue-tsc.js" "$@"
|
|
@@ -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
|
+
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import { createApp } from 'vue'
|
|
7
7
|
import directives from '@/directives'
|
|
8
|
-
import App from '
|
|
9
|
-
import getRouter from '
|
|
10
|
-
import { setupFeatures } from '
|
|
8
|
+
import App from '@/App.vue'
|
|
9
|
+
import getRouter from '@/router'
|
|
10
|
+
import { setupFeatures } from '@/main/index'
|
|
11
11
|
|
|
12
12
|
// Import styles
|
|
13
13
|
import '@/assets/styles/main.scss'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 默认路由配置(最小实现)
|
|
3
|
+
* 此文件会被 router feature (manualRoutes/pageRoutes) 覆盖
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { createRouter, createWebHistory } from 'vue-router'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 创建路由实例
|
|
10
|
+
* @returns 路由实例
|
|
11
|
+
*/
|
|
12
|
+
function getRouter() {
|
|
13
|
+
return createRouter({
|
|
14
|
+
history: createWebHistory(),
|
|
15
|
+
routes: [
|
|
16
|
+
{
|
|
17
|
+
path: '/',
|
|
18
|
+
name: 'home',
|
|
19
|
+
component: () => import('@/App.vue'),
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default getRouter
|