forked from weatherxm-network/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
39 lines (33 loc) · 835 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
<script lang="ts" setup>
import { storeToRefs } from 'pinia'
import wxmApi from '~/api/wxmApi'
import { useSettingsStore } from '~/stores/settingsStore'
const { theme } = storeToRefs(useSettingsStore())
const config = useRuntimeConfig().public
const { getFirebaseId } = useFirebase()
const { userAgent } = useUserAgent()
const firebaseId = await getFirebaseId()
onBeforeMount(() => {
wxmApi.setupAxios(config.apiUrl, userAgent, firebaseId)
})
</script>
<template>
<div>
<VThemeProvider :theme="theme.currentTheme">
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</VThemeProvider>
</div>
</template>
<style>
html {
overflow: hidden !important;
scrollbar-width: none;
-ms-overflow-style: none;
}
html::-webkit-scrollbar {
width: 0;
height: 0;
}
</style>