chore: modify cspell config and fix all typos (#6908)

This commit is contained in:
Jesse Mazzella 2023-08-10 09:20:16 -07:00 committed by GitHub
parent 9be9c5e28e
commit 10f3e13e4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
71 changed files with 141 additions and 218 deletions

View File

@ -140,38 +140,24 @@
"pathing",
"pases",
"testcases",
"Responsefrom",
"Verficiation",
"persistable",
"Noneditable",
"Persistability",
"persistability",
"peristable",
"listitem",
"Gantt",
"timelist",
"Indepdenent",
"timestrip",
"Implimenting",
"proprety",
"networkevents",
"stablize",
"fetchpriority",
"visibity",
"Hiearchy",
"persistible",
"persistable",
"Persistable",
"persistability",
"Persistability",
"testdata",
"Testdata",
"metdata",
"Snaphot",
"timeconductor",
"Endtimes",
"contenteditable",
"respone",
"Testsuite",
"autoscale",
"Autoscale",
"reflexted",
"prepan",
"sinewave",
"cyanish",
@ -190,19 +176,14 @@
"Imageurl",
"thumbstrip",
"checkmark",
"acknowldeged",
"Unshelve",
"autosized",
"chacskaylo",
"Telmetry",
"numberfield",
"OPENMCT",
"MILISECONDS",
"Autoflow",
"Timelist",
"faultmanagement",
"localed",
"avaiable",
"GEOSPATIAL",
"geospatial",
"plotspatial",
@ -210,7 +191,6 @@
"keystrings",
"undelete",
"sometag",
"nameespace",
"containee",
"composability",
"mutables",
@ -218,26 +198,18 @@
"composee",
"handleoutsideclick",
"Datetime",
"funtion",
"Perc",
"autodismiss",
"Notifiation",
"notificiation",
"filetree",
"deeptailor",
"keystring",
"Persistable",
"Inovke",
"reindex",
"modifed",
"unlisten",
"symbolsfont",
"ellipsize",
"dismissable",
"TIMESYSTEM",
"Metadatas",
"modifyed",
"stategy",
"stalenes",
"receieves",
"unsub",
@ -249,7 +221,6 @@
"granually",
"timesystem",
"metadatas",
"posess",
"iteratees",
"metadatum",
"printj",
@ -257,13 +228,8 @@
"unlisteners",
"amts",
"reregistered",
"opemct",
"specifiy",
"loged",
"hudsonfoo",
"onclone",
"instatation",
"instatiated",
"autoflow",
"xdescribe",
"mockmct",
@ -282,8 +248,6 @@
"showline",
"bglayer",
"autorange",
"telmetry",
"subcribe",
"hoverinfo",
"dotful",
"Dotful",
@ -305,7 +269,6 @@
"inspectable",
"Stringformatter",
"sclk",
"compostion",
"Objectpath",
"Keystring",
"duplicatable",
@ -315,11 +278,7 @@
"callthrough",
"objectpath",
"createable",
"applie",
"noneditable",
"infinte",
"occured",
"Occured",
"Classname",
"classname",
"selectedfaults",
@ -351,16 +310,12 @@
"TIMESTRIP",
"TWENTYFOUR",
"FULLSIZE",
"doesnt",
"intialize",
"Timestrip",
"spyon",
"Unlistener",
"multipane",
"DATESTRING",
"requred",
"telemtry",
"lastest",
"akhenry",
"Niklas",
"Hertzen",
@ -383,7 +338,6 @@
"Yuxi",
"ACITON",
"localstorage",
"Compostion",
"Linkto",
"Painterro",
"Editability",
@ -393,9 +347,6 @@
"notebookstorage",
"Andpage",
"pixelize",
"incremement",
"Couche",
"namepaces",
"Quickstart",
"indexhtml",
"youradminpassword",
@ -403,7 +354,6 @@
"sourcefiles",
"USERPASS",
"XPUT",
"referer",
"adipiscing",
"eiusmod",
"tempor",
@ -416,43 +366,21 @@
"submodels",
"symlog",
"Plottable",
"dont",
"sinwave",
"necesarry",
"antisymlog",
"docstrings",
"unavailab",
"eelement",
"mediump",
"webglcontextlost",
"gridlines",
"Xaxis",
"Crosshairs",
"telemetrylimit",
"createble",
"xscale",
"yscale",
"temparature",
"configurration",
"envoke",
"untracks",
"Recieve",
"swatched",
"NULLVALUE",
"intial",
"Retreives",
"assoicated",
"cotains",
"thet",
"Initialze",
"unobserver",
"unsubscriber",
"generateor",
"Intantiate",
"drap",
"historial",
"evalutes",
"initialzes",
"Averager",
"averager",
"movecolumnfromindex",
@ -463,17 +391,13 @@
"Hitarea",
"Unmark",
"controlbar",
"examplar",
"reactified",
"valuelue",
"perc",
"DHMS",
"timespans",
"timeframes",
"Timesystems",
"Syste",
"Hilite",
"screan",
"datetimes",
"momentified",
"ucontents",
@ -500,7 +424,6 @@
"bfill",
"ctitle",
"eicon",
"ccircle",
"interactability",
"AFFORDANCES",
"affordance",
@ -530,7 +453,6 @@
"gridlayer",
"xtick",
"ytick",
"notabook",
"subobjects",
"Ucontents",
"Userand",
@ -544,10 +466,7 @@
"haslink",
"VPID",
"vpid",
"paramater",
"paramaters",
"updatedtest",
"broser",
"KHTML",
"Chromezilla",
"Safarifox",
@ -555,15 +474,19 @@
"hundredtized",
"dhms",
"unthrottled",
"Codecov"
"Codecov",
"dont",
"mediump"
],
"dictionaries": ["npm", "software-terms"],
"dictionaries": ["npm", "softwareTerms", "node", "html", "css", "bash", "en_US"],
"ignorePaths": [
"package.json",
"dist/**",
"package-lock.json",
"node_modules",
"coverage",
"*.log"
"*.log",
"html-test-results",
"test-results"
]
}

