76bdfb3899
* Load fields_web from fields.py if appropriate flag is set * Add FieldsPage as entry for new fields view * Pass mypy * Fix pylint * Fix fields_web in Qt5 (dae) May not be related to the CI error, but required for compatibility with Qt5.
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
import "./fields-base.css";
|
|
|
|
import { ModuleName, setupI18n } from "../lib/i18n";
|
|
import { checkNightMode } from "../lib/nightmode";
|
|
import FieldsPage from "./FieldsPage.svelte";
|
|
|
|
const i18n = setupI18n({
|
|
modules: [ModuleName.ACTIONS, ModuleName.CHANGE_NOTETYPE, ModuleName.KEYBOARD],
|
|
});
|
|
|
|
export async function setupFieldsPage(): Promise<FieldsPage> {
|
|
checkNightMode();
|
|
|
|
await i18n;
|
|
return new FieldsPage({
|
|
target: document.body,
|
|
});
|
|
}
|
|
|
|
setupFieldsPage();
|