Let prettier change a load of things because new prettier has new rules :(

This commit is contained in:
Julian Stirling 2025-11-02 18:15:02 +00:00
parent a05156407b
commit 1601bdd123
44 changed files with 218 additions and 262 deletions

View file

@ -30,7 +30,7 @@ export default {
components: {},
data: function() {
data: function () {
return {
isNeeded: undefined,
availableCalibrationTasks: {},
@ -91,7 +91,7 @@ export default {
return needsCalibration;
},
resetData: function() {
resetData: function () {
this.movingBackward = false;
this.taskIndex = 0;
},
@ -99,7 +99,7 @@ export default {
/**
* Create the calibration wizard task list dynamically.
*/
create_task_list: function(thingsToCal, includeWelcome = true) {
create_task_list: function (thingsToCal, includeWelcome = true) {
const tasks = [];
// Optionally include the welcome screen
@ -125,7 +125,7 @@ export default {
this.tasks = tasks;
},
show_if_needed: async function() {
show_if_needed: async function () {
// Check if the calibration modal is needed, and only show it if it is.
let thingsToCal = await this.check_things_needing_calibration();
const needed = thingsToCal.length > 0;
@ -142,7 +142,7 @@ export default {
},
// Forces modal to show on button press
force_show: function() {
force_show: function () {
const allThings = Object.keys(this.availableCalibrationTasks);
this.resetData();
@ -150,26 +150,26 @@ export default {
this.show();
},
show: function() {
show: function () {
// Show the modal element
var el = this.$refs["calibrationModalEl"];
this.showModalElement(el); // Calls the mixin
},
hide: function() {
hide: function () {
// Show the modal
var el = this.$refs["calibrationModalEl"];
this.hideModalElement(el); // Calls the mixin
},
onHide: function() {
onHide: function () {
this.$emit("onClose");
},
/*
* Move to the previous task.
*/
previousTask: function() {
previousTask: function () {
this.movingBackward = true;
if (this.taskIndex > 0) {
this.taskIndex = this.taskIndex - 1;
@ -179,7 +179,7 @@ export default {
/*
* Move to the next task or close the modal if this is the final task.
*/
nextTask: function() {
nextTask: function () {
this.movingBackward = false;
if (this.taskIndex < this.tasks.length - 1) {
this.taskIndex = this.taskIndex + 1;

View file

@ -87,7 +87,7 @@ export default {
/*
* Move to the previous step in this task, or the previous task if first step.
*/
previousStep: function() {
previousStep: function () {
if (this.stepIndex > 0) {
this.stepIndex = this.stepIndex - 1;
} else {
@ -98,7 +98,7 @@ export default {
/*
* Move to the next step in this task, or the next task if final step.
*/
nextStep: function() {
nextStep: function () {
if (this.stepIndex < this.steps.length - 1) {
this.stepIndex = this.stepIndex + 1;
return true;

View file

@ -1,9 +1,7 @@
<template>
<div>
<p>
<b>
Before starting camera calibration:
</b>
<b> Before starting camera calibration: </b>
</p>
<ul class="uk-list uk-list-bullet">
<li>Remove any samples from your microscope</li>

View file

@ -25,7 +25,7 @@ export default {
},
computed: {
cameraUri: function() {
cameraUri: function () {
return `${this.$store.getters.baseUri}/camera/`;
},
},

View file

@ -28,7 +28,7 @@ export default {
},
},
data: function() {
data: function () {
return {
steps: [{ component: camCalibrationExplanation }, { component: cameraMainCalibrationStep }],
};

View file

@ -29,7 +29,7 @@ export default {
},
},
data: function() {
data: function () {
return {
steps: [{ component: csmExplanation }, { component: focusStep }, { component: runCsmStep }],
};

View file

@ -1,12 +1,8 @@
<template>
<div>
<p>Camera-stage mapping will calibrate the stage movement using the camera.</p>
<p>
Camera-stage mapping will calibrate the stage movement using the camera.
</p>
<p>
<b>
Before starting camera-stage mapping:
</b>
<b> Before starting camera-stage mapping: </b>
</p>
<ul class="uk-list uk-list-bullet">
<li>Add a sample with dense features to the microscope.</li>

View file

@ -1,8 +1,6 @@
<template>
<stepTemplateWithStream>
<p>
Use the buttons below to bring the sample into focus.
</p>
<p>Use the buttons below to bring the sample into focus.</p>
<p>You may also adjust the z position with <b>page up</b> and <b>page down</b>.</p>
<template #below-stream>
<div class="action-button-container">

View file

@ -3,12 +3,8 @@
<p>
<b>Calibration complete</b>
</p>
<p>
You'll need to repeat these steps from the Settings tab if you swap your objective.
</p>
<p>
Click Finish to return to your microscope.
</p>
<p>You'll need to repeat these steps from the Settings tab if you swap your objective.</p>
<p>Click Finish to return to your microscope.</p>
</div>
</template>

View file

@ -52,7 +52,7 @@ export default {
},
},
data: function() {
data: function () {
return {
steps: [{ component: this.stepComponent, props: this.stepProps }],
};

View file

@ -1,9 +1,7 @@
<template>
<div>
<p>
<b>
Some important microscope calibration data is currently missing.
</b>
<b> Some important microscope calibration data is currently missing. </b>
</p>
<p>
Your microscope will still function, however some functionality will be limited, and image