View File

@ -95,10 +95,10 @@ To run the performance tests:
`npm run test:perf`
The test suite is configured to all tests localed in `e2e/tests/` ending in `*.e2e.spec.js`. For more about the e2e test suite, please see the [README](./e2e/README.md)
The test suite is configured to all tests located in `e2e/tests/` ending in `*.e2e.spec.js`. For more about the e2e test suite, please see the [README](./e2e/README.md)
### Security Tests
Each commit is analyzed for known security vulnerabilities using [CodeQL](https://codeql.github.com/docs/codeql-language-guides/codeql-library-for-javascript/). The list of CWE coverage items is avaiable in the [CodeQL docs](https://codeql.github.com/codeql-query-help/javascript-cwe/). The CodeQL workflow is specified in the [CodeQL analysis file](./.github/workflows/codeql-analysis.yml) and the custom [CodeQL config](./.github/codeql/codeql-config.yml).
Each commit is analyzed for known security vulnerabilities using [CodeQL](https://codeql.github.com/docs/codeql-language-guides/codeql-library-for-javascript/). The list of CWE coverage items is available in the [CodeQL docs](https://codeql.github.com/codeql-query-help/javascript-cwe/). The CodeQL workflow is specified in the [CodeQL analysis file](./.github/workflows/codeql-analysis.yml) and the custom [CodeQL config](./.github/codeql/codeql-config.yml).
### Test Reporting and Code Coverage

View File

@ -80,7 +80,7 @@ test.describe('CouchDB Status Indicator with mocked responses @couchdb', () => {
test.describe('CouchDB initialization with mocked responses @couchdb', () => {
test.use({ failOnConsoleError: false });
test("'My Items' folder is created if it doesn't exist", async ({ page }) => {
const mockedMissingObjectResponsefromCouchDB = {
const mockedMissingObjectResponseFromCouchDB = {
status: 404,
contentType: 'application/json',
body: JSON.stringify({})
@ -92,7 +92,7 @@ test.describe('CouchDB initialization with mocked responses @couchdb', () => {
await page.route(
'**/mine',
(route) => {
route.fulfill(mockedMissingObjectResponsefromCouchDB);
route.fulfill(mockedMissingObjectResponseFromCouchDB);
},
{ times: 1 }
);

View File

@ -46,7 +46,7 @@ test.describe('Example Event Generator CRUD Operations', () => {
});
});
test.describe('Example Event Generator Telemetry Event Verficiation', () => {
test.describe('Example Event Generator Telemetry Event Verification', () => {
test.fixme('telemetry is coming in for test event', async ({ page }) => {
// Go to object created in step one
// Verify the telemetry table is filled with > 1 row

View File

@ -292,7 +292,7 @@ test.describe('Move & link item tests', () => {
});
test.fixme(
'Cannot move a previously created domain object to non-peristable object in Move Modal',
'Cannot move a previously created domain object to non-persistable object in Move Modal',
async ({ page }) => {
//Create a domain object
//Save Domain object

View File

@ -73,7 +73,7 @@ const testPlan = {
};
test.describe('Time Strip', () => {
test('Create two Time Strips, add a single Plan to both, and verify they can have separate Indepdenent Time Contexts @unstable', async ({
test('Create two Time Strips, add a single Plan to both, and verify they can have separate Independent Time Contexts @unstable', async ({
page
}) => {
test.info().annotations.push({

View File

@ -22,7 +22,7 @@
/*
This test suite is dedicated to tests which verify the basic operations surrounding conditionSets. Note: this
suite is sharing state between tests which is considered an anti-pattern. Implimenting in this way to
suite is sharing state between tests which is considered an anti-pattern. Implementing in this way to
demonstrate some playwright for test developers. This pattern should not be re-used in other CRUD suites.
*/
@ -127,7 +127,7 @@ test.describe.serial('Condition Set CRUD Operations on @localStorage', () => {
// Verify Inspector Details has updated Name property
expect.soft(page.locator('text=Renamed Condition Set').nth(2)).toBeTruthy();
// Verify Tree reflects updated Name proprety
// Verify Tree reflects updated Name property
// Expand Tree
await page.locator(`text=Open MCT ${myItemsFolderName} >> span >> nth=3`).click();
// Verify Condition Set Object is renamed in Tree
@ -150,7 +150,7 @@ test.describe.serial('Condition Set CRUD Operations on @localStorage', () => {
// Verify Inspector Details has updated Name property
expect.soft(page.locator('text=Renamed Condition Set').nth(2)).toBeTruthy();
// Verify Tree reflects updated Name proprety
// Verify Tree reflects updated Name property
// Expand Tree
await page.locator(`text=Open MCT ${myItemsFolderName} >> span >> nth=3`).click();
// Verify Condition Set Object is renamed in Tree

View File

@ -214,7 +214,7 @@ test.describe('Example Imagery Object', () => {
await page.mouse.up();
await Promise.all(tagHotkey.map((x) => page.keyboard.up(x)));
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
// add some tags
@ -394,7 +394,7 @@ test.describe('Example Imagery in Display Layout', () => {
/**
* Toggle layer visibility checkbox by clicking on checkbox label
* - should toggle checkbox and layer visibility for that image view
* - should NOT toggle checkbox and layer visibity for the first image view in display
* - should NOT toggle checkbox and layer visibility for the first image view in display
*/
test('Toggle layer visibility by clicking on label', async ({ page }) => {
test.info().annotations.push({

View File

@ -48,12 +48,12 @@ test.describe('ExportAsJSON', () => {
test.fixme('Verify that a nested Object can be exported as JSON', async ({ page }) => {
// Create 2 objects with hierarchy
// Export as JSON
// Verify Hiearchy
// Verify Hierarchy
});
test.fixme(
'Verify that the ExportAsJSON dropdown does not appear for the item X',
async ({ page }) => {
// Other than non-persistible objects
// Other than non-persistable objects
}
);
});

View File

@ -48,7 +48,7 @@ test.describe('ExportAsJSON', () => {
test.fixme(
'Verify that the ImportAsJSON dropdown does not appear for the item X',
async ({ page }) => {
// Other than non-persistible objects
// Other than non-persistable objects
}
);
});

View File

@ -39,7 +39,7 @@ test.describe('Notebook CRUD Operations', () => {
test.fixme('Can update a Notebook Object', async ({ page }) => {});
test.fixme('Can view a perviously created Notebook Object', async ({ page }) => {});
test.fixme('Can Delete a Notebook Object', async ({ page }) => {
// Other than non-persistible objects
// Other than non-persistable objects
});
});

View File

@ -35,7 +35,7 @@ test.describe('Snapshot Menu tests', () => {
// There should be no default notebook
// Clear default notebook if exists using `localStorage.setItem('notebook-storage', null);`
// refresh page
// Click on 'Notebook Snaphot Menu'
// Click on 'Notebook Snapshot Menu'
// 'save to Notebook Snapshots' should be only option there
}
);
@ -62,7 +62,7 @@ test.describe('Snapshot Menu tests', () => {
});
test.fixme('Snapshots adjust time conductor', async ({ page }) => {
// Create Telemetry object
// Set Telemetry object's timeconductor to Fixed time with Start and Endtimes are recorded
// Set Telemetry object's timeconductor to Fixed time with Start and End times are recorded
// Embed Telemetry object into notebook
// Set Time Conductor to Local clock
// Click into embedded telemetry object and verify object appears with same fixed time from record

View File

@ -157,6 +157,6 @@ test.describe('Operator Status', () => {
});
test.fixme('iterate through all possible response values', async ({ page }) => {
// test all possible respone values for the poll
// test all possible response values for the poll
});
});

View File

@ -76,7 +76,7 @@ test.describe('Autoscale', () => {
await page.locator('.c-message-banner__close-button').click();
await page.waitForSelector('.c-message-banner__message', { state: 'detached' });
// Make sure that after turning off autoscale, the user entered range values are reflexted in the ticks.
// Make sure that after turning off autoscale, the user entered range values are reflected in the ticks.
await testYTicks(page, [
'-2.00',
'-1.50',
@ -118,7 +118,7 @@ test.describe('Autoscale', () => {
// Ensure the drag worked.
await testYTicks(page, ['-0.50', '0.00', '0.50', '1.00', '1.50', '2.00', '2.50', '3.00']);
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
expect

View File

@ -63,7 +63,7 @@ test.describe('Plot Tagging', () => {
await page.keyboard.up('Alt');
await page.keyboard.up('Shift');
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
// add some tags
@ -91,7 +91,7 @@ test.describe('Plot Tagging', () => {
const canvas = page.locator('canvas').nth(1);
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
// click on the tagged plot point

View File

@ -63,7 +63,7 @@ test.describe.fixme('Plot Tagging Performance', () => {
await page.keyboard.up('Alt');
await page.keyboard.up('Shift');
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
// add some tags
@ -91,7 +91,7 @@ test.describe.fixme('Plot Tagging Performance', () => {
const canvas = page.locator('canvas').nth(1);
//Wait for canvas to stablize.
//Wait for canvas to stabilize.
await canvas.hover({ trial: true });
// click on the tagged plot point

View File

@ -46,7 +46,7 @@ test.describe('The Fault Management Plugin Visual Test', () => {
await percySnapshot(
page,
`Acknowledged faults, have a checkmark on the fault icon and appear in the acknowldeged view (theme: '${theme}')`
`Acknowledged faults, have a checkmark on the fault icon and appear in the acknowledged view (theme: '${theme}')`
);
});

View File

@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventTelmetryProvider from './EventTelemetryProvider';
import EventTelemetryProvider from './EventTelemetryProvider';
import EventMetadataProvider from './EventMetadataProvider';
export default function EventGeneratorPlugin(options) {
@ -36,7 +36,7 @@ export default function EventGeneratorPlugin(options) {
};
}
});
openmct.telemetry.addProvider(new EventTelmetryProvider());
openmct.telemetry.addProvider(new EventTelemetryProvider());
openmct.telemetry.addProvider(new EventMetadataProvider());
};
}

View File

@ -40,8 +40,8 @@ const DEFAULT_IMAGE_SAMPLES = [
'https://www.hq.nasa.gov/alsj/a16/AS16-117-18747.jpg',
'https://www.hq.nasa.gov/alsj/a16/AS16-117-18748.jpg'
];
const DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS = 20000;
const MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS = 5000;
const DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 20000;
const MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 5000;
let openmctInstance;
@ -58,7 +58,7 @@ export default function () {
initialize: (object) => {
object.configuration = {
imageLocation: '',
imageLoadDelayInMilliSeconds: DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS,
imageLoadDelayInMilliSeconds: DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS,
imageSamples: [],
layers: []
};
@ -188,20 +188,20 @@ function getImageLoadDelay(domainObject) {
openmctInstance.objects.mutate(
domainObject,
'configuration.imageLoadDelayInMilliSeconds',
DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS
DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS
);
return DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS;
return DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS;
}
if (imageLoadDelay < MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS) {
if (imageLoadDelay < MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS) {
openmctInstance.objects.mutate(
domainObject,
'configuration.imageLoadDelayInMilliSeconds',
MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS
MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS
);
return MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS;
return MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS;
}
return imageLoadDelay;

View File

@ -82,7 +82,7 @@
"start": "npx webpack serve --config ./.webpack/webpack.dev.js",
"start:coverage": "npx webpack serve --config ./.webpack/webpack.coverage.js",
"lint": "eslint example src e2e --ext .js,.vue openmct.js --max-warnings=0",
"lint:spelling": "cspell \"**/*.*\"",
"lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore",
"lint:fix": "eslint example src e2e --ext .js,.vue openmct.js --fix",
"build:prod": "webpack --config ./.webpack/webpack.prod.js",
"build:dev": "webpack --config ./.webpack/webpack.dev.js",

View File

@ -168,7 +168,7 @@ describe('The Annotation API', () => {
targetDomainObjects: [mockDomainObject],
targets: { fooTarget: {} }
};
openmct.annotation.setNamespaceToSaveAnnotations('nameespaceThatDoesNotExist');
openmct.annotation.setNamespaceToSaveAnnotations('namespaceThatDoesNotExist');
await openmct.annotation.create(annotationCreationArguments);
} catch (error) {
expect(error).toBeDefined();

View File

@ -39,7 +39,7 @@ export default class FormsAPI {
* This function accepts element, model and onChange function
* element - html element (place holder) to render a row view
* model - row data for rendering name, value etc for given row type
* onChange - an onChange event callback funtion to keep track of any change in value
* onChange - an onChange event callback function to keep track of any change in value
* @property {function} destroy a callback function when a vue component gets destroyed
*/

View File

@ -22,7 +22,7 @@
import NotificationAPI from './NotificationAPI';
describe('The Notifiation API', () => {
describe('The Notification API', () => {
let notificationAPIInstance;
let defaultTimeout = 4000;
@ -108,7 +108,7 @@ describe('The Notifiation API', () => {
});
});
describe('the error method notificiation', () => {
describe('the error method notification', () => {
let message = 'Minimized error message';
afterAll(() => {

View File

@ -520,7 +520,7 @@ export default class ObjectAPI {
}
/**
* Inovke interceptors if applicable for a given domain object.
* Invoke interceptors if applicable for a given domain object.
* @private
*/
applyGetInterceptors(identifier, domainObject) {

View File

@ -125,7 +125,7 @@ describe('The Object API', () => {
await objectAPI.save(mockDomainObject);
expect(mockDomainObject.createdBy).toBe(USERNAME);
});
it("Sets the current user for 'modifedBy' on existing objects", async () => {
it("Sets the current user for 'modifiedBy' on existing objects", async () => {
mockDomainObject.persisted = Date.now() - FIFTEEN_MINUTES;
mockDomainObject.modified = Date.now();

View File

@ -230,7 +230,7 @@ export default class TelemetryAPI {
/**
* Register a request interceptor that transforms a request via module:openmct.TelemetryAPI.request
* The request will be modifyed when it is received and will be returned in it's modified state
* The request will be modified when it is received and will be returned in it's modified state
* The request will be transformed only if the interceptor is applicable to that domain object as defined by the RequestInterceptorDef
*
* @param {module:openmct.RequestInterceptorDef} requestInterceptorDef the request interceptor definition to add
@ -269,7 +269,7 @@ export default class TelemetryAPI {
}
/**
* Get or set greedy LAD. For stategy "latest" telemetry in
* Get or set greedy LAD. For strategy "latest" telemetry in
* realtime mode the start bound will be ignored if true and
* there is no new data to replace the existing data.
* defaults to true

View File

@ -92,7 +92,7 @@ define(['lodash'], function (_) {
};
/**
* Get an array of valueMetadatas that posess all hints requested.
* Get an array of valueMetadatas that possess all hints requested.
* Array is sorted based on hint priority.
*
*/

View File

@ -24,7 +24,7 @@
* A Type describes a kind of domain object that may appear or be
* created within Open MCT.
*
* @param {module:opemct.TypeRegistry~TypeDefinition} definition
* @param {module:openmct.TypeRegistry~TypeDefinition} definition
* @class Type
* @memberof module:openmct
*/

View File

@ -43,7 +43,7 @@ class UserAPI extends EventEmitter {
/**
* Set the user provider for the user API. This allows you
* to specifiy ONE user provider to be used with Open MCT.
* to specify ONE user provider to be used with Open MCT.
* @method setProvider
* @memberof module:openmct.UserAPI#
* @param {module:openmct.UserAPI~UserProvider} provider the new

View File

@ -74,7 +74,7 @@ describe('The User API', () => {
provider.autoLogin(USERNAME);
});
it('to check if a user (not specific) is loged in', (done) => {
it('to check if a user (not specific) is logged in', (done) => {
expect(openmct.user.isLoggedIn()).toBeFalse();
openmct.user.on('providerAdded', () => {

View File

@ -35,8 +35,8 @@ describe('The Image Exporter', () => {
return resetApplicationState(openmct);
});
describe('basic instatation', () => {
it('can be instatiated', () => {
describe('basic instantiation', () => {
it('can be instantiated', () => {
imageExporter = new ImageExporter(openmct);
expect(imageExporter).not.toEqual(null);

View File

@ -65,7 +65,7 @@ export default {
},
hasUnits: {
type: Boolean,
requred: true
required: true
},
isStale: {
type: Boolean,

View File

@ -127,7 +127,7 @@ describe('The LAD Table', () => {
}).not.toThrow();
});
it('should reject non-telemtry producing objects', () => {
it('should reject non-telemetry producing objects', () => {
expect(() => {
ladTableCompositionCollection.add(mockObj.ladTable);
}).toThrow();
@ -254,10 +254,10 @@ describe('The LAD Table', () => {
it('should show aggregate telemetry type with blank data', async () => {
await Vue.nextTick();
const lastestData = parent
const latestData = parent
.querySelectorAll(TABLE_BODY_ROWS)[1]
.querySelectorAll('td')[2].innerText;
expect(lastestData).toBe('---');
expect(latestData).toBe('---');
const dataType = parent
.querySelectorAll(TABLE_BODY_ROWS)[1]
.querySelector('.js-type-data').innerText;

View File

@ -158,7 +158,7 @@ export default {
this.composition.remove(telemetryObject);
},
addTelemetryObject(telemetryObject) {
// grab information we need from the added telmetry object
// grab information we need from the added telemetry object
const key = this.openmct.objects.makeKeyString(telemetryObject.identifier);
this.telemetryObjects[key] = telemetryObject;
const metadata = this.openmct.telemetry.getMetadata(telemetryObject);
@ -188,7 +188,7 @@ export default {
);
}
// ask for the current telemetry data, then subcribe for changes
// ask for the current telemetry data, then subscribe for changes
this.requestDataFor(telemetryObject);
this.subscribeToObject(telemetryObject);
},

View File

@ -122,7 +122,7 @@ export default {
this.composition.remove(telemetryObject);
},
addTelemetryObject(telemetryObject) {
// grab information we need from the added telmetry object
// grab information we need from the added telemetry object
const key = this.openmct.objects.makeKeyString(telemetryObject.identifier);
this.telemetryObjects[key] = telemetryObject;
const metadata = this.openmct.telemetry.getMetadata(telemetryObject);

View File

@ -141,7 +141,7 @@ describe('the plugin', function () {
};
displayLayoutItem = {
composition: [
// no item in compostion, but item in configuration items
// no item in composition, but item in configuration items
],
configuration: {
items: [item],
@ -165,7 +165,7 @@ describe('the plugin', function () {
Vue.nextTick(done);
});
it('will sync compostion and layout items', () => {
it('will sync composition and layout items', () => {
expect(displayLayoutItem.configuration.items.length).toBe(0);
});
});

View File

@ -73,7 +73,7 @@ describe('Export as JSON plugin', () => {
expect(exportAsJSONAction.appliesTo([domainObject])).toEqual(true);
});
it('ExportAsJSONAction does not applie to non-persistable objects', () => {
it('ExportAsJSONAction does not apply to non-persistable objects', () => {
domainObject = {
identifier: {
key: 'export-testing',
@ -212,7 +212,7 @@ describe('Export as JSON plugin', () => {
const parent = {
composition: [
{
key: 'infinteChild',
key: 'infiniteChild',
namespace: ''
}
],
@ -235,7 +235,7 @@ describe('Export as JSON plugin', () => {
}
],
identifier: {
key: 'infinteChild',
key: 'infiniteChild',
namespace: ''
},
name: 'child',
@ -265,7 +265,7 @@ describe('Export as JSON plugin', () => {
Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infiniteParent')
).toBeTruthy();
expect(
Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infinteChild')
Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infiniteChild')
).toBeTruthy();
done();

View File

@ -25,7 +25,7 @@
<div class="c-inspect-properties__header">Fault Details</div>
<ul class="c-inspect-properties__section">
<DetailText :detail="sourceDetails" />
<DetailText :detail="occuredDetails" />
<DetailText :detail="occurredDetails" />
<DetailText :detail="criticalityDetails" />
<DetailText :detail="descriptionDetails" />
</ul>
@ -72,9 +72,9 @@ export default {
value: this.selectedFault?.shortDescription
};
},
occuredDetails() {
occurredDetails() {
return {
name: 'Occured',
name: 'Occurred',
value: this.selectedFault?.triggerTime
};
},

View File

@ -789,7 +789,7 @@ export default {
}
},
expand() {
// check for modifier keys so it doesnt interfere with the layout
// check for modifier keys so it doesn't interfere with the layout
if (this.cursorStates.modifierKeyPressed) {
return;
}

View File

@ -81,7 +81,7 @@ export default class RelatedTelemetry {
this[key].realtime.telemetryObjectId &&
this[key].realtime.telemetryObjectId !== ''
) {
await this._intializeRealtime(key);
await this._initializeRealtime(key);
}
}
})
@ -131,7 +131,7 @@ export default class RelatedTelemetry {
}
}
async _intializeRealtime(key) {
async _initializeRealtime(key) {
this[key].realtimeDomainObject = await this._openmct.objects.get(
this[key].realtime.telemetryObjectId
);

View File

@ -51,9 +51,9 @@ describe('the plugin', () => {
it('when installed, adds "My Items" to the root', async () => {
const root = await openmct.objects.get('ROOT');
const rootCompostionCollection = openmct.composition.get(root);
const rootCompostion = await rootCompostionCollection.load();
let myItems = rootCompostion.filter((domainObject) => {
const rootCompositionCollection = openmct.composition.get(root);
const rootComposition = await rootCompositionCollection.load();
let myItems = rootComposition.filter((domainObject) => {
return openmct.objects.areIdsEqual(domainObject.identifier, myItemsIdentifier);
})[0];

View File

@ -231,7 +231,7 @@ export default {
onDestroy: destroy
});
painterroInstance.intialize();
painterroInstance.initialize();
const fullSizeImageObjectIdentifier = this.embed.snapshot.fullSizeImageObjectIdentifier;
if (!fullSizeImageObjectIdentifier) {

View File

@ -39,7 +39,7 @@ export default class PainterroInstance {
this.painterroInstance.save();
}
intialize() {
initialize() {
this.config = Object.assign({}, DEFAULT_CONFIG);
this.config.id = this.elementId;

View File

@ -29,13 +29,13 @@ export default function PerformanceIndicator() {
indicator.statusClass('s-status-info');
openmct.indicators.add(indicator);
let rafHandle = requestAnimationFrame(incremementFrames);
let rafHandle = requestAnimationFrame(incrementFrames);
openmct.on('destroy', () => {
cancelAnimationFrame(rafHandle);
});
function incremementFrames() {
function incrementFrames() {
let now = performance.now();
if (now - lastCalculated < 1000) {
frames++;
@ -45,7 +45,7 @@ export default function PerformanceIndicator() {
frames = 1;
}
rafHandle = requestAnimationFrame(incremementFrames);
rafHandle = requestAnimationFrame(incrementFrames);
}
function updateFPS(fps) {

View File

@ -431,7 +431,7 @@ class CouchObjectProvider {
// Dummy search function. It has to appear to support search,
// otherwise the in-memory indexer will index all of its objects,
// but actually search results will be provided by a separate search provider
// see CoucheSearchProvider.js
// see CouchSearchProvider.js
return Promise.resolve([]);
}

View File

@ -40,7 +40,7 @@ export default function CouchPlugin(options) {
couchStatusIndicator
);
// Unfortunately, for historical reasons, Couch DB produces objects with a mix of namepaces (alternately "mct", and "")
// Unfortunately, for historical reasons, Couch DB produces objects with a mix of namespaces (alternately "mct", and "")
// Installing the same provider under both namespaces means that it can respond to object gets for both namespaces.
openmct.objects.addProvider(LEGACY_SPACE, install.couchProvider);
openmct.objects.addProvider(NAMESPACE, install.couchProvider);

View File

@ -1,7 +1,7 @@
# Plot Plugin
Enables plot visualization of telemetry data. This plugin adds a plot view that is available from the view switcher for
all telemetry objects. Two user createble objects are also added by this plugin, for Overlay and Stacked Plots.
all telemetry objects. Two user createable objects are also added by this plugin, for Overlay and Stacked Plots.
Telemetry objects can be added to Overlay and Stacked Plots via drag and drop.
## Installation

View File

@ -554,7 +554,7 @@ export default class PlotSeries extends Model {
/**
* Update the series data with the given value.
* This return type definition is totally wrong, only covers sinwave generator. It needs to be generic.
* This return type definition is totally wrong, only covers sinewave generator. It needs to be generic.
* @return-example {Array<{
cos: number
sin: number

View File

@ -126,9 +126,9 @@ export default class SeriesCollection extends Collection {
});
/*
when cancelling out of edit mode, the config store and domain object are out of sync
thus it is necesarry to check both and remove the models that are no longer in composition
*/
when cancelling out of edit mode, the config store and domain object are out of sync
thus it is necessary to check both and remove the models that are no longer in composition
*/
if (persistedIndex === -1) {
this.remove(this.at(configIndex));
} else {

View File

@ -28,7 +28,7 @@ import { MARKER_SHAPES } from './MarkerShapes';
*
* @constructor
* @param {CanvasElement} canvas the canvas object to render upon
* @throws {Error} an error is thrown if Canvas's 2D API is unavailab
* @throws {Error} an error is thrown if Canvas's 2D API is unavailable
*/
/**
@ -36,7 +36,7 @@ import { MARKER_SHAPES } from './MarkerShapes';
*
* @constructor
* @param {CanvasElement} canvas the canvas object to render upon
* @throws {Error} an error is thrown if Canvas's 2D API is unavailab
* @throws {Error} an error is thrown if Canvas's 2D API is unavailable
*/
function Draw2D(canvas) {
this.canvas = canvas;

View File

@ -45,7 +45,7 @@ export const DrawLoader = {
* Return the first draw API available. Returns
* `undefined` if a draw API could not be constructed.
*.
* @param {CanvasElement} canvas - The canvas eelement to attach
* @param {CanvasElement} canvas - The canvas element to attach
the draw API to.
*/
getDrawAPI: function (canvas, overlay) {

View File

@ -1,7 +1,7 @@
# Summary Widget Plugin
Summary widgets can be used to provide visual indication of state based on telemetry data. They allow rules to be
defined that can then be used to change the appearance of the summary widget element based on data. For example, a
summary widget could be defined that is green when a temparature reading is between `0` and `100` centigrade, red when
summary widget could be defined that is green when a temperature reading is between `0` and `100` centigrade, red when
it's above `100`, and orange when it's below `0`.
## Installation

View File

@ -18,7 +18,7 @@ define([
/**
* Represents an individual condition for a summary widget rule. Manages the
* associated inputs and view.
* @param {Object} conditionConfig The configurration for this condition, consisting
* @param {Object} conditionConfig The configuration for this condition, consisting
* of object, key, operation, and values fields
* @param {number} index the index of this Condition object in it's parent Rule's data model,
* to be injected into callbacks for removes
@ -121,7 +121,7 @@ define([
* Register a callback with this condition: supported callbacks are remove, change,
* duplicate
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/

View File

@ -53,7 +53,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
* Register a callback with this ConditionManager: supported callbacks are add
* remove, load, metadata, and receiveTelemetry
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/
@ -154,7 +154,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Invoked when a telemtry subscription yields new data. Updates the LAD
* Invoked when a telemetry subscription yields new data. Updates the LAD
* cache and invokes any registered receiveTelemetry callbacks
* @param {string} objId The key associated with the telemetry source
* @param {datum} datum The new data from the telemetry source
@ -239,7 +239,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Invoked on a remove event in this Summary Widget's compostion. Removes
* Invoked on a remove event in this Summary Widget's composition. Removes
* the object from the local composition, and untracks it
* @param {object} identifier The identifier of the object to be removed
* @private
@ -311,7 +311,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Returns the type associated with a telemtry data field of a particular domain
* Returns the type associated with a telemetry data field of a particular domain
* object
* @param {string} id The key associated with the domain object
* @param {string} property The telemetry field key to retrieve the type of
@ -324,7 +324,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Returns the human-readable name of a telemtry data field of a particular domain
* Returns the human-readable name of a telemetry data field of a particular domain
* object
* @param {string} id The key associated with the domain object
* @param {string} property The telemetry field key to retrieve the type of
@ -346,7 +346,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Returns true if the initial compostion load has completed
* Returns true if the initial composition load has completed
* @return {boolean}
*/
ConditionManager.prototype.loadCompleted = function () {
@ -361,7 +361,7 @@ define(['./ConditionEvaluator', 'objectUtils', 'EventEmitter', 'lodash'], functi
};
/**
* Triggers the telemetryRecieve callbacks registered to this ConditionManager,
* Triggers the telemetryReceive callbacks registered to this ConditionManager,
* used by the {TestDataManager} to force a rule evaluation when test data is
* enabled
*/

View File

@ -27,7 +27,7 @@ define([
* @param {MCT} openmct An MCT instance
* @param {ConditionManager} conditionManager A ConditionManager instance
* @param {WidgetDnD} widgetDnD A WidgetDnD instance to handle dragging and dropping rules
* @param {element} container The DOM element which cotains this summary widget
* @param {element} container The DOM element which contains this summary widget
*/
function Rule(ruleConfig, domainObject, openmct, conditionManager, widgetDnD, container) {
eventHelpers.extend(this);
@ -303,7 +303,7 @@ define([
* Register a callback with this rule: supported callbacks are remove, change,
* conditionChange, and duplicate
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/
@ -335,7 +335,7 @@ define([
};
/**
* Mutate thet domain object with this rule's local configuration
* Mutate the domain object with this rule's local configuration
*/
Rule.prototype.updateDomainObject = function () {
this.openmct.objects.mutate(
@ -385,7 +385,7 @@ define([
};
/**
* Initialze a new condition. If called with the sourceConfig and sourceIndex arguments,
* Initialize a new condition. If called with the sourceConfig and sourceIndex arguments,
* will insert a new condition with the provided configuration after the sourceIndex
* index. Otherwise, initializes a new blank rule and inserts it at the end
* of the list.

View File

@ -315,12 +315,12 @@ define([
};
/**
* Initialze a new rule from a default configuration, or build a {Rule} object
* from it if already exists
* @param {string} ruleId An key to be used to identify this ruleId, or the key
of the rule to be instantiated
* @param {string} ruleName The initial human-readable name of this rule
*/
* Initialize a new rule from a default configuration, or build a {Rule} object
* from it if already exists
* @param {string} ruleId An key to be used to identify this ruleId, or the key
of the rule to be instantiated
* @param {string} ruleName The initial human-readable name of this rule
*/
SummaryWidget.prototype.initRule = function (ruleId, ruleName) {
let ruleConfig;
const styleObj = {};

View File

@ -111,7 +111,7 @@ define([
* Register a callback with this item: supported callbacks are remove, change,
* and duplicate
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/

View File

@ -60,7 +60,7 @@ define([
};
/**
* Initialze a new test data item, either from a source configuration, or with
* Initialize a new test data item, either from a source configuration, or with
* the default empty configuration
* @param {Object} [config] An object with sourceItem and index fields to instantiate
* this rule from, optional
@ -99,7 +99,7 @@ define([
/**
* Change event handler for the test data items which compose this
* test data generateor
* test data generator
* @param {Object} event An object representing this event, with value, property,
* and index fields
*/
@ -120,7 +120,7 @@ define([
};
/**
* Intantiate {TestDataItem} objects from the current configuration, and
* Instantiate {TestDataItem} objects from the current configuration, and
* update the view accordingly
*/
TestDataManager.prototype.refreshItems = function () {

View File

@ -41,7 +41,7 @@ define([
/**
* Register a callback with this WidgetDnD: supported callback is drop
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/

View File

@ -46,8 +46,8 @@ define(['./Select'], function (Select) {
}
/**
* Event handler for the intial metadata load event from the associated
* ConditionManager. Retreives metadata from the manager and populates
* Event handler for the initial metadata load event from the associated
* ConditionManager. Retrieves metadata from the manager and populates
* the select element.
* @private
*/

View File

@ -51,8 +51,8 @@ define(['./Select', '../eventHelpers'], function (Select, eventHelpers) {
}
/**
* Event handler for the intial metadata load event from the associated
* ConditionManager. Retreives telemetry property types and updates the
* Event handler for the initial metadata load event from the associated
* ConditionManager. Retrieves telemetry property types and updates the
* select
* @private
*/

View File

@ -99,7 +99,7 @@ define([
/**
* Register a callback with this palette: supported callback is change
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/
@ -140,7 +140,7 @@ define([
};
/**
* Update the view assoicated with the currently selected item
* Update the view associated with the currently selected item
*/
Palette.prototype.updateSelected = function (item) {
this.domElement.querySelectorAll('.c-palette__item').forEach((paletteItem) => {

View File

@ -49,7 +49,7 @@ define([
/**
* Register a callback with this select: supported callback is change
* @param {string} event The key for the event to listen to
* @param {function} callback The function that this rule will envoke on this event
* @param {function} callback The function that this rule will invoke on this event
* @param {Object} context A reference to a scope to use as the context for
* context for the callback function
*/

View File

@ -362,7 +362,7 @@ define(['../src/ConditionManager'], function (ConditionManager) {
});
});
it('populates its LAD cache with historial data on load, if available', function (done) {
it('populates its LAD cache with historical data on load, if available', function (done) {
expect(telemetryRequests.length).toBe(2);
expect(telemetryRequests[0].object).toBe(mockCompObject1);
expect(telemetryRequests[1].object).toBe(mockCompObject2);
@ -394,7 +394,7 @@ define(['../src/ConditionManager'], function (ConditionManager) {
});
it(
'evalutes a set of rules and returns the id of the' +
'evaluates a set of rules and returns the id of the ' +
'last active rule, or the first if no rules are active',
function () {
const mockRuleOrder = ['default', 'rule0', 'rule1'];

View File

@ -96,7 +96,7 @@ define(['../src/SummaryWidget'], function (SummaryWidget) {
expect(mockContainer.getElementsByClassName('w-summary-widget').length).toBeGreaterThan(0);
});
it('initialzes a default rule', function () {
it('initializes a default rule', function () {
expect(mockDomainObject.configuration.ruleConfigById.default).toBeDefined();
expect(mockDomainObject.configuration.ruleOrder).toEqual(['default']);
});

View File

@ -56,7 +56,7 @@ describe('the plugin', () => {
openmct = createOpenMct();
// Table Plugin is actually installed by default, but because installing it
// again is harmless it is left here as an examplar for non-default plugins.
// again is harmless it is left here as an example for non-default plugins.
tablePlugin = new TablePlugin();
openmct.install(tablePlugin);

View File

@ -72,7 +72,7 @@ export default {
};
},
mounted() {
this.openmct.time.on(TIME_CONTEXT_EVENTS.timeSysteChanged, this.setViewFromTimeSystem);
this.openmct.time.on(TIME_CONTEXT_EVENTS.timeSystemChanged, this.setViewFromTimeSystem);
this.openmct.time.on(TIME_CONTEXT_EVENTS.clockChanged, this.setViewFromClock);
},
unmounted() {

View File

@ -99,7 +99,7 @@ export default {
return;
}
this.showConductorPopup = false;
this.positionX = -10000; // reset it off screan
this.positionX = -10000; // reset it off screen
document.removeEventListener('click', this.handleClickAway);
window.removeEventListener('resize', this.positionBox);

View File

@ -133,7 +133,7 @@ export default {
}
// serialize domain object anyway, because some views can drag-and-drop objects without composition
// (eg. notabook.)
// (eg. notebook.)
event.dataTransfer.setData('openmct/domain-object-path', serializedPath);
event.dataTransfer.setData(`openmct/domain-object/${keyString}`, this.domainObject);
},

View File

@ -58,7 +58,7 @@ xdescribe('Application router utility functions', () => {
expect(searchParams.get('testParam1')).toBe('testValue1');
});
it('The deleteSearchParam function deletes an individual search paramater in the window location hash', () => {
it('The deleteSearchParam function deletes an individual search parameter in the window location hash', () => {
openmct.router.deleteSearchParam('testParam');
const searchParams = openmct.router.getAllSearchParams();
expect(searchParams.get('testParam')).toBe(null);
@ -73,7 +73,7 @@ xdescribe('Application router utility functions', () => {
expect(searchParams.get('testParam2')).toBe('testValue2');
});
it('The setAllSearchParams function replaces all search paramaters in the window location hash', () => {
it('The setAllSearchParams function replaces all search parameters in the window location hash', () => {
openmct.router.setSearchParam('testParam2', 'updatedtestValue2');
openmct.router.setSearchParam('newTestParam3', 'newTestValue3');

View File

@ -24,7 +24,7 @@
* info using a comparison between the userAgent and key
* device names
* @constructor
* @param window the broser object model
* @param window the browser object model
* @memberof /utils/agent
*/
export default class Agent {