mirror of
https://github.com/zadam/trilium.git
synced 2026-01-12 09:34:26 +01:00
This commit is contained in:
parent
6a0f6fab83
commit
8cdfc108ba
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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];
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user