178 lines
12 KiB
Plaintext
178 lines
12 KiB
Plaintext
script#macros-template(type="text/x-template")
|
|
#macros
|
|
h1 Macros Configuration
|
|
button.pure-button(title="Print config.", @click="resetConfig",
|
|
style="height:50px;width:120px;font-weight:normal;padding-vertical:5px;background-color:#5a9ad7") Reset Macros
|
|
.warning-box
|
|
p
|
|
u Note:
|
|
| Reset the macros to default macros recommended by Onefinity CNC.
|
|
.tabs
|
|
input#tab1(type="radio", name="tabs",checked="" @click="tab = '1'")
|
|
label(for="tab1",style="height:50px;width:100px") Macros 1
|
|
|
|
input#tab2(type="radio", name="tabs", @click="tab = '2'")
|
|
label(for="tab2",style="height:50px;width:100px") Macros 2
|
|
|
|
input#tab3(type="radio", name="tabs", @click="tab = '3'")
|
|
label(for="tab3",style="height:50px;width:100px") Macros 3
|
|
|
|
input#tab4(type="radio", name="tabs", @click="tab = '4'")
|
|
label(for="tab4",style="height:50px;width:100px") Macros 4
|
|
|
|
input#tab5(type="radio", name="tabs", @click="tab = '5'")
|
|
label(for="tab5",style="height:50px;width:100px") Macros 5
|
|
|
|
input#tab6(type="radio", name="tabs", @click="tab = '6'")
|
|
label(for="tab6",style="height:50px;width:100px") Macros 6
|
|
|
|
section#content1.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-0",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(0)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(0)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
|
|
|
section#content2.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-1",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-1")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(1)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(1)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
|
|
|
section#content3.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-2",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-2")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(2)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(2)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
|
|
|
section#content4.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-3",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-3")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(3)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(3)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
|
|
|
section#content5.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-4",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-4")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(4)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(4)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
|
|
|
section#content6.tab-content
|
|
.macros-form
|
|
p.title Name
|
|
.input-container
|
|
input.input-color(type="color",id="macros-color-5",value="#ffffff")
|
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-5")
|
|
p.title G-Code
|
|
select(title="Select previously uploaded GCode programs.",
|
|
v-model="state.selected", @change="load", :disabled="!is_ready",
|
|
style="max-width:100%;height:40px;border-radius:5px")
|
|
option(v-for="file in state.files", :value="file") {{file}}
|
|
|
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
|
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px") Upload
|
|
|
|
form.gcode-file-input.file-upload
|
|
input(type="file", @change="upload", :disabled="!is_ready",
|
|
accept=".nc,.ngc,.gcode,.gc")
|
|
br
|
|
gcode-viewer
|
|
button.submit-macros(title="Save Macros",@click="saveMacros(5)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
|
button.submit-macros(title="Save Macros",@click="cancelMacros(5)",
|
|
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|