Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide/icons/unocss-preset-icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default defineNuxtConfig({
icons: {
defaultSet: 'unocss-mdi',
unocssIcons: {
// default is i-mdi:close-circle
// default is i-mdi:close-circle
delete: 'i-mdi:close-circle-outline',
// even from another collection, default is i-mdi:chevron-up
collapse: 'i-tabler:chevron-up'
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export interface MOptions {
}
/**
* Add Vuetify Vite Plugin `transformAssetsUrls`?
*
*
* You can extend the Vuetify `transformAssetsUrls`.
*
* @default true
Expand Down Expand Up @@ -198,7 +198,7 @@ export interface MOptions {
* @default false
*/
prefersReducedMotion?: boolean
}
}
}
```
</details>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/server-side-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineNuxtConfig({
},
vuetifyOptions: {
/* vuetify options */
}
}
},
experimental: {
inlineSSRStyles: false
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"*.mjs"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build prepare && nuxt-module-build",
"dev": "nuxi dev playground",
"dev:multiple-json": "MULTIPLE_LANG_FILES=true nuxi dev playground",
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
Expand All @@ -65,7 +65,11 @@
"dependencies": {
"@nuxt/kit": "^3.6.2",
"defu": "^6.1.2",
"destr": "^2.0.2",
"local-pkg": "^0.5.0",
"pathe": "^1.1.1",
"perfect-debounce": "^1.0.0",
"ufo": "^1.3.1",
"unconfig": "^0.3.9",
"vite-plugin-vuetify": "^1.0.2",
"vuetify": "^3.3.23"
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions playground/config/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import type { DateTimeFormats, NumberFormats, PluralizationRules } from '@intlify/core-base'
import type { LocaleObject } from '#i18n'

Expand Down
62 changes: 2 additions & 60 deletions playground/nuxt.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -48,67 +48,9 @@ export default defineNuxtConfig({
},
viewportSize: true,
},
// styles: { configFile: '/settings.scss' },
// styles: { configFile: 'assets/settings.scss' },
},
},
// vuetify: {
/* moduleOptions: {
styles: { configFile: '/settings.scss' },
}, */
// vuetifyOptions: './vuetify.config.mts',
/* vuetifyOptions: {
ssr: {
clientWidth: 100,
},
aliases: {
MyBadge: 'VBadge',
},
directives: true,
components: ['VDialog', 'VExpansionPanel', 'VExpansionPanelText', 'VExpansionPanelTitle'],
labComponents: ['VDataTable', 'VDatePickerControls', 'VDatePickerHeader'],
blueprint: md3,
/!*locale: {
messages: {
en: {
hello: 'Hi',
question: {
one: 'One',
two: 'Two',
},
},
es: {
hello: 'Hola',
question: {
one: 'Uno',
two: 'Dos',
three: 'Tres',
},
},
},
},
localeMessages: ['en', 'es', 'ar'],*!/
theme: {
defaultTheme: 'light',
},
date: {
adapter: 'luxon',
// adapter: 'vuetify',
},
icons: {
// remember to comment the v-icon in playground/pages/index.vue when switching
// defaultSet: 'fa-svg',
defaultSet: 'unocss-mdi',
// defaultSet: 'mdi-svg',
/!*svg: {
mdi: {
aliases: {
account: 'mdiAccount',
},
},
},*!/
},
}, */
// },
vite: {
clearScreen: false,
define: {
Expand Down Expand Up @@ -140,7 +82,7 @@ export default defineNuxtConfig({
},
},
// css: ['vuetify/styles'],
// css: ['/main.scss'],
// css: ['~/assets/main.scss'],
experimental: {
inlineSSRStyles: false,
payloadExtraction: false,
Expand Down
1 change: 1 addition & 0 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const { locales, t } = useI18n()
const { current } = useLocale()
const { isRtl } = useRtl()

// eslint-disable-next-line n/prefer-global/process
if (process.client) {
// eslint-disable-next-line no-console
console.log(useNuxtApp().$vuetify.icons)
Expand Down
3 changes: 3 additions & 0 deletions playground/plugins/vuetify.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('vuetify:before-create', ({ isDev, vuetifyOptions }) => {
// eslint-disable-next-line n/prefer-global/process
if (process.client && isDev) {
// eslint-disable-next-line no-console
console.log('vuetify:plugin:hook', vuetifyOptions)
}
})
nuxtApp.hook('vuetify:ready', () => {
// eslint-disable-next-line no-console
console.log('vuetify:ready')
})
nuxtApp.hook('vuetify:ssr-client-hints', ({ ssrClientHints }) => {
// eslint-disable-next-line no-console
console.log('vuetify:ssr-client-hints', ssrClientHints)
})
})
Loading