This commit is contained in:
sanjayk03-dev
2023-12-30 03:26:06 +05:30
parent 5e51faf5a1
commit ca3c2e24d3
2 changed files with 8 additions and 7 deletions

View File

@@ -17,14 +17,13 @@ module.exports = {
},
computed:{
is_ready: function() {
console.log("is_ready: ",this.mach_state);
console.log("is_ready: ",this);
return this.mach_state == "READY";
},
},
methods:{
print: function(){
console.log("/nthis.config",this.config);
console.log("/nthis.state",this.state);
console.log(this.template);
},
open: function() {
utils.clickFileInput("gcode-file-input");
@@ -34,7 +33,9 @@ module.exports = {
},
load: function() {
const file_time = this.state.selected_time;
console.log('file_time',this.state.selected_time);
const file = this.state.selected;
console.log("file: ",this.state.selected);
if (this.last_file == file && this.last_file_time == file_time) {
return;
}

View File

@@ -2,13 +2,13 @@ script#macros-template(type="text/x-template")
#macros
h1 Macros Configuration
input(type="text",id="inputField")
button.printVariable(title="print Varibale", @click='print()',
button.printVariable(title="print Varibale", @click='print',
style="height:100px;width:100px;font-weight:normal") PrintVariable
button.printVariable(title="print Varibale", @click='print()',
style="height:100px;width:200px;font-weight:normal") Print No of Macros
h3 {{no_of_macros}}
//- button.pure-button(title="Upload a new GCode program.", @click="open",
//- :disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
//- .fa.fa-folder-open
//- select(title="Select previously uploaded GCode programs.",
//- v-model="state.selected", @change="load", :disabled="!is_ready",
//- style="max-width:100%")
@@ -20,4 +20,4 @@ script#macros-template(type="text/x-template")
//- "finishes.")
//- div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
//- label Simulating {{(toolpath_progress || 0) | percent}}
//- gcode-viewer
gcode-viewer