feat: als pwa installierbar
- 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>
This commit is contained in:
1 parent
998e86c84f
commit
0ad6d248cf
20 files changed
+5180
-6
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user