diff --git a/config-sample.ini b/config-sample.ini
index 0e8da0360..d419ed473 100644
--- a/config-sample.ini
+++ b/config-sample.ini
@@ -16,7 +16,7 @@ noBackup=false
# host=0.0.0.0
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
port=8080
-# true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
+# true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).
https=false
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
certPath=
diff --git a/src/becca/similarity.js b/src/becca/similarity.js
index 8900bb87d..253a25049 100644
--- a/src/becca/similarity.js
+++ b/src/becca/similarity.js
@@ -367,7 +367,7 @@ async function findSimilarNotes(noteId) {
* We want to improve standing of notes which have been created in similar time to each other since
* there's a good chance they are related.
*
- * But there's an exception - if they were created really close to each other (withing few seconds) then
+ * But there's an exception - if they were created really close to each other (within few seconds) then
* they are probably part of the import and not created by hand - these OTOH should not benefit.
*/
const {utcDateCreated} = candidateNote;
diff --git a/src/etapi/etapi.openapi.yaml b/src/etapi/etapi.openapi.yaml
index 754fb05b3..d5bc48c6c 100644
--- a/src/etapi/etapi.openapi.yaml
+++ b/src/etapi/etapi.openapi.yaml
@@ -237,7 +237,7 @@ paths:
schema:
$ref: '#/components/schemas/EntityId'
get:
- description: Returns note content idenfied by its ID
+ description: Returns note content identified by its ID
operationId: getNoteContent
responses:
'200':
@@ -247,7 +247,7 @@ paths:
schema:
type: string
put:
- description: Updates note content idenfied by its ID
+ description: Updates note content identified by its ID
operationId: putNoteContentById
requestBody:
description: html content of note
diff --git a/src/public/app/services/attribute_autocomplete.js b/src/public/app/services/attribute_autocomplete.js
index 6780ec7af..ef52ee16a 100644
--- a/src/public/app/services/attribute_autocomplete.js
+++ b/src/public/app/services/attribute_autocomplete.js
@@ -41,8 +41,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) {
async function initLabelValueAutocomplete({ $el, open, nameCallback }) {
if ($el.hasClass("aa-input")) {
- // we reinit everytime because autocomplete seems to have a bug where it retains state from last
- // open even though the value was resetted
+ // we reinit every time because autocomplete seems to have a bug where it retains state from last
+ // open even though the value was reset
$el.autocomplete('destroy');
}
diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.js
index c548d6f0f..5f19379ee 100644
--- a/src/public/app/services/note_autocomplete.js
+++ b/src/public/app/services/note_autocomplete.js
@@ -134,7 +134,7 @@ function initNoteAutocomplete($el, options) {
showRecentNotes($el);
// this will cause the click not give focus to the "show recent notes" button
- // this is important because otherwise input will lose focus immediatelly and not show the results
+ // this is important because otherwise input will lose focus immediately and not show the results
return false;
});
diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js
index 6bb47d9f3..0038bf476 100644
--- a/src/public/app/services/note_content_renderer.js
+++ b/src/public/app/services/note_content_renderer.js
@@ -137,7 +137,7 @@ async function getRenderedContent(note, options = {}) {
$renderedContent.append($content);
}
else if (type === 'canvas') {
- // make sure surrounding container has size of what is visible. Then image is shrinked to its boundaries
+ // make sure surrounding container has size of what is visible. Then image is shrunk to its boundaries
$renderedContent.css({height: "100%", width:"100%"});
const noteComplement = await froca.getNoteComplement(note.noteId);
diff --git a/src/public/app/services/note_create.js b/src/public/app/services/note_create.js
index e5c593c20..2b925facb 100644
--- a/src/public/app/services/note_create.js
+++ b/src/public/app/services/note_create.js
@@ -99,7 +99,7 @@ function parseSelectedHtml(selectedHtml) {
if (dom.length > 0 && dom[0].tagName && dom[0].tagName.match(/h[1-6]/i)) {
const title = $(dom[0]).text();
- // remove the title from content (only first occurence)
+ // remove the title from content (only first occurrence)
const content = selectedHtml.replace(dom[0].outerHTML, "");
return [title, content];
diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js
index cf5f4e673..54bbd1ef6 100644
--- a/src/public/app/services/note_list_renderer.js
+++ b/src/public/app/services/note_list_renderer.js
@@ -157,7 +157,7 @@ class NoteListRenderer {
constructor($parent, parentNote, noteIds, showNotePath = false) {
this.$noteList = $(TPL);
- // note list must be added to the DOM immediatelly, otherwise some functionality scripting (canvas) won't work
+ // note list must be added to the DOM immediately, otherwise some functionality scripting (canvas) won't work
$parent.empty();
this.parentNote = parentNote;
diff --git a/src/public/app/services/server.js b/src/public/app/services/server.js
index d23b1e90d..70e35e5c6 100644
--- a/src/public/app/services/server.js
+++ b/src/public/app/services/server.js
@@ -23,7 +23,7 @@ async function getHeaders(headers) {
}
if (utils.isElectron()) {
- // passing it explicitely here because of the electron HTTP bypass
+ // passing it explicitly here because of the electron HTTP bypass
allHeaders.cookie = document.cookie;
}
diff --git a/src/public/app/share.js b/src/public/app/share.js
index f92ae09ed..03ad92515 100644
--- a/src/public/app/share.js
+++ b/src/public/app/share.js
@@ -1,7 +1,7 @@
/**
* Fetch note with given ID from backend
*
- * @param noteId of the given note to be fetched. If falsy, fetches current note.
+ * @param noteId of the given note to be fetched. If false, fetches current note.
*/
async function fetchNote(noteId = null) {
if (!noteId) {
diff --git a/src/public/app/widgets/bulk_actions/abstract_bulk_action.js b/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
index 21c2860c8..6bb01d256 100644
--- a/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
+++ b/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
@@ -26,7 +26,7 @@ export default class AbstractBulkAction {
}
}
- // to be overriden
+ // to be overridden
doRender() {}
async saveAction(data) {
diff --git a/src/public/app/widgets/buttons/right_dropdown_button.js b/src/public/app/widgets/buttons/right_dropdown_button.js
index 14c95acaa..d3b20a40e 100644
--- a/src/public/app/widgets/buttons/right_dropdown_button.js
+++ b/src/public/app/widgets/buttons/right_dropdown_button.js
@@ -50,7 +50,7 @@ export default class RightDropdownButtonWidget extends BasicWidget {
this.$widget.find(".dropdown-menu").append(this.$dropdownContent);
}
- // to be overriden
+ // to be overridden
async dropdownShow() {}
hideDropdown() {
diff --git a/src/public/app/widgets/dialogs/delete_notes.js b/src/public/app/widgets/dialogs/delete_notes.js
index e7f56ae9e..a75023f81 100644
--- a/src/public/app/widgets/dialogs/delete_notes.js
+++ b/src/public/app/widgets/dialogs/delete_notes.js
@@ -25,7 +25,7 @@ const TPL = `