Fix leftover lint errors/warnings (#4316)

This commit is contained in:
David Tsay
2021-10-13 16:15:23 -07:00
committed by GitHub
parent 4d8db8eb7c
commit ee1ecf43db
8 changed files with 37 additions and 39 deletions

View File

@ -30,7 +30,7 @@
<div v-if="staticStyle" <div v-if="staticStyle"
class="c-inspect-styles__style" class="c-inspect-styles__style"
> >
<style-editor class="c-inspect-styles__editor" <StyleEditor class="c-inspect-styles__editor"
:style-item="staticStyle" :style-item="staticStyle"
:is-editing="isEditing" :is-editing="isEditing"
@persist="updateStaticStyle" @persist="updateStaticStyle"
@ -87,7 +87,7 @@
<condition-description :show-label="true" <condition-description :show-label="true"
:condition="getCondition(conditionStyle.conditionId)" :condition="getCondition(conditionStyle.conditionId)"
/> />
<style-editor class="c-inspect-styles__editor" <StyleEditor class="c-inspect-styles__editor"
:style-item="conditionStyle" :style-item="conditionStyle"
:is-editing="isEditing" :is-editing="isEditing"
@persist="updateConditionalStyle" @persist="updateConditionalStyle"
@ -240,10 +240,10 @@ export default {
} }
let vm = new Vue({ let vm = new Vue({
components: {ConditionSetSelectorDialog},
provide: { provide: {
openmct: this.openmct openmct: this.openmct
}, },
components: {ConditionSetSelectorDialog},
data() { data() {
return { return {
handleItemSelection handleItemSelection

View File

@ -40,7 +40,7 @@
<div v-if="staticStyle" <div v-if="staticStyle"
class="c-inspect-styles__style" class="c-inspect-styles__style"
> >
<style-editor class="c-inspect-styles__editor" <StyleEditor class="c-inspect-styles__editor"
:style-item="staticStyle" :style-item="staticStyle"
:is-editing="allowEditing" :is-editing="allowEditing"
:mixed-styles="mixedStyles" :mixed-styles="mixedStyles"
@ -108,7 +108,7 @@
<condition-description :show-label="true" <condition-description :show-label="true"
:condition="getCondition(conditionStyle.conditionId)" :condition="getCondition(conditionStyle.conditionId)"
/> />
<style-editor class="c-inspect-styles__editor" <StyleEditor class="c-inspect-styles__editor"
:style-item="conditionStyle" :style-item="conditionStyle"
:non-specific-font-properties="nonSpecificFontProperties" :non-specific-font-properties="nonSpecificFontProperties"
:is-editing="allowEditing" :is-editing="allowEditing"
@ -556,10 +556,10 @@ export default {
} }
let vm = new Vue({ let vm = new Vue({
components: {ConditionSetSelectorDialog},
provide: { provide: {
openmct: this.openmct openmct: this.openmct
}, },
components: {ConditionSetSelectorDialog},
data() { data() {
return { return {
handleItemSelection handleItemSelection

View File

@ -45,8 +45,7 @@
</div> </div>
</div> </div>
</template> </template>
<style lang="sass">
</style>
<script> <script>
import packages from './third-party-licenses.json'; import packages from './third-party-licenses.json';

View File

@ -39,10 +39,6 @@ export default function BarGraphCompositionPolicy(openmct) {
return metadata.values().length > 0 && hasAggregateDomainAndRange(metadata); return metadata.values().length > 0 && hasAggregateDomainAndRange(metadata);
} }
function hasNoChildren(parentObject) {
return parentObject.composition && parentObject.composition.length < 1;
}
return { return {
allow: function (parent, child) { allow: function (parent, child) {
if ((parent.type === BAR_GRAPH_KEY) if ((parent.type === BAR_GRAPH_KEY)

View File

@ -19,6 +19,9 @@
this source code distribution or the Licensing information page available this source code distribution or the Licensing information page available
at runtime from the About dialog for additional information. at runtime from the About dialog for additional information.
--> -->
<!-- eslint-disable vue/no-v-html -->
<template> <template>
<div class="gl-plot-chart-area"> <div class="gl-plot-chart-area">
<span v-html="canvasTemplate"></span> <span v-html="canvasTemplate"></span>

View File

@ -48,17 +48,17 @@ define([
components: { components: {
TabsComponent: TabsComponent.default TabsComponent: TabsComponent.default
}, },
data() {
return {
isEditing: editMode
};
},
provide: { provide: {
openmct, openmct,
domainObject, domainObject,
objectPath, objectPath,
composition: openmct.composition.get(domainObject) composition: openmct.composition.get(domainObject)
}, },
data() {
return {
isEditing: editMode
};
},
template: '<tabs-component :isEditing="isEditing"></tabs-component>' template: '<tabs-component :isEditing="isEditing"></tabs-component>'
}); });
}, },

View File

@ -54,15 +54,15 @@ export default {
let viewContainer = document.createElement('div'); let viewContainer = document.createElement('div');
this.$el.append(viewContainer); this.$el.append(viewContainer);
this.component = new Vue({ this.component = new Vue({
el: viewContainer,
components: {
StylesView
},
provide: { provide: {
openmct: this.openmct, openmct: this.openmct,
selection: selection, selection: selection,
stylesManager: this.stylesManager stylesManager: this.stylesManager
}, },
el: viewContainer,
components: {
StylesView
},
template: '<styles-view/>' template: '<styles-view/>'
}); });
} }

View File

@ -42,10 +42,10 @@ export default {
methods: { methods: {
launchAbout() { launchAbout() {
let vm = new Vue({ let vm = new Vue({
components: {AboutDialog},
provide: { provide: {
openmct: this.openmct openmct: this.openmct
}, },
components: {AboutDialog},
template: '<about-dialog></about-dialog>' template: '<about-dialog></about-dialog>'
}).$mount(); }).$mount();