2021-10-14 11:22:47 +02:00
|
|
|
// Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
|
|
|
import { setupI18n, ModuleName } from "../lib/i18n";
|
|
|
|
import { checkNightMode } from "../lib/nightmode";
|
|
|
|
|
|
|
|
import CardInfo from "./CardInfo.svelte";
|
|
|
|
|
2021-10-17 20:29:32 +02:00
|
|
|
export async function cardInfo(target: HTMLDivElement): Promise<CardInfo> {
|
2021-10-14 11:22:47 +02:00
|
|
|
checkNightMode();
|
2021-10-17 20:29:32 +02:00
|
|
|
await setupI18n({
|
|
|
|
modules: [ModuleName.CARD_STATS, ModuleName.SCHEDULING, ModuleName.STATISTICS],
|
2021-10-16 23:32:00 +02:00
|
|
|
});
|
2021-10-17 20:29:32 +02:00
|
|
|
return new CardInfo({ target });
|
2021-10-16 23:32:00 +02:00
|
|
|
}
|