From 1de7d92479350362c0a7ea22871631309dca2108 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sun, 6 Mar 2022 11:31:46 +0100 Subject: [PATCH] :rotating_light: Made eslint happy --- frontend/src/lib/play/join.svelte | 1 - frontend/src/routes/account/login.svelte | 16 +++++++++++++++- frontend/src/routes/admin.svelte | 4 ++-- frontend/src/routes/debug.svelte | 8 ++++---- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/play/join.svelte b/frontend/src/lib/play/join.svelte index dc3b94b..94f5ebb 100644 --- a/frontend/src/lib/play/join.svelte +++ b/frontend/src/lib/play/join.svelte @@ -2,7 +2,6 @@ import { socket } from '$lib/socket'; import { onDestroy, onMount } from 'svelte'; import { browser } from '$app/env'; - import tippy from 'sveltejs-tippy'; export let game_pin: string; diff --git a/frontend/src/routes/account/login.svelte b/frontend/src/routes/account/login.svelte index 10a72d2..4fcb75b 100644 --- a/frontend/src/routes/account/login.svelte +++ b/frontend/src/routes/account/login.svelte @@ -138,7 +138,21 @@ disabled={!inputValid} type="submit" > - {#if isSubmitting}{:else} + {#if isSubmitting} + + + + + {:else} Login {/if} diff --git a/frontend/src/routes/admin.svelte b/frontend/src/routes/admin.svelte index 56e1f7f..792771c 100644 --- a/frontend/src/routes/admin.svelte +++ b/frontend/src/routes/admin.svelte @@ -40,7 +40,7 @@ let errorMessage = ''; let game_started = false; let quiz_data: QuizData; - let question_number: string = '0'; + //let question_number = '0'; let question_results = null; let shown_question_now: number; @@ -64,7 +64,7 @@ socket.on('player_joined', (data) => { players = [...players, data]; }); - socket.on('already_registered_as_admin', (data) => { + socket.on('already_registered_as_admin', () => { errorMessage = 'There is already an admin registered for this game.'; }); let timer_res: string; diff --git a/frontend/src/routes/debug.svelte b/frontend/src/routes/debug.svelte index 99bc0a4..41d727f 100644 --- a/frontend/src/routes/debug.svelte +++ b/frontend/src/routes/debug.svelte @@ -20,9 +20,9 @@ let unique = {}; - function restart() { - unique = {}; // every {} is unique, {} === {} evaluates to false - } + // function restart() { + // unique = {}; // every {} is unique, {} === {} evaluates to false + // } const connect = () => { socket.emit('join_game', { game_pin: gameId, username: username }); @@ -49,7 +49,7 @@ console.log(data, 'message'); }); - socket.on('start_game', (data) => { + socket.on('start_game', () => { gameMeta.started = true; });