2021-04-12 06:18:30 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
|
|
|
import * as tr from "anki/i18n";
|
|
|
|
import SpinBox from "./SpinBox.svelte";
|
|
|
|
import SpinBoxFloat from "./SpinBoxFloat.svelte";
|
|
|
|
import CheckBox from "./CheckBox.svelte";
|
2021-04-16 15:29:21 +02:00
|
|
|
import type { DeckConfigState } from "./lib";
|
2021-04-12 06:18:30 +02:00
|
|
|
|
2021-04-16 15:29:21 +02:00
|
|
|
export let state: DeckConfigState;
|
|
|
|
let config = state.currentConfig;
|
|
|
|
let defaults = state.defaults;
|
2021-04-12 06:18:30 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h2>Reviews</h2>
|
|
|
|
|
|
|
|
<SpinBoxFloat
|
|
|
|
label={tr.schedulingEasyBonus()}
|
|
|
|
subLabel="Extra multiplier applied when answering Easy on a review card."
|
|
|
|
min={1}
|
|
|
|
max={3}
|
|
|
|
defaultValue={defaults.easyMultiplier}
|
2021-04-16 15:29:21 +02:00
|
|
|
value={$config.easyMultiplier}
|
|
|
|
on:changed={(evt) => ($config.easyMultiplier = evt.detail.value)} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<SpinBoxFloat
|
|
|
|
label={tr.schedulingIntervalModifier()}
|
|
|
|
subLabel="Multiplier applied to all reviews."
|
|
|
|
min={0.5}
|
|
|
|
max={2}
|
|
|
|
defaultValue={defaults.intervalMultiplier}
|
2021-04-16 15:29:21 +02:00
|
|
|
value={$config.intervalMultiplier}
|
|
|
|
on:changed={(evt) => ($config.intervalMultiplier = evt.detail.value)} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<SpinBox
|
|
|
|
label={tr.schedulingMaximumInterval()}
|
|
|
|
subLabel="The longest number of days a review card will wait."
|
|
|
|
min={1}
|
|
|
|
max={365 * 100}
|
|
|
|
defaultValue={defaults.maximumReviewInterval}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.maximumReviewInterval} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<SpinBoxFloat
|
|
|
|
label={tr.schedulingHardInterval()}
|
|
|
|
subLabel="Multiplier applied to review interval when Hard is pressed."
|
|
|
|
min={0.5}
|
|
|
|
max={1.3}
|
|
|
|
defaultValue={defaults.hardMultiplier}
|
2021-04-16 15:29:21 +02:00
|
|
|
value={$config.hardMultiplier}
|
|
|
|
on:changed={(evt) => ($config.hardMultiplier = evt.detail.value)} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
label="Bury Reviews"
|
|
|
|
subLabel={tr.schedulingBuryRelatedReviewsUntilTheNext()}
|
|
|
|
defaultValue={defaults.buryReviews}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.buryReviews} />
|
2021-04-12 06:18:30 +02:00
|
|
|
</div>
|