-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.vue
42 lines (42 loc) · 1005 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<template>
<UApp>
<NuxtRouteAnnouncer />
<NuxtPage />
</UApp>
</template>
<script setup>
onMounted(() => {
if (
window &&
!localStorage.getItem("bingo-25-shown") &&
new Date().getTime() > 1735102800000
) {
// christmas 2024
const toast = useToast().add({
title: "Kickoff Bingo",
description: `Check out kickoff bingo!`,
icon: "i-lucide-calendar-days",
duration: 0,
actions: [
{
icon: "i-lucide-square-arrow-out-up-right",
label: "Go to bingo",
color: "neutral",
variant: "outline",
onClick: async (e) => {
e?.stopPropagation();
localStorage.setItem("bingo-25-shown", true);
await navigateTo("/bingo");
},
},
],
});
}
});
useSeoMeta({
titleTemplate: (x) => (x ? `${x} | FRCTools` : `FRCTools`),
ogTitle: "FRCTools",
description: "Search the FRC Manual",
ogDescription: "Search the FRC Manual",
});
</script>