anki/ts/graphs/bootstrap.ts

16 lines
478 B
TypeScript
Raw Normal View History

2020-06-27 11:24:49 +02:00
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { setupI18n } from "anki/i18n";
import GraphsPage from "./GraphsPage.svelte";
import { checkNightMode } from "anki/nightmode";
2020-06-27 11:24:49 +02:00
export function graphs(target: HTMLDivElement): void {
2020-06-27 11:24:49 +02:00
setupI18n().then((i18n) => {
new GraphsPage({
target,
props: { i18n, nightMode: checkNightMode() },
2020-06-27 11:24:49 +02:00
});
});
}