Skip to content

Commit b13e752

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing typo automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent fe33a90 commit b13e752

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

cypress/platform/current.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>info below</h1>
3131
flowchart BT subgraph S1 sub1 -->sub2 end subgraph S2 sub4 end S1 --> S2 sub1 --> sub4
3232
</div>
3333
<div class="mermaid2" style="width: 50%; height: 200px">
34-
sequenceDiagram Alice->>Bob:Extremely utterly long line of longness which had preivously
34+
sequenceDiagram Alice->>Bob:Extremely utterly long line of longness which had previously
3535
overflown the actor box as it is much longer than what it should be Bob->>Alice: I'm short
3636
though
3737
</div>

docs/news/blog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Exciting news for all Mermaid OSS fans: Mermaid Chart has officially launched wi
106106

107107
8 March 2023 · 9 mins
108108

109-
The hype around AI in general and ChatGPT, in particular, is so intense that it’s very understandable to assume the hype train is driving straight toward the trough of disillusionment.
109+
The hype around AI in general and ChatGPT, in particular, is so intense that it’s very understandable to assume the hype train is driving straight toward the through of disillusionment.
110110

111111
## [Flow charts are O(n)2 complex, so don't go over 100 connections](https://www.mermaidchart.com/blog/posts/flow-charts-are-on2-complex-so-dont-go-over-100-connections/)
112112

