Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'master' into dev

zadam6a6ae359b6ed
diff --cc src/becca/entities/bnote.js
index 71e351f38d,80ac1422b2..c41c202b31
--- a/src/becca/entities/bnote.js
+++ b/src/becca/entities/bnote.js
@@@ -1124,9 -1113,16 +1130,16 @@@ class BNote extends AbstractBeccaEntit
return notePaths;
}
+ /**
+ * @return boolean - true if there's no non-hidden path, note is not cloned to the visible tree
+ */
+ isHiddenCompletely() {
+ return !this.getAllNotePaths().find(notePathArr => !notePathArr.includes('_hidden'));
+ }
+
/**
* @param ancestorNoteId
- * @return {boolean} - true if ancestorNoteId occurs in at least one of the note's paths
+ * @returns {boolean} - true if ancestorNoteId occurs in at least one of the note's paths
*/
isDescendantOfNote(ancestorNoteId) {
const notePaths = this.getAllNotePaths();
diff --cc src/public/app/widgets/dialogs/note_revisions.js
index 17d578c2db,9caab652f9..f8c6584ab1
--- a/src/public/app/widgets/dialogs/note_revisions.js
+++ b/src/public/app/widgets/dialogs/note_revisions.js
@@@ -239,9 -239,9 +239,9 @@@ export default class NoteRevisionsDialo
}
else if (revisionItem.type === 'image') {
this.$content.html($("<img>")
- // reason why we put this inline as base64 is that we do not want to let user to copy this
- // as a URL to be used in a note. Instead, if they copy and paste it into a note, it will be a uploaded as a new note
+ // reason why we put this inline as base64 is that we do not want to let user copy this
+ // as a URL to be used in a note. Instead, if they copy and paste it into a note, it will be an uploaded as a new note
- .attr("src", `data:${note.mime};base64,${fullNoteRevision.content}`)
+ .attr("src", `data:${fullNoteRevision.mime};base64,${fullNoteRevision.content}`)
.css("max-width", "100%")
.css("max-height", "100%"));
}
diff --cc src/services/handlers.js
index 588b80555d,98fc873dde..4bb21f9104
--- a/src/services/handlers.js
+++ b/src/services/handlers.js
@@@ -3,7 -3,9 +3,9 @@@ const scriptService = require('./script
const treeService = require('./tree');
const noteService = require('./notes');
const becca = require('../becca/becca');
-const Attribute = require('../becca/entities/attribute');
+const BAttribute = require('../becca/entities/battribute');
+ const hiddenSubtreeService = require("./hidden_subtree");
+ const oneTimeTimer = require("./one_time_timer");
function runAttachedRelations(note, relationName, originEntity) {
if (!note) {
diff --cc src/services/hidden_subtree.js
index ff8036c1c0,df3bbc9843..ba62ab2884
--- a/src/services/hidden_subtree.js
+++ b/src/services/hidden_subtree.js
@@@ -1,6 -1,8 +1,8 @@@
const becca = require("../becca/becca");
const noteService = require("./notes");
-const Attribute = require("../becca/entities/attribute.js");
+const BAttribute = require("../becca/entities/battribute");
+ const log = require("./log");
+ const migrationService = require("./migration");
const LBTPL_ROOT = "_lbTplRoot";
const LBTPL_BASE = "_lbTplBase";