mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 19:22:14 +01:00
Enable npm workspaces and update dependencies
This commit is contained in:
@@ -125,7 +125,7 @@ const gridTemplate = computed(() => {
|
||||
:create-client
|
||||
:currency="getOrganizationCurrencyString()"
|
||||
:clients="clients"
|
||||
:enable-estimated-time="isAllowedToPerformPremiumAction"></ProjectCreateModal>
|
||||
:enable-estimated-time="isAllowedToPerformPremiumAction()"></ProjectCreateModal>
|
||||
<div class="flow-root max-w-[100vw] overflow-x-auto">
|
||||
<div class="inline-block min-w-full align-middle">
|
||||
<div data-testid="project_table" class="grid min-w-full" :style="gridTemplate">
|
||||
|
||||
@@ -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