@gx-design-vue/create-gx-cli 0.1.19 → 0.1.21
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/README.md +1 -4
- package/dist/index.js +36 -48
- package/package.json +5 -3
- package/template-mobile-vant-cli/.editorconfig +19 -0
- package/template-mobile-vant-cli/.env +3 -0
- package/template-mobile-vant-cli/.env.development +17 -0
- package/template-mobile-vant-cli/.env.pro +28 -0
- package/template-mobile-vant-cli/.env.production +31 -0
- package/template-mobile-vant-cli/.eslintignore +15 -0
- package/template-mobile-vant-cli/.prettierignore +9 -0
- package/template-mobile-vant-cli/README.md +1 -0
- package/template-mobile-vant-cli/commitlint.config.cjs +32 -0
- package/template-mobile-vant-cli/config/default/defaultSettings.ts +70 -0
- package/template-mobile-vant-cli/config/default/network.ts +10 -0
- package/template-mobile-vant-cli/config/default/proxy.ts +50 -0
- package/template-mobile-vant-cli/config/default/theme.ts +3 -0
- package/template-mobile-vant-cli/config/index.ts +11 -0
- package/template-mobile-vant-cli/eslint.config.js +58 -0
- package/template-mobile-vant-cli/index.html +25 -0
- package/template-mobile-vant-cli/internal/vite-config/generate/generateModifyVars.ts +7 -0
- package/template-mobile-vant-cli/internal/vite-config/rollupOptions/index.ts +22 -0
- package/template-mobile-vant-cli/internal/vite-config/util/hash.ts +17 -0
- package/template-mobile-vant-cli/internal/vite-config/util/index.ts +132 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/cdn.ts +65 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/optimizer.ts +26 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/appConfig.ts +91 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/autoImport.ts +28 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/compress.ts +31 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/html.ts +32 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/index.ts +74 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/visualizer.ts +14 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/viteNotice.ts +40 -0
- package/template-mobile-vant-cli/mock/config/permissions.ts +15 -0
- package/template-mobile-vant-cli/mock/config/user/id.ts +5 -0
- package/template-mobile-vant-cli/mock/config/user/index.ts +96 -0
- package/template-mobile-vant-cli/mock/index.ts +55 -0
- package/template-mobile-vant-cli/mock/routers/table/index.fake.ts +22 -0
- package/template-mobile-vant-cli/mock/routers/user/account.fake.ts +52 -0
- package/template-mobile-vant-cli/mock/routers/user/index.fake.ts +46 -0
- package/template-mobile-vant-cli/mock/utils/crypto.ts +21 -0
- package/template-mobile-vant-cli/mock/utils/table.ts +96 -0
- package/template-mobile-vant-cli/mock/utils/util.ts +91 -0
- package/template-mobile-vant-cli/package.json +74 -0
- package/template-mobile-vant-cli/public/css/default.css +54 -0
- package/template-mobile-vant-cli/public/favicon.ico +0 -0
- package/template-mobile-vant-cli/src/App.vue +8 -0
- package/template-mobile-vant-cli/src/assets/logo.png +0 -0
- package/template-mobile-vant-cli/src/components/PageContainer/ProSkeleton.tsx +29 -0
- package/template-mobile-vant-cli/src/components/PageContainer/index.tsx +207 -0
- package/template-mobile-vant-cli/src/components/PageContainer/style.module.less +17 -0
- package/template-mobile-vant-cli/src/components/TabsMenu/index.vue +45 -0
- package/template-mobile-vant-cli/src/core/gx-design/index.ts +7 -0
- package/template-mobile-vant-cli/src/core/index.ts +5 -0
- package/template-mobile-vant-cli/src/design/color.less +1 -0
- package/template-mobile-vant-cli/src/design/config.less +5 -0
- package/template-mobile-vant-cli/src/design/index.less +3 -0
- package/template-mobile-vant-cli/src/design/mixin.less +65 -0
- package/template-mobile-vant-cli/src/design/reset.less +39 -0
- package/template-mobile-vant-cli/src/design/root.less +3 -0
- package/template-mobile-vant-cli/src/design/vant/index.less +0 -0
- package/template-mobile-vant-cli/src/hooks/web/index.ts +5 -0
- package/template-mobile-vant-cli/src/hooks/web/usePageLoading.ts +56 -0
- package/template-mobile-vant-cli/src/layout/BasicLayout/index.vue +18 -0
- package/template-mobile-vant-cli/src/layout/BasicLayout/style.less +3 -0
- package/template-mobile-vant-cli/src/layout/UserLayout/index.vue +18 -0
- package/template-mobile-vant-cli/src/layout/UserLayout/style.module.less +36 -0
- package/template-mobile-vant-cli/src/main.ts +34 -0
- package/template-mobile-vant-cli/src/pages/Account/details.vue +13 -0
- package/template-mobile-vant-cli/src/pages/Account/index.vue +102 -0
- package/template-mobile-vant-cli/src/pages/Home/index.vue +71 -0
- package/template-mobile-vant-cli/src/pages/user/login/index.vue +76 -0
- package/template-mobile-vant-cli/src/plugins/dayjs/index.ts +3 -0
- package/template-mobile-vant-cli/src/plugins/index.ts +2 -0
- package/template-mobile-vant-cli/src/router/guard/index.ts +18 -0
- package/template-mobile-vant-cli/src/router/guard/permissions.ts +41 -0
- package/template-mobile-vant-cli/src/router/guard/stateGuard.ts +10 -0
- package/template-mobile-vant-cli/src/router/index.ts +31 -0
- package/template-mobile-vant-cli/src/router/routes/index.ts +46 -0
- package/template-mobile-vant-cli/src/router/routes/modules/dataSource.ts +32 -0
- package/template-mobile-vant-cli/src/services/index.ts +31 -0
- package/template-mobile-vant-cli/src/services/userCenter/account.ts +42 -0
- package/template-mobile-vant-cli/src/services/userCenter/index.ts +28 -0
- package/template-mobile-vant-cli/src/store/index.ts +20 -0
- package/template-mobile-vant-cli/src/store/modules/global.ts +23 -0
- package/template-mobile-vant-cli/src/store/modules/user.ts +107 -0
- package/template-mobile-vant-cli/src/utils/accessToken.ts +97 -0
- package/template-mobile-vant-cli/src/utils/crypto/index.ts +56 -0
- package/template-mobile-vant-cli/src/utils/env.ts +50 -0
- package/template-mobile-vant-cli/src/utils/pageTitle.ts +20 -0
- package/template-mobile-vant-cli/src/utils/request/XHR.ts +137 -0
- package/template-mobile-vant-cli/src/utils/request/axiosCancel.ts +69 -0
- package/template-mobile-vant-cli/src/utils/request/checkStatus.ts +25 -0
- package/template-mobile-vant-cli/src/utils/request/index.ts +155 -0
- package/template-mobile-vant-cli/src/utils/request/typings.ts +171 -0
- package/template-mobile-vant-cli/src/utils/storage.ts +215 -0
- package/template-mobile-vant-cli/src/utils/util.ts +27 -0
- package/template-mobile-vant-cli/src/utils/validate.ts +211 -0
- package/template-mobile-vant-cli/tsconfig.json +50 -0
- package/template-mobile-vant-cli/types/auto-imports.d.ts +80 -0
- package/template-mobile-vant-cli/types/components.d.ts +7 -0
- package/template-mobile-vant-cli/types/config.d.ts +56 -0
- package/template-mobile-vant-cli/types/global.d.ts +80 -0
- package/template-mobile-vant-cli/types/mock.d.ts +34 -0
- package/template-mobile-vant-cli/types/module.d.ts +61 -0
- package/template-mobile-vant-cli/types/response.d.ts +17 -0
- package/template-mobile-vant-cli/types/system.d.ts +58 -0
- package/template-mobile-vant-cli/types/vant-import.d.ts +25 -0
- package/template-mobile-vant-cli/unocss.config.ts +161 -0
- package/template-mobile-vant-cli/vite.config.ts +142 -0
- package/template-mobile-vant-html/README.md +4 -0
- package/template-mobile-vant-html/css/global.css +293 -0
- package/template-mobile-vant-html/css/global.css.map +1 -0
- package/template-mobile-vant-html/css/global.less +293 -0
- package/template-mobile-vant-html/css/index.css +20 -0
- package/template-mobile-vant-html/css/index.css.map +1 -0
- package/template-mobile-vant-html/css/index.less +21 -0
- package/template-mobile-vant-html/image/disconnected.svg +60 -0
- package/template-mobile-vant-html/image/empty.svg +52 -0
- package/template-mobile-vant-html/image/error.svg +53 -0
- package/template-mobile-vant-html/image/loading.svg +1 -0
- package/template-mobile-vant-html/index.html +91 -0
- package/template-mobile-vant-html/js/index.js +29 -0
- package/template-mobile-vant-html/js/plugin/day.min.js +1 -0
- package/template-mobile-vant-html/js/plugin/fastclick.js +730 -0
- package/template-mobile-vant-html/js/plugin/jquery.min.js +2 -0
- package/template-mobile-vant-html/js/plugin/rem.js +28 -0
- package/template-mobile-vant-html/js/utils/appUtil.js +70 -0
- package/template-mobile-vant-html/js/utils/config.js +3 -0
- package/template-mobile-vant-html/js/utils/request.js +61 -0
- package/template-mobile-vant-html/js/utils/utils.js +65 -0
- package/template-mobile-vant-html/js/utils/validate.js +292 -0
- package/template-vite-project/.env +5 -0
- package/template-vite-project/.env.development +5 -0
- package/template-vite-project/.env.pro +5 -0
- package/template-vite-project/.env.production +5 -0
- package/template-vite-project/README.md +5 -0
- package/template-vite-project/_gitignore +24 -0
- package/template-vite-project/index.html +46 -0
- package/template-vite-project/internal/proxy/index.ts +47 -0
- package/template-vite-project/internal/vite/generate/generateModifyVars.ts +9 -0
- package/template-vite-project/internal/vite/rollupOptions/index.ts +18 -0
- package/template-vite-project/internal/vite/util/hash.ts +17 -0
- package/template-vite-project/internal/vite/util/index.ts +132 -0
- package/template-vite-project/internal/vite/vite/cdn.ts +65 -0
- package/template-vite-project/internal/vite/vite/plugin/appConfig.ts +91 -0
- package/template-vite-project/internal/vite/vite/plugin/autoImport.ts +28 -0
- package/template-vite-project/internal/vite/vite/plugin/compress.ts +31 -0
- package/template-vite-project/internal/vite/vite/plugin/html.ts +24 -0
- package/template-vite-project/internal/vite/vite/plugin/index.ts +72 -0
- package/template-vite-project/internal/vite/vite/plugin/visualizer.ts +14 -0
- package/template-vite-project/internal/vite/vite/plugin/viteNotice.ts +40 -0
- package/template-vite-project/node_modules/.bin/cross-env +21 -0
- package/template-vite-project/node_modules/.bin/cross-env-shell +21 -0
- package/template-vite-project/node_modules/.bin/esbuild +21 -0
- package/template-vite-project/node_modules/.bin/jiti +21 -0
- package/template-vite-project/node_modules/.bin/lessc +21 -0
- package/template-vite-project/node_modules/.bin/parser +21 -0
- package/template-vite-project/node_modules/.bin/rollup +21 -0
- package/template-vite-project/node_modules/.bin/terser +21 -0
- package/template-vite-project/node_modules/.bin/tsc +21 -0
- package/template-vite-project/node_modules/.bin/tsserver +21 -0
- package/template-vite-project/node_modules/.bin/vite +21 -0
- package/template-vite-project/node_modules/.bin/vue-tsc +21 -0
- package/template-vite-project/node_modules/.bin/yaml +21 -0
- package/template-vite-project/package.json +38 -0
- package/template-vite-project/public/css/index.css +89 -0
- package/template-vite-project/public/css/normalize.css +396 -0
- package/template-vite-project/public/vite.svg +1 -0
- package/template-vite-project/src/App.vue +30 -0
- package/template-vite-project/src/assets/vue.svg +1 -0
- package/template-vite-project/src/components/HelloWorld.vue +41 -0
- package/template-vite-project/src/design/config.less +0 -0
- package/template-vite-project/src/design/index.less +0 -0
- package/template-vite-project/src/main.ts +14 -0
- package/template-vite-project/src/utils/env.ts +50 -0
- package/template-vite-project/tsconfig.app.json +59 -0
- package/template-vite-project/tsconfig.json +7 -0
- package/template-vite-project/tsconfig.node.json +28 -0
- package/template-vite-project/types/global.d.ts +33 -0
- package/template-vite-project/unocss.config.ts +208 -0
- package/template-vite-project/vite.config.ts +88 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"name": "vite-vue-typescript-starter",
|
3
|
+
"private": true,
|
4
|
+
"version": "0.0.0",
|
5
|
+
"type": "module",
|
6
|
+
"scripts": {
|
7
|
+
"dev": "cross-env VITE_APP_ENV=dev vite",
|
8
|
+
"build": "vue-tsc -b && vite build",
|
9
|
+
"preview": "vite preview"
|
10
|
+
},
|
11
|
+
"dependencies": {
|
12
|
+
"@gx-design-vue/pro-hooks": "^0.2.0-beta.46",
|
13
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.67",
|
14
|
+
"@vueuse/core": "^13.5.0",
|
15
|
+
"@vueuse/motion": "^3.0.3",
|
16
|
+
"@vueuse/shared": "^13.5.0",
|
17
|
+
"ant-design-vue": "^4.2.6",
|
18
|
+
"dayjs": "^1.11.13",
|
19
|
+
"lodash-es": "^4.17.21",
|
20
|
+
"unocss": "^66.4.2",
|
21
|
+
"vue": "^3.5.18"
|
22
|
+
},
|
23
|
+
"devDependencies": {
|
24
|
+
"@types/lodash-es": "^4.17.10",
|
25
|
+
"@types/node": "^24.0.0",
|
26
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
27
|
+
"@vitejs/plugin-vue-jsx": "^5.0.1",
|
28
|
+
"cross-env": "^10.0.0",
|
29
|
+
"less": "^4.1.2",
|
30
|
+
"typescript": "~5.8.3",
|
31
|
+
"unplugin-auto-import": "^20.0.0",
|
32
|
+
"unplugin-turbo-console": "^2.2.0",
|
33
|
+
"unplugin-vue-components": "^29.0.0",
|
34
|
+
"vite": "^7.1.0",
|
35
|
+
"vite-plugin-vue-devtools": "^8.0.0",
|
36
|
+
"vue-tsc": "^3.0.5"
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
html,
|
2
|
+
body,
|
3
|
+
#app {
|
4
|
+
height: 100%;
|
5
|
+
margin: 0;
|
6
|
+
padding: 0;
|
7
|
+
}
|
8
|
+
#app {
|
9
|
+
background-repeat: no-repeat;
|
10
|
+
background-size: 100% auto;
|
11
|
+
}
|
12
|
+
.gx-app-loading {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
justify-content: center;
|
16
|
+
flex-direction: column;
|
17
|
+
height: 100%;
|
18
|
+
min-height: 420px;
|
19
|
+
}
|
20
|
+
.gx-app-title {
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
font-size: 45px;
|
24
|
+
font-weight: 600;
|
25
|
+
}
|
26
|
+
.gx-app-title img {
|
27
|
+
width: 100px;
|
28
|
+
}
|
29
|
+
.page-loading-warp {
|
30
|
+
display: flex;
|
31
|
+
align-items: center;
|
32
|
+
justify-content: center;
|
33
|
+
flex-direction: column;
|
34
|
+
padding: 98px;
|
35
|
+
}
|
36
|
+
.page-loading-warp .page-loading-warp_message {
|
37
|
+
display: flex;
|
38
|
+
align-items: center;
|
39
|
+
justify-content: center;
|
40
|
+
flex-direction: column;
|
41
|
+
gap: 15px;
|
42
|
+
margin-top: 40px;
|
43
|
+
}
|
44
|
+
.page-loading-warp .page-loading-warp_message .page-loading_title {
|
45
|
+
font-size: 20px;
|
46
|
+
}
|
47
|
+
.page-loading-warp .page-loading-warp_message .page-loading_sub_title {
|
48
|
+
color: #666;
|
49
|
+
font-size: 16px;
|
50
|
+
}
|
51
|
+
.gx-spin {
|
52
|
+
position: absolute;
|
53
|
+
display: none;
|
54
|
+
-webkit-box-sizing: border-box;
|
55
|
+
box-sizing: border-box;
|
56
|
+
margin: 0;
|
57
|
+
padding: 0;
|
58
|
+
color: rgba(0, 0, 0, 0.65);
|
59
|
+
font-size: 14px;
|
60
|
+
font-variant: tabular-nums;
|
61
|
+
line-height: 1.5;
|
62
|
+
text-align: center;
|
63
|
+
list-style: none;
|
64
|
+
opacity: 0;
|
65
|
+
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
66
|
+
transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
67
|
+
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
68
|
+
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),
|
69
|
+
-webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
70
|
+
-webkit-font-feature-settings: 'tnum';
|
71
|
+
font-feature-settings: 'tnum';
|
72
|
+
}
|
73
|
+
|
74
|
+
.gx-spin-spinning {
|
75
|
+
position: static;
|
76
|
+
display: inline-block;
|
77
|
+
opacity: 1;
|
78
|
+
}
|
79
|
+
|
80
|
+
.gx-spin-dot {
|
81
|
+
position: relative;
|
82
|
+
display: flex;
|
83
|
+
align-items: center;
|
84
|
+
justify-content: center;
|
85
|
+
font-size: 40px;
|
86
|
+
width: 40px;
|
87
|
+
height: 40px;
|
88
|
+
color: #165DFF;
|
89
|
+
}
|
@@ -0,0 +1,396 @@
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Correct the line height in all browsers.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
9
|
+
*/
|
10
|
+
|
11
|
+
html {
|
12
|
+
line-height: 1.15;
|
13
|
+
/* 1 */
|
14
|
+
-webkit-text-size-adjust: 100%;
|
15
|
+
/* 2 */
|
16
|
+
}
|
17
|
+
|
18
|
+
/* Sections
|
19
|
+
========================================================================== */
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Remove the margin in all browsers.
|
23
|
+
*/
|
24
|
+
|
25
|
+
body {
|
26
|
+
margin: 0;
|
27
|
+
text-rendering: optimizeLegibility;
|
28
|
+
-webkit-font-smoothing: antialiased;
|
29
|
+
-moz-osx-font-smoothing: grayscale;
|
30
|
+
font-size: 100%;
|
31
|
+
}
|
32
|
+
|
33
|
+
h1,
|
34
|
+
h2,
|
35
|
+
h3,
|
36
|
+
h4,
|
37
|
+
h5,
|
38
|
+
h6,
|
39
|
+
p {
|
40
|
+
box-sizing: border-box;
|
41
|
+
padding: 0;
|
42
|
+
margin: 0;
|
43
|
+
vertical-align: baseline;
|
44
|
+
border: 0;
|
45
|
+
outline: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
body * {
|
49
|
+
box-sizing: border-box;
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Render the `main` element consistently in IE.
|
54
|
+
*/
|
55
|
+
|
56
|
+
main {
|
57
|
+
display: block;
|
58
|
+
}
|
59
|
+
|
60
|
+
canvas {
|
61
|
+
display: block;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* Grouping content
|
65
|
+
========================================================================== */
|
66
|
+
|
67
|
+
/**
|
68
|
+
* 1. Add the correct box sizing in Firefox.
|
69
|
+
* 2. Show the overflow in Edge and IE.
|
70
|
+
*/
|
71
|
+
|
72
|
+
hr {
|
73
|
+
box-sizing: content-box;
|
74
|
+
/* 1 */
|
75
|
+
height: 0;
|
76
|
+
/* 1 */
|
77
|
+
overflow: visible;
|
78
|
+
/* 2 */
|
79
|
+
}
|
80
|
+
|
81
|
+
/**
|
82
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
83
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
84
|
+
*/
|
85
|
+
|
86
|
+
pre {
|
87
|
+
font-family: monospace;
|
88
|
+
/* 1 */
|
89
|
+
font-size: 1em;
|
90
|
+
/* 2 */
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Text-level semantics
|
94
|
+
========================================================================== */
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Remove the gray background on active links in IE 10.
|
98
|
+
*/
|
99
|
+
|
100
|
+
a {
|
101
|
+
background-color: transparent;
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* 1. Remove the bottom border in Chrome 57-
|
106
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
107
|
+
*/
|
108
|
+
|
109
|
+
abbr[title] {
|
110
|
+
text-decoration: underline;
|
111
|
+
/* 2 */
|
112
|
+
text-decoration: underline dotted;
|
113
|
+
/* 2 */
|
114
|
+
border-bottom: none;
|
115
|
+
/* 1 */
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
120
|
+
*/
|
121
|
+
|
122
|
+
b,
|
123
|
+
strong {
|
124
|
+
font-weight: bolder;
|
125
|
+
}
|
126
|
+
|
127
|
+
/**
|
128
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
129
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
130
|
+
*/
|
131
|
+
|
132
|
+
code,
|
133
|
+
kbd,
|
134
|
+
samp {
|
135
|
+
font-family: monospace;
|
136
|
+
/* 1 */
|
137
|
+
font-size: 1em;
|
138
|
+
/* 2 */
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Add the correct font size in all browsers.
|
143
|
+
*/
|
144
|
+
|
145
|
+
small {
|
146
|
+
font-size: 80%;
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
151
|
+
* all browsers.
|
152
|
+
*/
|
153
|
+
|
154
|
+
sub,
|
155
|
+
sup {
|
156
|
+
position: relative;
|
157
|
+
font-size: 75%;
|
158
|
+
line-height: 0;
|
159
|
+
vertical-align: baseline;
|
160
|
+
}
|
161
|
+
|
162
|
+
sub {
|
163
|
+
bottom: -0.25em;
|
164
|
+
}
|
165
|
+
|
166
|
+
sup {
|
167
|
+
top: -0.5em;
|
168
|
+
}
|
169
|
+
|
170
|
+
/* Embedded content
|
171
|
+
========================================================================== */
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Remove the border on images inside links in IE 10.
|
175
|
+
*/
|
176
|
+
|
177
|
+
img {
|
178
|
+
border-style: none;
|
179
|
+
}
|
180
|
+
|
181
|
+
/* Forms
|
182
|
+
========================================================================== */
|
183
|
+
|
184
|
+
/**
|
185
|
+
* 1. Change the font styles in all browsers.
|
186
|
+
* 2. Remove the margin in Firefox and Safari.
|
187
|
+
*/
|
188
|
+
|
189
|
+
button,
|
190
|
+
input,
|
191
|
+
optgroup,
|
192
|
+
select,
|
193
|
+
textarea {
|
194
|
+
margin: 0;
|
195
|
+
/* 2 */
|
196
|
+
font-family: inherit;
|
197
|
+
/* 1 */
|
198
|
+
font-size: 100%;
|
199
|
+
/* 1 */
|
200
|
+
line-height: 1.15;
|
201
|
+
/* 1 */
|
202
|
+
}
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Show the overflow in IE.
|
206
|
+
* 1. Show the overflow in Edge.
|
207
|
+
*/
|
208
|
+
|
209
|
+
button,
|
210
|
+
input {
|
211
|
+
/* 1 */
|
212
|
+
overflow: visible;
|
213
|
+
}
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
217
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
218
|
+
*/
|
219
|
+
|
220
|
+
button,
|
221
|
+
select {
|
222
|
+
/* 1 */
|
223
|
+
text-transform: none;
|
224
|
+
}
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
228
|
+
*/
|
229
|
+
|
230
|
+
button,
|
231
|
+
[type='button'],
|
232
|
+
[type='reset'],
|
233
|
+
[type='submit'] {
|
234
|
+
-webkit-appearance: button;
|
235
|
+
}
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Remove the inner border and padding in Firefox.
|
239
|
+
*/
|
240
|
+
|
241
|
+
button::-moz-focus-inner,
|
242
|
+
[type='button']::-moz-focus-inner,
|
243
|
+
[type='reset']::-moz-focus-inner,
|
244
|
+
[type='submit']::-moz-focus-inner {
|
245
|
+
padding: 0;
|
246
|
+
border-style: none;
|
247
|
+
}
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Restore the focus styles unset by the previous rule.
|
251
|
+
*/
|
252
|
+
|
253
|
+
button:-moz-focusring,
|
254
|
+
[type='button']:-moz-focusring,
|
255
|
+
[type='reset']:-moz-focusring,
|
256
|
+
[type='submit']:-moz-focusring {
|
257
|
+
outline: 1px dotted ButtonText;
|
258
|
+
}
|
259
|
+
|
260
|
+
/**
|
261
|
+
* Correct the padding in Firefox.
|
262
|
+
*/
|
263
|
+
|
264
|
+
fieldset {
|
265
|
+
padding: 0.35em 0.75em 0.625em;
|
266
|
+
}
|
267
|
+
|
268
|
+
/**
|
269
|
+
* 1. Correct the text wrapping in Edge and IE.
|
270
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
271
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
272
|
+
* `fieldset` elements in all browsers.
|
273
|
+
*/
|
274
|
+
|
275
|
+
legend {
|
276
|
+
box-sizing: border-box;
|
277
|
+
/* 1 */
|
278
|
+
display: table;
|
279
|
+
/* 1 */
|
280
|
+
max-width: 100%;
|
281
|
+
/* 1 */
|
282
|
+
padding: 0;
|
283
|
+
/* 3 */
|
284
|
+
color: inherit;
|
285
|
+
/* 2 */
|
286
|
+
white-space: normal;
|
287
|
+
/* 1 */
|
288
|
+
}
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
292
|
+
*/
|
293
|
+
|
294
|
+
progress {
|
295
|
+
vertical-align: baseline;
|
296
|
+
}
|
297
|
+
|
298
|
+
/**
|
299
|
+
* Remove the default vertical scrollbar in IE 10+.
|
300
|
+
*/
|
301
|
+
|
302
|
+
textarea {
|
303
|
+
overflow: auto;
|
304
|
+
}
|
305
|
+
|
306
|
+
/**
|
307
|
+
* 1. Add the correct box sizing in IE 10.
|
308
|
+
* 2. Remove the padding in IE 10.
|
309
|
+
*/
|
310
|
+
|
311
|
+
[type='checkbox'],
|
312
|
+
[type='radio'] {
|
313
|
+
box-sizing: border-box;
|
314
|
+
/* 1 */
|
315
|
+
padding: 0;
|
316
|
+
/* 2 */
|
317
|
+
}
|
318
|
+
|
319
|
+
/**
|
320
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
321
|
+
*/
|
322
|
+
|
323
|
+
[type='number']::-webkit-inner-spin-button,
|
324
|
+
[type='number']::-webkit-outer-spin-button {
|
325
|
+
height: auto;
|
326
|
+
}
|
327
|
+
|
328
|
+
/**
|
329
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
330
|
+
* 2. Correct the outline style in Safari.
|
331
|
+
*/
|
332
|
+
|
333
|
+
[type='search'] {
|
334
|
+
-webkit-appearance: textfield;
|
335
|
+
/* 1 */
|
336
|
+
outline-offset: -2px;
|
337
|
+
/* 2 */
|
338
|
+
}
|
339
|
+
|
340
|
+
/**
|
341
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
342
|
+
*/
|
343
|
+
|
344
|
+
[type='search']::-webkit-search-decoration {
|
345
|
+
-webkit-appearance: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
/**
|
349
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
350
|
+
* 2. Change font properties to `inherit` in Safari.
|
351
|
+
*/
|
352
|
+
|
353
|
+
::-webkit-file-upload-button {
|
354
|
+
-webkit-appearance: button;
|
355
|
+
/* 1 */
|
356
|
+
font: inherit;
|
357
|
+
/* 2 */
|
358
|
+
}
|
359
|
+
|
360
|
+
/* Interactive
|
361
|
+
========================================================================== */
|
362
|
+
|
363
|
+
/*
|
364
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
365
|
+
*/
|
366
|
+
|
367
|
+
details {
|
368
|
+
display: block;
|
369
|
+
}
|
370
|
+
|
371
|
+
/*
|
372
|
+
* Add the correct display in all browsers.
|
373
|
+
*/
|
374
|
+
|
375
|
+
summary {
|
376
|
+
display: list-item;
|
377
|
+
}
|
378
|
+
|
379
|
+
/* Misc
|
380
|
+
========================================================================== */
|
381
|
+
|
382
|
+
/**
|
383
|
+
* Add the correct display in IE 10+.
|
384
|
+
*/
|
385
|
+
|
386
|
+
template {
|
387
|
+
display: none;
|
388
|
+
}
|
389
|
+
|
390
|
+
/**
|
391
|
+
* Add the correct display in IE 10.
|
392
|
+
*/
|
393
|
+
|
394
|
+
[hidden] {
|
395
|
+
display: none;
|
396
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import HelloWorld from './components/HelloWorld.vue'
|
3
|
+
</script>
|
4
|
+
|
5
|
+
<template>
|
6
|
+
<div>
|
7
|
+
<a href="https://vite.dev" target="_blank">
|
8
|
+
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
9
|
+
</a>
|
10
|
+
<a href="https://vuejs.org/" target="_blank">
|
11
|
+
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
12
|
+
</a>
|
13
|
+
</div>
|
14
|
+
<HelloWorld msg="Vite + Vue" />
|
15
|
+
</template>
|
16
|
+
|
17
|
+
<style scoped>
|
18
|
+
.logo {
|
19
|
+
height: 6em;
|
20
|
+
padding: 1.5em;
|
21
|
+
will-change: filter;
|
22
|
+
transition: filter 300ms;
|
23
|
+
}
|
24
|
+
.logo:hover {
|
25
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
26
|
+
}
|
27
|
+
.logo.vue:hover {
|
28
|
+
filter: drop-shadow(0 0 2em #42b883aa);
|
29
|
+
}
|
30
|
+
</style>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import { ref } from 'vue'
|
3
|
+
|
4
|
+
defineProps<{ msg: string }>()
|
5
|
+
|
6
|
+
const count = ref(0)
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<template>
|
10
|
+
<h1>{{ msg }}</h1>
|
11
|
+
|
12
|
+
<div class="card">
|
13
|
+
<button type="button" @click="count++">count is {{ count }}</button>
|
14
|
+
<p>
|
15
|
+
Edit
|
16
|
+
<code>components/HelloWorld.vue</code> to test HMR
|
17
|
+
</p>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<p>
|
21
|
+
Check out
|
22
|
+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
23
|
+
>create-vue</a
|
24
|
+
>, the official Vue + Vite starter
|
25
|
+
</p>
|
26
|
+
<p>
|
27
|
+
Learn more about IDE Support for Vue in the
|
28
|
+
<a
|
29
|
+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
30
|
+
target="_blank"
|
31
|
+
>Vue Docs Scaling up Guide</a
|
32
|
+
>.
|
33
|
+
</p>
|
34
|
+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
35
|
+
</template>
|
36
|
+
|
37
|
+
<style scoped>
|
38
|
+
.read-the-docs {
|
39
|
+
color: #888;
|
40
|
+
}
|
41
|
+
</style>
|
File without changes
|
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* @Author gx12358
|
3
|
+
* @DateTime 2022/4/1
|
4
|
+
* @lastTime 2022/4/1
|
5
|
+
* @description 环境:本地开发环境
|
6
|
+
*/
|
7
|
+
export function isDev(): boolean {
|
8
|
+
return typeViteEnv('VITE_APP_ENV') === 'dev'
|
9
|
+
}
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @Author gx12358
|
13
|
+
* @DateTime 2022/4/1
|
14
|
+
* @lastTime 2022/4/1
|
15
|
+
* @description 环境:正式
|
16
|
+
*/
|
17
|
+
export function isPro(): boolean {
|
18
|
+
return typeViteEnv('VITE_USE_MODE') === 'pro'
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @Author gx12358
|
23
|
+
* @DateTime 2022/4/1
|
24
|
+
* @lastTime 2022/4/1
|
25
|
+
* @description 环境:非开发环境
|
26
|
+
*/
|
27
|
+
export function isBuild(): boolean {
|
28
|
+
return typeViteEnv('VITE_APP_ENV') !== 'dev'
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @Author gx12358
|
33
|
+
* @DateTime 2022/4/1
|
34
|
+
* @lastTime 2022/4/1
|
35
|
+
* @description 当前联调环境
|
36
|
+
*/
|
37
|
+
export function currentMode() {
|
38
|
+
return typeViteEnv('VITE_USE_MODE')
|
39
|
+
}
|
40
|
+
|
41
|
+
export function typeViteEnv<T extends keyof ViteEnv>(key: T): ViteEnv[T] {
|
42
|
+
let value: any = (import.meta as any).env[key]
|
43
|
+
|
44
|
+
if (value && typeof value === 'string') {
|
45
|
+
value = value.replace(/\\n/g, '\n') as ViteEnv[T]
|
46
|
+
value = value === 'true' ? true : value === 'false' ? false : value
|
47
|
+
}
|
48
|
+
|
49
|
+
return value
|
50
|
+
}
|