added firebase
This commit is contained in:
parent
953fd137b1
commit
9f86c8e4c3
@ -5,3 +5,12 @@
|
|||||||
<LayoutNavbar />
|
<LayoutNavbar />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||||
export default defineNuxtConfig({
|
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"
|
"nuxt-icon": "^0.1.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@formkit/nuxt": "^1.0.0-beta.10",
|
|
||||||
"@pinia/nuxt": "^0.4.2",
|
|
||||||
"firebase": "^9.10.0",
|
"firebase": "^9.10.0",
|
||||||
"vue-toastification": "^2.0.0-rc.5"
|
"vue-toastification": "^2.0.0-rc.5"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { initializeApp } from "firebase/app";
|
import { initializeApp } from "firebase/app";
|
||||||
import { getAnalytics } from "firebase/analytics";
|
|
||||||
|
|
||||||
const firebaseConfig = {
|
export default defineNuxtPlugin((nuxtApp) => {
|
||||||
|
const firebaseConfig = {
|
||||||
apiKey: "AIzaSyCtHFyfCRkBt8MX5LPFogBi8ssKSypkW0g",
|
apiKey: "AIzaSyCtHFyfCRkBt8MX5LPFogBi8ssKSypkW0g",
|
||||||
authDomain: "wrbapp.firebaseapp.com",
|
authDomain: "wrbapp.firebaseapp.com",
|
||||||
projectId: "wrbapp",
|
projectId: "wrbapp",
|
||||||
@ -9,7 +9,7 @@ const firebaseConfig = {
|
|||||||
messagingSenderId: "160377508482",
|
messagingSenderId: "160377508482",
|
||||||
appId: "1:160377508482:web:f651ccf2b242daf4879a9b",
|
appId: "1:160377508482:web:f651ccf2b242daf4879a9b",
|
||||||
measurementId: "G-31HEXDSVPZ"
|
measurementId: "G-31HEXDSVPZ"
|
||||||
};
|
};
|
||||||
|
|
||||||
const app = initializeApp(firebaseConfig);
|
const app = initializeApp(firebaseConfig);
|
||||||
const analytics = getAnalytics(app);
|
})
|
Loading…
Reference in New Issue
Block a user