Add UI XML files for current and initial app layout
All checks were successful
Code Analysis and Production Deploy / analyze (push) Successful in 7m26s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 1m59s

- Created `ui-current.xml` to represent the current state of the app's UI hierarchy.
- Created `ui.xml` to represent the initial state of the app's UI hierarchy.
This commit is contained in:
Torsten Schulz (local)
2026-06-01 10:46:39 +02:00
parent 7bc98c03e4
commit 80834d8652
26 changed files with 263 additions and 165 deletions

View File

@@ -0,0 +1,25 @@
export default defineNuxtPlugin((nuxtApp) => {
const authStore = useAuthStore()
const syncAuthState = async () => {
await authStore.checkAuth()
}
nuxtApp.hook('app:mounted', () => {
syncAuthState()
})
if (typeof window !== 'undefined') {
window.addEventListener('pageshow', (event) => {
if (event.persisted) {
syncAuthState()
}
})
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {
syncAuthState()
}
})
}
})