create-young-proj 2.0.0 → 2.1.0
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/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/template-nuxt-admin/error.vue +3 -3
- package/template-nuxt-admin/nuxt.config.ts +20 -7
- package/template-nuxt-admin/package.json +5 -3
- package/template-nuxt-admin/yarn.lock +3438 -2586
- package/template-nuxt-website/app.vue +45 -1
- package/template-nuxt-website/layouts/default.vue +18 -16
- package/template-nuxt-website/layouts/home.vue +14 -12
- package/template-nuxt-website/layouts/tabbar.vue +18 -16
- package/template-nuxt-website/nuxt.config.ts +20 -5
- package/template-nuxt-website/package.json +2 -1
- package/template-nuxt-website/yarn.lock +4677 -3598
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
+
## v2.1.0
|
5
|
+
|
6
|
+
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v2.0.0...v2.1.0)
|
7
|
+
|
8
|
+
### 🚀 Enhancements
|
9
|
+
|
10
|
+
- ⚠️ 🚀 website 依赖升级 & 兼容性增强 ([23d672a](https://github.com/BluesYoung-web/create-young-proj/commit/23d672a))
|
11
|
+
- ⚠️ 🚀 后台依赖升级 & 增强兼容性 ([0fcd91e](https://github.com/BluesYoung-web/create-young-proj/commit/0fcd91e))
|
12
|
+
|
13
|
+
### 🏡 Chore
|
14
|
+
|
15
|
+
- 🏡 后台依赖升级 ([15d9d4e](https://github.com/BluesYoung-web/create-young-proj/commit/15d9d4e))
|
16
|
+
|
17
|
+
#### ⚠️ Breaking Changes
|
18
|
+
|
19
|
+
- ⚠️ 🚀 website 依赖升级 & 兼容性增强 ([23d672a](https://github.com/BluesYoung-web/create-young-proj/commit/23d672a))
|
20
|
+
- ⚠️ 🚀 后台依赖升级 & 增强兼容性 ([0fcd91e](https://github.com/BluesYoung-web/create-young-proj/commit/0fcd91e))
|
21
|
+
|
22
|
+
### ❤️ Contributors
|
23
|
+
|
24
|
+
- 张扬 <bluesyoung_web@163.com>
|
25
|
+
|
4
26
|
## v2.0.0
|
5
27
|
|
6
28
|
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.9.1...v2.0.0)
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
<!--
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-06-12 15:00:07
|
4
|
-
* @LastEditTime:
|
4
|
+
* @LastEditTime: 2024-06-13 15:00:49
|
5
5
|
* @Description:
|
6
6
|
-->
|
7
7
|
<script lang="ts" setup>
|
8
|
-
import type { NuxtError } from '
|
8
|
+
import type { NuxtError } from 'nuxt/app'
|
9
9
|
|
10
10
|
const props = defineProps<{
|
11
11
|
error: NuxtError
|
@@ -26,7 +26,7 @@ const NotShowError = computed(() => {
|
|
26
26
|
})
|
27
27
|
|
28
28
|
onMounted(() => {
|
29
|
-
if (
|
29
|
+
if (import.meta.server)
|
30
30
|
return
|
31
31
|
|
32
32
|
console.log(props.error, props.error.statusCode)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-09-21 15:57:55
|
4
|
-
* @LastEditTime: 2024-
|
4
|
+
* @LastEditTime: 2024-06-17 14:06:55
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
7
|
import { resolve } from 'node:path'
|
@@ -22,7 +22,7 @@ export default defineNuxtConfig({
|
|
22
22
|
{ name: 'renderer', content: 'webkit' },
|
23
23
|
{ name: 'mobile-web-app-capable', content: 'yes' },
|
24
24
|
{ name: 'creator', content: 'BluesYoung-web' },
|
25
|
-
{ 'http-equiv': '
|
25
|
+
{ 'http-equiv': 'x-ua-compatible', 'content': 'IE=edge,chrome=1' },
|
26
26
|
{ id: 'viewportMeta', name: 'viewport', content: 'maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0' },
|
27
27
|
],
|
28
28
|
|
@@ -46,7 +46,7 @@ export default defineNuxtConfig({
|
|
46
46
|
script: [
|
47
47
|
{
|
48
48
|
innerHTML: `
|
49
|
-
this.globalThis || (this.globalThis = this);
|
49
|
+
// this.globalThis || (this.globalThis = this);
|
50
50
|
window.onerror = function(e) {
|
51
51
|
if (e.toString().includes('ResizeObserver loop')) {
|
52
52
|
return;
|
@@ -57,6 +57,11 @@ export default defineNuxtConfig({
|
|
57
57
|
}
|
58
58
|
`,
|
59
59
|
},
|
60
|
+
// ! 必须在这里导入,ResizeObserver 写在 additionalLegacyPolyfills 里面不生效
|
61
|
+
// ? 基于 polyfill.io 按需导入
|
62
|
+
{
|
63
|
+
src: '//cdn.polyfill.io/v3/polyfill.min.js?features=ResizeObserver%2CElement.prototype.getAttributeNames',
|
64
|
+
},
|
60
65
|
{
|
61
66
|
src: './index.umd.js',
|
62
67
|
async: true,
|
@@ -78,6 +83,7 @@ export default defineNuxtConfig({
|
|
78
83
|
},
|
79
84
|
|
80
85
|
modules: [
|
86
|
+
'nuxt-vite-legacy',
|
81
87
|
'@vueuse/nuxt',
|
82
88
|
'@unocss/nuxt',
|
83
89
|
'@element-plus/nuxt',
|
@@ -85,13 +91,16 @@ export default defineNuxtConfig({
|
|
85
91
|
'@vant/nuxt',
|
86
92
|
'@bluesyoung/ui-vue3-element-plus/nuxt',
|
87
93
|
],
|
88
|
-
|
94
|
+
// 兼容旧浏览器
|
95
|
+
// Optionally, provide @vitejs/plugin-legacy options.
|
96
|
+
// For example, for Chrome 49 you could use:
|
97
|
+
legacy: {
|
98
|
+
targets: ['chrome 49'],
|
99
|
+
},
|
89
100
|
vite: {
|
90
101
|
build: {
|
91
102
|
sourcemap: false,
|
92
|
-
|
93
|
-
target: ['chrome58'],
|
94
|
-
cssTarget: ['chrome58'],
|
103
|
+
cssTarget: ['chrome49'],
|
95
104
|
},
|
96
105
|
css: {
|
97
106
|
preprocessorOptions: {
|
@@ -115,4 +124,8 @@ export default defineNuxtConfig({
|
|
115
124
|
hashMode: true,
|
116
125
|
},
|
117
126
|
},
|
127
|
+
|
128
|
+
experimental: {
|
129
|
+
appManifest: false,
|
130
|
+
},
|
118
131
|
})
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"@bluesyoung/casdoor-auth": "^0.1.0",
|
17
17
|
"@bluesyoung/http": "^1.0.1",
|
18
18
|
"@bluesyoung/ui-vue3": "^1.0.0",
|
19
|
-
"@bluesyoung/ui-vue3-element-plus": "1.
|
19
|
+
"@bluesyoung/ui-vue3-element-plus": "1.7.3",
|
20
20
|
"@bluesyoung/utils": "0.3.0",
|
21
21
|
"@wangeditor/editor": "^5.1.23",
|
22
22
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
@@ -40,14 +40,16 @@
|
|
40
40
|
"@types/md5": "^2.3.2",
|
41
41
|
"@types/node": "20.8.10",
|
42
42
|
"@types/qrcode": "^1.5.1",
|
43
|
-
"@unocss/nuxt": "^0.
|
43
|
+
"@unocss/nuxt": "^0.61.0",
|
44
44
|
"@vant/nuxt": "^1.0.2",
|
45
45
|
"@vueuse/nuxt": "^10.2.1",
|
46
46
|
"dayjs": "^1.11.9",
|
47
47
|
"element-plus": "^2.7.3",
|
48
48
|
"eslint": "^9.3.0",
|
49
49
|
"lint-staged": "^15.2.4",
|
50
|
-
"
|
50
|
+
"mdn-polyfills": "^5.20.0",
|
51
|
+
"nuxt": "^3.12.2",
|
52
|
+
"nuxt-vite-legacy": "^1.2.0",
|
51
53
|
"pinia": "^2.1.4",
|
52
54
|
"sass": "^1.77.2",
|
53
55
|
"simple-git-hooks": "^2.9.0",
|