Loading openflexure_microscope/api/static/src/App.vue +1 −5 Original line number Diff line number Diff line Loading @@ -199,15 +199,13 @@ export default { (state, getters) => { return getters.uriV2; }, uriV2 => { () => { this.checkConnection(); console.log(uriV2); } ); // Keyboard shortcuts Mousetrap.bind("?", () => { console.log(this.keyboardManual); this.toggleModalElement(this.$refs["keyboardManualModal"]); // Calls the mixin }); Loading Loading @@ -290,7 +288,6 @@ export default { // Remove origin watcher this.unwatchOriginFunction(); // Remove key listeners console.log("Resetting Mousetrap"); Mousetrap.reset(); }, Loading @@ -313,7 +310,6 @@ export default { }, handleExit: function() { console.log("Triggered beforeunload"); this.$root.$emit("globalTogglePreview", false); }, Loading openflexure_microscope/api/static/src/components/appContent.vue +0 −5 Original line number Diff line number Diff line Loading @@ -230,7 +230,6 @@ export default { pluginsGuiList: function() { // List of plugin GUIs, obtained from this.plugins values console.log("Recalculating plugins"); var pluginGuis = []; for (let plugin of Object.values(this.plugins)) { if (plugin.meta.gui) { Loading Loading @@ -304,11 +303,9 @@ export default { methods: { updatePlugins: function() { console.log("Updating plugin forms"); return axios .get(this.pluginsUri) .then(response => { console.log(response); this.plugins = response.data; }) .catch(error => { Loading @@ -333,8 +330,6 @@ export default { }, enterApp: function() { // Stuff to do once connected and all init modals are finished console.log("Entering main application"); //this.currentTab = "view"; } } }; Loading openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue +0 −5 Original line number Diff line number Diff line Loading @@ -111,11 +111,6 @@ export default { this.$delete(newSelected, key); this.$emit("input", newSelected); }, modifyValue: function(e, v) { console.log(e); console.log(v); } } }; Loading openflexure_microscope/api/static/src/components/genericComponents/taskSubmitter.vue +7 −16 Original line number Diff line number Diff line Loading @@ -138,7 +138,6 @@ export default { checkExistingTasks: function() { axios.get(this.submitUrl).then(response => { console.log(response.data); for (const task of response.data) { if (task.status == "pending" || task.status == "running") { this.taskStarted = true; Loading @@ -165,10 +164,10 @@ export default { startTask: function() { // Starts a new Action task console.log("Task start clicked"); this.$emit("submit", this.submitData); // Send a request to start a task console.log("Submitting to ", this.submitUrl); this.taskStarted = true; this.$emit("taskStarted", this.taskId); axios Loading @@ -191,7 +190,7 @@ export default { this.pollTask(this.taskId, this.pollInterval) .then(response => { // Do something with the final response console.log("Emitting onResponse: ", response); this.$emit("response", response); this.$emit("finished"); }) Loading @@ -199,12 +198,11 @@ export default { if (!error) { error = Error("Unknown error"); } console.log("Emitting onError: ", error); this.$emit("error", error); this.$emit("finished"); }) .finally(() => { console.log("Cleaning up after task."); // Reset taskRunning and taskId this.taskRunning = false; this.taskStarted = false; Loading @@ -223,7 +221,6 @@ export default { var checkCondition = (resolve, reject) => { // If the condition is met, we're done! axios.get(this.taskUrl).then(response => { console.log(response.data.status); var result = response.data.status; // If the task ends with success if (result == "completed") { Loading @@ -232,13 +229,13 @@ export default { // If task ends with an error else if (result == "error") { // Pass the error string back with reject console.log("Rejecting pollTask due to error"); reject(new Error(response.data.output)); } // If task ends with termination else if (result == "cancelled") { // Pass a generic termination error back with reject console.log("Rejecting pollTask due to cancellation"); reject(new Error("Task cancelled")); } else { // Since the task is still running, we can update the progress bar Loading @@ -253,19 +250,13 @@ export default { }, pollProgress: function() { console.log("Starting progress polling"); axios.get(this.taskUrl).then(response => { console.log("PROGRESS RESPONSE: ", response.data.progress); this.progress = response.data.progress; }); }, terminateTask: function() { console.log("Terminating task..."); axios.delete(this.taskUrl).then(response => { console.log("TERMINATION RESPONSE: ", response.data); }); axios.delete(this.taskUrl); } } }; Loading openflexure_microscope/api/static/src/components/modalComponents/calibrationModal.vue +0 −1 Original line number Diff line number Diff line Loading @@ -265,7 +265,6 @@ export default { }, onHide: function() { console.log("UIKit modal hidden"); this.$emit("onClose"); }, Loading Loading
openflexure_microscope/api/static/src/App.vue +1 −5 Original line number Diff line number Diff line Loading @@ -199,15 +199,13 @@ export default { (state, getters) => { return getters.uriV2; }, uriV2 => { () => { this.checkConnection(); console.log(uriV2); } ); // Keyboard shortcuts Mousetrap.bind("?", () => { console.log(this.keyboardManual); this.toggleModalElement(this.$refs["keyboardManualModal"]); // Calls the mixin }); Loading Loading @@ -290,7 +288,6 @@ export default { // Remove origin watcher this.unwatchOriginFunction(); // Remove key listeners console.log("Resetting Mousetrap"); Mousetrap.reset(); }, Loading @@ -313,7 +310,6 @@ export default { }, handleExit: function() { console.log("Triggered beforeunload"); this.$root.$emit("globalTogglePreview", false); }, Loading
openflexure_microscope/api/static/src/components/appContent.vue +0 −5 Original line number Diff line number Diff line Loading @@ -230,7 +230,6 @@ export default { pluginsGuiList: function() { // List of plugin GUIs, obtained from this.plugins values console.log("Recalculating plugins"); var pluginGuis = []; for (let plugin of Object.values(this.plugins)) { if (plugin.meta.gui) { Loading Loading @@ -304,11 +303,9 @@ export default { methods: { updatePlugins: function() { console.log("Updating plugin forms"); return axios .get(this.pluginsUri) .then(response => { console.log(response); this.plugins = response.data; }) .catch(error => { Loading @@ -333,8 +330,6 @@ export default { }, enterApp: function() { // Stuff to do once connected and all init modals are finished console.log("Entering main application"); //this.currentTab = "view"; } } }; Loading
openflexure_microscope/api/static/src/components/fieldComponents/keyvalList.vue +0 −5 Original line number Diff line number Diff line Loading @@ -111,11 +111,6 @@ export default { this.$delete(newSelected, key); this.$emit("input", newSelected); }, modifyValue: function(e, v) { console.log(e); console.log(v); } } }; Loading
openflexure_microscope/api/static/src/components/genericComponents/taskSubmitter.vue +7 −16 Original line number Diff line number Diff line Loading @@ -138,7 +138,6 @@ export default { checkExistingTasks: function() { axios.get(this.submitUrl).then(response => { console.log(response.data); for (const task of response.data) { if (task.status == "pending" || task.status == "running") { this.taskStarted = true; Loading @@ -165,10 +164,10 @@ export default { startTask: function() { // Starts a new Action task console.log("Task start clicked"); this.$emit("submit", this.submitData); // Send a request to start a task console.log("Submitting to ", this.submitUrl); this.taskStarted = true; this.$emit("taskStarted", this.taskId); axios Loading @@ -191,7 +190,7 @@ export default { this.pollTask(this.taskId, this.pollInterval) .then(response => { // Do something with the final response console.log("Emitting onResponse: ", response); this.$emit("response", response); this.$emit("finished"); }) Loading @@ -199,12 +198,11 @@ export default { if (!error) { error = Error("Unknown error"); } console.log("Emitting onError: ", error); this.$emit("error", error); this.$emit("finished"); }) .finally(() => { console.log("Cleaning up after task."); // Reset taskRunning and taskId this.taskRunning = false; this.taskStarted = false; Loading @@ -223,7 +221,6 @@ export default { var checkCondition = (resolve, reject) => { // If the condition is met, we're done! axios.get(this.taskUrl).then(response => { console.log(response.data.status); var result = response.data.status; // If the task ends with success if (result == "completed") { Loading @@ -232,13 +229,13 @@ export default { // If task ends with an error else if (result == "error") { // Pass the error string back with reject console.log("Rejecting pollTask due to error"); reject(new Error(response.data.output)); } // If task ends with termination else if (result == "cancelled") { // Pass a generic termination error back with reject console.log("Rejecting pollTask due to cancellation"); reject(new Error("Task cancelled")); } else { // Since the task is still running, we can update the progress bar Loading @@ -253,19 +250,13 @@ export default { }, pollProgress: function() { console.log("Starting progress polling"); axios.get(this.taskUrl).then(response => { console.log("PROGRESS RESPONSE: ", response.data.progress); this.progress = response.data.progress; }); }, terminateTask: function() { console.log("Terminating task..."); axios.delete(this.taskUrl).then(response => { console.log("TERMINATION RESPONSE: ", response.data); }); axios.delete(this.taskUrl); } } }; Loading
openflexure_microscope/api/static/src/components/modalComponents/calibrationModal.vue +0 −1 Original line number Diff line number Diff line Loading @@ -265,7 +265,6 @@ export default { }, onHide: function() { console.log("UIKit modal hidden"); this.$emit("onClose"); }, Loading