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 typos
Kian-Meng Ang712304bbc6a5
diff --git a/config-sample.ini b/config-sample.iniindex 0e8da0360d..d419ed473d 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=truecertPath=diff --git a/src/becca/similarity.js b/src/becca/similarity.jsindex 8900bb87da..253a250497 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.yamlindex 754fb05b36..d5bc48c6cf 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 IDoperationId: getNoteContentresponses:'200':@@ -247,7 +247,7 @@ paths:schema:type: stringput:- description: Updates note content idenfied by its ID+ description: Updates note content identified by its IDoperationId: putNoteContentByIdrequestBody:description: html content of notediff --git a/src/public/app/services/attribute_autocomplete.js b/src/public/app/services/attribute_autocomplete.jsindex 6780ec7af9..ef52ee16a4 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.jsindex c548d6f0f3..5f19379eee 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 resultsreturn false;});diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.jsindex 6bb47d9f3a..0038bf4764 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.jsindex e5c593c206..2b925facbf 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.jsindex cf5f4e673d..54bbd1ef67 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.jsindex d23b1e90db..70e35e5c6b 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 bypassallHeaders.cookie = document.cookie;}diff --git a/src/public/app/share.js b/src/public/app/share.jsindex f92ae09ed4..03ad925154 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.jsindex 21c2860c8f..6bb01d2564 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 overriddendoRender() {}async saveAction(data) {diff --git a/src/public/app/widgets/buttons/right_dropdown_button.js b/src/public/app/widgets/buttons/right_dropdown_button.jsindex 14c95acaac..d3b20a40eb 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 overriddenasync dropdownShow() {}hideDropdown() {diff --git a/src/public/app/widgets/dialogs/delete_notes.js b/src/public/app/widgets/dialogs/delete_notes.jsindex e7f56ae9ec..a75023f81d 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 = `</div><div class="checkbox">- <label title="Normal (soft) deletion only marks the notes as deleted and they can be undeleted (in recent changes dialog) within a period of time. Checking this option will erase the notes immediatelly and it won't be possible to undelete the notes.">+ <label title="Normal (soft) deletion only marks the notes as deleted and they can be undeleted (in recent changes dialog) within a period of time. Checking this option will erase the notes immediately and it won't be possible to undelete the notes."><input class="erase-notes" value="1" type="checkbox">erase notes permanently (can't be undone), including all clones. This will force application reload.diff --git a/src/public/app/widgets/icon_list.js b/src/public/app/widgets/icon_list.jsindex 32fe21a952..bb6b7a13b7 100644--- a/src/public/app/widgets/icon_list.js+++ b/src/public/app/widgets/icon_list.js@@ -9584,7 +9584,7 @@ const icons = ["term": ["honor","honour",- "acheivement"+ "achievement"]},{@@ -9595,7 +9595,7 @@ const icons = ["term": ["honor","honour",- "acheivement"+ "achievement"]},{diff --git a/src/public/app/widgets/note_map.js b/src/public/app/widgets/note_map.jsindex ad6fd43774..2c71413315 100644--- a/src/public/app/widgets/note_map.js+++ b/src/public/app/widgets/note_map.js@@ -166,7 +166,7 @@ export default class NoteMapWidget extends NoteContextAwareWidget {generateColorFromString(str) {if (this.themeStyle === "dark") {- str = `0${str}`; // magic lightening modifier+ str = `0${str}`; // magic lightning modifier}let hash = 0;diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex e21128a952..a1c2fadb6c 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -1139,7 +1139,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {const note = froca.getNoteFromCache(ecAttr.noteId);if (note && note.getChildNoteIds().includes(ecAttr.value)) {- // there's new/deleted imageLink betwen note and its image child - which can show/hide+ // there's new/deleted imageLink between note and its image child - which can show/hide// the image (if there is a imageLink relation between parent and child// then it is assumed to be "contained" in the note and thus does not have to be displayed in the tree)noteIdsToReload.add(ecAttr.noteId);diff --git a/src/public/app/widgets/search_options/abstract_search_option.js b/src/public/app/widgets/search_options/abstract_search_option.jsindex daf76fb737..e46299d1af 100644--- a/src/public/app/widgets/search_options/abstract_search_option.js+++ b/src/public/app/widgets/search_options/abstract_search_option.js@@ -39,7 +39,7 @@ export default class AbstractSearchOption extends Component {}}- // to be overriden+ // to be overriddendoRender() {}async deleteOption() {diff --git a/src/public/app/widgets/type_widgets/canvas.js b/src/public/app/widgets/type_widgets/canvas.jsindex b4c92c4f03..b0f2d7b77e 100644--- a/src/public/app/widgets/type_widgets/canvas.js+++ b/src/public/app/widgets/type_widgets/canvas.js@@ -78,7 +78,7 @@ const TPL = `** Discussion of storing svg in the note:* - Pro: we will combat bit-rot. Showing the SVG will be very fast and easy, since it is already there.- * - Con: The note will get bigger (~40-50%?), we will generate more bandwith. However, using trilium+ * - Con: The note will get bigger (~40-50%?), we will generate more bandwidth. However, using trilium* desktop instance mitigates that issue.** Roadmap:diff --git a/src/public/app/widgets/type_widgets/options/etapi.js b/src/public/app/widgets/type_widgets/options/etapi.jsindex 2fa773f8f3..fb4baa6c8d 100644--- a/src/public/app/widgets/type_widgets/options/etapi.js+++ b/src/public/app/widgets/type_widgets/options/etapi.js@@ -96,7 +96,7 @@ export default class EtapiOptions extends OptionsWidget {.append($("<td>").append($('<span class="bx bx-pen token-table-button" title="Rename this token"></span>').on("click", () => this.renameToken(token.etapiTokenId, token.name)),- $('<span class="bx bx-trash token-table-button" title="Delete / deactive this token"></span>')+ $('<span class="bx bx-trash token-table-button" title="Delete / deactivate this token"></span>').on("click", () => this.deleteToken(token.etapiTokenId, token.name)))));diff --git a/src/public/app/widgets/type_widgets/relation_map.js b/src/public/app/widgets/type_widgets/relation_map.jsindex 696ad250d2..abe48751e1 100644--- a/src/public/app/widgets/type_widgets/relation_map.js+++ b/src/public/app/widgets/type_widgets/relation_map.js@@ -412,7 +412,7 @@ export default class RelationMapTypeWidget extends TypeWidget {}});- // if there's no event, then this has been triggered programatically+ // if there's no event, then this has been triggered programmaticallyif (!originalEvent) {return;}diff --git a/src/routes/api/recent_notes.js b/src/routes/api/recent_notes.jsindex dbfabdbf1a..40139477a9 100644--- a/src/routes/api/recent_notes.js+++ b/src/routes/api/recent_notes.js@@ -11,7 +11,7 @@ function addRecentNote(req) {}).save();if (Math.random() < 0.05) {- // it's not necessary to run this everytime ...+ // it's not necessary to run this every time ...const cutOffDate = dateUtils.utcDateTimeStr(new Date(Date.now() - 24 * 3600 * 1000));sql.execute(`DELETE FROM recent_notes WHERE utcDateCreated < ?`, [cutOffDate]);diff --git a/src/routes/api/sync.js b/src/routes/api/sync.jsindex e2947f096c..d2b473a711 100644--- a/src/routes/api/sync.js+++ b/src/routes/api/sync.js@@ -61,7 +61,7 @@ function checkSync() {function syncNow() {log.info("Received request to trigger sync now.");- // when explicitly asked for set in progress status immediatelly for faster user feedback+ // when explicitly asked for set in progress status immediately for faster user feedbackws.syncPullInProgress();return syncService.sync();diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.jsindex dc2e6072c4..a29a67c7d4 100644--- a/src/services/consistency_checks.js+++ b/src/services/consistency_checks.js@@ -352,7 +352,7 @@ class ConsistencyChecks {({noteId, isProtected, type, mime}) => {if (this.autoFix) {// it might be possible that the note_content is not available only because of the interrupted- // sync, and it will come later. It's therefore important to guarantee that this artifical+ // sync, and it will come later. It's therefore important to guarantee that this artificial// record won't overwrite the real one coming from the sync.const fakeDate = "2000-01-01 00:00:00Z";diff --git a/src/services/notes.js b/src/services/notes.jsindex c9343bc4e9..9f4f1b6cb4 100644--- a/src/services/notes.js+++ b/src/services/notes.js@@ -473,7 +473,7 @@ function downloadImages(noteId, content) {// once the download is finished, the image note representing downloaded image will be used// to replace the IMG link.// However, there's another flow where user pastes the image and leaves the note before the images- // are downloaded and the IMG references are not updated. For this occassion we have this code+ // are downloaded and the IMG references are not updated. For this occasion we have this code// which upon the download of all the images will update the note if the links have not been fixed beforesql.transactional(() => {diff --git a/src/services/script.js b/src/services/script.jsindex 1a69c66296..e8fa5ecf48 100644--- a/src/services/script.js+++ b/src/services/script.js@@ -55,7 +55,7 @@ ${bundle.script}\r}/**- * THIS METHOD CANT BE ASYNC, OTHERWISE TRANSACTION WRAPPER WON'T BE EFFECTIVE AND WE WILL BE LOSING THE+ * THIS METHOD CAN'T BE ASYNC, OTHERWISE TRANSACTION WRAPPER WON'T BE EFFECTIVE AND WE WILL BE LOSING THE* ENTITY CHANGES IN CLS.** This method preserves frontend startNode - that's why we start execution from currentNote and overridediff --git a/src/services/task_context.js b/src/services/task_context.jsindex 9aab9d43e8..ef1c68e768 100644--- a/src/services/task_context.js+++ b/src/services/task_context.js@@ -13,7 +13,7 @@ class TaskContext {this.noteDeletionHandlerTriggered = false;// progressCount is meant to represent just some progress - to indicate the task is not stuck- this.progressCount = -1; // we're incrementing immediatelly+ this.progressCount = -1; // we're incrementing immediatelythis.lastSentCountTs = 0; // 0 will guarantee first message will be sent// just the fact this has been initialized is a progress which should be sent to clientsdiff --git a/src/views/setup.ejs b/src/views/setup.ejsindex 185df189fa..91d776c109 100644--- a/src/views/setup.ejs+++ b/src/views/setup.ejs@@ -96,7 +96,7 @@<li>From the Trilium Menu, click Options.</li><li>Click on Sync tab.</li><li>Change server instance address to: <span id="current-host"></span> and click save.</li>- <li>Click "Test sync" button to verify connection is successfull.</li>+ <li>Click "Test sync" button to verify connection is successful.</li><li>Once you've completed these steps, click <a href="/">here</a>.</li></ol>