openpencil/src/App.vue
Danila Poyarkov 56aa194785 Toast notifications via Reka UI Toast
- AppToast component: top-center blue pill (info), red pill (errors)
- Global error handler catches window.error + unhandledrejection
- Link copied toast on share and copy link button
- use-toast composable: toast.show(message, variant)
2026-03-01 18:25:04 +03:00

16 lines
277 B
Vue

<script setup lang="ts">
import { onMounted } from 'vue'
import AppToast from '@/components/AppToast.vue'
import { toast } from '@/composables/use-toast'
onMounted(() => {
toast.setupGlobalErrorHandler()
})
</script>
<template>
<RouterView />
<AppToast />
</template>