feat: toasts

This commit is contained in:
2026-07-14 11:44:17 +02:00
parent 3b499ff791
commit 566f8403ef
13 changed files with 181 additions and 14 deletions
@@ -0,0 +1,13 @@
<script setup lang="ts">
import { useAlertStore } from '@/stores/alerts';
import { defineAsyncComponent } from 'vue';
const AlertItem = defineAsyncComponent(() => import("@/components/AlertItem.vue"));
const { alerts } = useAlertStore();
</script>
<template>
<div class="toast select-none">
<alert-item v-for="alert in alerts" :key="alert.created.getTime()" :alert="alert" />
</div>
</template>