mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Export under anki.components
This commit is contained in:
parent
581c3e2486
commit
2ed2a7baca
1 changed files with 12 additions and 10 deletions
|
@ -9,11 +9,6 @@ import { getDeckOptionsInfo, DeckOptionsState } from "./lib";
|
||||||
import { setupI18n, ModuleName } from "lib/i18n";
|
import { setupI18n, ModuleName } from "lib/i18n";
|
||||||
import { checkNightMode } from "lib/nightmode";
|
import { checkNightMode } from "lib/nightmode";
|
||||||
import DeckOptionsPage from "./DeckOptionsPage.svelte";
|
import DeckOptionsPage from "./DeckOptionsPage.svelte";
|
||||||
import SpinBox from "./SpinBox.svelte";
|
|
||||||
import SpinBoxFloat from "./SpinBoxFloat.svelte";
|
|
||||||
import EnumSelector from "./EnumSelector.svelte";
|
|
||||||
import CheckBox from "./CheckBox.svelte";
|
|
||||||
|
|
||||||
import { nightModeKey, touchDeviceKey, modalsKey } from "components/context-keys";
|
import { nightModeKey, touchDeviceKey, modalsKey } from "components/context-keys";
|
||||||
|
|
||||||
export async function deckOptions(
|
export async function deckOptions(
|
||||||
|
@ -49,9 +44,16 @@ export async function deckOptions(
|
||||||
} as any);
|
} as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const deckConfigComponents = {
|
import TitledContainer from "./TitledContainer.svelte";
|
||||||
SpinBox,
|
import SpinBoxRow from "./SpinBoxRow.svelte";
|
||||||
SpinBoxFloat,
|
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
||||||
EnumSelector,
|
import EnumSelectorRow from "./EnumSelectorRow.svelte";
|
||||||
CheckBox,
|
import SwitchRow from "./SwitchRow.svelte";
|
||||||
|
|
||||||
|
export const components = {
|
||||||
|
TitledContainer,
|
||||||
|
SpinBoxRow,
|
||||||
|
SpinBoxFloatRow,
|
||||||
|
EnumSelectorRow,
|
||||||
|
SwitchRow,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue