Fix lint warnings
This commit is contained in:
parent
c085d2c0ac
commit
a5da5241ae
6 changed files with 29 additions and 31 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue