Skip to content

Commit ed1a92f

Browse files
committed
docs: update playground plugins
1 parent ecb83ba commit ed1a92f

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed

playground/src/composables.d.ts

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ declare global {
1111
const DEFAULT_LIGHT: typeof import('../../packages/paper/src/composables/useTheme/index')['DEFAULT_LIGHT']
1212
const EffectScope: typeof import('vue')['EffectScope']
1313
const IN_BROWSER: typeof import('../../packages/0/src/constants/globals')['IN_BROWSER']
14+
const Log4jsLoggerAdapter: typeof import('../../packages/0/src/composables/useLogger/index')['Log4jsLoggerAdapter']
15+
const PinoLoggerAdapter: typeof import('../../packages/0/src/composables/useLogger/index')['PinoLoggerAdapter']
1416
const SELF_CLOSING_TAGS: typeof import('../../packages/0/src/constants/htmlElements')['SELF_CLOSING_TAGS']
1517
const SUPPORTS_MATCH_MEDIA: typeof import('../../packages/0/src/constants/globals')['SUPPORTS_MATCH_MEDIA']
1618
const SUPPORTS_TOUCH: typeof import('../../packages/0/src/constants/globals')['SUPPORTS_TOUCH']
1719
const V0_ELEVATION_KEY: typeof import('../../packages/paper/src/composables/useElevation/index')['V0_ELEVATION_KEY']
20+
const Vuetify0LoggerAdapter: typeof import('../../packages/0/src/composables/useLogger/index')['Vuetify0LoggerAdapter']
1821
const Vuetify0ThemeAdapter: typeof import('../../packages/0/src/composables/useTheme/index')['Vuetify0ThemeAdapter']
22+
const WinstonLoggerAdapter: typeof import('../../packages/0/src/composables/useLogger/index')['WinstonLoggerAdapter']
23+
const __DEV__: typeof import('../../packages/0/src/constants/globals')['__DEV__']
24+
const __LOGGER_ENABLED__: typeof import('../../packages/0/src/constants/globals')['__LOGGER_ENABLED__']
25+
const compare: typeof import('../../packages/0/src/utilities/benchmark')['compare']
1926
const computed: typeof import('vue')['computed']
2027
const createApp: typeof import('vue')['createApp']
2128
const createBreakpoints: typeof import('../../packages/0/src/composables/useBreakpoints/index')['createBreakpoints']
@@ -26,6 +33,8 @@ declare global {
2633
const createHydrationPlugin: typeof import('../../packages/0/src/composables/useHydration/index')['createHydrationPlugin']
2734
const createLocale: typeof import('../../packages/0/src/composables/useLocale/index')['createLocale']
2835
const createLocalePlugin: typeof import('../../packages/0/src/composables/useLocale/index')['createLocalePlugin']
36+
const createLogger: typeof import('../../packages/0/src/composables/useLogger/index')['createLogger']
37+
const createLoggerPlugin: typeof import('../../packages/0/src/composables/useLogger/index')['createLoggerPlugin']
2938
const createMarkdown: typeof import('../../packages/0/src/composables/useMarkdown/index')['createMarkdown']
3039
const createMarkdownPlugin: typeof import('../../packages/0/src/composables/useMarkdown/index')['createMarkdownPlugin']
3140
const createPlugin: typeof import('../../packages/0/src/factories/createPlugin/index')['createPlugin']
@@ -39,20 +48,26 @@ declare global {
3948
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
4049
const defineComponent: typeof import('vue')['defineComponent']
4150
const effectScope: typeof import('vue')['effectScope']
51+
const genId: typeof import('../../packages/0/src/utilities/helpers')['genId']
4252
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
4353
const getCurrentInstanceName: typeof import('../../packages/paper/src/utilities/getCurrentInstanceName')['getCurrentInstanceName']
4454
const getCurrentScope: typeof import('vue')['getCurrentScope']
55+
const guard: typeof import('../../packages/0/src/utilities/benchmark')['guard']
4556
const h: typeof import('vue')['h']
4657
const hexToRgba: typeof import('../../packages/paper/src/composables/useColor/index')['hexToRgba']
4758
const hexaToRgba: typeof import('../../packages/paper/src/composables/useColor/index')['hexaToRgba']
4859
const inject: typeof import('vue')['inject']
4960
const installMarkdownPlugin: typeof import('../../packages/v0/src/composables/useMarkdown/index')['installMarkdownPlugin']
61+
const isArray: typeof import('../../packages/0/src/utilities/helpers')['isArray']
62+
const isNullOrUndefined: typeof import('../../packages/0/src/utilities/helpers')['isNullOrUndefined']
63+
const isObject: typeof import('../../packages/0/src/utilities/helpers')['isObject']
5064
const isProxy: typeof import('vue')['isProxy']
5165
const isReactive: typeof import('vue')['isReactive']
5266
const isReadonly: typeof import('vue')['isReadonly']
5367
const isRef: typeof import('vue')['isRef']
5468
const isSelfClosingTag: typeof import('../../packages/0/src/constants/htmlElements')['isSelfClosingTag']
5569
const markRaw: typeof import('vue')['markRaw']
70+
const mergeDeep: typeof import('../../packages/0/src/utilities/helpers')['mergeDeep']
5671
const nextTick: typeof import('vue')['nextTick']
5772
const onActivated: typeof import('vue')['onActivated']
5873
const onBeforeMount: typeof import('vue')['onBeforeMount']
@@ -72,6 +87,7 @@ declare global {
7287
const provide: typeof import('vue')['provide']
7388
const provideBreakpointsContext: typeof import('../../packages/0/src/composables/useBreakpoints/index')['provideBreakpointsContext']
7489
const provideHydrationContext: typeof import('../../packages/0/src/composables/useHydration/index')['provideHydrationContext']
90+
const provideLoggerContext: typeof import('../../packages/0/src/composables/useLogger/index')['provideLoggerContext']
7591
const provideMarkdownContext: typeof import('../../packages/0/src/composables/useMarkdown/index')['provideMarkdownContext']
7692
const provideStorageContext: typeof import('../../packages/0/src/composables/useStorage/index')['provideStorageContext']
7793
const reactive: typeof import('vue')['reactive']
@@ -80,6 +96,7 @@ declare global {
8096
const resolveComponent: typeof import('vue')['resolveComponent']
8197
const rgbToRgba: typeof import('../../packages/paper/src/composables/useColor/index')['rgbToRgba']
8298
const rgbaToHexa: typeof import('../../packages/paper/src/composables/useColor/index')['rgbaToHexa']
99+
const run: typeof import('../../packages/0/src/utilities/benchmark')['run']
83100
const shallowReactive: typeof import('vue')['shallowReactive']
84101
const shallowReadonly: typeof import('vue')['shallowReadonly']
85102
const shallowRef: typeof import('vue')['shallowRef']
@@ -109,6 +126,8 @@ declare global {
109126
const useId: typeof import('vue')['useId']
110127
const useKeydown: typeof import('../../packages/0/src/composables/useKeydown/index')['useKeydown']
111128
const useLocale: typeof import('../../packages/0/src/composables/useLocale/index')['useLocale']
129+
const useLogger: typeof import('../../packages/0/src/composables/useLogger/index')['useLogger']
130+
const useLoggerContext: typeof import('../../packages/0/src/composables/useLogger/index')['useLoggerContext']
112131
const useMarkdown: typeof import('../../packages/0/src/composables/useMarkdown/index')['useMarkdown']
113132
const useMarkdownContext: typeof import('../../packages/0/src/composables/useMarkdown/index')['useMarkdownContext']
114133
const useModel: typeof import('vue')['useModel']
@@ -122,6 +141,7 @@ declare global {
122141
const useStorageContext: typeof import('../../packages/0/src/composables/useStorage/index')['useStorageContext']
123142
const useTemplateRef: typeof import('vue')['useTemplateRef']
124143
const useTheme: typeof import('../../packages/0/src/composables/useTheme/index')['useTheme']
144+
const useTokens: typeof import('../../packages/0/src/composables/useTokens/index')['useTokens']
125145
const watch: typeof import('vue')['watch']
126146
const watchEffect: typeof import('vue')['watchEffect']
127147
const watchPostEffect: typeof import('vue')['watchPostEffect']
@@ -169,6 +189,9 @@ declare global {
169189
export type { LocaleTicket, LocaleContext, LocalePluginOptions, LocalePlugin } from '../../packages/0/src/composables/useLocale/index'
170190
import('../../packages/0/src/composables/useLocale/index')
171191
// @ts-ignore
192+
export type { LoggerContext, LoggerOptions, LoggerPlugin, LoggerAdapter, LogLevel } from '../../packages/0/src/composables/useLogger/index'
193+
import('../../packages/0/src/composables/useLogger/index')
194+
// @ts-ignore
172195
export type { RegistrarTicket, RegistrarContext } from '../../packages/0/src/composables/useRegistrar/index'
173196
import('../../packages/0/src/composables/useRegistrar/index')
174197
// @ts-ignore
@@ -201,10 +224,17 @@ declare module 'vue' {
201224
readonly DEFAULT_LIGHT: UnwrapRef<typeof import('../../packages/paper/src/composables/useTheme/index')['DEFAULT_LIGHT']>
202225
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
203226
readonly IN_BROWSER: UnwrapRef<typeof import('../../packages/0/src/constants/globals')['IN_BROWSER']>
227+
readonly Log4jsLoggerAdapter: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['Log4jsLoggerAdapter']>
228+
readonly PinoLoggerAdapter: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['PinoLoggerAdapter']>
204229
readonly SELF_CLOSING_TAGS: UnwrapRef<typeof import('../../packages/0/src/constants/htmlElements')['SELF_CLOSING_TAGS']>
205230
readonly SUPPORTS_MATCH_MEDIA: UnwrapRef<typeof import('../../packages/0/src/constants/globals')['SUPPORTS_MATCH_MEDIA']>
206231
readonly SUPPORTS_TOUCH: UnwrapRef<typeof import('../../packages/0/src/constants/globals')['SUPPORTS_TOUCH']>
207232
readonly V0_ELEVATION_KEY: UnwrapRef<typeof import('../../packages/paper/src/composables/useElevation/index')['V0_ELEVATION_KEY']>
233+
readonly Vuetify0LoggerAdapter: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['Vuetify0LoggerAdapter']>
234+
readonly WinstonLoggerAdapter: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['WinstonLoggerAdapter']>
235+
readonly __DEV__: UnwrapRef<typeof import('../../packages/0/src/constants/globals')['__DEV__']>
236+
readonly __LOGGER_ENABLED__: UnwrapRef<typeof import('../../packages/0/src/constants/globals')['__LOGGER_ENABLED__']>
237+
readonly compare: UnwrapRef<typeof import('../../packages/0/src/utilities/benchmark')['compare']>
208238
readonly computed: UnwrapRef<typeof import('vue')['computed']>
209239
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
210240
readonly createBreakpoints: UnwrapRef<typeof import('../../packages/0/src/composables/useBreakpoints/index')['createBreakpoints']>
@@ -214,29 +244,36 @@ declare module 'vue' {
214244
readonly createHydrationPlugin: UnwrapRef<typeof import('../../packages/0/src/composables/useHydration/index')['createHydrationPlugin']>
215245
readonly createLocale: UnwrapRef<typeof import('../../packages/0/src/composables/useLocale/index')['createLocale']>
216246
readonly createLocalePlugin: UnwrapRef<typeof import('../../packages/0/src/composables/useLocale/index')['createLocalePlugin']>
247+
readonly createLogger: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['createLogger']>
248+
readonly createLoggerPlugin: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['createLoggerPlugin']>
217249
readonly createStorage: UnwrapRef<typeof import('../../packages/0/src/composables/useStorage/index')['createStorage']>
218250
readonly createStoragePlugin: UnwrapRef<typeof import('../../packages/0/src/composables/useStorage/index')['createStoragePlugin']>
219251
readonly createTheme: UnwrapRef<typeof import('../../packages/0/src/composables/useTheme/index')['createTheme']>
220252
readonly createThemePlugin: UnwrapRef<typeof import('../../packages/0/src/composables/useTheme/index')['createThemePlugin']>
221-
readonly createTokens: UnwrapRef<typeof import('../../packages/0/src/composables/useTokens/index')['createTokens']>
222253
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
223254
readonly defaultElevationGenerator: UnwrapRef<typeof import('../../packages/paper/src/composables/useElevation/index')['defaultElevationGenerator']>
224255
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
225256
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
226257
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
258+
readonly genId: UnwrapRef<typeof import('../../packages/0/src/utilities/helpers')['genId']>
227259
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
228260
readonly getCurrentInstanceName: UnwrapRef<typeof import('../../packages/paper/src/utilities/getCurrentInstanceName')['getCurrentInstanceName']>
229261
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
262+
readonly guard: UnwrapRef<typeof import('../../packages/0/src/utilities/benchmark')['guard']>
230263
readonly h: UnwrapRef<typeof import('vue')['h']>
231264
readonly hexToRgba: UnwrapRef<typeof import('../../packages/paper/src/composables/useColor/index')['hexToRgba']>
232265
readonly hexaToRgba: UnwrapRef<typeof import('../../packages/paper/src/composables/useColor/index')['hexaToRgba']>
233266
readonly inject: UnwrapRef<typeof import('vue')['inject']>
267+
readonly isArray: UnwrapRef<typeof import('../../packages/0/src/utilities/helpers')['isArray']>
268+
readonly isNullOrUndefined: UnwrapRef<typeof import('../../packages/0/src/utilities/helpers')['isNullOrUndefined']>
269+
readonly isObject: UnwrapRef<typeof import('../../packages/0/src/utilities/helpers')['isObject']>
234270
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
235271
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
236272
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
237273
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
238274
readonly isSelfClosingTag: UnwrapRef<typeof import('../../packages/0/src/constants/htmlElements')['isSelfClosingTag']>
239275
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
276+
readonly mergeDeep: UnwrapRef<typeof import('../../packages/0/src/utilities/helpers')['mergeDeep']>
240277
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
241278
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
242279
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
@@ -256,13 +293,15 @@ declare module 'vue' {
256293
readonly provide: UnwrapRef<typeof import('vue')['provide']>
257294
readonly provideBreakpointsContext: UnwrapRef<typeof import('../../packages/0/src/composables/useBreakpoints/index')['provideBreakpointsContext']>
258295
readonly provideHydrationContext: UnwrapRef<typeof import('../../packages/0/src/composables/useHydration/index')['provideHydrationContext']>
296+
readonly provideLoggerContext: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['provideLoggerContext']>
259297
readonly provideStorageContext: UnwrapRef<typeof import('../../packages/0/src/composables/useStorage/index')['provideStorageContext']>
260298
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
261299
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
262300
readonly ref: UnwrapRef<typeof import('vue')['ref']>
263301
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
264302
readonly rgbToRgba: UnwrapRef<typeof import('../../packages/paper/src/composables/useColor/index')['rgbToRgba']>
265303
readonly rgbaToHexa: UnwrapRef<typeof import('../../packages/paper/src/composables/useColor/index')['rgbaToHexa']>
304+
readonly run: UnwrapRef<typeof import('../../packages/0/src/utilities/benchmark')['run']>
266305
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
267306
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
268307
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
@@ -290,6 +329,8 @@ declare module 'vue' {
290329
readonly useId: UnwrapRef<typeof import('vue')['useId']>
291330
readonly useKeydown: UnwrapRef<typeof import('../../packages/0/src/composables/useKeydown/index')['useKeydown']>
292331
readonly useLocale: UnwrapRef<typeof import('../../packages/0/src/composables/useLocale/index')['useLocale']>
332+
readonly useLogger: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['useLogger']>
333+
readonly useLoggerContext: UnwrapRef<typeof import('../../packages/0/src/composables/useLogger/index')['useLoggerContext']>
293334
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
294335
readonly useRegistrar: UnwrapRef<typeof import('../../packages/0/src/composables/useRegistrar/index')['useRegistrar']>
295336
readonly useRounded: UnwrapRef<typeof import('../../packages/paper/src/composables/useRounded/index')['useRounded']>
@@ -301,9 +342,10 @@ declare module 'vue' {
301342
readonly useStorageContext: UnwrapRef<typeof import('../../packages/0/src/composables/useStorage/index')['useStorageContext']>
302343
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
303344
readonly useTheme: UnwrapRef<typeof import('../../packages/0/src/composables/useTheme/index')['useTheme']>
345+
readonly useTokens: UnwrapRef<typeof import('../../packages/0/src/composables/useTokens/index')['useTokens']>
304346
readonly watch: UnwrapRef<typeof import('vue')['watch']>
305347
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
306348
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
307349
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
308350
}
309-
}
351+
}

playground/src/plugins/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { createBreakpointsPlugin } from '@vuetify/0'
21
import type { App } from 'vue'
32
import { materialPalette, tailwindPalette } from './palettes'
43

54
export function registerPlugins (app: App) {
65
app.use(createHydrationPlugin())
76

7+
app.use(createLoggerPlugin())
8+
89
app.use(
910
createBreakpointsPlugin({
1011
//
@@ -27,12 +28,6 @@ export function registerPlugins (app: App) {
2728
}),
2829
)
2930

30-
app.use(
31-
createMarkdownPlugin({
32-
//
33-
}),
34-
)
35-
3631
app.use(
3732
createThemePlugin({
3833
default: 'minimalSlate',

0 commit comments

Comments
 (0)