Enable npm workspaces and update dependencies

This commit is contained in:
Gregor Vostrak
2026-02-02 03:19:22 +01:00
parent 72662727c5
commit 1597b5490a
31 changed files with 2502 additions and 7953 deletions

View File

@@ -158,7 +158,7 @@ const option = computed(() => {
if (dailyHoursTracked?.value) {
return (
formatDate(
dailyHoursTracked?.value[dataIndex].date,
dailyHoursTracked?.value[dataIndex]?.date ?? '',
organization?.value?.date_format
) +
': ' +

View File

@@ -23,9 +23,9 @@ const { data: last7Days, isLoading } = useQuery({
},
enabled: computed(() => !!organizationId.value),
placeholderData: Array.from({ length: 7 }, (_, i) => ({
date: new Date(Date.now() - i * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
date: new Date(Date.now() - i * 24 * 60 * 60 * 1000).toISOString().split('T')[0]!,
duration: 0,
history: Array(8).fill(0),
history: Array(8).fill(0) as number[],
})),
});
</script>

View File

@@ -42,10 +42,10 @@ const weekdays = computed(() => {
};
if (dayMapping[getWeekStart()]) {
const customOrder = [];
const startIndex = daysOrder.indexOf(dayMapping[getWeekStart()]);
const startIndex = daysOrder.indexOf(dayMapping[getWeekStart()]!);
for (let i = startIndex; i < 7 + startIndex; i++) {
customOrder.push(daysOrder[i % daysOrder.length]);
customOrder.push(daysOrder[i % daysOrder.length]!);
}
return customOrder;