add format check, update prettier rules, apply rules consistently

This commit is contained in:
Gregor Vostrak
2025-07-29 18:58:31 +02:00
parent b11672732b
commit cb30487a21
323 changed files with 3728 additions and 5579 deletions

View File

@@ -1,9 +1,5 @@
<script setup lang="ts">
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@/Components/ui/popover';
import { Popover, PopoverContent, PopoverTrigger } from '@/Components/ui/popover';
import { Button } from '@/Components/ui/button';
import { Calendar } from '@/Components/ui/calendar';
import { CalendarIcon, XIcon } from 'lucide-vue-next';
@@ -49,9 +45,8 @@ const organization = inject<ComputedRef<Organization>>('organization');
size="input"
:class="[
'w-full justify-start text-left font-normal',
!model && 'text-muted-foreground'
]"
>
!model && 'text-muted-foreground',
]">
<CalendarIcon class="mr-2 h-4 w-4" />
<span class="flex-1">
{{ model ? formatDate(model, organization?.date_format) : 'Pick a date' }}
@@ -60,8 +55,7 @@ const organization = inject<ComputedRef<Organization>>('organization');
v-if="clearable && model"
class="ml-2 hover:bg-muted rounded p-1 transition-colors"
type="button"
@click="handleClear"
>
@click="handleClear">
<XIcon class="h-4 w-4" />
</button>
</Button>
@@ -72,8 +66,7 @@ const organization = inject<ComputedRef<Organization>>('organization');
:model-value="date"
:initial-focus="true"
@update:model-value="(date) => handleChange(date ? date.toString() : '')"
@blur="handleBlur"
/>
@blur="handleBlur" />
</PopoverContent>
</Popover>
</template>
</template>