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 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
|
|
|
|
label="Answer timer"
|
|
|
|
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
|
|
|
|
label="Autoplay"
|
|
|
|
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
|
|
|
|
label="Question Audio"
|
|
|
|
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>
|