Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(core): wrong imports to src
Elian Doran8cdfc108ba9b
diff --git a/packages/trilium-core/src/becca/becca-interface.ts b/packages/trilium-core/src/becca/becca-interface.tsindex dd4092fb50..0c2c3690d7 100644--- a/packages/trilium-core/src/becca/becca-interface.ts+++ b/packages/trilium-core/src/becca/becca-interface.ts@@ -10,8 +10,8 @@ import type { AttachmentRow, BlobRow, RevisionRow } from "@triliumnext/commons";import BBlob from "./entities/bblob.js";import BRecentNote from "./entities/brecent_note.js";import type AbstractBeccaEntity from "./entities/abstract_becca_entity.js";-import { getSql } from "src/services/sql/index.js";-import NoteSet from "src/services/search/note_set.js";+import { getSql } from "../services/sql/index.js";+import NoteSet from "../services/search/note_set.js";/*** Becca is a backend cache of all notes, branches, and attributes.diff --git a/packages/trilium-core/src/becca/becca_loader.ts b/packages/trilium-core/src/becca/becca_loader.tsindex e2cd1804c1..5ee7e252b2 100644--- a/packages/trilium-core/src/becca/becca_loader.ts+++ b/packages/trilium-core/src/becca/becca_loader.ts@@ -12,8 +12,8 @@ import BBranch from "./entities/bbranch.js";import BEtapiToken from "./entities/betapi_token.js";import BNote from "./entities/bnote.js";import BOption from "./entities/boption.js";-import { getSql } from "src/services/sql/index.js";-import { getContext } from "src/services/context.js";+import { getSql } from "../services/sql";+import { getContext } from "../services/context.js";export const beccaLoaded = new Promise<void>(async (res, rej) => {// We have to import async since options init requires keyboard actions which require translations.diff --git a/packages/trilium-core/src/becca/becca_service.ts b/packages/trilium-core/src/becca/becca_service.tsindex dcd67c7095..c7b5731e21 100644--- a/packages/trilium-core/src/becca/becca_service.ts+++ b/packages/trilium-core/src/becca/becca_service.ts@@ -2,7 +2,7 @@import becca from "./becca.js";import { getLog } from "../services/log.js";-import { getHoistedNoteId } from "src/services/context.js";+import { getHoistedNoteId } from "../services/context.js";function isNotePathArchived(notePath: string[]) {const noteId = notePath[notePath.length - 1];diff --git a/packages/trilium-core/src/becca/entities/abstract_becca_entity.ts b/packages/trilium-core/src/becca/entities/abstract_becca_entity.tsindex 74f9442484..dd84718e8f 100644--- a/packages/trilium-core/src/becca/entities/abstract_becca_entity.ts+++ b/packages/trilium-core/src/becca/entities/abstract_becca_entity.ts@@ -8,9 +8,9 @@ import { getLog } from "../../services/log.js";import protectedSessionService from "../../services/protected_session.js";import becca from "../becca.js";import type { ConstructorData,default as Becca } from "../becca-interface.js";-import { getSql } from "src/services/sql";-import { concat2, encodeUtf8, unwrapStringOrBuffer, wrapStringOrBuffer } from "src/services/utils/binary";-import { hash, hashedBlobId, newEntityId, randomString } from "src/services/utils";+import { getSql } from "../../services/sql";+import { concat2, encodeUtf8, unwrapStringOrBuffer, wrapStringOrBuffer } from "../../services/utils/binary";+import { hash, hashedBlobId, newEntityId, randomString } from "../../services/utils";interface ContentOpts {forceSave?: boolean;diff --git a/packages/trilium-core/src/becca/entities/battachment.ts b/packages/trilium-core/src/becca/entities/battachment.tsindex bd6a1ff45f..bdc28d15de 100644--- a/packages/trilium-core/src/becca/entities/battachment.ts+++ b/packages/trilium-core/src/becca/entities/battachment.ts@@ -9,8 +9,8 @@ import protectedSessionService from "../../services/protected_session.js";import AbstractBeccaEntity from "./abstract_becca_entity.js";import type BBranch from "./bbranch.js";import type BNote from "./bnote.js";-import { getSql } from "src/services/sql/index.js";-import { isStringNote, replaceAll } from "src/services/utils";+import { getSql } from "../../services/sql/index.js";+import { isStringNote, replaceAll } from "../../services/utils";const attachmentRoleToNoteTypeMapping = {image: "image",diff --git a/packages/trilium-core/src/becca/entities/battribute.ts b/packages/trilium-core/src/becca/entities/battribute.tsindex 2807995802..9156017793 100644--- a/packages/trilium-core/src/becca/entities/battribute.ts+++ b/packages/trilium-core/src/becca/entities/battribute.ts@@ -5,7 +5,7 @@ import AbstractBeccaEntity from "./abstract_becca_entity.js";import dateUtils from "../../services/utils/date";import promotedAttributeDefinitionParser from "../../services/promoted_attribute_definition_parser.js";import type { AttributeRow, AttributeType } from "@triliumnext/commons";-import { sanitizeAttributeName } from "src/services/utils/index.js";+import { sanitizeAttributeName } from "../../services/utils/index.js";interface SavingOpts {skipValidation?: boolean;diff --git a/packages/trilium-core/src/becca/entities/bbranch.ts b/packages/trilium-core/src/becca/entities/bbranch.tsindex b7603b2702..1468e04599 100644--- a/packages/trilium-core/src/becca/entities/bbranch.ts+++ b/packages/trilium-core/src/becca/entities/bbranch.ts@@ -8,8 +8,8 @@ import { getLog } from "../../services/log.js";import TaskContext from "../../services/task_context.js";import AbstractBeccaEntity from "./abstract_becca_entity.js";import BNote from "./bnote.js";-import { getHoistedNoteId } from "src/services/context";-import { randomString } from "src/services/utils";+import { getHoistedNoteId } from "../../services/context";+import { randomString } from "../../services/utils";/*** Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiplediff --git a/packages/trilium-core/src/becca/entities/bnote.ts b/packages/trilium-core/src/becca/entities/bnote.tsindex 14402d7798..f573b0e0e1 100644--- a/packages/trilium-core/src/becca/entities/bnote.ts+++ b/packages/trilium-core/src/becca/entities/bnote.ts@@ -18,8 +18,8 @@ import BAttachment from "./battachment.js";import BAttribute from "./battribute.js";import type BBranch from "./bbranch.js";import BRevision from "./brevision.js";-import { getSql } from "src/services/sql/index.js";-import { isStringNote, normalize, randomString, replaceAll } from "src/services/utils";+import { getSql } from "../../services/sql/index.js";+import { isStringNote, normalize, randomString, replaceAll } from "../../services/utils";const LABEL = "label";const RELATION = "relation";diff --git a/packages/trilium-core/src/becca/entities/brevision.ts b/packages/trilium-core/src/becca/entities/brevision.tsindex 9a5f79740a..a3a9b4ce08 100644--- a/packages/trilium-core/src/becca/entities/brevision.ts+++ b/packages/trilium-core/src/becca/entities/brevision.ts@@ -7,8 +7,8 @@ import AbstractBeccaEntity from "./abstract_becca_entity.js";import BAttachment from "./battachment.js";import type { AttachmentRow, NoteType, RevisionPojo, RevisionRow } from "@triliumnext/commons";import eraseService from "../../services/erase.js";-import { getSql } from "src/services/sql/index.js";-import { isStringNote } from "src/services/utils/index.js";+import { getSql } from "../../services/sql/index.js";+import { isStringNote } from "../../services/utils/index.js";interface ContentOpts {/** will also save this BRevision entity */