fix:#15 linted format and typ fix

This commit is contained in:
masterelmar
2023-11-20 11:50:46 +01:00
parent e8e7c6149a
commit ab25df81c1
13 changed files with 219 additions and 137 deletions

View File

@@ -12,7 +12,7 @@ const { t } = useI18n({ useScope: "global" });
const toast = useToast();
const token: Ref<string> = ref("");
const modules: Ref<Module[]> = ref(moduleStore().modules);
const modules: Ref<Map<string, Module>> = ref(moduleStore().modules);
function extractToken(token: string): string {
const tokenRegex = /^[a-z0-9]{15}$/;
@@ -50,7 +50,7 @@ function loadCalendar(): void {
data.forEach((module) => {
moduleStore().addModule(module);
});
modules.value = data;
modules.value = moduleStore().modules;
});
router.push("/edit-additional-modules");
@@ -77,12 +77,20 @@ function loadCalendar(): void {
<div
class="flex align-items-center justify-content-center border-round m-2"
>
<InputText v-model="token" type="text" autofocus @keyup.enter="loadCalendar" />
<InputText
v-model="token"
type="text"
autofocus
@keyup.enter="loadCalendar"
/>
</div>
<div
class="flex align-items-center justify-content-center border-round m-2"
>
<Button :label="$t('editCalendarView.loadCalendar')" @click="loadCalendar" />
<Button
:label="$t('editCalendarView.loadCalendar')"
@click="loadCalendar"
/>
</div>
</div>
</template>