create-young-proj 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
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
  "name": "create-young-proj",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.3.0",
5
5
  "description": "create project from template",
6
6
  "author": "BluesYoung-web",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author: zhangyang
3
- * @Date: 2023-05-25 19:45:20
4
- * @LastEditTime: 2023-11-07 15:56:03
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: {
@@ -35,6 +35,10 @@ navigateTo({
35
35
 
36
36
  **系统环境变量 `NUXT_PUBLIC_CACHE_TIME` 优先级最高!!!**
37
37
 
38
+ ### 垃圾浏览器
39
+
40
+ [**360 极速浏览器 13.5 !!!mdzz**](https://bbs.360.cn/thread-15913525-1-1.html)
41
+
38
42
  ## 特性
39
43
 
40
44
  - 基于 [@nuxtjs/device](https://github.com/nuxt-modules/device) 的设备判断
@@ -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-10 14:55:01
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 --host",
8
+ "dev": "nuxt dev",
9
9
  "generate": "nuxt generate",
10
- "preview": "nuxt preview --host",
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.7.4",
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[] = []
@@ -5,6 +5,7 @@
5
5
  * @Description:
6
6
  */
7
7
  import { NUXT_PUBLIC_CACHE_TIME } from '~~/composables/config'
8
+
8
9
  /**
9
10
  * @example 服务端请求示例
10
11
  */
@@ -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
+ })