Remove console logging
This commit is contained in:
parent
f1a51dad84
commit
c583be7756
7 changed files with 0 additions and 34 deletions
|
|
@ -60,7 +60,6 @@ export default {
|
|||
let imageUri = response.output.href;
|
||||
if (!imageUri) {
|
||||
this.modalError("No image URI returned from capture task.");
|
||||
console.log(`Capture resulted in response ${response}`);
|
||||
return;
|
||||
}
|
||||
// To save the returned data, we make a virtual link and click it
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ export default {
|
|||
|
||||
computed: {
|
||||
positionStatusUri: function () {
|
||||
console.log("Computing position status URI", this.thingActionUrl("stage", "position"));
|
||||
return this.thingActionUrl("stage", "position");
|
||||
},
|
||||
},
|
||||
|
|
@ -114,12 +113,10 @@ export default {
|
|||
},
|
||||
|
||||
onMoveImage(payload) {
|
||||
console.log("Received move in image coordinates:", payload);
|
||||
this.moveInImageCoordinatesRequest(payload.x, payload.y, payload.absolute);
|
||||
},
|
||||
|
||||
onMoveStep(payload) {
|
||||
console.log("Received key move step event:", payload);
|
||||
const { x: x_steps, y: y_steps, z: z_steps } = payload;
|
||||
const navigationStepSize = this.$store.state.navigationStepSize;
|
||||
const navigationInvert = this.$store.state.navigationInvert;
|
||||
|
|
@ -128,7 +125,6 @@ export default {
|
|||
const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1);
|
||||
const movePayload = { x, y, z, absolute: false };
|
||||
eventBus.emit("globalMoveEvent", movePayload);
|
||||
console.log("Emitted global move event with:", movePayload);
|
||||
},
|
||||
|
||||
async move(payload) {
|
||||
|
|
@ -148,7 +144,6 @@ export default {
|
|||
y: this.setPosition.y + y,
|
||||
z: this.setPosition.z + z,
|
||||
};
|
||||
console.log("Updated setPosition for relative move:", this.setPosition);
|
||||
}
|
||||
await this.$nextTick(); // Wait for Vue to update the position
|
||||
await this.startMoveTask();
|
||||
|
|
@ -158,7 +153,6 @@ export default {
|
|||
await this.$refs.moveButton.startTask();
|
||||
},
|
||||
moveComplete() {
|
||||
console.log("Move completed.");
|
||||
this.updatePosition();
|
||||
this.moveLock = false;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -199,7 +199,6 @@ export default {
|
|||
} else {
|
||||
// if there's no existing log message to append to, discard lines
|
||||
// until we find one.
|
||||
console.log("Ignored non-matching lines at the start of the log file.");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,7 +168,6 @@ export default {
|
|||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
link.setAttribute("download", filename);
|
||||
console.log(link);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -202,7 +202,6 @@ export default {
|
|||
}
|
||||
},
|
||||
async readSettings() {
|
||||
|
||||
this.workflowName = await this.readThingProperty("smart_scan", "workflow_name");
|
||||
|
||||
if (!this.workflowName) {
|
||||
|
|
@ -211,11 +210,9 @@ export default {
|
|||
}
|
||||
|
||||
if (this.workflowName) {
|
||||
console.log("Current workflow name: ", this.workflowName);
|
||||
this.ready = await this.readThingProperty(this.workflowName, "ready", true);
|
||||
this.workflowSettings =
|
||||
(await this.readThingProperty(this.workflowName, "settings_ui", true)) || [];
|
||||
console.log(this.workflowSettings);
|
||||
this.workflowDisplayName = await this.readThingProperty(
|
||||
this.workflowName,
|
||||
"display_name",
|
||||
|
|
@ -248,21 +245,16 @@ export default {
|
|||
* - starts the polling loop that fetches scan progress and preview images
|
||||
*/
|
||||
startScanning() {
|
||||
console.log("Starting scan...");
|
||||
this.lastStitchedImage = null;
|
||||
this.scanning = true;
|
||||
setTimeout(this.pollScan, 1000);
|
||||
},
|
||||
async pollScan() {
|
||||
console.log("Polling for scan progress...");
|
||||
if (this.cancellable) {
|
||||
// while the scan is running
|
||||
console.log("Polling for scan updates...");
|
||||
let mtime = await this.readThingProperty("smart_scan", "latest_preview_stitch_time", true);
|
||||
console.log("smart scan latest preview stitch time: ", mtime);
|
||||
if (mtime !== null) {
|
||||
this.lastStitchedImage = `${this.$store.getters.baseUri}/smart_scan/latest_preview_stitch.jpg?t=${mtime}`;
|
||||
console.log("Updated preview image URL: ", this.lastStitchedImage);
|
||||
}
|
||||
|
||||
this.lastScanName = await this.readThingProperty("smart_scan", "latest_scan_name", true);
|
||||
|
|
@ -270,7 +262,6 @@ export default {
|
|||
}
|
||||
},
|
||||
async setWorkflow(name) {
|
||||
console.log("Setting workflow to ", name);
|
||||
try {
|
||||
this.workflowName = name;
|
||||
|
||||
|
|
@ -278,13 +269,6 @@ export default {
|
|||
|
||||
// refresh UI
|
||||
await this.readSettings();
|
||||
console.log(
|
||||
"readsettings values: ",
|
||||
this.workflowName,
|
||||
this.workflowSettings,
|
||||
this.workflowDisplayName,
|
||||
this.workflowBlurb,
|
||||
);
|
||||
} catch (err) {
|
||||
this.modalError(err);
|
||||
|
||||
|
|
@ -299,7 +283,6 @@ export default {
|
|||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
link.setAttribute("download", filename);
|
||||
console.log(link);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue