reset to setup module state

Remove Task Manager implementation to match `# Setup module` in module.md.
Backend src/ reduced to Kernel.php + empty Entity/, all migrations deleted,
database dropped and recreated. Frontend components/views/services/stores
removed, App.vue/router/style.css reduced to skeletons. CLAUDE.md shortened
to Setup-stand. Old backend/plan.md, plan2.md removed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marek Lenczewski
2026-04-11 13:15:50 +02:00
parent 2cb08331e4
commit 9246ccb5e6
56 changed files with 34 additions and 3951 deletions

View File

@@ -1,26 +0,0 @@
<script setup>
defineProps({
category: { type: Object, default: null },
})
</script>
<template>
<span
class="badge"
:style="{ backgroundColor: category?.color || '#808080' }"
>
{{ category?.name || 'Allgemein' }}
</span>
</template>
<style scoped>
.badge {
display: inline-block;
padding: 0.125rem 0.5rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 500;
color: #fff;
white-space: nowrap;
}
</style>

View File

@@ -1,65 +0,0 @@
<script setup>
import TaskCard from './TaskCard.vue'
defineProps({
date: { type: String, required: true },
tasks: { type: Array, required: true },
})
const emit = defineEmits(['toggle'])
function formatDate(dateStr) {
const d = new Date(dateStr + 'T00:00:00')
return d.toLocaleDateString('de-DE', {
weekday: 'long',
day: 'numeric',
month: 'long',
})
}
</script>
<template>
<section v-if="tasks.length" class="day">
<div class="day-header"><span>{{ formatDate(date) }}</span></div>
<div class="day-tasks">
<TaskCard
v-for="task in tasks"
:key="task.id"
:task="task"
@toggle="(taskId) => emit('toggle', taskId)"
/>
</div>
</section>
</template>
<style scoped>
.day {
margin-bottom: 1rem;
}
.day-header {
display: flex;
align-items: center;
justify-content: center;
border-top: 1px solid var(--border);
margin-top: 1.25rem;
margin-bottom: 0.5rem;
}
.day-header span {
margin-top: -0.7rem;
background: var(--bg);
padding: 0.15rem 0.75rem;
border: 1px solid var(--border);
border-radius: 999px;
font-weight: 600;
font-size: 0.8rem;
color: var(--text-h);
}
.day-tasks {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
</style>

View File

@@ -1,38 +0,0 @@
<script setup>
defineProps({
name: { type: String, required: true },
})
const icons = {
eyeOpen: '<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/>',
eyeClosed: '<path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/>',
plus: '<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>',
arrowLeft: '<polyline points="15 18 9 12 15 6"/>',
save: '<path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/>',
trash: '<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/>',
edit: '<path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/>',
close: '<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>',
}
</script>
<template>
<svg
class="icon"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
v-html="icons[name]"
/>
</template>
<style scoped>
.icon {
width: 1em;
height: 1em;
vertical-align: -0.125em;
flex-shrink: 0;
}
</style>

View File

@@ -1,96 +0,0 @@
<script setup>
import { computed } from 'vue'
const props = defineProps({
modelValue: { type: Array, default: () => [] },
})
const emit = defineEmits(['update:modelValue'])
const now = new Date()
const daysInMonth = computed(() => new Date(now.getFullYear(), now.getMonth() + 1, 0).getDate())
const firstDayOffset = computed(() => (new Date(now.getFullYear(), now.getMonth(), 1).getDay() + 6) % 7)
function toggle(value) {
const current = [...props.modelValue]
const index = current.indexOf(value)
if (index === -1) current.push(value)
else current.splice(index, 1)
emit('update:modelValue', current)
}
</script>
<template>
<div class="monthday-picker">
<div class="weekday-header">Mo</div>
<div class="weekday-header">Di</div>
<div class="weekday-header">Mi</div>
<div class="weekday-header">Do</div>
<div class="weekday-header">Fr</div>
<div class="weekday-header">Sa</div>
<div class="weekday-header">So</div>
<div v-for="n in firstDayOffset" :key="'pad-' + n" class="day-pad"></div>
<label
v-for="day in daysInMonth"
:key="day"
class="day-option"
:class="{ active: modelValue.includes(day) }"
>
<input
type="checkbox"
:checked="modelValue.includes(day)"
@change="toggle(day)"
class="sr-only"
/>
{{ day }}
</label>
</div>
</template>
<style scoped>
.monthday-picker {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.25rem;
}
.weekday-header {
font-size: 0.6rem;
text-align: center;
color: var(--text);
font-weight: 500;
}
.day-pad {
height: 2.5rem;
}
.day-option {
display: flex;
align-items: center;
justify-content: center;
height: 2.5rem;
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
color: var(--text);
transition: all 0.15s;
user-select: none;
}
.day-option.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
</style>

View File

@@ -1,83 +0,0 @@
<script setup>
import CategoryBadge from './CategoryBadge.vue'
import { useRouter } from 'vue-router'
const props = defineProps({
task: { type: Object, required: true },
})
const emit = defineEmits(['toggle'])
const router = useRouter()
</script>
<template>
<div
class="card"
:class="{
'card--completed': task.status === 'done',
'card--past': task.isPast,
}"
@click="emit('toggle', task.id)"
>
<div class="card-left">
<span class="task-name">{{ task.name }}</span>
<CategoryBadge :category="task.category" />
</div>
<div class="card-right" @click.stop>
<button @click="router.push({ name: 'task-detail', params: { id: task.id } })">
Anzeigen
</button>
</div>
</div>
</template>
<style scoped>
.card {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
padding: 0.5rem 0.75rem;
cursor: pointer;
transition: box-shadow 0.15s;
}
.card:last-child {
border-bottom: none;
}
.card:hover {
box-shadow: var(--shadow);
}
.card--completed {
opacity: 0.5;
}
.card--completed .task-name {
text-decoration: line-through;
}
.card--past {
border-left: 3px solid var(--danger);
background: var(--danger-bg);
}
.card-left {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
min-width: 0;
}
.task-name {
font-weight: 500;
color: var(--text-h);
}
.card-right button {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
}
</style>

