-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
40 lines (31 loc) · 1.15 KB
/
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
<script lang="ts" setup>
import MigrationManager from '~/data/MigrationManager'
useHead({
titleTemplate: (titleChunk) =>
titleChunk ? `${titleChunk} - Cathedral` : 'Cathedral'
})
const preAlphaDialogVisible = ref(
JSON.parse(localStorage.getItem('preAlphaDialogVisible') || 'true')
);
const onAlphaDialogClose = () => {
preAlphaDialogVisible.value = false;
// save the setting to local storage
localStorage.setItem('preAlphaDialogVisible', 'false');
};
const migrationManager = new MigrationManager(useAppConfig().connString);
await migrationManager.migrateToLatest();
</script>
<template>
<NuxtPwaManifest />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<Dialog v-model:visible="preAlphaDialogVisible" modal header="Warning" class="w-30rem" :show-close="false">
<p>
This is a pre-alpha version of the application. It is not yet ready for production use.
By continuing to use this application, you accept the risks associated with using pre-alpha software.
The application may be unstable, and data loss may occur.
</p>
<Button type="button" label="Okay" @click="onAlphaDialogClose"></Button>
</Dialog>
</template>