Skip to content

Commit 3e04849

Browse files
committed
feat: ✨ Update to nuxt v4 for /ui
1 parent e19fe88 commit 3e04849

6 files changed

Lines changed: 4648 additions & 4097 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ public/assets/css/styles.css
1111
nuxt-app/.nuxt/
1212
.vercel
1313
bot/yarn-error.log
14+
.vscode/

ui/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.nitro
66
.cache
77
dist
8+
.vscode/
89

910
# Node dependencies
1011
node_modules

ui/components.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,25 @@ declare module 'vue' {
1717
NCheckbox: typeof import('naive-ui')['NCheckbox']
1818
NCollapse: typeof import('naive-ui')['NCollapse']
1919
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
20+
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
21+
NDatePicker: typeof import('naive-ui')['NDatePicker']
2022
NDivider: typeof import('naive-ui')['NDivider']
2123
NDropdown: typeof import('naive-ui')['NDropdown']
24+
NDynamicInput: typeof import('naive-ui')['NDynamicInput']
2225
NEmpty: typeof import('naive-ui')['NEmpty']
2326
NFlex: typeof import('naive-ui')['NFlex']
2427
NForm: typeof import('naive-ui')['NForm']
2528
NFormItem: typeof import('naive-ui')['NFormItem']
2629
NImage: typeof import('naive-ui')['NImage']
2730
NInput: typeof import('naive-ui')['NInput']
2831
NModal: typeof import('naive-ui')['NModal']
32+
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
2933
NPopover: typeof import('naive-ui')['NPopover']
3034
NRadio: typeof import('naive-ui')['NRadio']
3135
NRadioButton: typeof import('naive-ui')['NRadioButton']
3236
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
3337
NSelect: typeof import('naive-ui')['NSelect']
38+
NSpace: typeof import('naive-ui')['NSpace']
3439
NSpin: typeof import('naive-ui')['NSpin']
3540
NSwitch: typeof import('naive-ui')['NSwitch']
3641
NTag: typeof import('naive-ui')['NTag']

ui/nuxt.config.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@ export default defineNuxtConfig({
3030
},
3131

3232
build: {
33-
transpile:
34-
process.env.NODE_ENV === "production"
35-
? [
36-
"naive-ui",
37-
"vueuc",
38-
"@css-render/vue3-ssr",
39-
"@juggle/resize-observer",
40-
"vue-countup-v3",
41-
]
42-
: ["@juggle/resize-observer", "vue-countup-v3"],
33+
transpile: [
34+
"naive-ui",
35+
"vueuc",
36+
"@css-render/vue3-ssr",
37+
"@juggle/resize-observer",
38+
"vue-countup-v3",
39+
],
4340
},
4441

4542
colorMode: {
@@ -76,7 +73,7 @@ export default defineNuxtConfig({
7673
},
7774
},
7875
],
79-
"nuxt-icon",
76+
"@nuxt/icon",
8077
],
8178

8279
notivue: {

ui/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@lucia-auth/adapter-prisma": "^4.0.1",
32+
"@nuxt/icon": "^2.1.1",
3233
"@paralleldrive/cuid2": "^2.2.2",
3334
"@pinia/nuxt": "^0.5.3",
3435
"@prisma/client": "^5.19.1",
@@ -44,8 +45,8 @@
4445
"lucide-vue-next": "^0.487.0",
4546
"md-editor-v3": "4.20.2",
4647
"motion-v": "^1.0.0-beta.0",
47-
"notivue": "2.4.5",
48-
"nuxt": "3.13.1",
48+
"notivue": "2.4.3",
49+
"nuxt": "^4.2.2",
4950
"nuxtjs-naive-ui": "^1.0.2",
5051
"octokit": "^4.0.2",
5152
"pinia": "^2.2.2",
@@ -57,6 +58,7 @@
5758
"vue": "^3.4.21",
5859
"vue-countup-v3": "^1.4.2",
5960
"vue-router": "^4.3.0",
61+
"vueuc": "^0.4.65",
6062
"yaml": "^2.4.5",
6163
"zod": "^3.23.5"
6264
},
@@ -84,10 +86,9 @@
8486
"git-removed-branches": "^2.3.1",
8587
"jest": "^29.7.0",
8688
"localtunnel": "^2.0.2",
87-
"naive-ui": "^2.40.0",
89+
"naive-ui": "^2.43.2",
8890
"nock": "^13.5.4",
8991
"npm-run-all": "^4.1.5",
90-
"nuxt-icon": "0.6.10",
9192
"postcss": "^8.5.3",
9293
"prettier": "^3.2.5",
9394
"prettier-plugin-tailwindcss": "^0.6.10",

0 commit comments

Comments
 (0)