Skip to content

Commit 123f194

Browse files
authored
🧸 chore: upgrade vite 5.x & deps (#51)
1 parent a5d4763 commit 123f194

File tree

5 files changed

+1472
-1268
lines changed

5 files changed

+1472
-1268
lines changed

.eslintrc-auto-import.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339
"ExtractPropTypes": true,
340340
"ExtractPublicPropTypes": true,
341341
"injectLocal": true,
342-
"provideLocal": true
342+
"provideLocal": true,
343+
"useClipboardItems": true
343344
}
344345
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## 简介
99

10-
🗂️ 一个基于 Vue 3 + Naive UI + TS 的 Tab 切换选项卡演示项目,其内部抽象出了一个**比较贴近实战****项目管理系统**的业务场景,虽不涉及特别复杂的业务逻辑但也不失灵活,旨在更好地理解和展示如何使用 Tab 标签页组件,项目基于原子化 UnoCSS 框架配置主题,还自带一个模块化的组件开发环境,使页面组件、路由组件、状态管理和样式等模块可以根据 Modules 目录进行解耦,它是一个开箱即用的解决方案,也适合作为快速开发中后台前端,可用于学习和参考
10+
🗂️ 一个基于 Vite5 + Vue3 + Naive UI + TS 的 Tab 切换选项卡演示项目,其内部抽象出了一个**比较贴近实战****项目管理系统**的业务场景,虽不涉及特别复杂的业务逻辑但也不失灵活,旨在更好地理解和展示如何使用 Tab 标签页组件,项目基于原子化 UnoCSS 框架配置主题,还自带一个模块化的组件开发环境,使页面组件、路由组件、状态管理和样式等模块可以根据 Modules 目录进行解耦,它是一个开箱即用的解决方案,也适合作为快速开发中后台前端,可用于学习和参考
1111

1212

