From 10f3e13e4d3c6f7a840745dfcef5178ff8d7a69f Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Thu, 10 Aug 2023 09:20:16 -0700 Subject: [PATCH] chore: modify cspell config and fix all typos (#6908) --- .cspell.json | 99 +++---------------- README.md | 4 +- e2e/tests/functional/couchdb.e2e.spec.js | 4 +- .../example/eventGenerator.e2e.spec.js | 2 +- .../functional/moveAndLinkObjects.e2e.spec.js | 2 +- .../functional/planning/timestrip.e2e.spec.js | 2 +- .../conditionSet/conditionSet.e2e.spec.js | 6 +- .../imagery/exampleImagery.e2e.spec.js | 4 +- .../exportAsJson.e2e.spec.js | 4 +- .../importAsJson.e2e.spec.js | 2 +- .../plugins/notebook/notebook.e2e.spec.js | 2 +- .../notebook/notebookSnapshots.e2e.spec.js | 4 +- .../operatorStatus/operatorStatus.e2e.spec.js | 2 +- .../plugins/plot/autoscale.e2e.spec.js | 4 +- .../plugins/plot/tagging.e2e.spec.js | 4 +- e2e/tests/performance/tagging.perf.spec.js | 4 +- .../visual/faultManagement.visual.spec.js | 2 +- example/eventGenerator/plugin.js | 4 +- example/imagery/plugin.js | 16 +-- package.json | 2 +- src/api/annotation/AnnotationAPISpec.js | 2 +- src/api/forms/FormsAPI.js | 2 +- src/api/notifications/NotificationAPISpec.js | 4 +- src/api/objects/ObjectAPI.js | 2 +- src/api/objects/ObjectAPISpec.js | 2 +- src/api/telemetry/TelemetryAPI.js | 4 +- src/api/telemetry/TelemetryMetadataManager.js | 2 +- src/api/types/Type.js | 2 +- src/api/user/UserAPI.js | 2 +- src/api/user/UserAPISpec.js | 2 +- src/exporters/ImageExporterSpec.js | 4 +- src/plugins/LADTable/components/LADRow.vue | 2 +- src/plugins/LADTable/pluginSpec.js | 6 +- src/plugins/charts/bar/BarGraphView.vue | 4 +- .../charts/scatter/ScatterPlotView.vue | 2 +- src/plugins/displayLayout/pluginSpec.js | 4 +- .../ExportAsJSONActionSpec.js | 8 +- .../FaultManagementInspector.vue | 6 +- .../imagery/components/ImageryView.vue | 2 +- .../RelatedTelemetry/RelatedTelemetry.js | 4 +- src/plugins/myItems/pluginSpec.js | 6 +- .../notebook/components/NotebookEmbed.vue | 2 +- .../notebook/utils/painterroInstance.js | 2 +- src/plugins/performanceIndicator/plugin.js | 6 +- .../persistence/couch/CouchObjectProvider.js | 2 +- src/plugins/persistence/couch/plugin.js | 2 +- src/plugins/plot/README.md | 2 +- src/plugins/plot/configuration/PlotSeries.js | 2 +- .../plot/configuration/SeriesCollection.js | 6 +- src/plugins/plot/draw/Draw2D.js | 4 +- src/plugins/plot/draw/DrawLoader.js | 2 +- src/plugins/summaryWidget/README.md | 2 +- src/plugins/summaryWidget/src/Condition.js | 4 +- .../summaryWidget/src/ConditionManager.js | 14 +-- src/plugins/summaryWidget/src/Rule.js | 8 +- .../summaryWidget/src/SummaryWidget.js | 12 +-- src/plugins/summaryWidget/src/TestDataItem.js | 2 +- .../summaryWidget/src/TestDataManager.js | 6 +- src/plugins/summaryWidget/src/WidgetDnD.js | 2 +- .../summaryWidget/src/input/KeySelect.js | 4 +- .../src/input/OperationSelect.js | 4 +- .../summaryWidget/src/input/Palette.js | 4 +- src/plugins/summaryWidget/src/input/Select.js | 2 +- .../test/ConditionManagerSpec.js | 4 +- .../summaryWidget/test/SummaryWidgetSpec.js | 2 +- src/plugins/telemetryTable/pluginSpec.js | 2 +- .../timeConductor/ConductorTimeSystem.vue | 2 +- .../independentTimeConductorPopUpManager.js | 2 +- src/ui/components/ObjectLabel.vue | 2 +- src/ui/router/ApplicationRouterSpec.js | 4 +- src/utils/agent/Agent.js | 2 +- 71 files changed, 141 insertions(+), 218 deletions(-) diff --git a/.cspell.json b/.cspell.json index d4c56c58b4..8fdfca68fd 100644 --- a/.cspell.json +++ b/.cspell.json @@ -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" ] } \ No newline at end of file diff --git a/README.md b/README.md index a66aa22d58..109aa43c49 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/e2e/tests/functional/couchdb.e2e.spec.js b/e2e/tests/functional/couchdb.e2e.spec.js index 2ff9e97842..e24a34fe49 100644 --- a/e2e/tests/functional/couchdb.e2e.spec.js +++ b/e2e/tests/functional/couchdb.e2e.spec.js @@ -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 } ); diff --git a/e2e/tests/functional/example/eventGenerator.e2e.spec.js b/e2e/tests/functional/example/eventGenerator.e2e.spec.js index b8560787d0..f36d88dfe6 100644 --- a/e2e/tests/functional/example/eventGenerator.e2e.spec.js +++ b/e2e/tests/functional/example/eventGenerator.e2e.spec.js @@ -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 diff --git a/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js b/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js index a1bb6610dd..4e8d27e281 100644 --- a/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js +++ b/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js @@ -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 diff --git a/e2e/tests/functional/planning/timestrip.e2e.spec.js b/e2e/tests/functional/planning/timestrip.e2e.spec.js index 5b882df74d..4eea93535e 100644 --- a/e2e/tests/functional/planning/timestrip.e2e.spec.js +++ b/e2e/tests/functional/planning/timestrip.e2e.spec.js @@ -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({ diff --git a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js index 133f5cad1d..1bfe2e9ac4 100644 --- a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js +++ b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js @@ -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 diff --git a/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js b/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js index 09e0c083d4..a2e34c8a7c 100644 --- a/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js +++ b/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js @@ -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({ diff --git a/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js b/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js index aeab0424af..0c9d478fa4 100644 --- a/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js +++ b/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js @@ -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 } ); }); diff --git a/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js b/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js index 8ecdc22c90..94c82af68f 100644 --- a/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js +++ b/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js @@ -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 } ); }); diff --git a/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js b/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js index 79aa68eaeb..79fb500474 100644 --- a/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js @@ -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 }); }); diff --git a/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js b/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js index a8294b2e7a..00c3f01f8c 100644 --- a/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js @@ -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 diff --git a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js index 1fa5437bd8..8c16a2fb8e 100644 --- a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js +++ b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js @@ -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 }); }); diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js index 1427129e38..c750e6a908 100644 --- a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js +++ b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js @@ -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 diff --git a/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js b/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js index f6503b41e8..c1c00b169b 100644 --- a/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js +++ b/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js @@ -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 diff --git a/e2e/tests/performance/tagging.perf.spec.js b/e2e/tests/performance/tagging.perf.spec.js index 2e3b7c32ba..8f20b078fc 100644 --- a/e2e/tests/performance/tagging.perf.spec.js +++ b/e2e/tests/performance/tagging.perf.spec.js @@ -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 diff --git a/e2e/tests/visual/faultManagement.visual.spec.js b/e2e/tests/visual/faultManagement.visual.spec.js index ccb94e120e..518893c547 100644 --- a/e2e/tests/visual/faultManagement.visual.spec.js +++ b/e2e/tests/visual/faultManagement.visual.spec.js @@ -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}')` ); }); diff --git a/example/eventGenerator/plugin.js b/example/eventGenerator/plugin.js index 23552fd63f..73f02a1d64 100644 --- a/example/eventGenerator/plugin.js +++ b/example/eventGenerator/plugin.js @@ -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()); }; } diff --git a/example/imagery/plugin.js b/example/imagery/plugin.js index c090c11ea8..ee2fe33f8c 100644 --- a/example/imagery/plugin.js +++ b/example/imagery/plugin.js @@ -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; diff --git a/package.json b/package.json index bd11e48704..f8e767cc3a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/annotation/AnnotationAPISpec.js b/src/api/annotation/AnnotationAPISpec.js index 318220ba2e..2499c9f0cf 100644 --- a/src/api/annotation/AnnotationAPISpec.js +++ b/src/api/annotation/AnnotationAPISpec.js @@ -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(); diff --git a/src/api/forms/FormsAPI.js b/src/api/forms/FormsAPI.js index e91621b966..86338996a5 100644 --- a/src/api/forms/FormsAPI.js +++ b/src/api/forms/FormsAPI.js @@ -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 */ diff --git a/src/api/notifications/NotificationAPISpec.js b/src/api/notifications/NotificationAPISpec.js index b3e93bebbd..233cc14922 100644 --- a/src/api/notifications/NotificationAPISpec.js +++ b/src/api/notifications/NotificationAPISpec.js @@ -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(() => { diff --git a/src/api/objects/ObjectAPI.js b/src/api/objects/ObjectAPI.js index ebc7767371..39a3e5039d 100644 --- a/src/api/objects/ObjectAPI.js +++ b/src/api/objects/ObjectAPI.js @@ -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) { diff --git a/src/api/objects/ObjectAPISpec.js b/src/api/objects/ObjectAPISpec.js index b7c56121ae..0302bfa647 100644 --- a/src/api/objects/ObjectAPISpec.js +++ b/src/api/objects/ObjectAPISpec.js @@ -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(); diff --git a/src/api/telemetry/TelemetryAPI.js b/src/api/telemetry/TelemetryAPI.js index 85cf416cd1..050cdcce04 100644 --- a/src/api/telemetry/TelemetryAPI.js +++ b/src/api/telemetry/TelemetryAPI.js @@ -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 diff --git a/src/api/telemetry/TelemetryMetadataManager.js b/src/api/telemetry/TelemetryMetadataManager.js index db08e8da3e..2048059797 100644 --- a/src/api/telemetry/TelemetryMetadataManager.js +++ b/src/api/telemetry/TelemetryMetadataManager.js @@ -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. * */ diff --git a/src/api/types/Type.js b/src/api/types/Type.js index f56a18abfc..2082b05319 100644 --- a/src/api/types/Type.js +++ b/src/api/types/Type.js @@ -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 */ diff --git a/src/api/user/UserAPI.js b/src/api/user/UserAPI.js index 5e588825c3..53bb06bb62 100644 --- a/src/api/user/UserAPI.js +++ b/src/api/user/UserAPI.js @@ -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 diff --git a/src/api/user/UserAPISpec.js b/src/api/user/UserAPISpec.js index 8a849c9fa4..183bc263b8 100644 --- a/src/api/user/UserAPISpec.js +++ b/src/api/user/UserAPISpec.js @@ -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', () => { diff --git a/src/exporters/ImageExporterSpec.js b/src/exporters/ImageExporterSpec.js index f55e6eeafb..0ee058865c 100644 --- a/src/exporters/ImageExporterSpec.js +++ b/src/exporters/ImageExporterSpec.js @@ -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); diff --git a/src/plugins/LADTable/components/LADRow.vue b/src/plugins/LADTable/components/LADRow.vue index 26b925cb0d..808f96883d 100644 --- a/src/plugins/LADTable/components/LADRow.vue +++ b/src/plugins/LADTable/components/LADRow.vue @@ -65,7 +65,7 @@ export default { }, hasUnits: { type: Boolean, - requred: true + required: true }, isStale: { type: Boolean, diff --git a/src/plugins/LADTable/pluginSpec.js b/src/plugins/LADTable/pluginSpec.js index fa71e9289b..3fdcadc722 100644 --- a/src/plugins/LADTable/pluginSpec.js +++ b/src/plugins/LADTable/pluginSpec.js @@ -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; diff --git a/src/plugins/charts/bar/BarGraphView.vue b/src/plugins/charts/bar/BarGraphView.vue index 52640548fb..018ea59568 100644 --- a/src/plugins/charts/bar/BarGraphView.vue +++ b/src/plugins/charts/bar/BarGraphView.vue @@ -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); }, diff --git a/src/plugins/charts/scatter/ScatterPlotView.vue b/src/plugins/charts/scatter/ScatterPlotView.vue index da3ebd2292..e70249a48a 100644 --- a/src/plugins/charts/scatter/ScatterPlotView.vue +++ b/src/plugins/charts/scatter/ScatterPlotView.vue @@ -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); diff --git a/src/plugins/displayLayout/pluginSpec.js b/src/plugins/displayLayout/pluginSpec.js index 30bd8ff2b3..5c8c6853ee 100644 --- a/src/plugins/displayLayout/pluginSpec.js +++ b/src/plugins/displayLayout/pluginSpec.js @@ -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); }); }); diff --git a/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js b/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js index 3e4f17aa36..8e94cc83cd 100644 --- a/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js +++ b/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js @@ -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(); diff --git a/src/plugins/faultManagement/FaultManagementInspector.vue b/src/plugins/faultManagement/FaultManagementInspector.vue index ba41e665b6..8ef6e7cae9 100644 --- a/src/plugins/faultManagement/FaultManagementInspector.vue +++ b/src/plugins/faultManagement/FaultManagementInspector.vue @@ -25,7 +25,7 @@
Fault Details
@@ -72,9 +72,9 @@ export default { value: this.selectedFault?.shortDescription }; }, - occuredDetails() { + occurredDetails() { return { - name: 'Occured', + name: 'Occurred', value: this.selectedFault?.triggerTime }; }, diff --git a/src/plugins/imagery/components/ImageryView.vue b/src/plugins/imagery/components/ImageryView.vue index 2ce2c9026c..4448d84279 100644 --- a/src/plugins/imagery/components/ImageryView.vue +++ b/src/plugins/imagery/components/ImageryView.vue @@ -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; } diff --git a/src/plugins/imagery/components/RelatedTelemetry/RelatedTelemetry.js b/src/plugins/imagery/components/RelatedTelemetry/RelatedTelemetry.js index 8431c55427..d651b64878 100644 --- a/src/plugins/imagery/components/RelatedTelemetry/RelatedTelemetry.js +++ b/src/plugins/imagery/components/RelatedTelemetry/RelatedTelemetry.js @@ -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 ); diff --git a/src/plugins/myItems/pluginSpec.js b/src/plugins/myItems/pluginSpec.js index b8d3f75f50..1b0eb4d5f3 100644 --- a/src/plugins/myItems/pluginSpec.js +++ b/src/plugins/myItems/pluginSpec.js @@ -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]; diff --git a/src/plugins/notebook/components/NotebookEmbed.vue b/src/plugins/notebook/components/NotebookEmbed.vue index a11d56487d..5f873487a2 100644 --- a/src/plugins/notebook/components/NotebookEmbed.vue +++ b/src/plugins/notebook/components/NotebookEmbed.vue @@ -231,7 +231,7 @@ export default { onDestroy: destroy }); - painterroInstance.intialize(); + painterroInstance.initialize(); const fullSizeImageObjectIdentifier = this.embed.snapshot.fullSizeImageObjectIdentifier; if (!fullSizeImageObjectIdentifier) { diff --git a/src/plugins/notebook/utils/painterroInstance.js b/src/plugins/notebook/utils/painterroInstance.js index 4dea41aa18..1ad00cdcec 100644 --- a/src/plugins/notebook/utils/painterroInstance.js +++ b/src/plugins/notebook/utils/painterroInstance.js @@ -39,7 +39,7 @@ export default class PainterroInstance { this.painterroInstance.save(); } - intialize() { + initialize() { this.config = Object.assign({}, DEFAULT_CONFIG); this.config.id = this.elementId; diff --git a/src/plugins/performanceIndicator/plugin.js b/src/plugins/performanceIndicator/plugin.js index 9275fc8947..c507f8f4ce 100644 --- a/src/plugins/performanceIndicator/plugin.js +++ b/src/plugins/performanceIndicator/plugin.js @@ -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) { diff --git a/src/plugins/persistence/couch/CouchObjectProvider.js b/src/plugins/persistence/couch/CouchObjectProvider.js index b7d1a62ba0..1ccf63a508 100644 --- a/src/plugins/persistence/couch/CouchObjectProvider.js +++ b/src/plugins/persistence/couch/CouchObjectProvider.js @@ -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([]); } diff --git a/src/plugins/persistence/couch/plugin.js b/src/plugins/persistence/couch/plugin.js index c2fdb2755d..f06d4691b7 100644 --- a/src/plugins/persistence/couch/plugin.js +++ b/src/plugins/persistence/couch/plugin.js @@ -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); diff --git a/src/plugins/plot/README.md b/src/plugins/plot/README.md index 4243e3cb99..7c868a38a6 100644 --- a/src/plugins/plot/README.md +++ b/src/plugins/plot/README.md @@ -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 diff --git a/src/plugins/plot/configuration/PlotSeries.js b/src/plugins/plot/configuration/PlotSeries.js index 19c5453038..e3dfdbb8c9 100644 --- a/src/plugins/plot/configuration/PlotSeries.js +++ b/src/plugins/plot/configuration/PlotSeries.js @@ -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 diff --git a/src/plugins/plot/configuration/SeriesCollection.js b/src/plugins/plot/configuration/SeriesCollection.js index b57ff51931..cd4e2452bd 100644 --- a/src/plugins/plot/configuration/SeriesCollection.js +++ b/src/plugins/plot/configuration/SeriesCollection.js @@ -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 { diff --git a/src/plugins/plot/draw/Draw2D.js b/src/plugins/plot/draw/Draw2D.js index e7bf7ed501..1d5a283f4a 100644 --- a/src/plugins/plot/draw/Draw2D.js +++ b/src/plugins/plot/draw/Draw2D.js @@ -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; diff --git a/src/plugins/plot/draw/DrawLoader.js b/src/plugins/plot/draw/DrawLoader.js index d40a5e7c63..ac3c205eb5 100644 --- a/src/plugins/plot/draw/DrawLoader.js +++ b/src/plugins/plot/draw/DrawLoader.js @@ -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) { diff --git a/src/plugins/summaryWidget/README.md b/src/plugins/summaryWidget/README.md index 1301bbd643..5fa28d8094 100644 --- a/src/plugins/summaryWidget/README.md +++ b/src/plugins/summaryWidget/README.md @@ -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 diff --git a/src/plugins/summaryWidget/src/Condition.js b/src/plugins/summaryWidget/src/Condition.js index 972530e4fb..da200ee3f0 100644 --- a/src/plugins/summaryWidget/src/Condition.js +++ b/src/plugins/summaryWidget/src/Condition.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/ConditionManager.js b/src/plugins/summaryWidget/src/ConditionManager.js index 825d65b69b..7ca6c7d33d 100644 --- a/src/plugins/summaryWidget/src/ConditionManager.js +++ b/src/plugins/summaryWidget/src/ConditionManager.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/Rule.js b/src/plugins/summaryWidget/src/Rule.js index 831fb0d2a7..e4b53ad124 100644 --- a/src/plugins/summaryWidget/src/Rule.js +++ b/src/plugins/summaryWidget/src/Rule.js @@ -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. diff --git a/src/plugins/summaryWidget/src/SummaryWidget.js b/src/plugins/summaryWidget/src/SummaryWidget.js index 3a6966bf35..84c3b7c5f2 100644 --- a/src/plugins/summaryWidget/src/SummaryWidget.js +++ b/src/plugins/summaryWidget/src/SummaryWidget.js @@ -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 = {}; diff --git a/src/plugins/summaryWidget/src/TestDataItem.js b/src/plugins/summaryWidget/src/TestDataItem.js index 4e9323c947..f6702a36d6 100644 --- a/src/plugins/summaryWidget/src/TestDataItem.js +++ b/src/plugins/summaryWidget/src/TestDataItem.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/TestDataManager.js b/src/plugins/summaryWidget/src/TestDataManager.js index 8566117feb..45fa9750f6 100644 --- a/src/plugins/summaryWidget/src/TestDataManager.js +++ b/src/plugins/summaryWidget/src/TestDataManager.js @@ -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 () { diff --git a/src/plugins/summaryWidget/src/WidgetDnD.js b/src/plugins/summaryWidget/src/WidgetDnD.js index 15c79ed66d..05b4175734 100644 --- a/src/plugins/summaryWidget/src/WidgetDnD.js +++ b/src/plugins/summaryWidget/src/WidgetDnD.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/input/KeySelect.js b/src/plugins/summaryWidget/src/input/KeySelect.js index 42671027cc..ae16b210a8 100644 --- a/src/plugins/summaryWidget/src/input/KeySelect.js +++ b/src/plugins/summaryWidget/src/input/KeySelect.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/input/OperationSelect.js b/src/plugins/summaryWidget/src/input/OperationSelect.js index 822852f478..0279927760 100644 --- a/src/plugins/summaryWidget/src/input/OperationSelect.js +++ b/src/plugins/summaryWidget/src/input/OperationSelect.js @@ -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 */ diff --git a/src/plugins/summaryWidget/src/input/Palette.js b/src/plugins/summaryWidget/src/input/Palette.js index 1515aacff4..57a172858e 100644 --- a/src/plugins/summaryWidget/src/input/Palette.js +++ b/src/plugins/summaryWidget/src/input/Palette.js @@ -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) => { diff --git a/src/plugins/summaryWidget/src/input/Select.js b/src/plugins/summaryWidget/src/input/Select.js index 38df9c5fc1..5f3e885093 100644 --- a/src/plugins/summaryWidget/src/input/Select.js +++ b/src/plugins/summaryWidget/src/input/Select.js @@ -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 */ diff --git a/src/plugins/summaryWidget/test/ConditionManagerSpec.js b/src/plugins/summaryWidget/test/ConditionManagerSpec.js index c1b4413d36..fa717c981c 100644 --- a/src/plugins/summaryWidget/test/ConditionManagerSpec.js +++ b/src/plugins/summaryWidget/test/ConditionManagerSpec.js @@ -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']; diff --git a/src/plugins/summaryWidget/test/SummaryWidgetSpec.js b/src/plugins/summaryWidget/test/SummaryWidgetSpec.js index 94b7646514..9021a4cfc8 100644 --- a/src/plugins/summaryWidget/test/SummaryWidgetSpec.js +++ b/src/plugins/summaryWidget/test/SummaryWidgetSpec.js @@ -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']); }); diff --git a/src/plugins/telemetryTable/pluginSpec.js b/src/plugins/telemetryTable/pluginSpec.js index 514653901a..5d6ce4e328 100644 --- a/src/plugins/telemetryTable/pluginSpec.js +++ b/src/plugins/telemetryTable/pluginSpec.js @@ -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); diff --git a/src/plugins/timeConductor/ConductorTimeSystem.vue b/src/plugins/timeConductor/ConductorTimeSystem.vue index 08f66dab86..ce7ac2b0d5 100644 --- a/src/plugins/timeConductor/ConductorTimeSystem.vue +++ b/src/plugins/timeConductor/ConductorTimeSystem.vue @@ -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() { diff --git a/src/plugins/timeConductor/independent/independentTimeConductorPopUpManager.js b/src/plugins/timeConductor/independent/independentTimeConductorPopUpManager.js index bfe0c3dd1b..bc39999602 100644 --- a/src/plugins/timeConductor/independent/independentTimeConductorPopUpManager.js +++ b/src/plugins/timeConductor/independent/independentTimeConductorPopUpManager.js @@ -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); diff --git a/src/ui/components/ObjectLabel.vue b/src/ui/components/ObjectLabel.vue index 9d57031561..412662c324 100644 --- a/src/ui/components/ObjectLabel.vue +++ b/src/ui/components/ObjectLabel.vue @@ -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); }, diff --git a/src/ui/router/ApplicationRouterSpec.js b/src/ui/router/ApplicationRouterSpec.js index 932765b3d2..726f231f11 100644 --- a/src/ui/router/ApplicationRouterSpec.js +++ b/src/ui/router/ApplicationRouterSpec.js @@ -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'); diff --git a/src/utils/agent/Agent.js b/src/utils/agent/Agent.js index 1e9c9b84ab..d62a130284 100644 --- a/src/utils/agent/Agent.js +++ b/src/utils/agent/Agent.js @@ -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 {