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">
|
2021-04-22 19:55:26 +02:00
|
|
|
import * as tr from "lib/i18n";
|
2021-04-12 06:18:30 +02:00
|
|
|
import SpinBox from "./SpinBox.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>General</h2>
|
|
|
|
|
|
|
|
<SpinBox
|
|
|
|
label={tr.schedulingIgnoreAnswerTimesLongerThan()}
|
|
|
|
subLabel="The maximum number of seconds to record for a single review."
|
|
|
|
min={30}
|
|
|
|
max={600}
|
|
|
|
defaultValue={defaults.capAnswerTimeToSecs}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.capAnswerTimeToSecs} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
subLabel={tr.schedulingShowAnswerTimer()}
|
|
|
|
defaultValue={defaults.showTimer}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.showTimer} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
subLabel="Don't play audio automatically"
|
|
|
|
defaultValue={defaults.disableAutoplay}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.disableAutoplay} />
|
2021-04-12 06:18:30 +02:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
subLabel={tr.schedulingAlwaysIncludeQuestionSideWhenReplaying()}
|
|
|
|
defaultValue={defaults.skipQuestionWhenReplayingAnswer}
|
2021-04-16 15:29:21 +02:00
|
|
|
bind:value={$config.skipQuestionWhenReplayingAnswer} />
|
2021-04-12 06:18:30 +02:00
|
|
|
</div>
|