Meine Aufgaben (0.53.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 13s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 7m24s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 8m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m39s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m4s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m9s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m42s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 13s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 7m24s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 8m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m39s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m4s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m9s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m42s
Tasks-Registry mit Anbietern aus QM, Umfragen und Redaktion; Kachel auf der Startseite und Seite /aufgaben. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
63f50f691a
commit
c11cf4e0c4
146 changed files with 731 additions and 353 deletions
33
resources/js/components/tasks/TaskList.vue
Normal file
33
resources/js/components/tasks/TaskList.vue
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<script setup>
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { ChevronRight } from '@lucide/vue';
|
||||
import AppIcon from '@/components/AppIcon.vue';
|
||||
import { formatShortDate } from '@/lib/format';
|
||||
|
||||
/** Liste offener Aufgaben – auf der Startseite und unter „Meine Aufgaben“ */
|
||||
defineProps({
|
||||
tasks: { type: Array, required: true },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ul class="-mx-2 grid gap-0.5">
|
||||
<li v-for="task in tasks" :key="task.key + task.url">
|
||||
<Link :href="task.url" class="group flex items-center gap-3 rounded-md px-2 py-2.5 hover:bg-accent">
|
||||
<span class="grid size-9 shrink-0 place-items-center rounded-full bg-brand-soft text-brand-text">
|
||||
<AppIcon :name="task.icon" class="size-[18px]" :stroke-width="1.8" />
|
||||
</span>
|
||||
<span class="grid min-w-0 flex-1 gap-0.5">
|
||||
<span class="line-clamp-2 text-sm leading-snug font-medium">{{ task.title }}</span>
|
||||
<span class="flex flex-wrap gap-x-2 text-xs text-muted-foreground">
|
||||
<span v-if="task.meta">{{ task.meta }}</span>
|
||||
<span v-if="task.overdue" class="font-semibold text-destructive">überfällig seit {{ formatShortDate(task.due) }}</span>
|
||||
<span v-else-if="task.due" class="font-medium text-accent2-text">bis {{ formatShortDate(task.due) }}</span>
|
||||
</span>
|
||||
</span>
|
||||
<span v-if="task.count" class="rounded-pill bg-brand px-2 py-0.5 text-xs font-semibold text-brand-foreground tabular-nums">{{ task.count }}</span>
|
||||
<ChevronRight class="size-4 shrink-0 text-muted-foreground/60 group-hover:text-foreground" />
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue