- Manifest 'LAN-Clipboard' / 'Clipboard', standalone, eigene Icons (auch maskable) - iOS: apple-touch-icon, Web-App-Metadaten, Statusleiste black-translucent - Service Worker (vite-plugin-pwa) cacht nur die App-Hülle, nie /api - Hinweis 'Neue Version verfügbar' mit Neu laden - Offline-Seite, wenn beim Start kein Server erreichbar ist - Icons per scripts/render-icons.sh aus SVG gerendert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
745 B
Vue
30 lines
745 B
Vue
<script setup lang="ts">
|
|
import { applyUpdate, updateAvailable } from '@/pwa'
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="updateAvailable" class="update-banner" role="status">
|
|
<span>Neue Version verfügbar</span>
|
|
<button type="button" class="primary small" @click="applyUpdate">Neu laden</button>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.update-banner {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: calc(1rem + env(safe-area-inset-bottom));
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.5rem 0.5rem 0.5rem 1rem;
|
|
transform: translateX(-50%);
|
|
background: var(--surface);
|
|
border: 1px solid var(--accent);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 4px 16px rgb(0 0 0 / 40%);
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|