mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
Auto-correct lint errors (#2450)
* Auto-fixed linting errors and manually corrected spacing on some comments
This commit is contained in:
parent
3dc6dac12d
commit
974be0ae2c
@ -129,7 +129,7 @@ define([
|
|||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
return LegacyViewProvider;
|
return LegacyViewProvider;
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ define([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
return TypeInspectorViewProvider;
|
return TypeInspectorViewProvider;
|
||||||
|
|
||||||
|
@ -32,6 +32,6 @@ class CSVExporter {
|
|||||||
let blob = new Blob([csvText], { type: "text/csv" });
|
let blob = new Blob([csvText], { type: "text/csv" });
|
||||||
saveAs(blob, filename);
|
saveAs(blob, filename);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
export default CSVExporter;
|
export default CSVExporter;
|
||||||
|
@ -254,7 +254,7 @@ define([], function () {
|
|||||||
return getPath(selectionPath) + ".y";
|
return getPath(selectionPath) + ".y";
|
||||||
},
|
},
|
||||||
label: "Y:",
|
label: "Y:",
|
||||||
title: "Y position",
|
title: "Y position"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -322,7 +322,7 @@ define([], function () {
|
|||||||
return getPath(selectionPath) + ".y2";
|
return getPath(selectionPath) + ".y2";
|
||||||
},
|
},
|
||||||
label: "Y2:",
|
label: "Y2:",
|
||||||
title: "Y2 position",
|
title: "Y2 position"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -416,7 +416,7 @@ define([], function () {
|
|||||||
},
|
},
|
||||||
icon: "icon-image",
|
icon: "icon-image",
|
||||||
title: "Edit image properties",
|
title: "Edit image properties",
|
||||||
dialog: DIALOG_FORM['image']
|
dialog: DIALOG_FORM.image
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -432,7 +432,7 @@ define([], function () {
|
|||||||
},
|
},
|
||||||
icon: "icon-gear",
|
icon: "icon-gear",
|
||||||
title: "Edit text properties",
|
title: "Edit text properties",
|
||||||
dialog: DIALOG_FORM['text']
|
dialog: DIALOG_FORM.text
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -514,7 +514,7 @@ define([], function () {
|
|||||||
'position': [],
|
'position': [],
|
||||||
'text': [],
|
'text': [],
|
||||||
'url': [],
|
'url': [],
|
||||||
'remove': [],
|
'remove': []
|
||||||
};
|
};
|
||||||
|
|
||||||
selection.forEach(selectionPath => {
|
selection.forEach(selectionPath => {
|
||||||
@ -528,8 +528,8 @@ define([], function () {
|
|||||||
if (toolbar['toggle-frame'].length === 0) {
|
if (toolbar['toggle-frame'].length === 0) {
|
||||||
toolbar['toggle-frame'] = [getToggleFrameButton(selectedParent, selection)];
|
toolbar['toggle-frame'] = [getToggleFrameButton(selectedParent, selection)];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -537,8 +537,8 @@ define([], function () {
|
|||||||
getWidthInput(selectedParent, selection)
|
getWidthInput(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
} else if (layoutItem.type === 'telemetry-view') {
|
} else if (layoutItem.type === 'telemetry-view') {
|
||||||
if (toolbar['display-mode'].length === 0) {
|
if (toolbar['display-mode'].length === 0) {
|
||||||
@ -547,8 +547,8 @@ define([], function () {
|
|||||||
if (toolbar['telemetry-value'].length === 0) {
|
if (toolbar['telemetry-value'].length === 0) {
|
||||||
toolbar['telemetry-value'] = [getTelemetryValueMenu(selectionPath, selection)];
|
toolbar['telemetry-value'] = [getTelemetryValueMenu(selectionPath, selection)];
|
||||||
}
|
}
|
||||||
if (toolbar['style'].length < 2) {
|
if (toolbar.style.length < 2) {
|
||||||
toolbar['style'] = [
|
toolbar.style = [
|
||||||
getFillMenu(selectedParent, selection),
|
getFillMenu(selectedParent, selection),
|
||||||
getStrokeMenu(selectedParent, selection)
|
getStrokeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
@ -559,8 +559,8 @@ define([], function () {
|
|||||||
getTextSizeMenu(selectedParent, selection)
|
getTextSizeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -568,12 +568,12 @@ define([], function () {
|
|||||||
getWidthInput(selectedParent, selection)
|
getWidthInput(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
} else if (layoutItem.type === 'text-view') {
|
} else if (layoutItem.type === 'text-view') {
|
||||||
if (toolbar['style'].length < 2) {
|
if (toolbar.style.length < 2) {
|
||||||
toolbar['style'] = [
|
toolbar.style = [
|
||||||
getFillMenu(selectedParent, selection),
|
getFillMenu(selectedParent, selection),
|
||||||
getStrokeMenu(selectedParent, selection)
|
getStrokeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
@ -584,8 +584,8 @@ define([], function () {
|
|||||||
getTextSizeMenu(selectedParent, selection)
|
getTextSizeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -593,21 +593,21 @@ define([], function () {
|
|||||||
getWidthInput(selectedParent, selection)
|
getWidthInput(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['text'].length === 0) {
|
if (toolbar.text.length === 0) {
|
||||||
toolbar['text'] = [getTextButton(selectedParent, selection)];
|
toolbar.text = [getTextButton(selectedParent, selection)];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
} else if (layoutItem.type === 'box-view') {
|
} else if (layoutItem.type === 'box-view') {
|
||||||
if (toolbar['style'].length < 2) {
|
if (toolbar.style.length < 2) {
|
||||||
toolbar['style'] = [
|
toolbar.style = [
|
||||||
getFillMenu(selectedParent, selection),
|
getFillMenu(selectedParent, selection),
|
||||||
getStrokeMenu(selectedParent, selection)
|
getStrokeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -615,17 +615,17 @@ define([], function () {
|
|||||||
getWidthInput(selectedParent, selection)
|
getWidthInput(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
} else if (layoutItem.type === 'image-view') {
|
} else if (layoutItem.type === 'image-view') {
|
||||||
if (toolbar['style'].length === 0) {
|
if (toolbar.style.length === 0) {
|
||||||
toolbar['style'] = [
|
toolbar.style = [
|
||||||
getStrokeMenu(selectedParent, selection)
|
getStrokeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -633,20 +633,20 @@ define([], function () {
|
|||||||
getWidthInput(selectedParent, selection)
|
getWidthInput(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['url'].length === 0) {
|
if (toolbar.url.length === 0) {
|
||||||
toolbar['url'] = [getURLButton(selectedParent, selection)];
|
toolbar.url = [getURLButton(selectedParent, selection)];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
} else if (layoutItem.type === 'line-view') {
|
} else if (layoutItem.type === 'line-view') {
|
||||||
if (toolbar['style'].length === 0) {
|
if (toolbar.style.length === 0) {
|
||||||
toolbar['style'] = [
|
toolbar.style = [
|
||||||
getStrokeMenu(selectedParent, selection)
|
getStrokeMenu(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['position'].length === 0) {
|
if (toolbar.position.length === 0) {
|
||||||
toolbar['position'] = [
|
toolbar.position = [
|
||||||
getStackOrder(selectedParent, selectionPath),
|
getStackOrder(selectedParent, selectionPath),
|
||||||
getXInput(selectedParent, selection),
|
getXInput(selectedParent, selection),
|
||||||
getYInput(selectedParent, selection),
|
getYInput(selectedParent, selection),
|
||||||
@ -654,8 +654,8 @@ define([], function () {
|
|||||||
getY2Input(selectedParent, selection)
|
getY2Input(selectedParent, selection)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (toolbar['remove'].length === 0) {
|
if (toolbar.remove.length === 0) {
|
||||||
toolbar['remove'] = [getRemoveButton(selectedParent, selectionPath, selection)];
|
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selection)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -31,7 +31,7 @@ define(function () {
|
|||||||
domainObject.composition = [];
|
domainObject.composition = [];
|
||||||
domainObject.configuration = {
|
domainObject.configuration = {
|
||||||
items: [],
|
items: [],
|
||||||
layoutGrid: [10, 10],
|
layoutGrid: [10, 10]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
form: [
|
form: [
|
||||||
|
@ -53,7 +53,7 @@ export default function DisplayLayoutPlugin(options) {
|
|||||||
objectPath
|
objectPath
|
||||||
},
|
},
|
||||||
el: container,
|
el: container,
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
domainObject: domainObject
|
domainObject: domainObject
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import uuid from 'uuid';
|
import uuid from 'uuid';
|
||||||
|
|
||||||
class Container {
|
class Container {
|
||||||
constructor (size) {
|
constructor(size) {
|
||||||
this.id = uuid();
|
this.id = uuid();
|
||||||
this.frames = [];
|
this.frames = [];
|
||||||
this.size = size;
|
this.size = size;
|
||||||
|
@ -27,7 +27,7 @@ function (
|
|||||||
Moment
|
Moment
|
||||||
) {
|
) {
|
||||||
|
|
||||||
function EntryController (openmct, domainObject) {
|
function EntryController(openmct, domainObject) {
|
||||||
this.openmct = openmct;
|
this.openmct = openmct;
|
||||||
this.domainObject = domainObject;
|
this.domainObject = domainObject;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
define(function () {
|
define(function () {
|
||||||
class TelemetryTableColumn {
|
class TelemetryTableColumn {
|
||||||
constructor (openmct, metadatum, options = {selectable: false}) {
|
constructor(openmct, metadatum, options = {selectable: false}) {
|
||||||
this.metadatum = metadatum;
|
this.metadatum = metadatum;
|
||||||
this.formatter = openmct.telemetry.getValueFormatter(metadatum);
|
this.formatter = openmct.telemetry.getValueFormatter(metadatum);
|
||||||
this.titleValue = this.metadatum.name;
|
this.titleValue = this.metadatum.name;
|
||||||
|
@ -60,7 +60,7 @@ define([
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
TableComponent: TableComponent.default,
|
TableComponent: TableComponent.default
|
||||||
},
|
},
|
||||||
provide: {
|
provide: {
|
||||||
openmct,
|
openmct,
|
||||||
|
@ -37,7 +37,7 @@ define(
|
|||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
class SortedTableRowCollection extends EventEmitter {
|
class SortedTableRowCollection extends EventEmitter {
|
||||||
constructor () {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.dupeCheck = false;
|
this.dupeCheck = false;
|
||||||
|
@ -28,7 +28,7 @@ define(
|
|||||||
function (
|
function (
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
_
|
_
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages selection state for Open MCT
|
* Manages selection state for Open MCT
|
||||||
@ -237,4 +237,4 @@ define(
|
|||||||
};
|
};
|
||||||
|
|
||||||
return Selection;
|
return Selection;
|
||||||
});
|
});
|
||||||
|
@ -25,5 +25,5 @@ export default {
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
document.removeEventListener('click', this.toggle);
|
document.removeEventListener('click', this.toggle);
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user