docs/syntax/c4.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ UpdateRelStyle(customerA, bankA, $offsetY="60")
320320
Person(customer, Customer, "A customer of the bank, with personal bank accounts", $tags="v1.0")
321321
322322
Container_Boundary(c1, "Internet Banking") {
323-
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to cutomers via their web browser")
323+
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to customers via their web browser")
324324
Container_Ext(mobile_app, "Mobile App", "C#, Xamarin", "Provides a limited subset of the Internet banking functionality to customers via their mobile device")
325325
Container(web_app, "Web Application", "Java, Spring MVC", "Delivers the static content and the Internet banking SPA")
326326
ContainerDb(database, "Database", "SQL Database", "Stores user registration information, hashed auth credentials, access logs, etc.")
@@ -360,7 +360,7 @@ UpdateRelStyle(customerA, bankA, $offsetY="60")
360360
Person(customer, Customer, "A customer of the bank, with personal bank accounts", $tags="v1.0")
361361
362362
Container_Boundary(c1, "Internet Banking") {
363-
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to cutomers via their web browser")
363+
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to customers via their web browser")
364364
Container_Ext(mobile_app, "Mobile App", "C#, Xamarin", "Provides a limited subset of the Internet banking functionality to customers via their mobile device")
365365
Container(web_app, "Web Application", "Java, Spring MVC", "Delivers the static content and the Internet banking SPA")
366366
ContainerDb(database, "Database", "SQL Database", "Stores user registration information, hashed auth credentials, access logs, etc.")

docs/syntax/classDiagram.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class BankAccount{
240240

241241
#### Generic Types
242242

243-
Generics can be representated as part of a class definition, and for class members/return types. In order to denote an item as generic, you enclose that type within `~` (**tilde**). **Nested** type declarations such as `List<List<int>>` are supported, though generics that include a comma are currently not supported. (such as `List<List<K, V>>`)
243+
Generics can be represented as part of a class definition, and for class members/return types. In order to denote an item as generic, you enclose that type within `~` (**tilde**). **Nested** type declarations such as `List<List<int>>` are supported, though generics that include a comma are currently not supported. (such as `List<List<K, V>>`)
244244

245245
> _note_ when a generic is used within a class definition, the generic type is NOT considered part of the class name. i.e.: for any syntax which required you to reference the class name, you need to drop the type part of the definition. This also means that mermaid does not currently support having two classes with the same name, but different generic types.
246246

packages/mermaid/src/diagrams/c4/c4Db.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let c4ShapeArray = [];
1111
let boundaryParseStack = [''];
1212
let currentBoundaryParse = 'global';
1313
let parentBoundaryParse = '';
14-
let boundarys = [
14+
let boundaries = [
1515
{
1616
alias: 'global',
1717
label: { text: 'global' },
@@ -312,12 +312,12 @@ export const addPersonOrSystemBoundary = function (alias, label, type, tags, lin
312312
}
313313

314314
let boundary = {};
315-
const old = boundarys.find((boundary) => boundary.alias === alias);
315+
const old = boundaries.find((boundary) => boundary.alias === alias);
316316
if (old && alias === old.alias) {
317317
boundary = old;
318318
} else {
319319
boundary.alias = alias;
320-
boundarys.push(boundary);
320+
boundaries.push(boundary);
321321
}
322322

323323
// Don't allow null labels, either
@@ -368,12 +368,12 @@ export const addContainerBoundary = function (alias, label, type, tags, link) {
368368
}
369369

370370
let boundary = {};
371-
const old = boundarys.find((boundary) => boundary.alias === alias);
371+
const old = boundaries.find((boundary) => boundary.alias === alias);
372372
if (old && alias === old.alias) {
373373
boundary = old;
374374
} else {
375375
boundary.alias = alias;
376-
boundarys.push(boundary);
376+
boundaries.push(boundary);
377377
}
378378

379379
// Don't allow null labels, either
@@ -433,12 +433,12 @@ export const addDeploymentNode = function (
433433
}
434434

435435
let boundary = {};
436-
const old = boundarys.find((boundary) => boundary.alias === alias);
436+
const old = boundaries.find((boundary) => boundary.alias === alias);
437437
if (old && alias === old.alias) {
438438
boundary = old;
439439
} else {
440440
boundary.alias = alias;
441-
boundarys.push(boundary);
441+
boundaries.push(boundary);
442442
}
443443

444444
// Don't allow null labels, either
@@ -514,7 +514,7 @@ export const updateElStyle = function (
514514
) {
515515
let old = c4ShapeArray.find((element) => element.alias === elementName);
516516
if (old === undefined) {
517-
old = boundarys.find((element) => element.alias === elementName);
517+
old = boundaries.find((element) => element.alias === elementName);
518518
if (old === undefined) {
519519
return;
520520
}
@@ -699,9 +699,9 @@ export const getC4ShapeKeys = function (parentBoundary) {
699699

700700
export const getBoundarys = function (parentBoundary) {
701701
if (parentBoundary === undefined || parentBoundary === null) {
702-
return boundarys;
702+
return boundaries;
703703
} else {
704-
return boundarys.filter((boundary) => boundary.parentBoundary === parentBoundary);
704+
return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
705705
}
706706
};
707707

@@ -723,7 +723,7 @@ export const autoWrap = function () {
723723

724724
export const clear = function () {
725725
c4ShapeArray = [];
726-
boundarys = [
726+
boundaries = [
727727
{
728728
alias: 'global',
729729
label: { text: 'global' },

packages/mermaid/src/diagrams/git/gitGraphParserV2.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('when parsing a gitGraph', function () {
66
parser.yy = gitGraphAst;
77
parser.yy.clear();
88
});
9-
it('should handle a gitGraph commit with NO pararms, get auto-generated reandom ID', function () {
9+
it('should handle a gitGraph commit with NO params, get auto-generated reandom ID', function () {
1010
const str = `gitGraph:
1111
commit
1212
`;

packages/mermaid/src/diagrams/sequence/sequenceDb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const addSignal = function (
126126
const cnt = activationCount(idFrom.actor);
127127
if (cnt < 1) {
128128
// Bail out as there is an activation signal from an inactive participant
129-
let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');
129+
let error = new Error('Trying to deactivate an inactive participant (' + idFrom.actor + ')');
130130
error.hash = {
131131
text: '->>-',
132132
token: '->>-',

packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ describe('when checking the bounds in a sequenceDiagram', function () {
15401540
expect(bounds.stopx).toBe(300);
15411541
expect(bounds.stopy).toBe(400);
15421542
});
1543-
it('should handle multiple loops withtout expanding the bounds', async () => {
1543+
it('should handle multiple loops without expanding the bounds', async () => {
15441544
diagram.renderer.bounds.insert(100, 100, 1000, 1000);
15451545
diagram.renderer.bounds.verticalPos = 200;
15461546
diagram.renderer.bounds.newLoop();

packages/mermaid/src/docs/news/blog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Exciting news for all Mermaid OSS fans: Mermaid Chart has officially launched wi
100100

101101
8 March 2023 · 9 mins
102102

103-
The hype around AI in general and ChatGPT, in particular, is so intense that it’s very understandable to assume the hype train is driving straight toward the trough of disillusionment.
103+
The hype around AI in general and ChatGPT, in particular, is so intense that it’s very understandable to assume the hype train is driving straight toward the through of disillusionment.
104104

105105
## [Flow charts are O(n)2 complex, so don't go over 100 connections](https://www.mermaidchart.com/blog/posts/flow-charts-are-on2-complex-so-dont-go-over-100-connections/)
106106

packages/mermaid/src/docs/syntax/c4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ UpdateRelStyle(customerA, bankA, $offsetY="60")
218218
Person(customer, Customer, "A customer of the bank, with personal bank accounts", $tags="v1.0")
219219
220220
Container_Boundary(c1, "Internet Banking") {
221-
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to cutomers via their web browser")
221+
Container(spa, "Single-Page App", "JavaScript, Angular", "Provides all the Internet banking functionality to customers via their web browser")
222222
Container_Ext(mobile_app, "Mobile App", "C#, Xamarin", "Provides a limited subset of the Internet banking functionality to customers via their mobile device")
223223
Container(web_app, "Web Application", "Java, Spring MVC", "Delivers the static content and the Internet banking SPA")
224224
ContainerDb(database, "Database", "SQL Database", "Stores user registration information, hashed auth credentials, access logs, etc.")

packages/mermaid/src/docs/syntax/classDiagram.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class BankAccount{
143143

144144
#### Generic Types
145145

146-
Generics can be representated as part of a class definition, and for class members/return types. In order to denote an item as generic, you enclose that type within `~` (**tilde**). **Nested** type declarations such as `List<List<int>>` are supported, though generics that include a comma are currently not supported. (such as `List<List<K, V>>`)
146+
Generics can be represented as part of a class definition, and for class members/return types. In order to denote an item as generic, you enclose that type within `~` (**tilde**). **Nested** type declarations such as `List<List<int>>` are supported, though generics that include a comma are currently not supported. (such as `List<List<K, V>>`)
147147

148148
> _note_ when a generic is used within a class definition, the generic type is NOT considered part of the class name. i.e.: for any syntax which required you to reference the class name, you need to drop the type part of the definition. This also means that mermaid does not currently support having two classes with the same name, but different generic types.
149149

packages/mermaid/src/mermaid.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe('when using mermaid and ', () => {
174174
await expect(mermaid.parse('graph TQ;A--x|text including URL space|B;')).rejects
175175
.toThrowErrorMatchingInlineSnapshot(`
176176
"Lexical error on line 1. Unrecognized text.
177-
graph TQ;A--x|text includ
177+
graph TQ;A--x|text include
178178
-----^"
179179
`);
180180
});

0 commit comments

Comments
 (0)