Skip to content

Commit ecbb47b

Browse files
ranma42thePunderWoman
authored andcommitted
refactor: fix a number of typos throughout the codebase (#52826)
Fix several typos, mostly in the `adev` site. PR Close #52826
1 parent dfc6c8d commit ecbb47b

File tree

26 files changed

+39
-39
lines changed

26 files changed

+39
-39
lines changed

adev/src/app/core/layout/secondary-navigation/secondary-navigation.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565
}
6666

67-
// seconday nav - translated on x to display levels
67+
// secondary nav - translated on x to display levels
6868
.adev-nav-secondary {
6969
display: flex;
7070
flex-direction: row;

adev/src/app/core/services/theme-manager.service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ export class ThemeManager {
3838
}
3939

4040
this.loadThemePreference();
41-
this.watchPreferedColorScheme();
41+
this.watchPreferredColorScheme();
4242
}
4343

4444
setTheme(theme: Theme): void {
4545
this.theme.set(theme);
4646
this.setThemeInLocalStorage();
47-
this.setThemeBodyClasses(theme === 'auto' ? preferedScheme() : theme);
47+
this.setThemeBodyClasses(theme === 'auto' ? preferredScheme() : theme);
4848
}
4949

5050
// 1. Read theme preferences stored in localStorage
@@ -54,7 +54,7 @@ export class ThemeManager {
5454
const useTheme = savedUserPreference ?? 'auto';
5555

5656
this.theme.set(useTheme);
57-
this.setThemeBodyClasses(useTheme === 'auto' ? preferedScheme() : useTheme);
57+
this.setThemeBodyClasses(useTheme === 'auto' ? preferredScheme() : useTheme);
5858
}
5959

6060
// Set theme classes on the body element
@@ -81,14 +81,14 @@ export class ThemeManager {
8181
}
8282
}
8383

84-
private watchPreferedColorScheme() {
84+
private watchPreferredColorScheme() {
8585
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (event) => {
86-
const preferedScheme = event.matches ? 'dark' : 'light';
87-
this.setThemeBodyClasses(preferedScheme);
86+
const preferredScheme = event.matches ? 'dark' : 'light';
87+
this.setThemeBodyClasses(preferredScheme);
8888
});
8989
}
9090
}
9191

