Skip to content

Commit

Permalink
Fjernede ligegyldige console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jona799t committed Dec 7, 2023
1 parent e6aefc2 commit 89b4510
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion src/lib/components/Calendars/Mobile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
function swiperEvents(swiper) {
swiper.on('slideChangeTransitionEnd', () => {
// eslint-disable-next-line prefer-destructuring
console.log(dates);
viewDate = dates[swiper.realIndex][0];
});
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/js/LectioUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/js/localStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
1 change: 0 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 1 addition & 3 deletions src/routes/auth/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -76,7 +75,6 @@
window.location.href = redirect ? redirect : '/forside';
}
console.log(await response.json());
}
async function qrLogin(url) {
Expand Down Expand Up @@ -272,7 +270,7 @@
</div>
{/key}
{/if}
<button tabindex="0" type="submit" class="btn-primary btn group" on:click={console.log('auth')}>
<button tabindex="0" type="submit" class="btn-primary btn group">
<p>Log ind</p>
<label class="swap {$delayed ? 'swap-active' : ''} " for="login">
<svg
Expand Down
2 changes: 0 additions & 2 deletions src/routes/beskeder/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
// only include the first 10 messages
$beskeder = $beskeder.slice(0, 50);
ready = true;
console.log(_beskeder);
});
function showMore() {
Expand Down
1 change: 0 additions & 1 deletion src/routes/dokumenter/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
function calcExploreArr(data, id) {
selectedFolderId = id;
console.log('selectedFolderId', id);
const dataBefore = data.indhold;
const dataAfter = [];
dataBefore.forEach(item => {
Expand Down
1 change: 0 additions & 1 deletion src/routes/forms/besvar/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
get(`/spoergeskema?id=${spørgeskemaid}`).then(data => {
spørgeskema = data;
console.log(spørgeskema);
({ anonym } = spørgeskema);
});
Expand Down
5 changes: 1 addition & 4 deletions src/routes/opgaver/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
const _date = opgave.frist.replace('-', '/').split(' ');
const __date = _date[0].split('/');
opgave.date = new Date(`${__date[1]}/${__date[0]}/${__date[2]} ${_date[1]}`);
if ((opgave.status === 'Afleveret' && opgave.afventer === 'Elev') || (opgave.status === 'Afsluttet' && opgave.afventer === '')) {
feedbackOpgaver.push(opgave);
console.log('pushed', opgave);
}
if ((opgave.status === 'Afleveret' && opgave.afventer === 'Elev') || (opgave.status === 'Afsluttet' && opgave.afventer === '')) feedbackOpgaver.push(opgave);
if (opgave.status === 'Afleveret') {
opgave.class = 'btn btn-success';
afleveredeOpgaver.push(opgave);
Expand Down
1 change: 0 additions & 1 deletion src/routes/tos/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script>
export let data;
console.log(data);
</script>

<h1 class="heading">Servicevilkår & Privatlivspolitik</h1>
Expand Down
3 changes: 0 additions & 3 deletions src/routes/værktøjer/googlecalsync/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
function handleAuthClick() {
document.getElementById('authorize_button').classList.add('btn-disabled');
tokenClient.callback = response => {
console.log(response);
if (response.error !== undefined) {
document.getElementById('authorize_button').classList.remove('btn-disabled');
throw response;
Expand Down Expand Up @@ -191,8 +190,6 @@
function formatModuler(moduler) {
let filteredModuler = moduler;
console.log(filteredModuler);
// filter out moduler that have a status of 'aflyst'
filteredModuler = filteredModuler.filter(modul => modul.status !== 'aflyst');
Expand Down
2 changes: 0 additions & 2 deletions src/routes/værktøjer/ledigelokaler/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
const now = new Date(Date.now());
let time = `${(`0${ now.getHours()}`).slice(-2)}:${(`0${ now.getMinutes()}`).slice(-2)}`;
get('/lokale_dagsorden').then(data => {
console.log(time);
$lokaleDagsorden = data;
// eslint-disable-next-line no-use-before-define
sortLokaler(time);
Expand All @@ -32,7 +31,6 @@
time.setHours(_time.split(':')[0], _time.split(':')[1]);
$lokaleDagsorden.forEach(lokale => {
ledigeLokaler.push(lokale);
console.log(lokale);
lokale.moduler.forEach(modul => {
const [modulStart, modulEnd] = standardizeTimeRange(modul);
if (time >= modulStart && time <= modulEnd) {
Expand Down

0 comments on commit 89b4510

Please sign in to comment.