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
chore(core): address requested changes
Elian Dorandaf41804d44d
diff --git a/apps/client/src/widgets/attribute_widgets/UserAttributesList.tsx b/apps/client/src/widgets/attribute_widgets/UserAttributesList.tsxindex 93ed5356c9..a95887b7af 100644--- a/apps/client/src/widgets/attribute_widgets/UserAttributesList.tsx+++ b/apps/client/src/widgets/attribute_widgets/UserAttributesList.tsx@@ -48,7 +48,7 @@ function useNoteAttributesWithDefinitions(note: FNote, attributesToIgnore: stri}function UserAttribute({ attr, children, style }: { attr: AttributeWithDefinitions, children: ComponentChildren, style?: CSSProperties }) {- const className = `${attr.type === "label" ? `label` + ` ${ attr.def.labelType}` : "relation"}`;+ const className = attr.type === "label" ? `label ${attr.def.labelType}` : "relation";return (<span key={attr.friendlyName} className={`user-attribute type-${className}`} style={style}>diff --git a/apps/server/package.json b/apps/server/package.jsonindex daa44d3c81..841645dd60 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -110,7 +110,7 @@"openai": "6.16.0","rand-token": "1.0.1","safe-compare": "1.1.4",- "sax": "1.4.3",+ "sax": "1.4.4","serve-favicon": "2.5.1","stream-throttle": "0.1.3","strip-bom": "5.0.0",@@ -120,8 +120,8 @@"time2fa": "1.4.2","tmp": "0.2.5","turndown": "7.2.2",- "vite": "7.3.0",- "ws": "8.18.3",+ "vite": "7.3.1",+ "ws": "8.19.0","xml2js": "0.6.2","yauzl": "3.2.0"}diff --git a/packages/trilium-core/src/becca/entities/bnote.ts b/packages/trilium-core/src/becca/entities/bnote.tsindex ad97d93fbf..7be573166f 100644--- a/packages/trilium-core/src/becca/entities/bnote.ts+++ b/packages/trilium-core/src/becca/entities/bnote.ts@@ -1602,7 +1602,7 @@ class BNote extends AbstractBeccaEntity<BNote> {// Limit the number of Snapshots to revisionSnapshotNumberLimit// Delete older Snapshots that exceed the limiteraseExcessRevisionSnapshots() {- // lable has a higher priority+ // label has a higher prioritylet revisionSnapshotNumberLimit = parseInt(this.getLabelValue("versioningLimit") ?? "");if (!Number.isInteger(revisionSnapshotNumberLimit)) {revisionSnapshotNumberLimit = parseInt(optionService.getOption("revisionSnapshotNumberLimit"));diff --git a/packages/trilium-core/src/services/log.ts b/packages/trilium-core/src/services/log.tsindex 540cdc87a7..686d497ad3 100644--- a/packages/trilium-core/src/services/log.ts+++ b/packages/trilium-core/src/services/log.ts@@ -5,11 +5,11 @@ export default class LogService {}info(message: string | Error) {- this.log(message);+ console.info(message);}error(message: string | Error | unknown) {- this.log(`ERROR: ${message}`);+ console.error("ERROR: ", message);}}diff --git a/packages/trilium-core/src/services/notes.ts b/packages/trilium-core/src/services/notes.tsindex d1b908fdf7..a62a8e7d56 100644--- a/packages/trilium-core/src/services/notes.ts+++ b/packages/trilium-core/src/services/notes.ts@@ -553,7 +553,7 @@ async function downloadImage(noteId: string, imageUrl: string) {if (attachment.attachmentId) {imageUrlToAttachmentIdMapping[imageUrl] = attachment.attachmentId;} else {- log.error(`Download of '${imageUrl}' due to no attachment ID.`);+ log.error(`Download of '${imageUrl}' for note '${noteId}' failed due to no attachment ID.`);}log.info(`Download of '${imageUrl}' succeeded and was saved as image attachment '${attachment.attachmentId}' of note '${noteId}'`);diff --git a/packages/trilium-core/src/services/options_init.ts b/packages/trilium-core/src/services/options_init.tsindex 9b9ed9099c..3e605711d8 100644--- a/packages/trilium-core/src/services/options_init.ts+++ b/packages/trilium-core/src/services/options_init.ts@@ -28,7 +28,7 @@ interface DefaultOption {/*** The value to initialize the option with, if the option is not already present in the database.*- * If a function is passed Gin instead, the function is called if the option does not exist (with access to the current options) and the return value is used instead. Useful to migrate a new option with a value depending on some other option that might be initialized.+ * If a function is passed in instead, the function is called if the option does not exist (with access to the current options) and the return value is used instead. Useful to migrate a new option with a value depending on some other option that might be initialized.*/value: string | ((options: OptionMap) => string);isSynced: boolean;