From ca3c2e24d393a4b5204e55cad27aba4b1e9a9023 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Sat, 30 Dec 2023 03:26:06 +0530 Subject: [PATCH] test --- src/js/macros.js | 7 ++++--- src/pug/templates/macros.pug | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/js/macros.js b/src/js/macros.js index cff2b67..41a406f 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -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; } diff --git a/src/pug/templates/macros.pug b/src/pug/templates/macros.pug index 432f1bc..e188ecc 100644 --- a/src/pug/templates/macros.pug +++ b/src/pug/templates/macros.pug @@ -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