testing
This commit is contained in:
@@ -23,8 +23,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
print: function(){
|
print: function(){
|
||||||
var inputValue = document.getElementById('inputField').value;
|
console.log("/nthis.config",this.config);
|
||||||
console.log(inputValue);
|
console.log("/nthis.state",this.state);
|
||||||
},
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
utils.clickFileInput("gcode-file-input");
|
utils.clickFileInput("gcode-file-input");
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
script#macros-template(type="text/x-template")
|
script#macros-template(type="text/x-template")
|
||||||
#macros
|
#macros
|
||||||
h2 Macros
|
h1 Macros Configuration
|
||||||
input(type="text",id="inputField")
|
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
|
style="height:100px;width:100px;font-weight:normal") PrintVariable
|
||||||
button.printVariable(title="print Varibale", @click='print()',
|
button.printVariable(title="print Varibale", @click='print()',
|
||||||
style="height:100px;width:200px;font-weight:normal") Print No of Macros
|
style="height:100px;width:200px;font-weight:normal") Print No of Macros
|
||||||
button.pure-button(title="Upload a new GCode program.", @click="open",
|
//- button.pure-button(title="Upload a new GCode program.", @click="open",
|
||||||
:disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
|
//- :disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
|
||||||
.fa.fa-folder-open
|
//- .fa.fa-folder-open
|
||||||
select(title="Select previously uploaded GCode programs.",
|
//- select(title="Select previously uploaded GCode programs.",
|
||||||
v-model="state.selected", @change="load", :disabled="!is_ready",
|
//- v-model="state.selected", @change="load", :disabled="!is_ready",
|
||||||
style="max-width:100%")
|
//- style="max-width:100%")
|
||||||
option(v-for="file in state.files", :value="file") {{file}}
|
//- option(v-for="file in state.files", :value="file") {{file}}
|
||||||
|
|
||||||
.progress(v-if="toolpath_progress && toolpath_progress < 1",
|
//- .progress(v-if="toolpath_progress && toolpath_progress < 1",
|
||||||
title="Simulating GCode to check for errors, calculate ETA and " +
|
//- title="Simulating GCode to check for errors, calculate ETA and " +
|
||||||
"generate 3D view. You can run GCode before the simulation " +
|
//- "generate 3D view. You can run GCode before the simulation " +
|
||||||
"finishes.")
|
//- "finishes.")
|
||||||
div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
|
//- div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
|
||||||
label Simulating {{(toolpath_progress || 0) | percent}}
|
//- label Simulating {{(toolpath_progress || 0) | percent}}
|
||||||
gcode-viewer
|
//- gcode-viewer
|
||||||
|
|||||||
Reference in New Issue
Block a user