mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
Enable npm workspaces and update dependencies
This commit is contained in:
@@ -158,7 +158,7 @@ const option = computed(() => {
|
||||
if (dailyHoursTracked?.value) {
|
||||
return (
|
||||
formatDate(
|
||||
dailyHoursTracked?.value[dataIndex].date,
|
||||
dailyHoursTracked?.value[dataIndex]?.date ?? '',
|
||||
organization?.value?.date_format
|
||||
) +
|
||||
': ' +
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user