Skip to content

Commit

Permalink
Merge branch 'master' into mct7022
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbell committed Sep 4, 2023
2 parents 82033b0 + e9b94c3 commit d659af2
Show file tree
Hide file tree
Showing 303 changed files with 744 additions and 529 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
globals: {
_: 'readonly'
},
plugins: ['prettier'],
plugins: ['prettier', 'simple-import-sort'],
extends: [
'eslint:recommended',
'plugin:compat/recommended',
Expand All @@ -28,6 +28,8 @@ module.exports = {
}
},
rules: {
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'vue/no-deprecated-dollar-listeners-api': 'warn',
'vue/no-deprecated-events-api': 'warn',
'vue/no-v-for-template-key': 'off',
Expand Down
2 changes: 1 addition & 1 deletion example/eventGenerator/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventTelemetryProvider from './EventTelemetryProvider';
import EventMetadataProvider from './EventMetadataProvider';
import EventTelemetryProvider from './EventTelemetryProvider';

export default function EventGeneratorPlugin(options) {
return function install(openmct) {
Expand Down
2 changes: 1 addition & 1 deletion example/eventGenerator/pluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventMessageGeneratorPlugin from './plugin.js';
import { createOpenMct, resetApplicationState } from '../../src/utils/testing';
import EventMessageGeneratorPlugin from './plugin.js';

describe('the plugin', () => {
let openmct;
Expand Down
1 change: 1 addition & 0 deletions example/exampleUser/ExampleUserProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import EventEmitter from 'EventEmitter';
import { v4 as uuid } from 'uuid';

import createExampleUser from './exampleUserCreator';

const STATUSES = [
Expand Down
2 changes: 1 addition & 1 deletion example/generator/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import GeneratorMetadataProvider from './GeneratorMetadataProvider';
import GeneratorProvider from './GeneratorProvider';
import SinewaveLimitProvider from './SinewaveLimitProvider';
import SinewaveStalenessProvider from './SinewaveStalenessProvider';
import StateGeneratorProvider from './StateGeneratorProvider';
import GeneratorMetadataProvider from './GeneratorMetadataProvider';

export default function (openmct) {
openmct.types.addType('example.state-generator', {
Expand Down
1 change: 1 addition & 0 deletions example/simpleVuePlugin/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vue from 'vue';

import HelloWorld from './HelloWorld.vue';

function SimpleVuePlugin() {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@types/eventemitter3": "1.2.0",
"@types/jasmine": "4.3.4",
"@types/lodash": "4.14.192",
"@vue/compat": "^3.1.0",
"@vue/compiler-sfc": "^3.1.0",
"@vue/compat": "3.3.4",
"@vue/compiler-sfc": "3.3.4",
"babel-loader": "9.1.0",
"babel-plugin-istanbul": "6.1.1",
"codecov": "3.8.3",
Expand All @@ -24,11 +24,12 @@
"d3-axis": "3.0.0",
"d3-scale": "3.3.0",
"d3-selection": "3.0.0",
"eslint": "8.43.0",
"eslint": "8.48.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-compat": "4.1.4",
"eslint-plugin-playwright": "0.12.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-vue": "9.15.0",
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
"eventemitter3": "1.2.0",
Expand Down Expand Up @@ -69,9 +70,9 @@
"style-loader": "3.3.3",
"typescript": "5.1.3",
"uuid": "9.0.0",
"vue": "^3.1.0",
"vue": "3.3.4",
"vue-eslint-parser": "9.3.1",
"vue-loader": "^16.0.0",
"vue-loader": "16.8.3",
"webpack": "5.88.0",
"webpack-cli": "5.1.1",
"webpack-dev-server": "4.15.1",
Expand Down
2 changes: 1 addition & 1 deletion src/api/actions/ActionCollectionSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import ActionCollection from './ActionCollection';
import { createOpenMct, resetApplicationState } from '../../utils/testing';
import ActionCollection from './ActionCollection';

describe('The ActionCollection', () => {
let openmct;
Expand Down
3 changes: 2 additions & 1 deletion src/api/actions/ActionsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventEmitter from 'EventEmitter';
import ActionCollection from './ActionCollection';
import _ from 'lodash';

import ActionCollection from './ActionCollection';

class ActionsAPI extends EventEmitter {
constructor(openmct) {
super();
Expand Down
2 changes: 1 addition & 1 deletion src/api/actions/ActionsAPISpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import ActionsAPI from './ActionsAPI';
import { createOpenMct, resetApplicationState } from '../../utils/testing';
import ActionCollection from './ActionCollection';
import ActionsAPI from './ActionsAPI';

describe('The Actions API', () => {
let openmct;
Expand Down
2 changes: 1 addition & 1 deletion src/api/annotation/AnnotationAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import { v4 as uuid } from 'uuid';
import EventEmitter from 'EventEmitter';
import _ from 'lodash';
import { v4 as uuid } from 'uuid';

/**
* @readonly
Expand Down
2 changes: 1 addition & 1 deletion src/api/annotation/AnnotationAPISpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import { createOpenMct, resetApplicationState } from '../../utils/testing';
import ExampleTagsPlugin from '../../../example/exampleTags/plugin';
import { createOpenMct, resetApplicationState } from '../../utils/testing';

describe('The Annotation API', () => {
let openmct;
Expand Down
2 changes: 1 addition & 1 deletion src/api/composition/CompositionAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import DefaultCompositionProvider from './DefaultCompositionProvider';
import CompositionCollection from './CompositionCollection';
import DefaultCompositionProvider from './DefaultCompositionProvider';

/**
* @typedef {import('./CompositionProvider').default} CompositionProvider
Expand Down
1 change: 1 addition & 0 deletions src/api/composition/CompositionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import _ from 'lodash';

import objectUtils from '../objects/object-utils';

/**
Expand Down
3 changes: 2 additions & 1 deletion src/api/composition/DefaultCompositionProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import { toRaw } from 'vue';

import objectUtils from '../objects/object-utils';
import CompositionProvider from './CompositionProvider';
import { toRaw } from 'vue';

/**
* @typedef {import('../objects/ObjectAPI').DomainObject} DomainObject
Expand Down
6 changes: 3 additions & 3 deletions src/api/forms/FormController.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import mount from 'utils/mount';

import AutoCompleteField from './components/controls/AutoCompleteField.vue';
import ClockDisplayFormatField from './components/controls/ClockDisplayFormatField.vue';
import CheckBoxField from './components/controls/CheckBoxField.vue';
import ClockDisplayFormatField from './components/controls/ClockDisplayFormatField.vue';
import Datetime from './components/controls/Datetime.vue';
import FileInput from './components/controls/FileInput.vue';
import Locator from './components/controls/Locator.vue';
Expand All @@ -9,8 +11,6 @@ import SelectField from './components/controls/SelectField.vue';
import TextAreaField from './components/controls/TextAreaField.vue';
import TextField from './components/controls/TextField.vue';
import ToggleSwitchField from './components/controls/ToggleSwitchField.vue';

import mount from 'utils/mount';
export const DEFAULT_CONTROLS_MAP = {
autocomplete: AutoCompleteField,
checkbox: CheckBoxField,
Expand Down
6 changes: 3 additions & 3 deletions src/api/forms/FormsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import FormController from './FormController';
import FormProperties from './components/FormProperties.vue';

import _ from 'lodash';
import mount from 'utils/mount';

import FormProperties from './components/FormProperties.vue';
import FormController from './FormController';

export default class FormsAPI {
constructor(openmct) {
this.openmct = openmct;
Expand Down
3 changes: 2 additions & 1 deletion src/api/forms/components/FormProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@
</template>

<script>
import FormRow from '@/api/forms/components/FormRow.vue';
import { v4 as uuid } from 'uuid';
import FormRow from '@/api/forms/components/FormRow.vue';
export default {
components: {
FormRow
Expand Down
5 changes: 3 additions & 2 deletions src/api/forms/components/controls/ToggleSwitchField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
</template>

<script>
import toggleMixin from '../../toggle-check-box-mixin';
import { v4 as uuid } from 'uuid';
import ToggleSwitch from '@/ui/components/ToggleSwitch.vue';
import { v4 as uuid } from 'uuid';
import toggleMixin from '../../toggle-check-box-mixin';
export default {
components: {
Expand Down
1 change: 1 addition & 0 deletions src/api/indicators/IndicatorAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*****************************************************************************/

import EventEmitter from 'EventEmitter';

import SimpleIndicator from './SimpleIndicator';

class IndicatorAPI extends EventEmitter {
Expand Down
4 changes: 3 additions & 1 deletion src/api/indicators/SimpleIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
*****************************************************************************/

import EventEmitter from 'EventEmitter';
import indicatorTemplate from './res/indicator-template.html';

import { convertTemplateToHTML } from '@/utils/template/templateHelpers';

import indicatorTemplate from './res/indicator-template.html';

const DEFAULT_ICON_CLASS = 'icon-info';

class SimpleIndicator extends EventEmitter {
Expand Down
7 changes: 4 additions & 3 deletions src/api/menu/MenuAPISpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import MenuAPI from './MenuAPI';
import Menu from './menu';
import { createOpenMct, createMouseEvent, resetApplicationState } from '../../utils/testing';
import Vue from 'vue';

import { createMouseEvent, createOpenMct, resetApplicationState } from '../../utils/testing';
import Menu from './menu';
import MenuAPI from './MenuAPI';

describe('The Menu API', () => {
let openmct;
let appHolder;
Expand Down
5 changes: 3 additions & 2 deletions src/api/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventEmitter from 'EventEmitter';
import mount from 'utils/mount';
import { h } from 'vue';

import MenuComponent from './components/Menu.vue';
import SuperMenuComponent from './components/SuperMenu.vue';
import { h } from 'vue';
import mount from 'utils/mount';

export const MENU_PLACEMENT = {
TOP: 'top',
Expand Down
2 changes: 1 addition & 1 deletion src/api/notifications/NotificationAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
*
* @namespace platform/api/notifications
*/
import moment from 'moment';
import EventEmitter from 'eventemitter3';
import moment from 'moment';

/**
* @typedef {object} NotificationProperties
Expand Down
3 changes: 2 additions & 1 deletion src/api/objects/MutableDomainObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import EventEmitter from 'EventEmitter';
import _ from 'lodash';

import utils from './object-utils.js';
import EventEmitter from 'EventEmitter';

const ANY_OBJECT_EVENT = 'mutation';

Expand Down
11 changes: 6 additions & 5 deletions src/api/objects/ObjectAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import EventEmitter from 'EventEmitter';
import utils from 'objectUtils';

import ConflictError from './ConflictError';
import InMemorySearchProvider from './InMemorySearchProvider';
import InterceptorRegistry from './InterceptorRegistry';
import MutableDomainObject from './MutableDomainObject';
import RootRegistry from './RootRegistry';
import RootObjectProvider from './RootObjectProvider';
import EventEmitter from 'EventEmitter';
import InterceptorRegistry from './InterceptorRegistry';
import RootRegistry from './RootRegistry';
import Transaction from './Transaction';
import ConflictError from './ConflictError';
import InMemorySearchProvider from './InMemorySearchProvider';

/**
* Uniquely identifies a domain object.
Expand Down
2 changes: 1 addition & 1 deletion src/api/objects/ObjectAPISpec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ObjectAPI from './ObjectAPI.js';
import { createOpenMct, resetApplicationState } from '../../utils/testing';
import ObjectAPI from './ObjectAPI.js';

describe('The Object API', () => {
let objectAPI;
Expand Down
3 changes: 2 additions & 1 deletion src/api/objects/TransactionSpec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Transaction from './Transaction';
import utils from 'objectUtils';

import Transaction from './Transaction';

let openmct = {};
let objectAPI;
let transaction;
Expand Down
3 changes: 2 additions & 1 deletion src/api/overlays/Dialog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import mount from 'utils/mount';

import DialogComponent from './components/DialogComponent.vue';
import Overlay from './Overlay';
import mount from 'utils/mount';

class Dialog extends Overlay {
constructor({ iconClass, message, title, hint, timestamp, ...options }) {
Expand Down
3 changes: 2 additions & 1 deletion src/api/overlays/Overlay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import OverlayComponent from './components/OverlayComponent.vue';
import EventEmitter from 'EventEmitter';
import mount from 'utils/mount';

import OverlayComponent from './components/OverlayComponent.vue';

const cssClasses = {
large: 'l-overlay-large',
small: 'l-overlay-small',
Expand Down
2 changes: 1 addition & 1 deletion src/api/overlays/OverlayAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import Overlay from './Overlay';
import Dialog from './Dialog';
import Overlay from './Overlay';
import ProgressDialog from './ProgressDialog';
import Selection from './Selection';

Expand Down
3 changes: 2 additions & 1 deletion src/api/overlays/ProgressDialog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import mount from 'utils/mount';

import ProgressDialogComponent from './components/ProgressDialogComponent.vue';
import Overlay from './Overlay';
import mount from 'utils/mount';

let component;
class ProgressDialog extends Overlay {
Expand Down

0 comments on commit d659af2

Please sign in to comment.