From 3814a4712de8d3c52aec2dbd337adb4db63fd3db Mon Sep 17 00:00:00 2001 From: masterElmar <18119527+masterElmar@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:13:27 +0100 Subject: [PATCH] fix:#79 lint and format --- frontend/src/api/loadCalendar.ts | 17 +- frontend/src/components/FaqPage.vue | 211 ++++++++++++------ frontend/src/components/ModuleInformation.vue | 37 ++- frontend/src/i18n/translations/de.json | 14 +- frontend/src/view/AdditionalModules.vue | 28 ++- frontend/src/view/EditCalendarView.vue | 13 +- frontend/src/view/ImprintPage.vue | 2 +- frontend/src/view/PrivacyPolicy.vue | 2 +- 8 files changed, 215 insertions(+), 109 deletions(-) diff --git a/frontend/src/api/loadCalendar.ts b/frontend/src/api/loadCalendar.ts index 0a665fe..d833c4d 100644 --- a/frontend/src/api/loadCalendar.ts +++ b/frontend/src/api/loadCalendar.ts @@ -6,12 +6,13 @@ export async function getCalender(token: string): Promise { method: "GET", }); - return await fetch(request) - .then((response) => { - if( response.ok){ - return response.json().then((calendarResponse: Calendar) => calendarResponse.modules) - } else { - return []; - } - }) + return await fetch(request).then((response) => { + if (response.ok) { + return response + .json() + .then((calendarResponse: Calendar) => calendarResponse.modules); + } else { + return []; + } + }); } diff --git a/frontend/src/components/FaqPage.vue b/frontend/src/components/FaqPage.vue index cdb8efa..9296436 100644 --- a/frontend/src/components/FaqPage.vue +++ b/frontend/src/components/FaqPage.vue @@ -1,141 +1,216 @@ - +