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

@ -6,9 +6,7 @@
:button-primary="true"
:can-terminate="true"
:requires-confirmation="true"
:confirmation-message="
'Start recalibration of the stage to the camera? This may take a while, and the microscope will be locked during this time.'
"
:confirmation-message="'Start recalibration of the stage to the camera? This may take a while, and the microscope will be locked during this time.'"
thing="camera_stage_mapping"
action="calibrate_xy"
:submit-label="'Auto-Calibrate Using Camera'"
@ -26,9 +24,9 @@
>
Download Calibration Data
</button>
<div v-if="csmMatrix != 'undefined'" style="margin:10px;">
<details
><summary>Calibration Details</summary>
<div v-if="csmMatrix != 'undefined'" style="margin: 10px">
<details>
<summary>Calibration Details</summary>
<strong>CSM calculated for images with a resolution of {{ csmResolution }}</strong>
<ul>
<li>
@ -84,7 +82,7 @@ export default {
this.updateDisplayedCSM();
}
},
getCalibrationData: async function() {
getCalibrationData: async function () {
try {
let data = await this.readThingProperty("camera_stage_mapping", "last_calibration");
if (data == {}) {
@ -101,7 +99,7 @@ export default {
this.modalError(error); // Let mixin handle error
}
},
updateDisplayedCSM: async function() {
updateDisplayedCSM: async function () {
let csmMatrix = await this.readThingProperty(
"camera_stage_mapping",
"image_to_stage_displacement_matrix",
@ -121,7 +119,7 @@ export default {
Number(((streamResolution[1] ** 2 * this.csmRatio) / this.csmResolution[0]).toFixed(0)),
];
},
onRecalibrateResponse: function() {
onRecalibrateResponse: function () {
this.modalNotify("Finished stage-to-camera calibration.");
this.updateDisplayedCSM();
},

View file

@ -23,7 +23,7 @@
export default {
name: "AppSettings",
data: function() {
data: function () {
return {};
},

View file

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

View file

@ -4,16 +4,12 @@
<div>
<div class="uk-margin">
<p>Your z motor is currently {{ z_inverted }} inverted.</p>
<p>
We expect that moving in +z:
</p>
<p>We expect that moving in +z:</p>
<ul>
<li>Moves your objective up, towards the sample and illumination</li>
<li>Turns the exposed z gear anti-clockwise (when viewed from above)</li>
</ul>
<p>
If this is not the case, click the button below to switch.
</p>
<p>If this is not the case, click the button below to switch.</p>
<div class="uk-margin">
<div class="uk-margin">
<action-button
@ -41,14 +37,14 @@ export default {
ActionButton,
},
data: function() {
data: function () {
return {
z_inverted: "",
};
},
computed: {
stageType: function() {
stageType: function () {
return this.thingDescription("stage").title;
},
},

View file

@ -6,9 +6,7 @@
><input v-model="disableStream" class="uk-checkbox" type="checkbox" /> Disable Web
Stream</label
>
<p class="uk-margin-small">
This will disable the embedded web stream of the camera.
</p>
<p class="uk-margin-small">This will disable the embedded web stream of the camera.</p>
</div>
</div>
</template>
@ -18,7 +16,7 @@
export default {
name: "StreamSettings",
data: function() {
data: function () {
return {};
},