mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Move 'ignore reviews before' to advanced (#3381)
* moved ignore setting to advanced * Update CONTRIBUTORS * Match width of other text inputs (dae) The width was inconsistent before as well, but moving it next to text inputs made it more obvious.
This commit is contained in:
parent
7a0e51afc0
commit
3661333185
5 changed files with 23 additions and 14 deletions
|
@ -189,6 +189,7 @@ Dillon Baldwin <https://github.com/DillBal>
|
||||||
Voczi <https://github.com/voczi>
|
Voczi <https://github.com/voczi>
|
||||||
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
|
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
|
||||||
Themis Demetriades <themis100@outlook.com>
|
Themis Demetriades <themis100@outlook.com>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
The text of the 3 clause BSD license follows:
|
The text of the 3 clause BSD license follows:
|
||||||
|
|
|
@ -19,6 +19,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import type { DeckOptionsState } from "./lib";
|
import type { DeckOptionsState } from "./lib";
|
||||||
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
||||||
import SpinBoxRow from "./SpinBoxRow.svelte";
|
import SpinBoxRow from "./SpinBoxRow.svelte";
|
||||||
|
import DateInput from "./DateInput.svelte";
|
||||||
|
|
||||||
export let state: DeckOptionsState;
|
export let state: DeckOptionsState;
|
||||||
export let api: Record<string, never>;
|
export let api: Record<string, never>;
|
||||||
|
@ -39,6 +40,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
help: tr.deckConfigHistoricalRetentionTooltip(),
|
help: tr.deckConfigHistoricalRetentionTooltip(),
|
||||||
sched: HelpItemScheduler.FSRS,
|
sched: HelpItemScheduler.FSRS,
|
||||||
},
|
},
|
||||||
|
ignoreRevlogsBeforeMs: {
|
||||||
|
title: tr.deckConfigIgnoreBefore(),
|
||||||
|
help: tr.deckConfigIgnoreBeforeTooltip2(),
|
||||||
|
sched: HelpItemScheduler.FSRS,
|
||||||
|
},
|
||||||
startingEase: {
|
startingEase: {
|
||||||
title: tr.schedulingStartingEase(),
|
title: tr.schedulingStartingEase(),
|
||||||
help: tr.deckConfigStartingEaseTooltip(),
|
help: tr.deckConfigStartingEaseTooltip(),
|
||||||
|
@ -216,6 +222,19 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
{tr.deckConfigHistoricalRetention()}
|
{tr.deckConfigHistoricalRetention()}
|
||||||
</SettingTitle>
|
</SettingTitle>
|
||||||
</SpinBoxFloatRow>
|
</SpinBoxFloatRow>
|
||||||
|
|
||||||
|
<Item>
|
||||||
|
<DateInput bind:date={$config.ignoreRevlogsBeforeDate}>
|
||||||
|
<SettingTitle
|
||||||
|
on:click={() =>
|
||||||
|
openHelpModal(
|
||||||
|
Object.keys(settings).indexOf("ignoreRevlogsBeforeMs"),
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{tr.deckConfigIgnoreBefore()}
|
||||||
|
</SettingTitle>
|
||||||
|
</DateInput>
|
||||||
|
</Item>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<Item>
|
<Item>
|
||||||
|
|
|
@ -13,11 +13,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ConfigInput>
|
<ConfigInput>
|
||||||
<Row --cols={2}>
|
<Row --cols={13}>
|
||||||
<Col>
|
<Col --col-size={7} breakpoint="xs">
|
||||||
<slot />
|
<slot />
|
||||||
</Col>
|
</Col>
|
||||||
<Col>
|
<Col --col-size={6} breakpoint="xs">
|
||||||
<input bind:value={date} type="date" />
|
<input bind:value={date} type="date" />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -25,7 +25,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import SettingTitle from "$lib/components/SettingTitle.svelte";
|
import SettingTitle from "$lib/components/SettingTitle.svelte";
|
||||||
import SwitchRow from "$lib/components/SwitchRow.svelte";
|
import SwitchRow from "$lib/components/SwitchRow.svelte";
|
||||||
|
|
||||||
import DateInput from "./DateInput.svelte";
|
|
||||||
import GlobalLabel from "./GlobalLabel.svelte";
|
import GlobalLabel from "./GlobalLabel.svelte";
|
||||||
import type { DeckOptionsState } from "./lib";
|
import type { DeckOptionsState } from "./lib";
|
||||||
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
||||||
|
@ -374,11 +373,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
placeholder={defaultWeightSearch}
|
placeholder={defaultWeightSearch}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DateInput bind:date={$config.ignoreRevlogsBeforeDate}>
|
|
||||||
<SettingTitle on:click={() => openHelpModal("ignoreBefore")}>
|
|
||||||
{tr.deckConfigIgnoreBefore()}
|
|
||||||
</SettingTitle>
|
|
||||||
</DateInput>
|
|
||||||
<button
|
<button
|
||||||
class="btn {computingWeights ? 'btn-warning' : 'btn-primary'}"
|
class="btn {computingWeights ? 'btn-warning' : 'btn-primary'}"
|
||||||
disabled={!computingWeights && computing}
|
disabled={!computingWeights && computing}
|
||||||
|
|
|
@ -45,11 +45,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
tr.deckConfigComputeOptimalWeightsTooltip2(),
|
tr.deckConfigComputeOptimalWeightsTooltip2(),
|
||||||
sched: HelpItemScheduler.FSRS,
|
sched: HelpItemScheduler.FSRS,
|
||||||
},
|
},
|
||||||
ignoreRevlogsBeforeMs: {
|
|
||||||
title: tr.deckConfigIgnoreBefore(),
|
|
||||||
help: tr.deckConfigIgnoreBeforeTooltip2(),
|
|
||||||
sched: HelpItemScheduler.FSRS,
|
|
||||||
},
|
|
||||||
rescheduleCardsOnChange: {
|
rescheduleCardsOnChange: {
|
||||||
title: tr.deckConfigRescheduleCardsOnChange(),
|
title: tr.deckConfigRescheduleCardsOnChange(),
|
||||||
help: tr.deckConfigRescheduleCardsOnChangeTooltip(),
|
help: tr.deckConfigRescheduleCardsOnChangeTooltip(),
|
||||||
|
|
Loading…
Reference in a new issue