mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
Enable npm workspaces and update dependencies
This commit is contained in:
@@ -37,7 +37,7 @@ onMounted(() => {
|
||||
const currentUrl = window.location.href;
|
||||
// check if # exists exactly once in the URL
|
||||
if (currentUrl.split('#').length === 2) {
|
||||
sharedSecret.value = currentUrl.split('#')[1];
|
||||
sharedSecret.value = currentUrl.split('#')[1] ?? null;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -124,9 +124,10 @@ const groupedPieChartData = computed(() => {
|
||||
if (entry.description === null) {
|
||||
return {
|
||||
value: entry.seconds,
|
||||
name: emptyPlaceholder[
|
||||
aggregatedTableTimeEntries.value?.grouped_type ?? 'project'
|
||||
],
|
||||
name:
|
||||
emptyPlaceholder[
|
||||
aggregatedTableTimeEntries.value?.grouped_type ?? 'project'
|
||||
] ?? '',
|
||||
color: '#CCCCCC',
|
||||
};
|
||||
}
|
||||
@@ -146,14 +147,17 @@ const tableData = computed(() => {
|
||||
cost: entry.cost,
|
||||
description:
|
||||
entry.description ??
|
||||
emptyPlaceholder[aggregatedTableTimeEntries.value?.grouped_type ?? 'project'],
|
||||
emptyPlaceholder[aggregatedTableTimeEntries.value?.grouped_type ?? 'project'] ??
|
||||
'',
|
||||
grouped_data:
|
||||
entry.grouped_data?.map((el) => {
|
||||
return {
|
||||
seconds: el.seconds,
|
||||
cost: el.cost,
|
||||
description:
|
||||
el.description ?? emptyPlaceholder[entry.grouped_type ?? 'project'],
|
||||
el.description ??
|
||||
emptyPlaceholder[entry.grouped_type ?? 'project'] ??
|
||||
'',
|
||||
};
|
||||
}) ?? [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user