feat: offline mode; PWA

This commit is contained in:
2025-04-28 00:10:44 +02:00
parent f4aa0b28a1
commit 4e8aabe05e
18 changed files with 6111 additions and 54 deletions
+24
View File
@@ -0,0 +1,24 @@
<template>
<div class="fixed z-50 bottom-0 right-0">
<button @click="onUpdateClick" class="p-3 m-3 bg-cyan-600 rounded-md text-xl" ref="updateBtnEl">
<div>{{ $t('update-prompt.line1') }}</div>
<u>{{ $t('update-prompt.line2') }}</u>
</button>
</div>
</template>
<script setup lang="ts">
import { onMounted } from 'vue';
import { ref } from 'vue';
const emit = defineEmits(['onUpdateClick']);
const updateBtnEl = ref<HTMLElement | null>(null);
function onUpdateClick() {
emit('onUpdateClick');
}
onMounted(() => {
updateBtnEl.value?.focus();
});
</script>