-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
44 lines (39 loc) · 938 Bytes
/
app.vue
File metadata and controls
44 lines (39 loc) · 938 Bytes
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
43
44
<script setup lang="ts">
import { onMounted } from 'vue'
import { init } from '@plausible-analytics/tracker'
init({
domain: 'graphlet.xyz',
endpoint:'https://chitraguptan.graphlet.xyz/api/event'
})
onMounted(() => {
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').then((registration) => {
console.log('SW registered: ', registration);
}).catch((registrationError) => {
console.log('SW registration failed: ', registrationError);
});
});
}
})
</script>
<template>
<NuxtPage />
</template>
<style>
/* Global overrides/utilities */
html,
body,
#__nuxt {
height: 100%;
margin: 0;
overflow: hidden;
/* App-like feel */
background-color: var(--surface-base);
}
.pane {
height: 100%;
overflow: hidden;
position: relative;
}
</style>