Phase d cleanup

This commit is contained in:
Zerebos
2026-05-23 22:16:40 -04:00
parent 074147f64f
commit 0e93908bb2
29 changed files with 388 additions and 1413 deletions
+5 -2
View File
@@ -20,10 +20,13 @@
event.preventDefault()
event.stopPropagation()
const activeKey = listeningKey
if (!activeKey) return
const binding = eventToKeybind(event)
if (!binding) return
setBinding(listeningKey, binding)
setBinding(activeKey, binding)
listeningKey = null
}
@@ -52,7 +55,7 @@
<button class="settings-button" type="button" onclick={() => updateSettings({keybinds: {...DEFAULT_KEYBINDS}})}>Reset all</button>
</div>
{#each Object.keys(KEYBIND_LABELS) as key}
{#each Object.keys(KEYBIND_LABELS) as key (key)}
{@const bindKey = key as keyof Keybinds}
{@const isListening = listeningKey === bindKey}
{@const isDefault = settingsState.keybinds[bindKey] === DEFAULT_KEYBINDS[bindKey]}
+1 -1
View File
@@ -8,7 +8,7 @@
logoutTracker,
syncTracking,
} from '$lib/request-manager/tracking'
import type { Tracker } from '$lib/types'
import type { Tracker } from '$lib/types/index'
let oauthTrackerId = $state<number | null>(null)
let oauthCallback = $state('')