Rewrite to TailwindCSS, enhance the DOM, uninstall Vuetify, improve styles
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
return {
|
||||
provide: {
|
||||
local: {
|
||||
getItem(item: string) {
|
||||
if (import.meta.client) {
|
||||
return localStorage.getItem(item)
|
||||
} else {
|
||||
return undefined
|
||||
}
|
||||
},
|
||||
|
||||
setItem(item: string, value: any) {
|
||||
if (import.meta.client) {
|
||||
return localStorage.setItem(item, value)
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
@@ -1,11 +0,0 @@
|
||||
import { aliases, iconify } from '~/iconify'
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.hook('vuetify:before-create', ({ vuetifyOptions }) => {
|
||||
vuetifyOptions.icons = {
|
||||
defaultSet: 'iconify',
|
||||
aliases,
|
||||
sets: { iconify },
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user