From 89b45107a0ede758f160ca808bc9e409793c5b75 Mon Sep 17 00:00:00 2001 From: jona799t Date: Thu, 7 Dec 2023 19:53:35 +0100 Subject: [PATCH] Fjernede ligegyldige console.logs --- src/lib/components/Calendars/Mobile.svelte | 1 - src/lib/js/LectioUtils.js | 1 - src/lib/js/localStore.js | 2 -- src/routes/+layout.svelte | 1 - src/routes/auth/+page.svelte | 4 +--- src/routes/beskeder/+page.svelte | 2 -- src/routes/dokumenter/+page.svelte | 1 - src/routes/forms/besvar/+page.svelte | 1 - src/routes/opgaver/+page.svelte | 5 +---- src/routes/tos/+page.svelte | 1 - .../v\303\246rkt\303\270jer/googlecalsync/+page.svelte" | 3 --- .../v\303\246rkt\303\270jer/ledigelokaler/+page.svelte" | 2 -- 12 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/lib/components/Calendars/Mobile.svelte b/src/lib/components/Calendars/Mobile.svelte index 2235073d..75723a53 100644 --- a/src/lib/components/Calendars/Mobile.svelte +++ b/src/lib/components/Calendars/Mobile.svelte @@ -34,7 +34,6 @@ function swiperEvents(swiper) { swiper.on('slideChangeTransitionEnd', () => { // eslint-disable-next-line prefer-destructuring - console.log(dates); viewDate = dates[swiper.realIndex][0]; }); } diff --git a/src/lib/js/LectioUtils.js b/src/lib/js/LectioUtils.js index b1361c25..411582ac 100644 --- a/src/lib/js/LectioUtils.js +++ b/src/lib/js/LectioUtils.js @@ -58,7 +58,6 @@ export function getHoldHue(hold) { * @returns {string} CSS farve i hsl format */ export function getModulColor(modul, useDifferentColors) { - console.log(modul.status); const alpha = 0.4; try { switch (modul.status) { diff --git a/src/lib/js/localStore.js b/src/lib/js/localStore.js index d3dce17b..2fb20790 100644 --- a/src/lib/js/localStore.js +++ b/src/lib/js/localStore.js @@ -15,8 +15,6 @@ export const localStore = key => { return { subscribe, set: value => { - console.log('set', key, 'to', value); - // save also to local storage as a string if (value) localStorage.setItem(key, toString(value)); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 6cda3f8b..22c5fcb3 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -18,7 +18,6 @@ import { version } from '$app/environment'; export let data = null; - console.log(data); if (data.lectioCookie && data.lectioCookie !== 'local') localStorage.setItem('lectio-cookie', data.lectioCookie); else if (data.lectioCookie !== 'local') localStorage.removeItem('lectio-cookie'); diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 3a60a6cb..f60c2134 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -11,7 +11,6 @@ export let data; - console.log(data); const { enhance, form, submitting, delayed, timeout } = superForm(data.form, { dataType: 'json', // eslint-disable-next-line no-shadow @@ -76,7 +75,6 @@ window.location.href = redirect ? redirect : '/forside'; } - console.log(await response.json()); } async function qrLogin(url) { @@ -272,7 +270,7 @@ {/key} {/if} -