-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
38 lines (35 loc) · 1.04 KB
/
Copy pathapp.vue
File metadata and controls
38 lines (35 loc) · 1.04 KB
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
<script setup lang="ts">
import { useAppI18n } from '~/composables/useAppI18n'
import { useThemePreference } from '~/composables/useThemePreference'
const { initializeThemePreference } = useThemePreference()
const { isSessionRestoreInProgress } = useMatrixClient()
const { translateText } = useAppI18n()
onMounted(() => {
initializeThemePreference()
})
</script>
<template>
<UApp>
<NuxtRouteAnnouncer />
<NuxtPage />
<div
v-if="isSessionRestoreInProgress"
class="fixed inset-0 z-100 flex items-center justify-center bg-black/60"
role="status"
aria-live="polite"
aria-busy="true"
>
<UCard class="w-full max-w-xs text-center">
<div class="flex flex-col items-center gap-3 py-2">
<UIcon
name="i-lucide-loader-circle"
class="h-6 w-6 animate-spin text-primary"
/>
<p class="text-sm text-gray-700 dark:text-gray-200">
{{ translateText('auth.restoringSession') }}
</p>
</div>
</UCard>
</div>
</UApp>
</template>