2022-01-12 05:51:43 +01:00
|
|
|
// Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
import { globalExport } from "../lib/globals";
|
2022-01-16 06:05:35 +01:00
|
|
|
import { setupI18n } from "../lib/i18n";
|
2022-02-03 05:52:11 +01:00
|
|
|
import { uiResolve } from "../lib/ui";
|
2022-02-04 09:36:34 +01:00
|
|
|
import { editorModules } from "./base";
|
|
|
|
import ReviewerEditor from "./ReviewerEditor.svelte";
|
2022-01-12 05:51:43 +01:00
|
|
|
|
|
|
|
async function setupReviewerEditor(): Promise<void> {
|
2022-01-16 06:05:35 +01:00
|
|
|
await setupI18n({ modules: editorModules });
|
2022-01-12 05:51:43 +01:00
|
|
|
|
|
|
|
new ReviewerEditor({
|
|
|
|
target: document.body,
|
|
|
|
props: { uiResolve },
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
setupReviewerEditor();
|
|
|
|
|
2022-01-16 06:05:35 +01:00
|
|
|
import * as base from "./base";
|
2022-02-04 09:36:34 +01:00
|
|
|
|
2022-02-03 05:52:11 +01:00
|
|
|
globalExport(base);
|