mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 11:17:01 +02:00
chore: fix various type errors
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { extractZip, importData, initializeDatabase, startElectron } from "./utils.js";
|
||||
import { initializeTranslations } from "@triliumnext/server/src/services/i18n.js";
|
||||
import debounce from "@triliumnext/client/src/services/debounce.js";
|
||||
import cls from "@triliumnext/server/src/services/cls.js";
|
||||
import fs from "fs/promises";
|
||||
import { join } from "path";
|
||||
import cls from "@triliumnext/server/src/services/cls.js";
|
||||
|
||||
import { extractZip, importData, startElectron } from "./utils.js";
|
||||
|
||||
// Paths are relative to apps/edit-docs/dist.
|
||||
const DEMO_ZIP_PATH = join(__dirname, "../../server/src/assets/db/demo.zip");
|
||||
@@ -15,8 +15,7 @@ async function main() {
|
||||
setTimeout(() => registerHandlers(), 10_000);
|
||||
});
|
||||
|
||||
await initializeTranslations();
|
||||
await initializeDatabase(true);
|
||||
// TODO: Initialize core.
|
||||
cls.init(async () => {
|
||||
await importData(DEMO_ZIP_DIR_PATH);
|
||||
setOptions();
|
||||
|
||||
@@ -121,8 +121,7 @@ async function main() {
|
||||
}, 10_000);
|
||||
});
|
||||
|
||||
await initializeTranslations();
|
||||
await initializeDatabase(true);
|
||||
// TODO: Initialize core.
|
||||
|
||||
// Wait for becca to be loaded before importing data
|
||||
const { becca_loader: beccaLoader } = await import("@triliumnext/core");
|
||||
|
||||
Reference in New Issue
Block a user