Skip to content

Commit 852b00a

Browse files
committed
feat(playground): add polished demos
1 parent e256dc5 commit 852b00a

8 files changed

Lines changed: 461 additions & 144 deletions

File tree

playground/app.config.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import {
22
mdiAccountCog,
33
mdiAccountMultiple,
44
mdiAccountPlus,
5+
mdiCog,
56
mdiCommentQuote,
67
mdiFirebase,
78
mdiForum,
89
mdiHome,
910
mdiLifebuoy,
1011
mdiLogin,
12+
mdiStar,
1113
mdiTelevisionPlay,
12-
mdiTestTube,
1314
mdiViewDashboard,
1415
} from '@mdi/js'
1516

@@ -44,16 +45,21 @@ export default defineAppConfig({
4445
to: '/',
4546
icon: mdiHome,
4647
},
48+
{
49+
text: 'Features',
50+
to: '/features',
51+
icon: mdiStar,
52+
},
53+
{
54+
text: 'Config',
55+
to: '/config',
56+
icon: mdiCog,
57+
},
4758
{
4859
text: 'Firebase',
4960
to: '/firebase',
5061
icon: mdiFirebase,
5162
},
52-
{
53-
text: 'Test',
54-
to: '/test',
55-
icon: mdiTestTube,
56-
},
5763
{
5864
text: 'Sign In',
5965
to: '/signin',
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<script setup lang="ts">
2+
// Quick search
3+
const quickSearchValue = ref('')
4+
const searchGroups = [
5+
{
6+
title: 'Fruits',
7+
items: ['Apple', 'Banana', 'Orange', 'Pear', 'Strawberry', 'Watermelon', 'Pineapple'],
8+
},
9+
{
10+
title: 'Vegetables',
11+
items: ['Carrot', 'Broccoli', 'Spinach'],
12+
},
13+
]
14+
</script>
15+
16+
<template>
17+
<v-container>
18+
<v-row>
19+
<v-col cols="12">
20+
<v-card class="pa-4">
21+
<h2>QuickSearch</h2>
22+
<p class="mb-2">
23+
Selected: {{ quickSearchValue || 'none' }}
24+
</p>
25+
<QuickSearch
26+
v-model="quickSearchValue"
27+
:search-groups="searchGroups"
28+
/>
29+
</v-card>
30+
</v-col>
31+
</v-row>
32+
</v-container>
33+
</template>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<script setup lang="ts">
2+
import { mdiCogOutline } from '@mdi/js'
3+
4+
// STATE - GLOBAL
5+
const nuxtifyConfig = useNuxtifyConfig()
6+
</script>
7+
8+
<template>
9+
<v-container>
10+
<v-row>
11+
<v-col cols="12">
12+
<div class="d-flex align-center mb-4">
13+
<v-icon
14+
:icon="mdiCogOutline"
15+
color="secondary"
16+
size="large"
17+
class="mr-2"
18+
/>
19+
<h2 class="text-h5 font-weight-bold">
20+
Active Module Config
21+
</h2>
22+
</div>
23+
<p class="text-body-1 text-medium-emphasis mb-4">
24+
The following config properties have been synced from <code>app.config.ts</code> to the <code>useNuxtifyConfig</code> composable, allowing layout templates and components to remain decoupled and highly flexible.
25+
</p>
26+
27+
<v-card
28+
class="pa-4 bg-grey-darken-4 text-light-blue-lighten-4 font-mono rounded"
29+
elevation="2"
30+
>
31+
<pre style="overflow-x: auto; white-space: pre-wrap;">{{ JSON.stringify(nuxtifyConfig, null, 2) }}</pre>
32+
</v-card>
33+
</v-col>
34+
</v-row>
35+
</v-container>
36+
</template>

0 commit comments

Comments
 (0)