1313
__[🌈 Live Demo 在线体验](https://pdsuwwz.github.io/vue3-tab-demo)__
@@ -17,7 +17,7 @@ __[🌈 Live Demo 在线体验](https://pdsuwwz.github.io/vue3-tab-demo)__
1717

1818
* Naive UI 2.x
1919
* Vue 3.3.x
20-
* Vite 4.x
20+
* Vite 5.x
2121
* Pinia 2.x
2222
* TypeScript 5.x
2323
* VueUse

auto-imports.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ declare global {
139139
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
140140
const useCached: typeof import('@vueuse/core')['useCached']
141141
const useClipboard: typeof import('@vueuse/core')['useClipboard']
142+
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
142143
const useCloned: typeof import('@vueuse/core')['useCloned']
143144
const useColorMode: typeof import('@vueuse/core')['useColorMode']
144145
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
@@ -320,12 +321,16 @@ declare global {
320321
declare global {
321322
// @ts-ignore
322323
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef, App, ComponentPublicInstanceCostom, ComponentInternalInstance } from 'vue'
324+
import('vue')
323325
// @ts-ignore
324326
export type { RouteRecordRaw, RouteLocationRaw, LocationQuery, NavigationFailure, RouteParams, RouteLocationNormalizedLoaded, RouteRecordName, NavigationGuard } from 'vue-router'
327+
import('vue-router')
325328
// @ts-ignore
326329
export type { GlobalThemeOverrides, ConfigProviderProps, DataTableColumns, DataTableRowKey, DropdownOption, MenuOption, FormInst } from 'naive-ui'
330+
import('naive-ui')
327331
// @ts-ignore
328332
export type { StoreActions } from 'pinia'
333+
import('pinia')
329334
}
330335
// for vue template auto import
331336
import { UnwrapRef } from 'vue'
@@ -465,6 +470,7 @@ declare module 'vue' {
465470
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
466471
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
467472
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
473+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
468474
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
469475
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
470476
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
@@ -779,6 +785,7 @@ declare module '@vue/runtime-core' {
779785
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
780786
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
781787
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
788+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
782789
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
783790
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
784791
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>

package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "0.0.1",
55
"author": "Wisdom <pdsu.wwz@foxmail.com>",
66
"license": "MIT",
7+
"type": "module",
78
"scripts": {
89
"dev": "vite --host",
910
"build": "vite build",
@@ -47,10 +48,10 @@
4748
"url": "https://github.com/pdsuwwz/vue3-tab-demo/issues"
4849
},
4950
"dependencies": {
50-
"@fortawesome/fontawesome-svg-core": "6.4.2",
51-
"@fortawesome/free-brands-svg-icons": "6.4.2",
52-
"@fortawesome/free-regular-svg-icons": "6.4.2",
53-
"@fortawesome/free-solid-svg-icons": "6.4.2",
51+
"@fortawesome/fontawesome-svg-core": "6.5.1",
52+
"@fortawesome/free-brands-svg-icons": "6.5.1",
53+
"@fortawesome/free-regular-svg-icons": "6.5.1",
54+
"@fortawesome/free-solid-svg-icons": "6.5.1",
5455
"@fortawesome/vue-fontawesome": "~3.0.5",
5556
"@vicons/antd": "^0.12.0",
5657
"@vicons/carbon": "^0.12.0",
@@ -61,56 +62,56 @@
6162
"@vicons/material": "^0.12.0",
6263
"@vicons/tabler": "^0.12.0",
6364
"@vicons/utils": "^0.1.4",
64-
"@vueuse/core": "^10.5.0",
65-
"axios": "1.6.0",
65+
"@vueuse/core": "^10.7.0",
66+
"axios": "1.6.2",
6667
"echarts": "^5.4.3",
6768
"js-cookie": "^3.0.5",
6869
"lodash-es": "^4.17.21",
6970
"naive-ui": "^2.35.0",
7071
"nprogress": "^0.2.0",
7172
"pinia": "^2.1.7",
7273
"uuid": "^9.0.1",
73-
"vue": "^3.3.8",
74+
"vue": "^3.3.10",
7475
"vue-router": "^4.2.5"
7576
},
7677
"devDependencies": {
77-
"@babel/core": "^7.23.2",
78-
"@babel/preset-env": "^7.23.2",
79-
"@types/js-cookie": "^3.0.5",
80-
"@types/lodash-es": "^4.17.10",
81-
"@types/node": "^20.8.10",
82-
"@types/nprogress": "^0.2.2",
83-
"@typescript-eslint/eslint-plugin": "^6.10.0",
84-
"@typescript-eslint/parser": "^6.10.0",
85-
"@vitejs/plugin-vue": "^4.4.0",
86-
"@vitest/coverage-v8": "^0.34.6",
87-
"@vue/compiler-sfc": "^3.3.8",
88-
"@vue/test-utils": "2.4.1",
78+
"@babel/core": "^7.23.5",
79+
"@babel/preset-env": "^7.23.5",
80+
"@types/js-cookie": "^3.0.6",
81+
"@types/lodash-es": "^4.17.12",
82+
"@types/node": "^20.10.3",
83+
"@types/nprogress": "^0.2.3",
84+
"@typescript-eslint/eslint-plugin": "^6.13.2",
85+
"@typescript-eslint/parser": "^6.13.2",
86+
"@vitejs/plugin-vue": "^4.5.1",
87+
"@vitest/coverage-v8": "^1.0.1",
88+
"@vue/compiler-sfc": "^3.3.10",
89+
"@vue/test-utils": "2.4.3",
8990
"babel-plugin-transform-vite-meta-env": "^1.0.3",
9091
"cross-env": "^7.0.3",
91-
"eslint": "^8.53.0",
92+
"eslint": "^8.55.0",
9293
"eslint-plugin-html": "7.1.0",
9394
"eslint-plugin-import": "^2.29.0",
94-
"eslint-plugin-vue": "^9.18.1",
95+
"eslint-plugin-vue": "^9.19.2",
9596
"identity-obj-proxy": "^3.0.0",
96-
"jsdom": "^22.1.0",
97-
"postcss": "^8.4.31",
97+
"jsdom": "^23.0.1",
98+
"postcss": "^8.4.32",
9899
"postcss-html": "^1.5.0",
99100
"postcss-scss": "^4.0.9",
100-
"rollup": "^4.3.0",
101+
"rollup": "^4.6.1",
101102
"sass": "^1.69.5",
102103
"stylelint": "^15.11.0",
103104
"stylelint-config-recommended-scss": "13.1.0",
104105
"stylelint-config-recommended-vue": "^1.5.0",
105106
"stylelint-config-standard": "^34.0.0",
106107
"stylelint-config-standard-scss": "11.1.0",
107108
"sucrase": "^3.34.0",
108-
"typescript": "^5.2.2",
109-
"unocss": "^0.57.2",
110-
"unplugin-auto-import": "^0.16.7",
111-
"unplugin-vue-components": "^0.25.2",
112-
"vite": "^4.5.0",
113-
"vite-svg-loader": "^4.0.0",
114-
"vitest": "^0.34.6"
109+
"typescript": "^5.3.2",
110+
"unocss": "^0.58.0",
111+
"unplugin-auto-import": "^0.17.2",
112+
"unplugin-vue-components": "^0.26.0",
113+
"vite": "^5.0.5",
114+
"vite-svg-loader": "^5.1.0",
115+
"vitest": "^1.0.1"
115116
}
116117
}

0 commit comments

Comments
 (0)