Skip to content

Commit d3f680d

Browse files
committed
Fix typos in comments and add a spellchecker script for future use
Signed-off-by: Andras Timar <[email protected]> Change-Id: I8ff63197b0b7c2102caf7f08f7e37db1028778be
1 parent 2a318fc commit d3f680d

File tree

86 files changed

+1175
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1175
-190
lines changed

browser/admin/src/AdminClusterOverview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var AdminClusterOverview = AdminSocketBase.extend({
8888
if (server.podname) {
8989
cardTitle.textContent = server.podname;
9090
} else {
91-
console.warn('podname doesnot exist, using serverId instead of podname on card title');
91+
console.warn('podname does not exist, using serverId instead of podname on card title');
9292
cardTitle.textContent = server.serverId;
9393
}
9494
cardHeader.appendChild(cardTitle);
@@ -406,7 +406,7 @@ var AdminClusterOverview = AdminSocketBase.extend({
406406
if (server.podname) {
407407
anchor.textContent = server.podname;
408408
} else {
409-
console.warn('podname doesnot exist, using serverId instead of podname on anchor tag');
409+
console.warn('podname does not exist, using serverId instead of podname on anchor tag');
410410
anchor.textContent = server.serverId;
411411
}
412412
return anchor;

browser/css/cool.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
--tb-min-fs-u: 11;
3838
/* tab max font-size */
3939
--tb-max-fs: 16px;
40-
/* tab max font-size wihtout units*/
40+
/* tab max font-size without units*/
4141
--tb-max-fs-u: 16;
4242
/* tab font-size preferred value or scaler */
4343
--tb-fs-s: 1vw;

browser/css/device-mobile.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ textarea.cool-annotation-textarea {
557557
#mobile-wizard.popup #busylabel {
558558
border-bottom: none !important;
559559
font-size: 100% !important;
560-
/* inherits margin top and bototm from jsdialogs.css */
560+
/* inherits margin top and bottom from jsdialogs.css */
561561
margin-inline: 2px !important;
562562
}
563563

@@ -592,7 +592,7 @@ textarea.cool-annotation-textarea {
592592
margin-bottom: 24px;
593593
}
594594

595-
/* Feeback dialog */
595+
/* Feedback dialog */
596596
.iframe-dialog-wrap {
597597
left: 0;
598598
top: 0;
@@ -604,7 +604,7 @@ textarea.cool-annotation-textarea {
604604
.iframe-dialog-modal {
605605
position: absolute;
606606
width: 100%;
607-
height: 564px; /* incrase height to account for stacked buttons*/
607+
height: 564px; /* increase height to account for stacked buttons*/
608608
bottom: 0;
609609
}
610610
@media only screen
@@ -638,7 +638,7 @@ textarea.cool-annotation-textarea {
638638
flex-direction: column;
639639
}
640640

641-
/* hide not usefull style options on mobile */
641+
/* hide not useful style options on mobile */
642642
div#fontstyletoolbox + div#style.mobile-wizard {
643643
display: none !important;
644644
}

browser/css/jsdialogs.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ input[type='number']:hover::-webkit-outer-spin-button {
10051005
}
10061006

10071007
.modalpopup[id$='-dropdown'] {
1008-
/* submenu is inserted into the same overlay, dont make it relative to parent */
1008+
/* submenu is inserted into the same overlay, don't make it relative to parent */
10091009
position: absolute !important;
10101010
}
10111011

@@ -1350,7 +1350,7 @@ input[type='number']:hover::-webkit-outer-spin-button {
13501350
color: #636363 !important;
13511351
}
13521352

1353-
/* Dialog-specific excelptions*/
1353+
/* Dialog-specific exceptions */
13541354
#DefineNameDialog .cell.jsdialog,
13551355
#ManageNamesDialog .cell.jsdialog {
13561356
padding-left: 0px;
@@ -1378,7 +1378,7 @@ input[type='number']:hover::-webkit-outer-spin-button {
13781378
display: none;
13791379
}
13801380

1381-
/* Macros dialos */
1381+
/* Macros dialog */
13821382

13831383
#MacroWarnMedium label {
13841384
max-width: 400px;

browser/css/menubar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
display: none;
2424
}
2525

26-
/* hide documen-header to free up space when using narrow windows */
26+
/* hide document-header to free up space when using narrow windows */
2727
@media screen and (max-width: 800px) {
2828
.main-nav.hasnotebookbar:not(.readonly) #document-header {
2929
display: none !important;

browser/js/Autolinker.js

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

browser/js/ResizeObserverPolyfill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ if (typeof ResizeObserver === 'undefined') {
205205
// Schedule new call to be in invoked when the pending one is resolved.
206206
// This is important for "transitions" which never actually start
207207
// immediately so there is a chance that we might miss one if change
208-
// happens amids the pending invocation.
208+
// happens amidst the pending invocation.
209209
trailingCall = true;
210210
}
211211
else {

browser/js/global.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function getInitializerClass() {
637637
}
638638
});
639639
};
640-
640+
641641
processObject(settingJSON);
642642

643643
global.prefs._localStorageCache = {};
@@ -656,7 +656,7 @@ function getInitializerClass() {
656656
return;
657657
}
658658

659-
// we do not remove the old value, both for downgrades and incase we split an old global preference to a per-app one
659+
// we do not remove the old value, both for downgrades and in case we split an old global preference to a per-app one
660660
global.localStorage.setItem(newName, oldValue);
661661
},
662662

@@ -958,7 +958,7 @@ function getInitializerClass() {
958958
/// may be useful to supplement hasAnyTouchscreen or hasPrimaryTouchscreen for, for example, determining UI or
959959
/// hitboxes after a tap in a place where you can't sensibly figure out whether the direct trigger was a
960960
/// touchscreen. Examples might be click events that are roundtripped through core
961-
/// is null when no touch or click events have yet occured, true when the last touch or click event was from a
961+
/// is null when no touch or click events have yet occurred, true when the last touch or click event was from a
962962
/// touchscreen, and false when the last touch or click event was from a mouse
963963
/// is updated with active listeners during the capture phase of the <html> element, so should be done before
964964
/// most other event processing takes place
@@ -969,7 +969,7 @@ function getInitializerClass() {
969969
/// touch event
970970
lastEventTime: null,
971971

972-
/// detect if the last event was a touch event, or if no events have yet occured whether we have a touchscreen
972+
/// detect if the last event was a touch event, or if no events have yet occurred whether we have a touchscreen
973973
/// available to us. Should be able to replace uses of hasAnyTouchscreen for uses where we are OK with the
974974
/// result being less stable
975975
currentlyUsingTouchscreen: function() {

browser/src/canvas/CanvasSectionContainer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ class CanvasSectionContainer {
17991799
this.context.setTransform(1, 0, 0, 1, 0, 0);
18001800

18011801
var subsetBounds: cool.Bounds = null;
1802-
// if there is a tileSubset we only want to draw the miniumum region of its bounds
1802+
// if there is a tileSubset we only want to draw the minimum region of its bounds
18031803
if (tileSubset) {
18041804
const tileSection: cool.TilesSection = (this.getSectionWithName(L.CSections.Tiles.name) as any) as cool.TilesSection;
18051805
if (tileSection && this.shouldDrawSection((tileSection as any) as CanvasSectionObject)) {

browser/src/canvas/sections/CommentListSection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ export class CommentSection extends app.definitions.canvasSectionObject {
821821
// Select the root comment
822822
var idx = this.getRootIndexOf(annotation.sectionProperties.data.id);
823823

824-
// no need to reselect comment, it will cuase to scroll to root comment unnecessarily
824+
// no need to reselect comment, it will cause to scroll to root comment unnecessarily
825825
if (this.sectionProperties.selectedComment === this.sectionProperties.commentList[idx]) {
826826
this.update();
827827
return;
@@ -2219,7 +2219,7 @@ export class CommentSection extends app.definitions.canvasSectionObject {
22192219
if (actHeight > maxMaxHeight) {
22202220
actHeight = maxMaxHeight;
22212221
}
2222-
// if _leaflet_pos are not calculated (undefined) then dont do it (leave the comment at default size)
2222+
// if _leaflet_pos are not calculated (undefined) then don't do it (leave the comment at default size)
22232223
if (typeof this.sectionProperties.commentList[i].sectionProperties.container._leaflet_pos !== 'undefined'
22242224
&& (i+1 >= this.sectionProperties.commentList.length
22252225
|| typeof this.sectionProperties.commentList[i+1].sectionProperties.container._leaflet_pos !== 'undefined'))

0 commit comments

Comments
 (0)