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

@@ -29,7 +29,7 @@ const photoInput = ref<HTMLInputElement | null>(null);
const updateProfileInformation = () => {
if (photoInput.value && photoInput.value.files && photoInput.value.files?.length > 0) {
form.photo = photoInput.value?.files[0];
form.photo = photoInput.value?.files[0] ?? null;
}
form.post(route('user-profile-information.update'), {

View File

@@ -137,7 +137,7 @@ const showBillableRate = computed(() => {
<ProjectCreateModal
v-model:show="showCreateProjectModal"
:create-project
:enable-estimated-time="isAllowedToPerformPremiumAction"
:enable-estimated-time="isAllowedToPerformPremiumAction()"
:create-client
:currency="getOrganizationCurrencyString()"
:clients="clients"

View File

@@ -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'] ??
'',
};
}) ?? [],
};

View File

@@ -46,8 +46,8 @@ async function importData() {
addNotification('error', 'Please select the CSV or ZIP file that you want to import');
return;
}
const rawBase64String = await toBase64(files.value[0]);
const base64String = rawBase64String.split(';')[1].replace('base64,', '') as string;
const rawBase64String = await toBase64(files.value[0]!);
const base64String = rawBase64String.split(';')[1]!.replace('base64,', '') as string;
const organizationId = getCurrentOrganizationId();
if (organizationId !== null) {
const { handleApiRequestNotifications } = useNotificationsStore();