refactor: enhance routing and state management in CoopBuilder, add migration checks on startup, and update Tailwind configuration for improved component styling

This commit is contained in:
Jennie Robinson Faber 2025-08-23 18:24:31 +01:00
parent 848386e3dd
commit 4cea1f71fe
55 changed files with 4053 additions and 1486 deletions

View file

@ -0,0 +1,36 @@
<template>
<div class="flex items-center gap-2">
<span class="text-sm text-gray-600">Mode:</span>
<UButtonGroup>
<UButton
:variant="modelValue === 'minimum' ? 'solid' : 'ghost'"
color="gray"
size="xs"
@click="$emit('update:modelValue', 'minimum')"
>
Min Mode
</UButton>
<UButton
:variant="modelValue === 'target' ? 'solid' : 'ghost'"
color="primary"
size="xs"
@click="$emit('update:modelValue', 'target')"
>
Target Mode
</UButton>
</UButtonGroup>
</div>
</template>
<script setup lang="ts">
interface Props {
modelValue: 'minimum' | 'target'
}
interface Emits {
(e: 'update:modelValue', value: 'minimum' | 'target'): void
}
defineProps<Props>()
defineEmits<Emits>()
</script>