Skip to content

Commit 712304b

Browse files
committed
Fix typos
Found via `codespell -S ./libraries,./package-lock.json -L tabel,tabels,uptodate,isnt,edn,falsy`
1 parent bbe3f43 commit 712304b

27 files changed

+30
-30
lines changed

config-sample.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ noBackup=false
1616
# host=0.0.0.0
1717
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
1818
port=8080
19-
# true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
19+
# true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).
2020
https=false
2121
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
2222
certPath=

src/becca/similarity.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ async function findSimilarNotes(noteId) {
367367
* We want to improve standing of notes which have been created in similar time to each other since
368368
* there's a good chance they are related.
369369
*
370-
* But there's an exception - if they were created really close to each other (withing few seconds) then
370+
* But there's an exception - if they were created really close to each other (within few seconds) then
371371
* they are probably part of the import and not created by hand - these OTOH should not benefit.
372372
*/
373373
const {utcDateCreated} = candidateNote;

src/etapi/etapi.openapi.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ paths:
237237
schema:
238238
$ref: '#/components/schemas/EntityId'
239239
get:
240-
description: Returns note content idenfied by its ID
240+
description: Returns note content identified by its ID
241241
operationId: getNoteContent
242242
responses:
243243
'200':
@@ -247,7 +247,7 @@ paths:
247247
schema:
248248
type: string
249249
put:
250-
description: Updates note content idenfied by its ID
250+
description: Updates note content identified by its ID
251251
operationId: putNoteContentById
252252
requestBody:
253253
description: html content of note

src/public/app/services/attribute_autocomplete.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) {
4141

4242
async function initLabelValueAutocomplete({ $el, open, nameCallback }) {
4343
if ($el.hasClass("aa-input")) {
44-
// we reinit everytime because autocomplete seems to have a bug where it retains state from last
45-
// open even though the value was resetted
44+
// we reinit every time because autocomplete seems to have a bug where it retains state from last
45+
// open even though the value was reset
4646
$el.autocomplete('destroy');
4747
}
4848

src/public/app/services/note_autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function initNoteAutocomplete($el, options) {
134134
showRecentNotes($el);
135135

136136
// this will cause the click not give focus to the "show recent notes" button
137-
// this is important because otherwise input will lose focus immediatelly and not show the results
137+
// this is important because otherwise input will lose focus immediately and not show the results
138138
return false;
139139
});
140140

src/public/app/services/note_content_renderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async function getRenderedContent(note, options = {}) {
137137
$renderedContent.append($content);
138138
}
139139
else if (type === 'canvas') {
140-
// make sure surrounding container has size of what is visible. Then image is shrinked to its boundaries
140+
// make sure surrounding container has size of what is visible. Then image is shrunk to its boundaries
141141
$renderedContent.css({height: "100%", width:"100%"});
142142

143143
const noteComplement = await froca.getNoteComplement(note.noteId);

src/public/app/services/note_create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function parseSelectedHtml(selectedHtml) {
9999

100100
if (dom.length > 0 && dom[0].tagName && dom[0].tagName.match(/h[1-6]/i)) {
101101
const title = $(dom[0]).text();
102-
// remove the title from content (only first occurence)
102+
// remove the title from content (only first occurrence)
103103
const content = selectedHtml.replace(dom[0].outerHTML, "");
104104

105105
return [title, content];

src/public/app/services/note_list_renderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class NoteListRenderer {
157157
constructor($parent, parentNote, noteIds, showNotePath = false) {
158158
this.$noteList = $(TPL);
159159

160-
// note list must be added to the DOM immediatelly, otherwise some functionality scripting (canvas) won't work
160+
// note list must be added to the DOM immediately, otherwise some functionality scripting (canvas) won't work
161161
$parent.empty();
162162

163163
this.parentNote = parentNote;

src/public/app/services/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function getHeaders(headers) {
2323
}
2424

2525
if (utils.isElectron()) {
26-
// passing it explicitely here because of the electron HTTP bypass
26+
// passing it explicitly here because of the electron HTTP bypass
2727
allHeaders.cookie = document.cookie;
2828
}
2929

src/public/app/share.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Fetch note with given ID from backend
33
*
4-
* @param noteId of the given note to be fetched. If falsy, fetches current note.
4+
* @param noteId of the given note to be fetched. If false, fetches current note.
55
*/
66
async function fetchNote(noteId = null) {
77
if (!noteId) {

src/public/app/widgets/bulk_actions/abstract_bulk_action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class AbstractBulkAction {
2626
}
2727
}
2828

29-
// to be overriden
29+
// to be overridden
3030
doRender() {}
3131

3232
async saveAction(data) {

src/public/app/widgets/buttons/right_dropdown_button.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class RightDropdownButtonWidget extends BasicWidget {
5050
this.$widget.find(".dropdown-menu").append(this.$dropdownContent);
5151
}
5252

53-
// to be overriden
53+
// to be overridden
5454
async dropdownShow() {}
5555

5656
hideDropdown() {

src/public/app/widgets/dialogs/delete_notes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const TPL = `
2525
</div>
2626
2727
<div class="checkbox">
28-
<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.">
28+
<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.">
2929
<input class="erase-notes" value="1" type="checkbox">
3030
3131
erase notes permanently (can't be undone), including all clones. This will force application reload.

src/public/app/widgets/icon_list.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9584,7 +9584,7 @@ const icons = [
95849584
"term": [
95859585
"honor",
95869586
"honour",
9587-
"acheivement"
9587+
"achievement"
95889588
]
95899589
},
95909590
{
@@ -9595,7 +9595,7 @@ const icons = [
95959595
"term": [
95969596
"honor",
95979597
"honour",
9598-
"acheivement"
9598+
"achievement"
95999599
]
96009600
},
96019601
{

src/public/app/widgets/note_map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class NoteMapWidget extends NoteContextAwareWidget {
166166

167167
generateColorFromString(str) {
168168
if (this.themeStyle === "dark") {
169-
str = `0${str}`; // magic lightening modifier
169+
str = `0${str}`; // magic lightning modifier
170170
}
171171

172172
let hash = 0;

src/public/app/widgets/note_tree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
11391139
const note = froca.getNoteFromCache(ecAttr.noteId);
11401140

11411141
if (note && note.getChildNoteIds().includes(ecAttr.value)) {
1142-
// there's new/deleted imageLink betwen note and its image child - which can show/hide
1142+
// there's new/deleted imageLink between note and its image child - which can show/hide
11431143
// the image (if there is a imageLink relation between parent and child
11441144
// then it is assumed to be "contained" in the note and thus does not have to be displayed in the tree)
11451145
noteIdsToReload.add(ecAttr.noteId);

src/public/app/widgets/search_options/abstract_search_option.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class AbstractSearchOption extends Component {
3939
}
4040
}
4141

42-
// to be overriden
42+
// to be overridden
4343
doRender() {}
4444

4545
async deleteOption() {

src/public/app/widgets/type_widgets/canvas.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const TPL = `
7878
*
7979
* Discussion of storing svg in the note:
8080
* - Pro: we will combat bit-rot. Showing the SVG will be very fast and easy, since it is already there.
81-
* - Con: The note will get bigger (~40-50%?), we will generate more bandwith. However, using trilium
81+
* - Con: The note will get bigger (~40-50%?), we will generate more bandwidth. However, using trilium
8282
* desktop instance mitigates that issue.
8383
*
8484
* Roadmap:

src/public/app/widgets/type_widgets/options/etapi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default class EtapiOptions extends OptionsWidget {
9696
.append($("<td>").append(
9797
$('<span class="bx bx-pen token-table-button" title="Rename this token"></span>')
9898
.on("click", () => this.renameToken(token.etapiTokenId, token.name)),
99-
$('<span class="bx bx-trash token-table-button" title="Delete / deactive this token"></span>')
99+
$('<span class="bx bx-trash token-table-button" title="Delete / deactivate this token"></span>')
100100
.on("click", () => this.deleteToken(token.etapiTokenId, token.name))
101101
))
102102
);

src/public/app/widgets/type_widgets/relation_map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export default class RelationMapTypeWidget extends TypeWidget {
412412
}
413413
});
414414

415-
// if there's no event, then this has been triggered programatically
415+
// if there's no event, then this has been triggered programmatically
416416
if (!originalEvent) {
417417
return;
418418
}

src/routes/api/recent_notes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function addRecentNote(req) {
1111
}).save();
1212

1313
if (Math.random() < 0.05) {
14-
// it's not necessary to run this everytime ...
14+
// it's not necessary to run this every time ...
1515
const cutOffDate = dateUtils.utcDateTimeStr(new Date(Date.now() - 24 * 3600 * 1000));
1616

1717
sql.execute(`DELETE FROM recent_notes WHERE utcDateCreated < ?`, [cutOffDate]);

src/routes/api/sync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function checkSync() {
6161
function syncNow() {
6262
log.info("Received request to trigger sync now.");
6363

64-
// when explicitly asked for set in progress status immediatelly for faster user feedback
64+
// when explicitly asked for set in progress status immediately for faster user feedback
6565
ws.syncPullInProgress();
6666

6767
return syncService.sync();

src/services/consistency_checks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class ConsistencyChecks {
352352
({noteId, isProtected, type, mime}) => {
353353
if (this.autoFix) {
354354
// it might be possible that the note_content is not available only because of the interrupted
355-
// sync, and it will come later. It's therefore important to guarantee that this artifical
355+
// sync, and it will come later. It's therefore important to guarantee that this artificial
356356
// record won't overwrite the real one coming from the sync.
357357
const fakeDate = "2000-01-01 00:00:00Z";
358358

src/services/notes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function downloadImages(noteId, content) {
473473
// once the download is finished, the image note representing downloaded image will be used
474474
// to replace the IMG link.
475475
// However, there's another flow where user pastes the image and leaves the note before the images
476-
// are downloaded and the IMG references are not updated. For this occassion we have this code
476+
// are downloaded and the IMG references are not updated. For this occasion we have this code
477477
// which upon the download of all the images will update the note if the links have not been fixed before
478478

479479
sql.transactional(() => {

src/services/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ${bundle.script}\r
5555
}
5656

5757
/**
58-
* THIS METHOD CANT BE ASYNC, OTHERWISE TRANSACTION WRAPPER WON'T BE EFFECTIVE AND WE WILL BE LOSING THE
58+
* THIS METHOD CAN'T BE ASYNC, OTHERWISE TRANSACTION WRAPPER WON'T BE EFFECTIVE AND WE WILL BE LOSING THE
5959
* ENTITY CHANGES IN CLS.
6060
*
6161
* This method preserves frontend startNode - that's why we start execution from currentNote and override

src/services/task_context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TaskContext {
1313
this.noteDeletionHandlerTriggered = false;
1414

1515
// progressCount is meant to represent just some progress - to indicate the task is not stuck
16-
this.progressCount = -1; // we're incrementing immediatelly
16+
this.progressCount = -1; // we're incrementing immediately
1717
this.lastSentCountTs = 0; // 0 will guarantee first message will be sent
1818

1919
// just the fact this has been initialized is a progress which should be sent to clients

src/views/setup.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<li>From the Trilium Menu, click Options.</li>
9797
<li>Click on Sync tab.</li>
9898
<li>Change server instance address to: <span id="current-host"></span> and click save.</li>
99-
<li>Click "Test sync" button to verify connection is successfull.</li>
99+
<li>Click "Test sync" button to verify connection is successful.</li>
100100
<li>Once you've completed these steps, click <a href="/">here</a>.</li>
101101
</ol>
102102

0 commit comments

Comments
 (0)