fix(core): wrong imports to src
Some checks are pending
Checks / main (push) Waiting to run

This commit is contained in:
Elian Doran 2026-01-06 13:52:57 +02:00
parent 6a0f6fab83
commit 8cdfc108ba
No known key found for this signature in database
9 changed files with 17 additions and 17 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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];

View File

@ -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;

View File

@ -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",

View File

@ -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;

View File

@ -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 multiple

View File

@ -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";

View File

@ -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 */