Skip to content

Commit

Permalink
perf: upgrade nuxt-naiveui to V2
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Aug 19, 2024
1 parent bd6545a commit 7ffa3b7
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 124 deletions.
18 changes: 0 additions & 18 deletions app.config.ts

This file was deleted.

4 changes: 4 additions & 0 deletions config/naiveui.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import type { ModuleOptions } from '@bg-dev/nuxt-naiveui'
import { generateTailwindColorThemes } from '@bg-dev/nuxt-naiveui/utils'

export const naiveui: Partial<ModuleOptions> = {
colorModePreference: 'system',
iconDownload: true,
themeConfig: {
...generateTailwindColorThemes(),
},
}
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<template #end>
<div class="notMobileOrTablet">
<div class="naive-not-mobile-or-tablet">
<n-dropdown
placement="bottom-start"
trigger="click"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"typecheck": "nuxi typecheck"
},
"devDependencies": {
"@bg-dev/nuxt-auth": "3.0.0",
"@bg-dev/nuxt-naiveui": "1.14.0",
"@bg-dev/nuxt-s3": "^2.0.0",
"@bg-dev/nuxt-auth": "3.0.1",
"@bg-dev/nuxt-naiveui": "2.0.0-rc.1",
"@bg-dev/nuxt-s3": "^2.0.1",
"@nuxt/devtools": "^1.1.5",
"@nuxt/eslint": "^0.3.13",
"@nuxtjs/tailwindcss": "^6.11.4",
Expand Down
Loading

0 comments on commit 7ffa3b7

Please # to comment.