ui_migration lint(fix): changes fixed with lint ecmaversion & es2021

This commit is contained in:
Antonio Anaya 2026-02-15 01:03:29 -06:00
parent 0741e3cf7e
commit ce19ea3fc0
52 changed files with 242 additions and 193 deletions

View file

@ -30,6 +30,8 @@ export default {
components: {},
emits: ["onClose"],
data: function () {
return {
isNeeded: undefined,

View file

@ -66,6 +66,8 @@ export default {
},
},
emits: ["back", "next"],
data() {
return {
stepIndex: this.startOnLast ? this.steps.length - 1 : 0,

View file

@ -9,7 +9,7 @@
<cameraCalibrationSettings
:show-extra-settings="false"
:camera-uri="cameraUri"
@actionFinished="checkCalibrationState"
@action-finished="checkCalibrationState"
/>
</div>
</template>
@ -26,9 +26,11 @@ export default {
components: {
stepTemplateWithStream,
cameraCalibrationSettings
cameraCalibrationSettings,
},
emits: ["awaiting-user"],
computed: {
cameraUri: function () {
return `${this.$store.getters.baseUri}/camera/`;

View file

@ -19,8 +19,10 @@ import { markRaw } from "vue";
export default {
name: "CameraCalibrationTask",
components: {
calibrationWizardTask},
components: {
calibrationWizardTask,
},
props: {
// Standard calibrationWizardTask props below:
first: Boolean,
@ -31,9 +33,14 @@ export default {
},
},
emits: ["next", "back"],
data: function () {
return {
steps: [{ component: markRaw(camCalibrationExplanation) }, { component: markRaw(cameraMainCalibrationStep)}],
steps: [
{ component: markRaw(camCalibrationExplanation) },
{ component: markRaw(cameraMainCalibrationStep) },
],
};
},
};

View file

@ -21,7 +21,7 @@ import { markRaw } from "vue";
export default {
name: "CameraCalibrationTask",
components: {
calibrationWizardTask
calibrationWizardTask,
},
props: {
// Standard calibrationWizardTask props below:
@ -32,10 +32,15 @@ export default {
default: false,
},
},
emits: ["next", "back"],
data: function () {
return {
steps: [{ component: markRaw(csmExplanation) }, { component: markRaw(focusStep) }, { component: markRaw(runCsmStep) }],
steps: [
{ component: markRaw(csmExplanation) },
{ component: markRaw(focusStep) },
{ component: markRaw(runCsmStep) },
],
};
},
};

View file

@ -37,7 +37,7 @@ export default {
components: {
stepTemplateWithStream,
ActionButton
ActionButton,
},
};
</script>

View file

@ -8,7 +8,7 @@
<div class="action-button-container">
<CSMCalibrationSettings
:show-extra-settings="false"
@recalibrateResponse="checkCalibrationState"
@recalibrate-response="checkCalibrationState"
/>
</div>
</template>
@ -28,6 +28,8 @@ export default {
CSMCalibrationSettings,
},
emits: ["awaiting-user"],
mounted() {
this.checkCalibrationState();
},

View file

@ -29,9 +29,10 @@ import { markRaw } from "vue";
export default {
name: "SingleStepTask",
components: {
calibrationWizardTask
components: {
calibrationWizardTask,
},
props: {
// This must be sent
stepComponent: {
@ -56,6 +57,8 @@ export default {
},
},
emits: ["next", "back"],
data: function () {
return {
steps: [{ component: markRaw(this.stepComponent), props: this.stepProps }],

View file

@ -14,7 +14,7 @@ export default {
name: "StepTemplateWithStream",
components: {
miniStreamDisplay
miniStreamDisplay,
},
};
</script>