From ff2c8b35b01b7e16b2d0f34f30a8e47130460b92 Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Thu, 21 Sep 2023 14:05:35 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=85=F0=9F=9A=AE=E2=90=A1=20Remove`open?= =?UTF-8?q?mct.components`=20=E2=90=A1=F0=9F=9A=AE=F0=9F=99=85=20(#7075)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🙅🚮␡`openmct.components`␡🚮🙅 Co-authored-by: Andrew Henry --- src/MCT.js | 3 -- src/ui/components/components.js | 33 --------------------- src/ui/components/componentsSpec.js | 45 ----------------------------- 3 files changed, 81 deletions(-) delete mode 100644 src/ui/components/components.js delete mode 100644 src/ui/components/componentsSpec.js diff --git a/src/MCT.js b/src/MCT.js index eb5f969f7d..199e2f61fc 100644 --- a/src/MCT.js +++ b/src/MCT.js @@ -43,7 +43,6 @@ define([ './plugins/duplicate/plugin', './plugins/importFromJSONAction/plugin', './plugins/exportAsJSONAction/plugin', - './ui/components/components', 'vue' ], function ( EventEmitter, @@ -68,7 +67,6 @@ define([ DuplicateActionPlugin, ImportFromJSONAction, ExportAsJSONAction, - components, Vue ) { /** @@ -430,7 +428,6 @@ define([ }; MCT.prototype.plugins = plugins; - MCT.prototype.components = components.default; return MCT; }); diff --git a/src/ui/components/components.js b/src/ui/components/components.js deleted file mode 100644 index 4b56fd515a..0000000000 --- a/src/ui/components/components.js +++ /dev/null @@ -1,33 +0,0 @@ -/***************************************************************************** - * Open MCT, Copyright (c) 2014-2023, United States Government - * as represented by the Administrator of the National Aeronautics and Space - * Administration. All rights reserved. - * - * Open MCT is licensed under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * Open MCT includes source code licensed under additional open source - * licenses. See the Open Source Licenses file (LICENSES.md) included with - * this source code distribution or the Licensing information page available - * at runtime from the About dialog for additional information. - *****************************************************************************/ - -import Plot from '../../plugins/plot/Plot.vue'; -import StackedPlot from '../../plugins/plot/stackedPlot/StackedPlot.vue'; -import WebPage from '../../plugins/webPage/components/WebPage.vue'; -import ObjectView from './ObjectView.vue'; - -export default { - ObjectView, - StackedPlot, - Plot, - WebPage -}; diff --git a/src/ui/components/componentsSpec.js b/src/ui/components/componentsSpec.js deleted file mode 100644 index a2b27e78a6..0000000000 --- a/src/ui/components/componentsSpec.js +++ /dev/null @@ -1,45 +0,0 @@ -/***************************************************************************** - * Open MCT, Copyright (c) 2014-2023, United States Government - * as represented by the Administrator of the National Aeronautics and Space - * Administration. All rights reserved. - * - * Open MCT is licensed under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * Open MCT includes source code licensed under additional open source - * licenses. See the Open Source Licenses file (LICENSES.md) included with - * this source code distribution or the Licensing information page available - * at runtime from the About dialog for additional information. - *****************************************************************************/ - -import { createOpenMct, resetApplicationState } from 'utils/testing'; - -describe('UI Components', () => { - let openmct; - - beforeEach((done) => { - openmct = createOpenMct(); - openmct.on('start', done); - openmct.startHeadless(); - }); - - afterEach(() => { - return resetApplicationState(); - }); - - it('are exposed to users', () => { - expect(openmct.components).toBeDefined(); - }); - - it('exposes the object view', () => { - expect(openmct.components.ObjectView).toBeDefined(); - }); -});