View File

@@ -1,84 +0,0 @@
<script setup>
const props = defineProps({
modelValue: { type: Array, default: () => [] },
})
const emit = defineEmits(['update:modelValue'])
const days = [
{ value: 1, label: 'Mo' },
{ value: 2, label: 'Di' },
{ value: 3, label: 'Mi' },
{ value: 4, label: 'Do' },
{ value: 5, label: 'Fr' },
{ value: 6, label: 'Sa' },
{ value: 7, label: 'So' },
]
function toggle(value) {
const current = [...props.modelValue]
const index = current.indexOf(value)
if (index === -1) {
current.push(value)
} else {
current.splice(index, 1)
}
emit('update:modelValue', current)
}
</script>
<template>
<div class="weekday-picker">
<label
v-for="day in days"
:key="day.value"
class="day-option"
:class="{ active: modelValue.includes(day.value) }"
>
<input
type="checkbox"
:checked="modelValue.includes(day.value)"
@change="toggle(day.value)"
class="sr-only"
/>
{{ day.label }}
</label>
</div>
</template>
<style scoped>
.weekday-picker {
display: flex;
gap: 0.25rem;
}
.day-option {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
color: var(--text);
transition: all 0.15s;
user-select: none;
}
.day-option.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
</style>

View File

@@ -1,185 +0,0 @@
<script setup>
import { computed } from 'vue'
const props = defineProps({
modelValue: { type: Array, default: () => [] },
})
const emit = defineEmits(['update:modelValue'])
const monthNames = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']
function buildCells(startIndex, count) {
const now = new Date()
const currentMonth = now.getMonth()
const currentYear = now.getFullYear()
const result = []
let row = 2
let col = 2
for (let i = 0; i < count; i++) {
const idx = startIndex + i
const m = (currentMonth + idx) % 12
const y = currentYear + Math.floor((currentMonth + idx) / 12)
const daysInMonth = new Date(y, m + 1, 0).getDate()
const firstDayOffset = (new Date(y, m, 1).getDay() + 6) % 7
result.push({
type: 'label',
name: monthNames[m],
row,
col: 1,
key: `label-${y}-${m}`,
})
if (i === 0) {
row++
col = 2 + firstDayOffset
} else {
const newCol = 2 + firstDayOffset
if (newCol < col) {
row++
}
col = newCol
}
for (let d = 1; d <= daysInMonth; d++) {
result.push({
type: 'day',
month: m + 1,
day: d,
row,
col,
key: `d-${y}-${m}-${d}`,
})
col++
if (col > 8) {
col = 2
row++
}
}
}
return result
}
const totalMonths = 12 - new Date().getMonth()
const leftCount = Math.ceil(totalMonths / 2)
const rightCount = totalMonths - leftCount
const leftCells = computed(() => buildCells(0, leftCount))
const rightCells = computed(() => buildCells(leftCount, rightCount))
function isSelected(month, day) {
return props.modelValue.some(yd => yd.month === month && yd.day === day)
}
function toggle(month, day) {
const current = [...props.modelValue]
const index = current.findIndex(yd => yd.month === month && yd.day === day)
if (index === -1) {
current.push({ month, day })
} else {
current.splice(index, 1)
}
emit('update:modelValue', current)
}
</script>
<template>
<div class="year-picker-columns">
<div v-for="(cells, side) in [leftCells, rightCells]" :key="side" class="year-picker">
<div class="header" style="grid-row:1;grid-column:1"></div>
<div class="weekday-header" style="grid-row:1;grid-column:2">Mo</div>
<div class="weekday-header" style="grid-row:1;grid-column:3">Di</div>
<div class="weekday-header" style="grid-row:1;grid-column:4">Mi</div>
<div class="weekday-header" style="grid-row:1;grid-column:5">Do</div>
<div class="weekday-header" style="grid-row:1;grid-column:6">Fr</div>
<div class="weekday-header" style="grid-row:1;grid-column:7">Sa</div>
<div class="weekday-header" style="grid-row:1;grid-column:8">So</div>
<template v-for="cell in cells" :key="cell.key">
<div
v-if="cell.type === 'label'"
class="month-label"
:style="{ gridRow: cell.row, gridColumn: cell.col }"
>
{{ cell.name }}
</div>
<label
v-else
class="day-option"
:class="{ active: isSelected(cell.month, cell.day) }"
:style="{ gridRow: cell.row, gridColumn: cell.col }"
>
<input
type="checkbox"
:checked="isSelected(cell.month, cell.day)"
@change="toggle(cell.month, cell.day)"
class="sr-only"
/>
{{ cell.day }}
</label>
</template>
</div>
</div>
</template>
<style scoped>
.year-picker-columns {
display: flex;
gap: 1.5rem;
width: 100%;
}
.year-picker {
flex: 1;
display: grid;
grid-template-columns: 2.5rem repeat(7, 1fr);
gap: 2px;
}
.weekday-header {
font-size: 0.6rem;
text-align: center;
color: var(--text);
font-weight: 500;
}
.month-label {
font-size: 0.7rem;
font-weight: 600;
color: var(--text-h);
display: flex;
align-items: center;
}
.day-option {
display: flex;
align-items: center;
justify-content: center;
height: 2rem;
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
font-size: 0.65rem;
color: var(--text);
transition: all 0.15s;
user-select: none;
}
.day-option.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
</style>