create-young-proj 1.6.2 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/template-uni-app/README.md +6 -1
- package/template-uni-app/_env +2 -1
- package/template-uni-app/auto-imports.d.ts +0 -4
- package/template-uni-app/custom-plugins/multiconf.ts +13 -1
- package/template-uni-app/package.json +17 -17
- package/template-uni-app/pnpm-lock.yaml +565 -985
- package/template-uni-app/src/App.vue +11 -1
- package/template-uni-app/src/apis/index.ts +9 -2
- package/template-uni-app/src/components/young-loading/young-loading.vue +4 -2
- package/template-uni-app/src/env.d.ts +7 -2
- package/template-uni-app/src/utils/auth.ts +24 -1
- package/template-uni-app/src/utils/index.ts +1 -2
- package/template-uni-app/src/utils/system.ts +6 -1
- package/template-uni-app/src/utils/map.ts +0 -98
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
+
## v1.7.0
|
5
|
+
|
6
|
+
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.6.2...v1.7.0)
|
7
|
+
|
8
|
+
### 🚀 Enhancements
|
9
|
+
|
10
|
+
- 🚀 多段兼容增强 ([7d2ad5f](https://github.com/BluesYoung-web/create-young-proj/commit/7d2ad5f))
|
11
|
+
|
12
|
+
### 🏡 Chore
|
13
|
+
|
14
|
+
- 🏡 uni-app 依赖升级 ([c514c7b](https://github.com/BluesYoung-web/create-young-proj/commit/c514c7b))
|
15
|
+
|
16
|
+
### ❤️ Contributors
|
17
|
+
|
18
|
+
- 张扬 <bluesyoung_web@163.com>
|
19
|
+
|
4
20
|
## v1.6.2
|
5
21
|
|
6
22
|
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.6.1...v1.6.2)
|
package/package.json
CHANGED
package/template-uni-app/_env
CHANGED
@@ -423,7 +423,6 @@ declare module 'vue' {
|
|
423
423
|
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
|
424
424
|
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
425
425
|
readonly fingerPrintAuth: UnwrapRef<typeof import('./src/utils/auth')['fingerPrintAuth']>
|
426
|
-
readonly geocoderLocation: UnwrapRef<typeof import('./src/utils/map')['geocoderLocation']>
|
427
426
|
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
|
428
427
|
readonly getAuthInfo: UnwrapRef<typeof import('./src/utils/auth')['getAuthInfo']>
|
429
428
|
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
|
@@ -516,7 +515,6 @@ declare module 'vue' {
|
|
516
515
|
readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
|
517
516
|
readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
|
518
517
|
readonly route: UnwrapRef<typeof import('./src/utils/route')['route']>
|
519
|
-
readonly searchLoaction: UnwrapRef<typeof import('./src/utils/map')['searchLoaction']>
|
520
518
|
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
|
521
519
|
readonly setLocationInfo: UnwrapRef<typeof import('./src/store/local/index')['setLocationInfo']>
|
522
520
|
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
|
@@ -796,7 +794,6 @@ declare module '@vue/runtime-core' {
|
|
796
794
|
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
|
797
795
|
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
798
796
|
readonly fingerPrintAuth: UnwrapRef<typeof import('./src/utils/auth')['fingerPrintAuth']>
|
799
|
-
readonly geocoderLocation: UnwrapRef<typeof import('./src/utils/map')['geocoderLocation']>
|
800
797
|
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
|
801
798
|
readonly getAuthInfo: UnwrapRef<typeof import('./src/utils/auth')['getAuthInfo']>
|
802
799
|
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
|
@@ -889,7 +886,6 @@ declare module '@vue/runtime-core' {
|
|
889
886
|
readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
|
890
887
|
readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
|
891
888
|
readonly route: UnwrapRef<typeof import('./src/utils/route')['route']>
|
892
|
-
readonly searchLoaction: UnwrapRef<typeof import('./src/utils/map')['searchLoaction']>
|
893
889
|
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
|
894
890
|
readonly setLocationInfo: UnwrapRef<typeof import('./src/store/local/index')['setLocationInfo']>
|
895
891
|
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-07-19 14:32:45
|
4
|
-
* @LastEditTime:
|
4
|
+
* @LastEditTime: 2024-02-01 11:29:08
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
7
|
import type { Plugin } from 'vite'
|
@@ -22,6 +22,9 @@ export function multiConf(env: string) {
|
|
22
22
|
},
|
23
23
|
generateBundle(options, bundle) {
|
24
24
|
const appid = configEnv.VITE_APPID
|
25
|
+
const appname = configEnv.VITE_APPNAME
|
26
|
+
|
27
|
+
// 微信小程序
|
25
28
|
const json = bundle['project.config.json'] as OutputAsset
|
26
29
|
if (json?.source && typeof json.source === 'string') {
|
27
30
|
const jsonConf = JSON.parse(json.source)
|
@@ -80,6 +83,15 @@ export function multiConf(env: string) {
|
|
80
83
|
|
81
84
|
app.source = JSON.stringify(appConf, null, 2)
|
82
85
|
}
|
86
|
+
|
87
|
+
// APP
|
88
|
+
const manifest = bundle['manifest.json'] as OutputAsset
|
89
|
+
if (manifest?.source && typeof manifest.source === 'string') {
|
90
|
+
const manifestConf = JSON.parse(manifest.source)
|
91
|
+
manifestConf.id = appid
|
92
|
+
manifestConf.name = appname
|
93
|
+
manifest.source = JSON.stringify(manifestConf, null, 2)
|
94
|
+
}
|
83
95
|
},
|
84
96
|
} as Plugin
|
85
97
|
}
|
@@ -47,19 +47,19 @@
|
|
47
47
|
"dependencies": {
|
48
48
|
"@bluesyoung/http": "^1.2.0",
|
49
49
|
"@bluesyoung/utils": "^0.2.1",
|
50
|
-
"@dcloudio/uni-app": "3.0.0-
|
51
|
-
"@dcloudio/uni-app-plus": "3.0.0-
|
52
|
-
"@dcloudio/uni-components": "3.0.0-
|
53
|
-
"@dcloudio/uni-h5": "3.0.0-
|
54
|
-
"@dcloudio/uni-mp-alipay": "3.0.0-
|
55
|
-
"@dcloudio/uni-mp-baidu": "3.0.0-
|
56
|
-
"@dcloudio/uni-mp-jd": "3.0.0-
|
57
|
-
"@dcloudio/uni-mp-kuaishou": "3.0.0-
|
58
|
-
"@dcloudio/uni-mp-lark": "3.0.0-
|
59
|
-
"@dcloudio/uni-mp-qq": "3.0.0-
|
60
|
-
"@dcloudio/uni-mp-toutiao": "3.0.0-
|
61
|
-
"@dcloudio/uni-mp-weixin": "3.0.0-
|
62
|
-
"@dcloudio/uni-quickapp-webview": "3.0.0-
|
50
|
+
"@dcloudio/uni-app": "3.0.0-3090920231225001",
|
51
|
+
"@dcloudio/uni-app-plus": "3.0.0-3090920231225001",
|
52
|
+
"@dcloudio/uni-components": "3.0.0-3090920231225001",
|
53
|
+
"@dcloudio/uni-h5": "3.0.0-3090920231225001",
|
54
|
+
"@dcloudio/uni-mp-alipay": "3.0.0-3090920231225001",
|
55
|
+
"@dcloudio/uni-mp-baidu": "3.0.0-3090920231225001",
|
56
|
+
"@dcloudio/uni-mp-jd": "3.0.0-3090920231225001",
|
57
|
+
"@dcloudio/uni-mp-kuaishou": "3.0.0-3090920231225001",
|
58
|
+
"@dcloudio/uni-mp-lark": "3.0.0-3090920231225001",
|
59
|
+
"@dcloudio/uni-mp-qq": "3.0.0-3090920231225001",
|
60
|
+
"@dcloudio/uni-mp-toutiao": "3.0.0-3090920231225001",
|
61
|
+
"@dcloudio/uni-mp-weixin": "3.0.0-3090920231225001",
|
62
|
+
"@dcloudio/uni-quickapp-webview": "3.0.0-3090920231225001",
|
63
63
|
"@uni-helper/uni-use": "^0.17.1",
|
64
64
|
"@vueuse/core": "9",
|
65
65
|
"dayjs": "^1.11.10",
|
@@ -78,11 +78,11 @@
|
|
78
78
|
"devDependencies": {
|
79
79
|
"@antfu/eslint-config": "^1.1.2",
|
80
80
|
"@dcloudio/types": "^3.4.3",
|
81
|
-
"@dcloudio/uni-automator": "3.0.0-
|
82
|
-
"@dcloudio/uni-cli-shared": "3.0.0-
|
83
|
-
"@dcloudio/uni-stacktracey": "3.0.0-
|
81
|
+
"@dcloudio/uni-automator": "3.0.0-3090920231225001",
|
82
|
+
"@dcloudio/uni-cli-shared": "3.0.0-3090920231225001",
|
83
|
+
"@dcloudio/uni-stacktracey": "3.0.0-3090920231225001",
|
84
84
|
"@dcloudio/uni-ui": "^1.4.28",
|
85
|
-
"@dcloudio/vite-plugin-uni": "3.0.0-
|
85
|
+
"@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001",
|
86
86
|
"@types/md5": "^2.3.5",
|
87
87
|
"@uni-helper/pages-json-schema": "^0.2.12",
|
88
88
|
"@uni-helper/uni-app-types": "^0.5.8",
|