92-
function preferedScheme(): 'dark' | 'light' {
92+
function preferredScheme(): 'dark' | 'light' {
9393
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
9494
}

adev/src/app/editor/code-editor/extensions/tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const getTooltipExtension = (
6666
dom: tooltip,
6767

6868
// Note: force the tooltip to scroll to the top on mount and on position change
69-
// because depending on the position of the mouse and the siez of the tooltip content,
69+
// because depending on the position of the mouse and the size of the tooltip content,
7070
// the tooltip might render with its initial scroll position on the bottom
7171
mount: (_) => forceTooltipScrollTop(),
7272
positioned: (_) => forceTooltipScrollTop(),

adev/src/app/editor/embedded-editor.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</as-split-area>
1717

1818
<as-split-area [size]="50">
19-
<!-- Preview, Termnial & Console -->
19+
<!-- Preview, Terminal & Console -->
2020
@if (!displayOnlyTerminal()) {
2121
<as-split class="adev-right-side" direction="vertical" restrictMove="true" gutterSize="5">
2222
<!-- Preview Section: for larger screens -->

adev/src/app/editor/node-runtime-sandbox.service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const DEV_SERVER_READY_MSG = 'Watch mode enabled. Watching for file chang
2626
export const OUT_OF_MEMORY_MSG = 'Out of memory';
2727

2828
const enum PROCESS_EXIT_CODE {
29-
SUCCESS = 0, // process exited succesfully
29+
SUCCESS = 0, // process exited successfully
3030
ERROR = 10, // process exited with error
3131
SIGTERM = 143, // 143 = gracefully terminated by SIGTERM, e.g. Ctrl + C
3232
}
@@ -73,7 +73,7 @@ export class NodeRuntimeSandbox {
7373
}
7474

7575
async init(): Promise<void> {
76-
// Note: the error state can already be set when loading the NodeRuntimeSanbox
76+
// Note: the error state can already be set when loading the NodeRuntimeSandbox
7777
// in an unsupported environment.
7878
if (this.nodeRuntimeState.error()) {
7979
return;
@@ -155,7 +155,7 @@ export class NodeRuntimeSandbox {
155155
* Initialize the WebContainer for an Angular project
156156
*/
157157
private async initProject(): Promise<void> {
158-
// prevent re-initializion
158+
// prevent re-initialization
159159
if (this._isProjectInitialized()) return;
160160

161161
// clean up the sandbox if it was initialized before so that the CLI can
@@ -230,7 +230,7 @@ export class NodeRuntimeSandbox {
230230
* Initialize the WebContainer for the Angular CLI
231231
*/
232232
private async initAngularCli() {
233-
// prevent re-initializion
233+
// prevent re-initialization
234234
if (this._isAngularCliInitialized()) return;
235235

236236
// clean up the sandbox if a project was initialized before so the CLI can
@@ -292,7 +292,7 @@ export class NodeRuntimeSandbox {
292292

293293
const terminal = this.terminalHandler.interactiveTerminalInstance;
294294

295-
// use WebContainer spawn directly so that the proccess isn't killed on
295+
// use WebContainer spawn directly so that the process isn't killed on
296296
// cleanup
297297
const shellProcess = await webContainer.spawn('bash');
298298

@@ -516,10 +516,10 @@ export class NodeRuntimeSandbox {
516516

517517
/**
518518
* Kill existing processes and remove files from the WebContainer
519-
* when switching tutorials that have diferent requirements
519+
* when switching tutorials that have different requirements
520520
*/
521521
private async cleanup() {
522-
// await the proccess to be killed before removing the files because
522+
// await the process to be killed before removing the files because
523523
// a process can create files during the promise
524524
await this.killExistingProcesses();
525525
await this.removeFiles();

adev/src/app/editor/typings-loader.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class TypingsLoader {
8080
.readFile(`./node_modules/${library}/package.json`, 'utf-8')
8181
.catch((error) => {
8282
// Note: "ENOENT" errors occurs:
83-
// - While reseting the NodeRuntimeSandbox.
83+
// - While resetting the NodeRuntimeSandbox.
8484
// - When the library is not a dependency in the project, its package.json won't exist.
8585
//
8686
// In both cases we ignore the error to continue the process.

adev/src/app/features/tutorial/tutorial-navigation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use '@angular/docs/styles/media-queries' as mq;
22

3-
// horizozntal tutorial nav bar
3+
// horizontal tutorial nav bar
44
.adev-tutorial-nav-container {
55
position: sticky;
66
top: 0;

adev/src/content/examples/forms-overview/e2e/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AppPage } from './app.po';
22

3-
describe('forms-overvoew App', () => {
3+
describe('forms-overview App', () => {
44
let page: AppPage;
55

66
beforeEach(() => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="section">
22
<h2>&commat;Optional() Component</h2>
3-
<p>This component still works even though the OptionalService (notice &commat;Optional() in the consturctor isn't provided or configured anywhere. Angular goes through tree and visibilty rules, and if it doesn't find the requested service, returns null.</p>
3+
<p>This component still works even though the OptionalService (notice &commat;Optional() in the constructor isn't provided or configured anywhere. Angular goes through tree and visibility rules, and if it doesn't find the requested service, returns null.</p>
44
</div>

adev/src/content/examples/router/src/app/heroes/hero-list/hero-list.component.1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TODO: Feature Componetized like HeroCenter
1+
// TODO: Feature Componentized like HeroCenter
22
import { Component, OnInit } from '@angular/core';
33
import { Observable } from 'rxjs';
44

0 commit comments

Comments
 (0)