feat(ui): Browser-Titel "Mini-Cloud - <username>" + Wolken-Favicon

Titel reagiert reaktiv auf Login/Logout. Favicon ist die Wolke aus
der Sidebar (pi-cloud-Style).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Stefan Hacker
2026-04-13 11:05:51 +02:00
parent 1eba5d0adc
commit e96c84b5f7
3 changed files with 17 additions and 2 deletions
+13
View File
@@ -1,3 +1,16 @@
<template>
<router-view />
</template>
<script setup>
import { watchEffect } from 'vue'
import { useAuthStore } from './stores/auth'
const auth = useAuthStore()
watchEffect(() => {
document.title = auth.user?.username
? `Mini-Cloud - ${auth.user.username}`
: 'Mini-Cloud'
})
</script>