File tree Expand file tree Collapse file tree 2 files changed +112
-17
lines changed
Expand file tree Collapse file tree 2 files changed +112
-17
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import { useNuxtifyConfig , useServerSeoMeta } from ' #imports'
3+
4+ // Page info
5+ useServerSeoMeta ({
6+ title: ' @nuxtify/core playground' ,
7+ description: ' This is the @nuxtify/core playground.' ,
8+ })
9+
10+ // App state
211const nuxtifyConfig = useNuxtifyConfig ()
12+ const dialog = useDialog ()
13+ const toast = useToast ()
14+
15+ // Functions
16+ const clickDialog = () => {
17+ // Dialog
18+ dialog .value .title = ' This is a dialog!'
19+ dialog .value .message = ' It can have fun messages.'
20+ dialog .value .action .function = () => {
21+ dialog .value .show = false
22+ }
23+ dialog .value .show = true
24+ }
25+ const clickToast = () => {
26+ // Toast
27+ toast .value .message = ' This is a toast!'
28+ toast .value .show = true
29+ }
330 </script >
431
532<template >
6- <div >
7- <h1 >
8- @nuxtify/core module playground!
9- </h1 >
10-
11- <v-btn >
12- Test Button
13- </v-btn >
14-
15- <div >
16- <AppLogo />
17- </div >
18-
19- <h2 >nuxtifyConfig</h2 >
20- <pre >{{ nuxtifyConfig }}</pre >
21- </div >
33+ <v-app >
34+ <!-- Accessibility -->
35+ <NuxtRouteAnnouncer />
36+
37+ <AppAnnouncementBar
38+ v-if =" nuxtifyConfig.announcement?.show"
39+ class =" d-print-none"
40+ />
41+
42+ <v-main >
43+ <v-container >
44+ <v-row >
45+ <v-col cols =" 12" >
46+ <h1 >{{ nuxtifyConfig.brand?.name }}</h1 >
47+ </v-col >
48+ </v-row >
49+
50+ <!-- Nuxtify config -->
51+ <v-row >
52+ <v-col cols =" 12" >
53+ <v-card class =" pa-4" >
54+ <h2 >nuxtifyConfig</h2 >
55+ <pre >{{ nuxtifyConfig }}</pre >
56+ </v-card >
57+ </v-col >
58+ </v-row >
59+
60+ <!-- App Dialog -->
61+ <v-row >
62+ <v-col cols =" 12" >
63+ <v-card class =" pa-4" >
64+ <h2 >AppDialog</h2 >
65+ <v-btn
66+ class =" mt-2"
67+ @click =" clickDialog"
68+ >
69+ Show Dialog
70+ </v-btn >
71+ </v-card >
72+ </v-col >
73+ </v-row >
74+
75+ <!-- App Toast -->
76+ <v-row >
77+ <v-col cols =" 12" >
78+ <v-card class =" pa-4" >
79+ <h2 >AppToast</h2 >
80+ <v-btn
81+ class =" mt-2"
82+ @click =" clickToast"
83+ >
84+ Show Toast
85+ </v-btn >
86+ </v-card >
87+ </v-col >
88+ </v-row >
89+
90+ <!-- App loading -->
91+ <v-row >
92+ <v-col cols =" 12" >
93+ <v-card class =" pa-4" >
94+ <h2 >AppLoading</h2 >
95+ <AppLoading />
96+ </v-card >
97+ </v-col >
98+ </v-row >
99+
100+ <!-- Logo override -->
101+ <v-row >
102+ <v-col cols =" 12" >
103+ <v-card class =" pa-4" >
104+ <h2 >AppLogo (override)</h2 >
105+ <AppLogo />
106+ </v-card >
107+ </v-col >
108+ </v-row >
109+ </v-container >
110+ </v-main >
111+
112+ <AppToast class =" d-print-none" />
113+
114+ <AppDialog class =" d-print-none" />
115+ </v-app >
22116</template >
Original file line number Diff line number Diff line change 11export default defineNuxtConfig ( {
22 modules : [ '../src/module' ] ,
33 devtools : { enabled : true } ,
4+ compatibilityDate : '2025-05-13' ,
45 nuxtifyCore : {
56 brand : {
67 name : '@nuxtify/core playground' ,
78 } ,
89 announcement : {
910 show : true ,
10- message : 'Welcome to the @nuxtify/core playground!' ,
11+ message : 'This is the announcement bar for the @nuxtify/core playground!' ,
1112 buttonText : 'Click me' ,
1213 buttonUrl : 'https://nuxtify.dev/' ,
1314 } ,
You can’t perform that action at this time.
0 commit comments