added firebase
This commit is contained in:
parent
953fd137b1
commit
9f86c8e4c3
@ -5,3 +5,12 @@
|
||||
<LayoutNavbar />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { doc, getFirestore, serverTimestamp, writeBatch, collection, getDocs } from "firebase/firestore";
|
||||
|
||||
const db = getFirestore()
|
||||
|
||||
|
||||
provide('firebase', { db })
|
||||
</script>
|
@ -1,4 +1,8 @@
|
||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||
export default defineNuxtConfig({
|
||||
modules: ['@nuxtjs/tailwindcss', '@formkit/nuxt', 'nuxt-icon', '@vueuse/nuxt', '@pinia/nuxt']
|
||||
modules: [
|
||||
'@nuxtjs/tailwindcss',
|
||||
'nuxt-icon',
|
||||
'@vueuse/nuxt',
|
||||
]
|
||||
})
|
||||
|
5874
frontend/package-lock.json
generated
5874
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -15,8 +15,6 @@
|
||||
"nuxt-icon": "^0.1.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@formkit/nuxt": "^1.0.0-beta.10",
|
||||
"@pinia/nuxt": "^0.4.2",
|
||||
"firebase": "^9.10.0",
|
||||
"vue-toastification": "^2.0.0-rc.5"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { initializeApp } from "firebase/app";
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const firebaseConfig = {
|
||||
apiKey: "AIzaSyCtHFyfCRkBt8MX5LPFogBi8ssKSypkW0g",
|
||||
authDomain: "wrbapp.firebaseapp.com",
|
||||
@ -12,4 +12,4 @@ const firebaseConfig = {
|
||||
};
|
||||
|
||||
const app = initializeApp(firebaseConfig);
|
||||
const analytics = getAnalytics(app);
|
||||
})
|
Loading…
Reference in New Issue
Block a user