mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Feat/90% desired retention warning * Update ftl/core/deck-config.ftl * show on newly enabled * Show warning on focus * Never hide warning * Display relative change * Add: Separate warning for too long and short * Revert unchanged text changes * interval -> workload * Remove dead code * fsrs-rs/@L-M-Sherlock's workload calculation * Added: delay * CONSTANT_CASE * Fix: optimized state * Removed "Processing" * Remove dead code * 1 digit precision * bump fsrs-rs * typo * Apply suggestions from code review Co-authored-by: Damien Elmes <dae@users.noreply.github.com> * Improve rounding * improve comment * rounding <1% * decrease rounding precision * bump ts-fsrs * use actual cost values * ./check * typo * include relearning * change factor wording * simplify sql * ./check * Apply suggestions from code review Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com> * Fix: missing search_cids * @dae's style patch * Fix: Doesn't update on arrow keys change * force two lines * center two lines --------- Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
31 lines
1,016 B
Svelte
31 lines
1,016 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import Col from "$lib/components/Col.svelte";
|
|
import ConfigInput from "$lib/components/ConfigInput.svelte";
|
|
import RevertButton from "$lib/components/RevertButton.svelte";
|
|
import Row from "$lib/components/Row.svelte";
|
|
import SpinBox from "$lib/components/SpinBox.svelte";
|
|
|
|
export let value: number;
|
|
export let defaultValue: number;
|
|
export let min = 0;
|
|
export let max = 9999;
|
|
export let step = 0.01;
|
|
export let percentage = false;
|
|
export let focused = false;
|
|
</script>
|
|
|
|
<Row --cols={13}>
|
|
<Col --col-size={7} breakpoint="xs">
|
|
<slot />
|
|
</Col>
|
|
<Col --col-size={6} breakpoint="xs">
|
|
<ConfigInput>
|
|
<SpinBox bind:value {min} {max} {step} {percentage} bind:focused />
|
|
<RevertButton slot="revert" bind:value {defaultValue} />
|
|
</ConfigInput>
|
|
</Col>
|
|
</Row>
|