mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
typos
This commit is contained in:
@@ -43,7 +43,7 @@ function moveBranchBeforeNote(req) {
|
||||
|
||||
const originalBeforeNotePosition = beforeBranch.notePosition;
|
||||
|
||||
// we don't change utcDateModified so other changes are prioritized in case of conflict
|
||||
// we don't change utcDateModified, so other changes are prioritized in case of conflict
|
||||
// also we would have to sync all those modified branches otherwise hash checks would fail
|
||||
|
||||
sql.execute("UPDATE branches SET notePosition = notePosition + 10 WHERE parentNoteId = ? AND notePosition >= ? AND isDeleted = 0",
|
||||
@@ -93,7 +93,7 @@ function moveBranchAfterNote(req) {
|
||||
|
||||
const originalAfterNotePosition = afterNote.notePosition;
|
||||
|
||||
// we don't change utcDateModified so other changes are prioritized in case of conflict
|
||||
// we don't change utcDateModified, so other changes are prioritized in case of conflict
|
||||
// also we would have to sync all those modified branches otherwise hash checks would fail
|
||||
sql.execute("UPDATE branches SET notePosition = notePosition + 10 WHERE parentNoteId = ? AND notePosition > ? AND isDeleted = 0",
|
||||
[afterNote.parentNoteId, originalAfterNotePosition]);
|
||||
|
||||
@@ -97,7 +97,7 @@ async function importAttachmentsToNote(req) {
|
||||
const parentNote = becca.getNoteOrThrow(parentNoteId);
|
||||
const taskContext = TaskContext.getInstance(taskId, 'importAttachment', options);
|
||||
|
||||
// unlike in note import we let the events run, because a huge number of attachments is not likely
|
||||
// unlike in note import, we let the events run, because a huge number of attachments is not likely
|
||||
|
||||
try {
|
||||
await singleImportService.importAttachment(taskContext, file, parentNote);
|
||||
|
||||
@@ -92,13 +92,13 @@ function getNeighbors(note, depth) {
|
||||
|
||||
function getLinkMap(req) {
|
||||
const mapRootNote = becca.getNote(req.params.noteId);
|
||||
// if the map root itself has exclude attribute (journal typically) then there wouldn't be anything to display, so
|
||||
// we'll just ignore it
|
||||
// if the map root itself has "excludeFromNoteMap" attribute (journal typically) then there wouldn't be anything
|
||||
// to display, so we'll just ignore it
|
||||
const ignoreExcludeFromNoteMap = mapRootNote.isLabelTruthy('excludeFromNoteMap');
|
||||
let unfilteredNotes;
|
||||
|
||||
if (mapRootNote.type === 'search') {
|
||||
// for search notes we want to consider the direct search results only without the descendants
|
||||
// for search notes, we want to consider the direct search results only without the descendants
|
||||
unfilteredNotes = mapRootNote.getSearchResultNotes();
|
||||
} else {
|
||||
unfilteredNotes = mapRootNote.getSubtree({
|
||||
@@ -167,8 +167,8 @@ function getLinkMap(req) {
|
||||
|
||||
function getTreeMap(req) {
|
||||
const mapRootNote = becca.getNote(req.params.noteId);
|
||||
// if the map root itself has ignore (journal typically) then there wouldn't be anything to display, so
|
||||
// we'll just ignore it
|
||||
// if the map root itself has "excludeFromNoteMap" (journal typically) then there wouldn't be anything to display,
|
||||
// so we'll just ignore it
|
||||
const ignoreExcludeFromNoteMap = mapRootNote.isLabelTruthy('excludeFromNoteMap');
|
||||
const subtree = mapRootNote.getSubtree({
|
||||
includeArchived: false,
|
||||
|
||||
@@ -5,7 +5,7 @@ const log = require('../../services/log');
|
||||
const searchService = require('../../services/search/services/search');
|
||||
const ValidationError = require("../../errors/validation_error");
|
||||
|
||||
// options allowed to be updated directly in options dialog
|
||||
// options allowed to be updated directly in the Options dialog
|
||||
const ALLOWED_OPTIONS = new Set([
|
||||
'eraseEntitiesAfterTimeInSeconds',
|
||||
'protectedSessionTimeout',
|
||||
|
||||
@@ -228,7 +228,7 @@ setInterval(() => {
|
||||
}, 60 * 1000);
|
||||
|
||||
function syncFinished() {
|
||||
// after first sync finishes, the application is ready to be used
|
||||
// after the first sync finishes, the application is ready to be used
|
||||
// this is meaningless but at the same time harmless (idempotent) for further syncs
|
||||
sqlInit.setDbAsInitialized();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user