fix:#24 linted and formatted

This commit is contained in:
Elmar Kresse
2024-01-17 18:53:17 +01:00
parent f112c8c71c
commit c13cfc61fd
25 changed files with 4620 additions and 1890 deletions

View File

@ -46,14 +46,16 @@ const loadedModules: Ref<Module[]> = ref(new Array(10));
const loadingData = ref(true);
onMounted(() => {
fetchAllModules().then(
(data) =>
(loadedModules.value = data.map((module: Module) => {
return module;
})),
).finally(() => {
loadingData.value = false;
});
fetchAllModules()
.then(
(data) =>
(loadedModules.value = data.map((module: Module) => {
return module;
})),
)
.finally(() => {
loadingData.value = false;
});
});
const ModuleInformation = defineAsyncComponent(
@ -121,7 +123,7 @@ function unselectModule(event: DataTableRowUnselectEvent) {
@row-unselect="unselectModule"
>
<Column selection-mode="multiple">
<template #body v-if="loadingData">
<template v-if="loadingData" #body>
<Skeleton></Skeleton>
</template>
</Column>
@ -140,7 +142,7 @@ function unselectModule(event: DataTableRowUnselectEvent) {
@input="filterCallback()"
/>
</template>
<template #body v-if="loadingData">
<template v-if="loadingData" #body>
<Skeleton></Skeleton>
</template>
</Column>
@ -158,7 +160,7 @@ function unselectModule(event: DataTableRowUnselectEvent) {
@input="filterCallback()"
/>
</template>
<template #body v-if="loadingData">
<template v-if="loadingData" #body>
<Skeleton></Skeleton>
</template>
</Column>
@ -176,7 +178,7 @@ function unselectModule(event: DataTableRowUnselectEvent) {
@input="filterCallback()"
/>
</template>
<template #body v-if="loadingData">
<template v-if="loadingData" #body>
<Skeleton></Skeleton>
</template>
</Column>
@ -186,24 +188,26 @@ function unselectModule(event: DataTableRowUnselectEvent) {
:show-clear-button="false"
:show-filter-menu="false"
>
<template #body v-if="loadingData">
<template v-if="loadingData" #body>
<Skeleton></Skeleton>
</template>
</Column>
<Column :header="$t('additionalModules.info')">
<template #body="slotProps">
<Button
icon="pi pi-info"
severity="secondary"
rounded
outlined
:aria-label="$t('additionalModules.info-long')"
class="small-button"
@click.stop="showInfo(slotProps.data)"
></Button>
</template>
<template #body v-if="loadingData">
<Skeleton></Skeleton>
<div v-if="loadingData">
<Skeleton></Skeleton>
</div>
<div v-else>
<Button
icon="pi pi-info"
severity="secondary"
rounded
outlined
:aria-label="$t('additionalModules.info-long')"
class="small-button"
@click.stop="showInfo(slotProps.data)"
></Button>
</div>
</template>
</Column>
<template #footer>