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 note revisions not displaying content length
zadam26b89fc801f9
diff --git a/src/becca/entities/note_revision.js b/src/becca/entities/note_revision.jsindex d90649231a..af51687a5b 100644--- a/src/becca/entities/note_revision.js+++ b/src/becca/entities/note_revision.js@@ -167,12 +167,14 @@ class NoteRevision extends AbstractEntity {dateCreated: this.dateCreated,utcDateLastEdited: this.utcDateLastEdited,utcDateCreated: this.utcDateCreated,- utcDateModified: this.utcDateModified+ utcDateModified: this.utcDateModified,+ contentLength: this.contentLength};}getPojoToSave() {const pojo = this.getPojo();+ delete pojo.contentLength; // not getting persistedif (pojo.isProtected) {if (protectedSessionService.isProtectedSessionAvailable()) {diff --git a/src/public/app/services/frontend_script_api.js b/src/public/app/services/frontend_script_api.jsindex 973b2901a7..249e358297 100644--- a/src/public/app/services/frontend_script_api.js+++ b/src/public/app/services/frontend_script_api.js@@ -39,12 +39,24 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain/** @property {CollapsibleWidget} */this.CollapsibleWidget = CollapsibleWidget;- /** @property {NoteContextAwareWidget} */+ /**+ * @property {NoteContextAwareWidget}+ * @deprecated use NoteContextAwareWidget instead+ */this.TabAwareWidget = NoteContextAwareWidget;- /** @property {NoteContextCachingWidget} */+ /** @property {NoteContextAwareWidget} */+ this.NoteContextAwareWidget = NoteContextAwareWidget;++ /**+ * @property {NoteContextCachingWidget}+ * @deprecated use NoteContextCachingWidget instead+ */this.TabCachingWidget = NoteContextCachingWidget;+ /** @property {NoteContextAwareWidget} */+ this.NoteContextCachingWidget = NoteContextCachingWidget;+/** @property {BasicWidget} */this.BasicWidget = BasicWidget;diff --git a/src/public/app/widgets/mermaid.js b/src/public/app/widgets/mermaid.jsindex fa26149bd3..04a6b838a5 100644--- a/src/public/app/widgets/mermaid.js+++ b/src/public/app/widgets/mermaid.js@@ -10,6 +10,7 @@ const TPL = `<div class="mermaid-widget">min-height: 200px;border-bottom: 1px solid var(--main-border-color);padding: 20px;+ margin-bottom: 10px;display: flex;justify-content: space-around; /* centering rendered SVG */flex-basis: 0;