Fix lint warnings

This commit is contained in:
Julian Stirling 2025-10-27 18:17:14 +00:00
parent c085d2c0ac
commit a5da5241ae
6 changed files with 29 additions and 31 deletions

View file

@ -5,7 +5,7 @@
isDisabled ? 'uk-button-disabled' : '', isDisabled ? 'uk-button-disabled' : '',
buttonPrimary ? 'uk-button-primary' : 'uk-button-default', buttonPrimary ? 'uk-button-primary' : 'uk-button-default',
]" ]"
:href="URL" :href="url"
download download
> >
{{ buttonLabel }}</a {{ buttonLabel }}</a
@ -22,7 +22,7 @@ export default {
required: false, required: false,
default: true, default: true,
}, },
URL: { url: {
type: String, type: String,
required: true, required: true,
}, },

View file

@ -95,9 +95,11 @@ export default {
props: { props: {
dataSchema: { dataSchema: {
type: Object, type: Object,
required: true,
}, },
value: { value: {
type: null, type: null,
required: true,
}, },
label: { label: {
type: String, type: String,

View file

@ -24,7 +24,7 @@
<div> <div>
<EndpointButton <EndpointButton
class="uk-button uk-width-1-1" class="uk-button uk-width-1-1"
:u-r-l="logFileURI" :url="logFileURI"
button-label="Download Log File" button-label="Download Log File"
:button-primary="false" :button-primary="false"
/> />

View file

@ -31,7 +31,7 @@
class="uk-width-1-2" class="uk-width-1-2"
:button-primary="true" :button-primary="true"
:is-disabled="!scanData.stitch_available" :is-disabled="!scanData.stitch_available"
:u-r-l="downloadStitchFile" :url="downloadStitchFile"
button-label="Download JPEG" button-label="Download JPEG"
/> />
</div> </div>

View file

@ -26,7 +26,7 @@
> >
Download Calibration Data Download Calibration Data
</button> </button>
<div v-if="this.csmMatrix != 'undefined'" style="margin:10px;"> <div v-if="csmMatrix != 'undefined'" style="margin:10px;">
<details <details
><summary>Calibration Details</summary> ><summary>Calibration Details</summary>
<strong>CSM calculated for images with a resolution of {{ csmResolution }}</strong> <strong>CSM calculated for images with a resolution of {{ csmResolution }}</strong>

View file

@ -3,29 +3,28 @@
The microscope stage is a <b>{{ stageType }}</b> The microscope stage is a <b>{{ stageType }}</b>
<div> <div>
<div class="uk-margin"> <div class="uk-margin">
<p>Your z motor is currently {{ z_inverted }} inverted.</p>
<p> <p>
<br> We expect that moving in +z:
Your z motor is currently {{ this.z_inverted }} inverted. </p>
<br>
<br>
We expect that moving in +z:
<ul> <ul>
<li> Moves your objective up, towards the sample and illumination</li> <li>Moves your objective up, towards the sample and illumination</li>
<li> Turns the exposed z gear anti-clockwise (when viewed from above)</li> <li>Turns the exposed z gear anti-clockwise (when viewed from above)</li>
</ul> </ul>
If this is not the case, click the button below to switch. <p>
If this is not the case, click the button below to switch.
</p> </p>
<div class="uk-margin"> <div class="uk-margin">
<div class="uk-margin"> <div class="uk-margin">
<action-button <action-button
class="uk-width-1-2" class="uk-width-1-2"
thing="stage" thing="stage"
action="invert_axis_direction" action="invert_axis_direction"
:submit-data="{ axis: 'z' }" :submit-data="{ axis: 'z' }"
submit-label="Invert z" submit-label="Invert z"
@response=readAxis() @response="readAxis()"
/> />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -51,23 +50,20 @@ export default {
computed: { computed: {
stageType: function() { stageType: function() {
return this.thingDescription("stage").title; return this.thingDescription("stage").title;
} },
}, },
methods:{ methods: {
visibilityChanged(isVisible) { visibilityChanged(isVisible) {
if (isVisible) { if (isVisible) {
this.readAxis(); this.readAxis();
} }
}, },
async readAxis() { async readAxis() {
let axes_inverted = await this.readThingProperty( let axes_inverted = await this.readThingProperty("stage", "axis_inverted");
"stage", this.z_inverted = axes_inverted["z"] ? "" : "not ";
"axis_inverted" },
); },
this.z_inverted = axes_inverted['z'] ? "" : "not ";
}
}
}; };
</script> </script>