diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index d4f6058c4..d96e12b18 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -3,7 +3,7 @@ {#if controller} - + {/if} {#if sourceData}
{#each graphs as graph} - + {/each}
{/if} diff --git a/ts/graphs/RangeBox.svelte b/ts/graphs/RangeBox.svelte index aff0620fd..a38807a98 100644 --- a/ts/graphs/RangeBox.svelte +++ b/ts/graphs/RangeBox.svelte @@ -1,5 +1,5 @@ -
@@ -101,7 +100,7 @@ bind:value={displayedSearch} on:keyup={searchKeyUp} on:focus={() => { - searchRange = SearchRange.Custom; + searchRange = SearchRange.Custom; }} placeholder={searchLabel} />
diff --git a/ts/graphs/bootstrap.ts b/ts/graphs/bootstrap.ts index 98bd84616..d27eb0448 100644 --- a/ts/graphs/bootstrap.ts +++ b/ts/graphs/bootstrap.ts @@ -1,13 +1,13 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -import type { SvelteComponent } from 'svelte/internal'; +import type { SvelteComponent } from "svelte/internal"; import { setupI18n } from "anki/i18n"; import GraphsPage from "./GraphsPage.svelte"; import { checkNightMode } from "anki/nightmode"; -export { default as RangeBox } from './RangeBox.svelte'; +export { default as RangeBox } from "./RangeBox.svelte"; export { default as IntervalsGraph } from "./IntervalsGraph.svelte"; export { default as EaseGraph } from "./EaseGraph.svelte"; @@ -23,11 +23,8 @@ export { RevlogRange } from "./graph-helpers"; export function graphs( target: HTMLDivElement, - graphs: SvelteComponent[], { - search = "deck:current", - days = 365, - controller = null, - } = {}, + graphs: SvelteComponent[], + { search = "deck:current", days = 365, controller = null } = {} ): void { const nightMode = checkNightMode(); diff --git a/ts/graphs/graphs.html b/ts/graphs/graphs.html index 49027af7b..bf8a9bdf9 100644 --- a/ts/graphs/graphs.html +++ b/ts/graphs/graphs.html @@ -12,7 +12,8 @@