Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
827 B
Vue
31 lines
827 B
Vue
<script setup lang="ts">
|
|
import { AlertCircle } from 'lucide-vue-next';
|
|
import { computed } from 'vue';
|
|
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
|
|
|
|
type Props = {
|
|
errors: string[];
|
|
title?: string;
|
|
};
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
title: 'Something went wrong.',
|
|
});
|
|
|
|
const uniqueErrors = computed(() => Array.from(new Set(props.errors)));
|
|
</script>
|
|
|
|
<template>
|
|
<Alert variant="destructive">
|
|
<AlertCircle class="size-4" />
|
|
<AlertTitle>{{ title }}</AlertTitle>
|
|
<AlertDescription>
|
|
<ul class="list-inside list-disc text-sm">
|
|
<li v-for="(error, index) in uniqueErrors" :key="index">
|
|
{{ error }}
|
|
</li>
|
|
</ul>
|
|
</AlertDescription>
|
|
</Alert>
|
|
</template>
|