feat: settings wip

This commit is contained in:
2023-07-24 22:58:10 +02:00
parent e64082d578
commit 2130b6c7b9
10 changed files with 338 additions and 164 deletions

View File

@@ -7,7 +7,6 @@
import type {Chord} from "$lib/serial/chord"
import tippy from "tippy.js"
import {calculateChordCoverage} from "$lib/chords/coverage"
import {SETTING_IDS} from "$lib/serial/settings"
$: searchIndex = $chords?.length > 0 ? buildIndex($chords) : undefined
@@ -45,11 +44,6 @@
{/if}
<button class="icon" on:click={sort}>sort</button>
<button class="icon">filter_list</button>
{#if $serialPort}
{#await $serialPort.getSetting(SETTING_IDS.enableChording) then enableChording}
<label><input type="checkbox" checked={enableChording !== 0} /> Enable Chording</label>
{/await}
{/if}
<section>
<table>