create-young-proj 1.2.1 → 1.3.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 +34 -0
- package/package.json +1 -1
- package/template-nuxt-admin/nuxt.config.ts +4 -2
- package/template-nuxt-website/README.md +4 -0
- package/template-nuxt-website/composables/utils.ts +0 -4
- package/template-nuxt-website/nuxt.config.ts +3 -2
- package/template-nuxt-website/package.json +4 -5
- package/template-nuxt-website/server/api/get_footer_info.get.ts +3 -3
- package/template-nuxt-website/server/api/get_gray_status.get.ts +1 -0
- package/template-nuxt-website/server/api/get_head_nav.get.ts +1 -1
- package/template-nuxt-website/server/api/get_home_banner.get.ts +2 -2
- package/template-nuxt-website/server/routes/get/env.ts +13 -0
- package/template-nuxt-website/yarn.lock +1173 -1599
- package/template-uni-app/.vscode/vue-html.code-snippets +2 -7
- package/template-uni-app/README.md +2 -0
- package/template-uni-app/auto-imports.d.ts +718 -1
- package/template-uni-app/eslint.config.js +3 -1
- package/template-uni-app/package.json +11 -9
- package/template-uni-app/pnpm-lock.yaml +531 -866
- package/template-uni-app/src/manifest.json +1 -1
- package/template-uni-app/src/pages/index.vue +12 -9
- package/template-uni-app/src/pages/my.vue +6 -9
- package/template-uni-app/src/pages.json +1 -1
- package/template-uni-app/uni-pages.d.ts +24 -0
- package/template-uni-app/vite.config.ts +6 -3
- package/template-uni-app/.eslintignore +0 -1
- package/template-uni-app/.eslintrc +0 -16
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,40 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
+
## v1.3.0
|
5
|
+
|
6
|
+
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.2.1...v1.3.0)
|
7
|
+
|
8
|
+
### 🚀 Enhancements
|
9
|
+
|
10
|
+
- 🚀 route json -> route yaml ([3ab111c](https://github.com/BluesYoung-web/create-young-proj/commit/3ab111c))
|
11
|
+
- 🚀 add missing /get/env api ([a48d2c1](https://github.com/BluesYoung-web/create-young-proj/commit/a48d2c1))
|
12
|
+
- 🚀 add @uni-helper/uni-use & @vueuse/core ([bd2d2cf](https://github.com/BluesYoung-web/create-young-proj/commit/bd2d2cf))
|
13
|
+
- ⚠️ 🚀 360 极速浏览器 13.5 定向兼容-css better ([51d9b33](https://github.com/BluesYoung-web/create-young-proj/commit/51d9b33))
|
14
|
+
|
15
|
+
### 🩹 Fixes
|
16
|
+
|
17
|
+
- ⚠️ 🩹 fix build error ([1a7ad50](https://github.com/BluesYoung-web/create-young-proj/commit/1a7ad50))
|
18
|
+
- ⚠️ 🩹 360 极速浏览器 13.5 定向兼容 ([e5cefc8](https://github.com/BluesYoung-web/create-young-proj/commit/e5cefc8))
|
19
|
+
|
20
|
+
### 🏡 Chore
|
21
|
+
|
22
|
+
- 🏡 依赖升级 ([c3bc4b6](https://github.com/BluesYoung-web/create-young-proj/commit/c3bc4b6))
|
23
|
+
|
24
|
+
### 🎨 Styles
|
25
|
+
|
26
|
+
- 🎨 lint fix ([96c1a4e](https://github.com/BluesYoung-web/create-young-proj/commit/96c1a4e))
|
27
|
+
|
28
|
+
#### ⚠️ Breaking Changes
|
29
|
+
|
30
|
+
- ⚠️ 🚀 360 极速浏览器 13.5 定向兼容-css better ([51d9b33](https://github.com/BluesYoung-web/create-young-proj/commit/51d9b33))
|
31
|
+
- ⚠️ 🩹 fix build error ([1a7ad50](https://github.com/BluesYoung-web/create-young-proj/commit/1a7ad50))
|
32
|
+
- ⚠️ 🩹 360 极速浏览器 13.5 定向兼容 ([e5cefc8](https://github.com/BluesYoung-web/create-young-proj/commit/e5cefc8))
|
33
|
+
|
34
|
+
### ❤️ Contributors
|
35
|
+
|
36
|
+
- 张扬 <bluesyoung_web@163.com>
|
37
|
+
|
4
38
|
## v1.2.1
|
5
39
|
|
6
40
|
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.2.0...v1.2.1)
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
|
-
* @Date: 2023-
|
4
|
-
* @LastEditTime: 2023-11-
|
3
|
+
* @Date: 2023-09-21 15:57:55
|
4
|
+
* @LastEditTime: 2023-11-15 11:52:33
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
7
|
import { resolve } from 'node:path'
|
@@ -87,6 +87,8 @@ export default defineNuxtConfig({
|
|
87
87
|
// 兼容钉钉浏览器
|
88
88
|
target: 'es2015',
|
89
89
|
sourcemap: false,
|
90
|
+
/* hack fix 360 极速浏览器 13.5 不支持 inset */
|
91
|
+
cssTarget: 'chrome61',
|
90
92
|
},
|
91
93
|
css: {
|
92
94
|
preprocessorOptions: {
|
@@ -34,8 +34,6 @@ export function closeWindow() {
|
|
34
34
|
window.close()
|
35
35
|
}
|
36
36
|
|
37
|
-
|
38
|
-
|
39
37
|
export async function showLoading() {
|
40
38
|
if (process.server)
|
41
39
|
return
|
@@ -80,5 +78,3 @@ export function injectComponent(El: ReturnType<typeof defineComponent>) {
|
|
80
78
|
|
81
79
|
return onDestroy
|
82
80
|
}
|
83
|
-
|
84
|
-
|
@@ -1,10 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-09-21 15:57:55
|
4
|
-
* @LastEditTime: 2023-11-
|
4
|
+
* @LastEditTime: 2023-11-15 11:53:36
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
|
-
|
8
7
|
import { resolve } from 'node:path'
|
9
8
|
|
10
9
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
@@ -101,6 +100,8 @@ export default defineNuxtConfig({
|
|
101
100
|
// 兼容钉钉浏览器
|
102
101
|
target: 'es2015',
|
103
102
|
sourcemap: false,
|
103
|
+
/* hack fix 360 极速浏览器 13.5 不支持 inset */
|
104
|
+
cssTarget: 'chrome61',
|
104
105
|
},
|
105
106
|
},
|
106
107
|
'runtimeConfig': {
|
@@ -5,9 +5,9 @@
|
|
5
5
|
"private": true,
|
6
6
|
"scripts": {
|
7
7
|
"build": "nuxt build",
|
8
|
-
"dev": "nuxt dev
|
8
|
+
"dev": "nuxt dev",
|
9
9
|
"generate": "nuxt generate",
|
10
|
-
"preview": "nuxt preview
|
10
|
+
"preview": "nuxt preview",
|
11
11
|
"postinstall": "nuxt prepare",
|
12
12
|
"lint": "eslint .",
|
13
13
|
"lint:fix": "eslint . --fix"
|
@@ -31,11 +31,10 @@
|
|
31
31
|
"@vueuse/nuxt": "^10.5.0",
|
32
32
|
"element-plus": "^2.3.14",
|
33
33
|
"eslint": "^8.51.0",
|
34
|
-
"nuxt": "3.
|
34
|
+
"nuxt": "3.5.1",
|
35
35
|
"nuxt-swiper": "^1.2.2",
|
36
36
|
"sass": "^1.69.5",
|
37
37
|
"typescript": "^5.2.2",
|
38
|
-
"vant": "^4.7.3"
|
39
|
-
"vconsole": "^3.15.1"
|
38
|
+
"vant": "^4.7.3"
|
40
39
|
}
|
41
40
|
}
|
@@ -13,12 +13,12 @@ export default cachedEventHandler(async () => {
|
|
13
13
|
const friend_links: FriendLinkItem[] = [
|
14
14
|
{
|
15
15
|
title: '来游戏',
|
16
|
-
href: 'https://www.laiyouxi.com'
|
16
|
+
href: 'https://www.laiyouxi.com',
|
17
17
|
},
|
18
18
|
{
|
19
19
|
title: '🌾',
|
20
|
-
href: 'https://mi.com'
|
21
|
-
}
|
20
|
+
href: 'https://mi.com',
|
21
|
+
},
|
22
22
|
]
|
23
23
|
const follow_us: FollowItem[] = []
|
24
24
|
const about_nav: AboutNavItem[] = []
|
@@ -14,7 +14,7 @@ export default cachedEventHandler(async () => {
|
|
14
14
|
{ title: '首页', href: '/' },
|
15
15
|
{ title: '资讯', href: '/news.html' },
|
16
16
|
{ title: '赛事', href: '/match.html' },
|
17
|
-
{ title: '商城', href: '/shop.html' }
|
17
|
+
{ title: '商城', href: '/shop.html' },
|
18
18
|
]
|
19
19
|
const fromMobile = process.env.PROJECT_NAME === 'mobile'
|
20
20
|
|
@@ -12,8 +12,8 @@ export default cachedEventHandler(async (event) => {
|
|
12
12
|
try {
|
13
13
|
const banners: BannerItem[] = [
|
14
14
|
{
|
15
|
-
img_url: 'https://master-web-cdn.laiyouxi.com/platform_index/online/files/banner-pc.png'
|
16
|
-
}
|
15
|
+
img_url: 'https://master-web-cdn.laiyouxi.com/platform_index/online/files/banner-pc.png',
|
16
|
+
},
|
17
17
|
]
|
18
18
|
|
19
19
|
return banners
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2023-07-20 19:48:12
|
4
|
+
* @LastEditTime: 2023-07-21 11:18:40
|
5
|
+
* @Description:
|
6
|
+
*/
|
7
|
+
export default defineEventHandler(async (event) => {
|
8
|
+
const envObj = {
|
9
|
+
NUXT_PUBLIC_CURRENT_VERSION: process.env.PROJECT_VERSION || 'v0.0.1',
|
10
|
+
}
|
11
|
+
|
12
|
+
return envObj
|
13
|
+
})
|