Skip to content

Commit 6d6f639

Browse files
committed
docs: Correct some typos in webui, mostly in comments
1 parent 9f1c954 commit 6d6f639

File tree

40 files changed

+58
-58
lines changed

40 files changed

+58
-58
lines changed

packages/webui/public/origo-ui/dist/origo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4283,7 +4283,7 @@ span.aligned {
42834283
.dark .warn .action-btn:hover {
42844284
color: #252627; }
42854285

4286-
/* Resposive overrides */
4286+
/* Responsive overrides */
42874287
/* Small screens */
42884288
@media only screen and (min-width: 640px) {
42894289
/* Layout overrides */

packages/webui/src/__mocks__/helpers/jest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function runTimersUntilNow(): Promise<void> {
1818
}
1919
}
2020

21-
/** Returns a Promise that resolves after a speficied number of milliseconds */
21+
/** Returns a Promise that resolves after a specified number of milliseconds */
2222
export async function waitTime(ms: number): Promise<void> {
2323
return new Promise((resolve) => orgSetTimeout(resolve, ms))
2424
}

packages/webui/src/__mocks__/random.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function restartRandomId(): void {
2727

2828
export function resetRandomId(): void {
2929
// move the iterator forward and tie to next 1000
30-
// This will help with making the random id more consistend in tests
30+
// This will help with making the random id more consistent in tests
3131
RandomMock.mockI += 500
3232
RandomMock.mockI += 1000 - (RandomMock.mockI % 1000)
3333
}

packages/webui/src/client/lib/ReactMeteorData/ReactMeteorData.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export type Translated<T> = T & WithTranslation
336336
* @template T
337337
* @template K
338338
* @param {() => T} autorun The autorun function to be run.
339-
* @param {React.DependencyList} [deps] A required list of dependenices to limit the tracker re-running. Can be left empty, if tracker
339+
* @param {React.DependencyList} [deps] A required list of dependencies to limit the tracker re-running. Can be left empty, if tracker
340340
* has no external dependencies and should only be rerun when it's invalidated.
341341
* @param {K} [initial] An optional, initial state of the tracker. If not provided, the tracker may return undefined.
342342
* @return {*} {(T | K)}
@@ -458,7 +458,7 @@ function useDelayState(initialState = false): {
458458
*
459459
* @export
460460
* @param {PubSub} sub The subscription to be subscribed to
461-
* @param {...any[]} args A list of arugments for the subscription. This is used for optimizing the subscription across
461+
* @param {...any[]} args A list of arguments for the subscription. This is used for optimizing the subscription across
462462
* renders so that it isn't torn down and created for every render.
463463
*/
464464
export function useSubscription<K extends keyof AllPubSubTypes>(
@@ -497,7 +497,7 @@ export function useSubscription<K extends keyof AllPubSubTypes>(
497497
* @export
498498
* @param {PubSub} sub The subscription to be subscribed to
499499
* @param {boolean} enable Whether the subscription is enabled
500-
* @param {...any[]} args A list of arugments for the subscription. This is used for optimizing the subscription across
500+
* @param {...any[]} args A list of arguments for the subscription. This is used for optimizing the subscription across
501501
* renders so that it isn't torn down and created for every render.
502502
*/
503503
export function useSubscriptionIfEnabled<K extends keyof AllPubSubTypes>(
@@ -542,7 +542,7 @@ export function useSubscriptionIfEnabled<K extends keyof AllPubSubTypes>(
542542
* @export
543543
* @param {PubSub} sub The subscription to be subscribed to
544544
* @param {boolean} enable Whether the subscription is enabled
545-
* @param {...any[]} args A list of arugments for the subscription. This is used for optimizing the subscription across
545+
* @param {...any[]} args A list of arguments for the subscription. This is used for optimizing the subscription across
546546
* renders so that it isn't torn down and created for every render.
547547
*/
548548
export function useSubscriptionIfEnabledReadyOnce<K extends keyof AllPubSubTypes>(

packages/webui/src/client/lib/RundownResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const SIMULATION_INVALIDATION = 3000
111111
* @param {boolean} allowTestingAdlibsToPersist Studio config parameter to allow infinite adlibs from adlib testing to persist in the rundown
112112
* @param {FindOptions<PieceInstance>} [options]
113113
* @param {boolean} [pieceInstanceSimulation] If there are no PieceInstances in the PartInstance, create temporary
114-
* PieceInstances based on the Pieces collection and register a reactive dependancy to recalculate the current
114+
* PieceInstances based on the Pieces collection and register a reactive dependency to recalculate the current
115115
* computation after some time to return the actual PieceInstances for the PartInstance.
116116
* @return {*}
117117
*/

packages/webui/src/client/lib/Settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ISettings, DEFAULT_SETTINGS } from '@sofie-automation/meteor-lib/dist/S
33

44
/**
55
* This is an object specifying installation-wide, User Interface settings.
6-
* There are default values for these settings that will be used, unless overriden
6+
* There are default values for these settings that will be used, unless overridden
77
* through Meteor.settings functionality.
88
*
99
* You can use METEOR_SETTING to inject the settings JSON or you can use the

packages/webui/src/client/lib/__tests__/rundown.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const mockPartInstancesCollection = MongoMock.getInnerMockCollection(PartInstanc
2424
const mockPieceInstancesCollection = MongoMock.getInnerMockCollection(PieceInstances)
2525
const mockPiecesCollection = MongoMock.getInnerMockCollection(Pieces)
2626

27-
// This is a hack, the tests should be rewriten to not use methods unrelated to the testee
27+
// This is a hack, the tests should be rewritten to not use methods unrelated to the testee
2828
jest.mock('../../ui/Collections', () => {
2929
const mockClientCollections = jest.requireActual('../../ui/Collections')
3030
const mockLibCollections = jest.requireActual('../../collections/index')

packages/webui/src/client/lib/clientUserAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function userActionToLabel(userAction: UserAction, t: i18next.TFunction) {
131131
}
132132

133133
/**
134-
* Handle a the experience arround a back-end method call - display a "Waiting for action" message, when the call takes
134+
* Handle a the experience around a back-end method call - display a "Waiting for action" message, when the call takes
135135
* long to return a result/error and show an error message when the call fails.
136136
*
137137
* @export

packages/webui/src/client/lib/forms/SchemaFormTable/ObjectTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const SchemaFormObjectTable = ({
6565

6666
const wrappedRows = useMemo(() => {
6767
if (item.defaults) {
68-
// Table can be overriden with granularity
68+
// Table can be overridden with granularity
6969

7070
const rawRows = (attr ? objectPathGet(item.defaults, attr) : item.defaults) || {}
7171

@@ -87,7 +87,7 @@ export const SchemaFormObjectTable = ({
8787
defaults: rawRows,
8888
overrides: ops,
8989
},
90-
(a, b) => a[0].localeCompare(b[0]) // TODO - better comparitor?
90+
(a, b) => a[0].localeCompare(b[0]) // TODO - better comparator?
9191
)
9292

9393
return wrappedRows
@@ -102,7 +102,7 @@ export const SchemaFormObjectTable = ({
102102
if (obj) validItems.push([id, obj])
103103
}
104104

105-
validItems.sort((a, b) => a[0].localeCompare(b[0])) // TODO - better comparitor?
105+
validItems.sort((a, b) => a[0].localeCompare(b[0])) // TODO - better comparator?
106106

107107
// Sort and wrap in the return type
108108
return validItems.map(([id, obj]) =>

packages/webui/src/client/lib/memoizedIsolatedAutorun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function memoizedIsolatedAutorunAsync<TArgs extends any[], TRes>(
132132
// If the old value is an unresolved promise, we can't compare it
133133
const oldRealValue = isPromise(oldValue) ? null : oldValue
134134

135-
// If the values are different, invalidate the dependancy
135+
// If the values are different, invalidate the dependency
136136
// Do this even for the first run, as other listeners might have joined while the promise was resolving
137137
if (!_.isEqual(oldRealValue, newValue)) {
138138
dep.changed()

0 commit comments

Comments
 (0)