fix: typo spelling grammar (#4095)

* fix: typo spelling grammar
This commit is contained in:
arfy slowy 2021-08-24 05:43:58 +07:00 committed by GitHub
parent 4b9ff67e49
commit 62de310686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 20 additions and 20 deletions

2
API.md
View File

@ -996,7 +996,7 @@ reveal additional information when the mouse cursor is hovered over it.
A common use case for indicators is to convey the state of some external system such as a A common use case for indicators is to convey the state of some external system such as a
persistence backend or HTTP server. So long as this system is accessible via HTTP request, persistence backend or HTTP server. So long as this system is accessible via HTTP request,
Open MCT provides a general purpose indicator to show whether the server is available and Open MCT provides a general purpose indicator to show whether the server is available and
returing a 2xx status code. The URL Status Indicator is made available as a default plugin. See returning a 2xx status code. The URL Status Indicator is made available as a default plugin. See
the [documentation](./src/plugins/URLIndicatorPlugin) for details on how to install and configure the the [documentation](./src/plugins/URLIndicatorPlugin) for details on how to install and configure the
URL Status Indicator. URL Status Indicator.

View File

@ -423,7 +423,7 @@ which can help with this, however.
instead of separate approaches for static and substitutable instead of separate approaches for static and substitutable
dependencies. dependencies.
* Removes need to understand Angular's DI mechanism. * Removes need to understand Angular's DI mechanism.
* Improves useability of documentation (`typeService` is an * Improves usability of documentation (`typeService` is an
instance of `CompositeService` and implements `TypeService` instance of `CompositeService` and implements `TypeService`
so you can easily traverse links in the JSDoc.) so you can easily traverse links in the JSDoc.)
* Can be used more easily from Web Workers, allowing services * Can be used more easily from Web Workers, allowing services

View File

@ -25,7 +25,7 @@
## Legacy Documentation ## Legacy Documentation
As we transition to a new API, the following documentation for the old API As we transition to a new API, the following documentation for the old API
(which is supported during the transtion) may be useful as well: (which is supported during the transition) may be useful as well:
* The [Architecture Overview](architecture/) describes the concepts used * The [Architecture Overview](architecture/) describes the concepts used
throughout Open MCT, and gives a high level overview of the platform's design. throughout Open MCT, and gives a high level overview of the platform's design.

View File

@ -152,7 +152,7 @@
<h2>How to Use Glyphs</h2> <h2>How to Use Glyphs</h2>
<div class="cols cols1-1"> <div class="cols cols1-1">
<div class="col"> <div class="col">
<p>The easiest way to use a glyph is to include its CSS class in an element. The CSS adds a psuedo <code>:before</code> HTML element to whatever element it's attached to that makes proper use of the symbols font.</p> <p>The easiest way to use a glyph is to include its CSS class in an element. The CSS adds a pseudo <code>:before</code> HTML element to whatever element it's attached to that makes proper use of the symbols font.</p>
<p>Alternately, you can use the <code>.ui-symbol</code> class in an object that contains encoded HTML entities. This method is only recommended if you cannot use the aforementioned CSS class approach.</p> <p>Alternately, you can use the <code>.ui-symbol</code> class in an object that contains encoded HTML entities. This method is only recommended if you cannot use the aforementioned CSS class approach.</p>
</div> </div>
<mct-example><a class="s-button icon-gear" title="Settings"></a> <mct-example><a class="s-button icon-gear" title="Settings"></a>

View File

@ -64,7 +64,7 @@ define(
* *
* @param {DomainObject} domainObject the domain object to navigate to * @param {DomainObject} domainObject the domain object to navigate to
* @param {Boolean} force if true, force navigation to occur. * @param {Boolean} force if true, force navigation to occur.
* @returns {Boolean} true if navigation occured, otherwise false. * @returns {Boolean} true if navigation occurred, otherwise false.
*/ */
NavigationService.prototype.setNavigation = function (domainObject, force) { NavigationService.prototype.setNavigation = function (domainObject, force) {
if (force) { if (force) {

View File

@ -379,7 +379,7 @@ define([
{ {
"name": "Math.uuid.js", "name": "Math.uuid.js",
"version": "1.4.7", "version": "1.4.7",
"description": "Unique identifer generation (code adapted.)", "description": "Unique identifier generation (code adapted.)",
"author": "Robert Kieffer", "author": "Robert Kieffer",
"website": "https://github.com/broofa/node-uuid", "website": "https://github.com/broofa/node-uuid",
"copyright": "Copyright (c) 2010-2012 Robert Kieffer", "copyright": "Copyright (c) 2010-2012 Robert Kieffer",

View File

@ -47,7 +47,7 @@ define(
* @param $interval Angular's $interval service * @param $interval Angular's $interval service
* @param {string} space the name of the persistence space being served * @param {string} space the name of the persistence space being served
* @param {string} root the root of the path to ElasticSearch * @param {string} root the root of the path to ElasticSearch
* @param {stirng} path the path to domain objects within ElasticSearch * @param {string} path the path to domain objects within ElasticSearch
*/ */
function ElasticPersistenceProvider($http, $q, space, root, path) { function ElasticPersistenceProvider($http, $q, space, root, path) {
this.spaces = [space]; this.spaces = [space];

View File

@ -42,7 +42,7 @@ import EventEmitter from 'EventEmitter';
* *
* @typedef {object} NotificationModel * @typedef {object} NotificationModel
* @property {string} message The message to be displayed by the notification * @property {string} message The message to be displayed by the notification
* @property {number | 'unknown'} [progress] The progres of some ongoing task. Should be a number between 0 and 100, or * @property {number | 'unknown'} [progress] The progress of some ongoing task. Should be a number between 0 and 100, or
* with the string literal 'unknown'. * with the string literal 'unknown'.
* @property {string} [progressText] A message conveying progress of some ongoing task. * @property {string} [progressText] A message conveying progress of some ongoing task.
@ -98,7 +98,7 @@ export default class NotificationAPI extends EventEmitter {
* Present an alert to the user. * Present an alert to the user.
* @param {string} message The message to display to the user. * @param {string} message The message to display to the user.
* @param {Object} [options] object with following properties * @param {Object} [options] object with following properties
* autoDismissTimeout: {number} in miliseconds to automatically dismisses notification * autoDismissTimeout: {number} in milliseconds to automatically dismisses notification
* link: {Object} Add a link to notifications for navigation * link: {Object} Add a link to notifications for navigation
* onClick: callback function * onClick: callback function
* cssClass: css class name to add style on link * cssClass: css class name to add style on link
@ -119,7 +119,7 @@ export default class NotificationAPI extends EventEmitter {
* Present an error message to the user * Present an error message to the user
* @param {string} message * @param {string} message
* @param {Object} [options] object with following properties * @param {Object} [options] object with following properties
* autoDismissTimeout: {number} in miliseconds to automatically dismisses notification * autoDismissTimeout: {number} in milliseconds to automatically dismisses notification
* link: {Object} Add a link to notifications for navigation * link: {Object} Add a link to notifications for navigation
* onClick: callback function * onClick: callback function
* cssClass: css class name to add style on link * cssClass: css class name to add style on link

View File

@ -60,7 +60,7 @@ class OverlayAPI {
* A description of option properties that can be passed into the overlay * A description of option properties that can be passed into the overlay
* @typedef options * @typedef options
* @property {object} element DOMElement that is to be inserted/shown on the overlay * @property {object} element DOMElement that is to be inserted/shown on the overlay
* @property {string} size prefered size of the overlay (large, small, fit) * @property {string} size preferred size of the overlay (large, small, fit)
* @property {array} buttons optional button objects with label and callback properties * @property {array} buttons optional button objects with label and callback properties
* @property {function} onDestroy callback to be called when overlay is destroyed * @property {function} onDestroy callback to be called when overlay is destroyed
* @property {boolean} dismissable allow user to dismiss overlay by using esc, and clicking away * @property {boolean} dismissable allow user to dismiss overlay by using esc, and clicking away

View File

@ -36,7 +36,7 @@ define([
} }
/** /**
* Convets all objects in an object make from old format objects to new * Converts all objects in an object make from old format objects to new
* format objects. * format objects.
*/ */
function convertToNewObjects(oldObjectMap) { function convertToNewObjects(oldObjectMap) {

View File

@ -115,7 +115,7 @@ define([
expect(condition.evaluate(telemetryState)).toBe(true); expect(condition.evaluate(telemetryState)).toBe(true);
}); });
it('can evalute "if any object matches"', function () { it('can evaluate "if any object matches"', function () {
condition = new SummaryWidgetCondition({ condition = new SummaryWidgetCondition({
object: 'any', object: 'any',
key: 'raw', key: 'raw',

View File

@ -379,7 +379,7 @@ define(['../src/ConditionManager'], function (ConditionManager) {
telemetryRequests[1].resolve([mockTelemetryValues.mockCompObject2]); telemetryRequests[1].resolve([mockTelemetryValues.mockCompObject2]);
}); });
it('updates its LAD cache upon recieving telemetry and invokes the appropriate handlers', function () { it('updates its LAD cache upon receiving telemetry and invokes the appropriate handlers', function () {
mockTelemetryAPI.triggerTelemetryCallback('mockCompObject1'); mockTelemetryAPI.triggerTelemetryCallback('mockCompObject1');
expect(conditionManager.subscriptionCache.mockCompObject1.property1).toEqual('Its a different string'); expect(conditionManager.subscriptionCache.mockCompObject1.property1).toEqual('Its a different string');
mockTelemetryAPI.triggerTelemetryCallback('mockCompObject2'); mockTelemetryAPI.triggerTelemetryCallback('mockCompObject2');

View File

@ -48,7 +48,7 @@
display: flex; display: flex;
flex-flow: column nowrap; flex-flow: column nowrap;
flex: 1 1 auto; flex: 1 1 auto;
height: 0; // Chrome 73 oveflow bug fix height: 0; // Chrome 73 overflow bug fix
} }
&__empty-message { &__empty-message {

View File

@ -522,7 +522,7 @@ export default {
}, },
searchTree(value) { searchTree(value) {
// if an abort controller exists, regardless of the value passed in, // if an abort controller exists, regardless of the value passed in,
// there is an active search that should be cancled // there is an active search that should be canceled
if (this.abortSearchController) { if (this.abortSearchController) {
this.abortSearchController.abort(); this.abortSearchController.abort();
delete this.abortSearchController; delete this.abortSearchController;

View File

@ -69,11 +69,11 @@ xdescribe('Application router utility functions', () => {
openmct.router.on('change:hash', resolveFunction); openmct.router.on('change:hash', resolveFunction);
}); });
it('The getSearchParam function returns the value of an individual search paramater in the window location hash', () => { it('The getSearchParam function returns the value of an individual search parameter in the window location hash', () => {
expect(openmct.router.getSearchParam('testParam')).toBe('testValue'); expect(openmct.router.getSearchParam('testParam')).toBe('testValue');
}); });
it('The deleteSearchParam function deletes an individual search paramater in the window location hash', (done) => { it('The deleteSearchParam function deletes an individual search parameter in the window location hash', (done) => {
let success; let success;
openmct.router.deleteSearchParam('testParam'); openmct.router.deleteSearchParam('testParam');
resolveFunction = () => { resolveFunction = () => {
@ -109,7 +109,7 @@ xdescribe('Application router utility functions', () => {
openmct.router.on('change:hash', resolveFunction); openmct.router.on('change:hash', resolveFunction);
}); });
it('The setAllSearchParams function replaces all search paramaters in the window location hash', (done) => { it('The setAllSearchParams function replaces all search parameters in the window location hash', (done) => {
let success; let success;
openmct.router.setSearchParam('testParam2', 'updatedtestValue2'); openmct.router.setSearchParam('testParam2', 'updatedtestValue2');
@ -130,7 +130,7 @@ xdescribe('Application router utility functions', () => {
openmct.router.on('change:hash', resolveFunction); openmct.router.on('change:hash', resolveFunction);
}); });
it('The getAllSearchParams function returns the values of all search paramaters in the window location hash', () => { it('The getAllSearchParams function returns the values of all search parameters in the window location hash', () => {
let searchParams = openmct.router.getAllSearchParams(); let searchParams = openmct.router.getAllSearchParams();
expect(searchParams.get('testParam1')).toBe('testValue1'); expect(searchParams.get('testParam1')).toBe('testValue1');
expect(searchParams.get('testParam2')).toBe('updatedtestValue2'); expect(searchParams.get('testParam2')).toBe('updatedtestValue2');