small fixes
This commit is contained in:
parent
463459c0af
commit
a6907c4c9e
@ -42,6 +42,7 @@ onMounted(() => {
|
|||||||
auth.value = getAuth()
|
auth.value = getAuth()
|
||||||
|
|
||||||
if (process.client) {
|
if (process.client) {
|
||||||
|
if (!window) return;
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
if (!('serviceWorker' in navigator)) {
|
if (!('serviceWorker' in navigator)) {
|
||||||
throw new Error('serviceWorker is not supported in current browser!')
|
throw new Error('serviceWorker is not supported in current browser!')
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<h3 class="text-sm">{{ longEventDate(item.date.toDate()) }}</h3>
|
<h3 class="text-sm">{{ longEventDate(item.date.toDate()) }}</h3>
|
||||||
<h2 class="text-2xl font-bold">{{ item.title }}</h2>
|
<h2 class="text-2xl font-bold">{{ item.title }}</h2>
|
||||||
<p>{{ item.description }}</p>
|
<p>{{ item.description }}</p>
|
||||||
<Icon @click="deleteItem(item, index)" size="1.5em" name="ion:trash-sharp" class="absolute top-3 right-3 hover:cursor-pointer text-red-500" />
|
<Icon v-if="userData.sendNews" @click="deleteItem(item, index)" size="1.5em" name="ion:trash-sharp" class="absolute top-3 right-3 hover:cursor-pointer text-red-500" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
10
frontend/pages/settings/about.vue
Normal file
10
frontend/pages/settings/about.vue
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<div class="flex flex-col gap-5 mx-auto p-2 w-full max-w-md">
|
||||||
|
<h2 class="text-xl font-bold">
|
||||||
|
Privacy
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</template>
|
@ -1,5 +1,6 @@
|
|||||||
import { initializeApp } from "firebase/app";
|
import { initializeApp } from "firebase/app";
|
||||||
import { getMessaging } from "firebase/messaging";
|
import { getMessaging } from "firebase/messaging";
|
||||||
|
import { getAnalytics } from "firebase/analytics";
|
||||||
|
|
||||||
export default defineNuxtPlugin((nuxtApp) => {
|
export default defineNuxtPlugin((nuxtApp) => {
|
||||||
const firebaseConfig = {
|
const firebaseConfig = {
|
||||||
@ -15,4 +16,5 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||||||
const app = initializeApp(firebaseConfig);
|
const app = initializeApp(firebaseConfig);
|
||||||
|
|
||||||
const messaging = getMessaging(app);
|
const messaging = getMessaging(app);
|
||||||
|
const analytics = getAnalytics(app);
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user