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-05-27 15:50:49 +02:00
|
|
|
import Section from "components/Section.svelte";
|
|
|
|
import SectionItem from "components/SectionItem.svelte";
|
|
|
|
|
2021-04-17 16:01:53 +02:00
|
|
|
import DailyLimits from "./DailyLimits.svelte";
|
2021-05-24 10:25:17 +02:00
|
|
|
import DisplayOrder from "./DisplayOrder.svelte";
|
2021-04-12 06:18:30 +02:00
|
|
|
import NewOptions from "./NewOptions.svelte";
|
2021-04-26 15:34:33 +02:00
|
|
|
import AdvancedOptions from "./AdvancedOptions.svelte";
|
2021-05-24 10:25:17 +02:00
|
|
|
import BuryOptions from "./BuryOptions.svelte";
|
2021-05-15 12:09:50 +02:00
|
|
|
import LapseOptions from "./LapseOptions.svelte";
|
2021-04-12 06:18:30 +02:00
|
|
|
import GeneralOptions from "./GeneralOptions.svelte";
|
2021-04-24 02:14:54 +02:00
|
|
|
import Addons from "./Addons.svelte";
|
2021-04-25 10:40:02 +02:00
|
|
|
import type { DeckOptionsState } from "./lib";
|
2021-04-12 06:18:30 +02:00
|
|
|
|
2021-04-25 10:40:02 +02:00
|
|
|
export let state: DeckOptionsState;
|
2021-05-27 16:15:41 +02:00
|
|
|
export let options: Record<string, never>;
|
2021-04-12 06:18:30 +02:00
|
|
|
</script>
|
|
|
|
|
2021-05-27 15:50:49 +02:00
|
|
|
<Section api={options}>
|
|
|
|
<SectionItem>
|
|
|
|
<DailyLimits {state} />
|
|
|
|
</SectionItem>
|
|
|
|
|
|
|
|
<SectionItem>
|
|
|
|
<NewOptions {state} />
|
|
|
|
</SectionItem>
|
|
|
|
<SectionItem>
|
|
|
|
<LapseOptions {state} />
|
|
|
|
</SectionItem>
|
|
|
|
<SectionItem>
|
|
|
|
<BuryOptions {state} />
|
|
|
|
</SectionItem>
|
|
|
|
|
2021-05-26 01:21:33 +02:00
|
|
|
{#if state.v3Scheduler}
|
2021-05-27 15:50:49 +02:00
|
|
|
<SectionItem>
|
|
|
|
<DisplayOrder {state} />
|
|
|
|
</SectionItem>
|
2021-05-26 01:21:33 +02:00
|
|
|
{/if}
|
2021-05-27 15:50:49 +02:00
|
|
|
|
|
|
|
<SectionItem>
|
|
|
|
<GeneralOptions {state} />
|
|
|
|
</SectionItem>
|
|
|
|
<SectionItem>
|
|
|
|
<Addons {state} />
|
|
|
|
</SectionItem>
|
|
|
|
<SectionItem>
|
|
|
|
<AdvancedOptions {state} />
|
|
|
|
</SectionItem>
|
|
|
|
</Section>
|
2021-05-26 01:21:33 +02:00
|
|
|
|
2021-04-12 06:18:30 +02:00
|
|
|
<style lang="scss">
|
|
|
|
:global(h2) {
|
|
|
|
margin-top: 1em;
|
2021-05-19 09:20:01 +02:00
|
|
|
font-weight: bold;
|
2021-05-20 05:36:19 +02:00
|
|
|
// adding a border decreases the default font size,
|
|
|
|
// so increase it again
|
|
|
|
font-size: 2em;
|
|
|
|
border-bottom: 1px solid var(--medium-border);
|
|
|
|
margin-right: 16px;
|
|
|
|
margin-bottom: 0.5em;
|
2021-04-12 06:18:30 +02:00
|
|
|
}
|
2021-05-27 15:50:49 +02:00
|
|
|
/* .outer { */
|
|
|
|
/* // the right margin has an indent to allow for the undo */
|
|
|
|
/* // buttons; add the same indent on the left for balance */
|
|
|
|
/* padding-left: 16px; */
|
|
|
|
/* } */
|
2021-04-12 06:18:30 +02:00
|
|
|
</style>
|