Skip to content

Commit 893119e

Browse files
committed
playground: add firebase page
1 parent b927424 commit 893119e

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

playground/nuxt.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mdiAccountMultiple, mdiViewDashboard, mdiHome, mdiTestTube, mdiLogin, mdiAccountPlus, mdiAccountCog } from '@mdi/js'
1+
import { mdiAccountMultiple, mdiViewDashboard, mdiHome, mdiFirebase, mdiTestTube, mdiLogin, mdiAccountPlus, mdiAccountCog } from '@mdi/js'
22

33
export default defineNuxtConfig({
44
modules: ['../src/module'],
@@ -29,6 +29,11 @@ export default defineNuxtConfig({
2929
to: '/',
3030
icon: mdiHome,
3131
},
32+
{
33+
text: 'Firebase',
34+
to: '/firebase',
35+
icon: mdiFirebase,
36+
},
3237
{
3338
text: 'Test',
3439
to: '/test',

playground/pages/firebase.vue

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<script setup lang="ts">
2+
import { doc } from 'firebase/firestore'
3+
4+
// Firebase
5+
const db = useFirestore()
6+
7+
// Connect to Firestore
8+
const docRef = doc(db, 'test', '123')
9+
10+
// Page info
11+
useSeoMeta({
12+
title: 'Firebase',
13+
})
14+
</script>
15+
16+
<template>
17+
<v-container>
18+
<v-row>
19+
<v-col cols="12">
20+
<v-container>
21+
<v-row>
22+
<v-col cols="12">
23+
<h1>Firebase</h1>
24+
</v-col>
25+
</v-row>
26+
27+
<!-- Firebase File Upload Dialog -->
28+
<v-row>
29+
<v-col cols="12">
30+
<v-card class="pa-4">
31+
<h2>FirebaseFileUploadDialog</h2>
32+
<FirebaseFileUploadDialog
33+
:doc-ref
34+
:upload-path="`test/123`"
35+
upload-field-name="test"
36+
/>
37+
</v-card>
38+
</v-col>
39+
</v-row>
40+
</v-container>
41+
</v-col>
42+
</v-row>
43+
</v-container>
44+
</template>

0 commit comments

Comments
 (0)