fix lint errors
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import { onMount } from 'svelte';
|
||||
import { startPolling, stopPolling } from '$lib/stores/queue.svelte';
|
||||
|
||||
let { children } = $props();
|
||||
const { children } = $props();
|
||||
|
||||
const user = $derived(page.data?.user);
|
||||
const activeMatch = $derived(page.data?.activeMatch);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/state';
|
||||
import { queue, joinQueue, leaveQueue } from '$lib/stores/queue.svelte';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
const liveStates = ['LOBBY', 'ROLLING', 'PICKING', 'PLAYING'];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
let actionError = $state('');
|
||||
let actionSuccess = $state('');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
let activeTab = $state<'players' | 'teams' | 'scores'>('players');
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
let creating = $state(false);
|
||||
</script>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { invalidateAll } from '$app/navigation';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
const categories = ['NM', 'HD', 'HR', 'DT', 'FM', 'TB'];
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
let searching = $state(false);
|
||||
|
||||
// Inline per-category add state
|
||||
let inlineInputs = $state<Record<string, string>>({});
|
||||
let inlineSearching = $state<Record<string, boolean>>({});
|
||||
let inlineErrors = $state<Record<string, string>>({});
|
||||
const inlineInputs = $state<Record<string, string>>({});
|
||||
const inlineSearching = $state<Record<string, boolean>>({});
|
||||
const inlineErrors = $state<Record<string, string>>({});
|
||||
|
||||
// Drag-and-drop state
|
||||
let draggedSlot = $state<{ id: string; category: string; index: number } | null>(null);
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
// Rename state
|
||||
let editing = $state(false);
|
||||
let editName = $derived(data.pool.name);
|
||||
const editName = $derived(data.pool.name);
|
||||
|
||||
// Check if pool has any maps at all
|
||||
const hasAnySlots = $derived(data.pool.slots.length > 0);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { enhance } from '$app/forms';
|
||||
import { invalidateAll } from '$app/navigation';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
let showCreate = $state(false);
|
||||
let showInvite = $state(false);
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
import { invalidateAll } from '$app/navigation';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
let m = $derived(data.match);
|
||||
let lobbyStatus = $derived(data.lobbyStatus);
|
||||
let playerNames = $derived(data.playerNames);
|
||||
let p1 = $derived(m.participants[0]);
|
||||
let p2 = $derived(m.participants[1]);
|
||||
const m = $derived(data.match);
|
||||
const lobbyStatus = $derived(data.lobbyStatus);
|
||||
const playerNames = $derived(data.playerNames);
|
||||
const p1 = $derived(m.participants[0]);
|
||||
const p2 = $derived(m.participants[1]);
|
||||
|
||||
const config = $derived(m.config as { bestOf: number; teamSize: number; scoringType: string });
|
||||
const winsNeeded = $derived(Math.ceil(config.bestOf / 2));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
const roleBadge: Record<string, { label: string; color: string }> = {
|
||||
player: { label: 'Player', color: 'bg-surface-600 text-text-secondary' },
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { enhance } from '$app/forms';
|
||||
import { invalidateAll } from '$app/navigation';
|
||||
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
let creating = $state(false);
|
||||
let expandedTeam = $state<string | null>(null);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
let { data } = $props();
|
||||
const { data } = $props();
|
||||
|
||||
const t = $derived(data.team);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { page } from '$app/state';
|
||||
import { env } from '$env/dynamic/public';
|
||||
|
||||
let { children } = $props();
|
||||
const { children } = $props();
|
||||
|
||||
const umamiUrl = env.PUBLIC_UMAMI_URL;
|
||||
const umamiId = env.PUBLIC_UMAMI_WEBSITE_ID;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { enhance } from '$app/forms';
|
||||
import type { PageServerData } from './$types';
|
||||
|
||||
let { data }: { data: PageServerData } = $props();
|
||||
const { data }: { data: PageServerData } = $props();
|
||||
</script>
|
||||
|
||||
<h1>Hi, {data.user.name}!</h1>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { enhance } from '$app/forms';
|
||||
import type { ActionData } from './$types';
|
||||
|
||||
let { form }: { form: ActionData } = $props();
|
||||
const { form }: { form: ActionData } = $props();
|
||||
</script>
|
||||
|
||||
<h1>Login</h1>
|
||||
|
||||
Reference in New Issue
Block a user