From e837a37140ac1f8a3acfdf9ea00ab2eac994e88d Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Sat, 4 May 2024 02:52:49 +0530 Subject: [PATCH] added icons , editing template --- src/pug/templates/control-view.pug | 12 ++++++------ ...ecute button delete current gcode program.webp | Bin 0 -> 298 bytes ...utton download the selected gcode program.webp | Bin 0 -> 258 bytes src/resources/icons/Execute button play.webp | Bin 0 -> 250 bytes .../Execute button upload a new gcode folder.webp | Bin 0 -> 270 bytes ...Execute button upload a new gcode program.webp | Bin 0 -> 250 bytes src/resources/icons/Execute_button_stop.webp | Bin 0 -> 114 bytes 7 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/resources/icons/Execute button delete current gcode program.webp create mode 100644 src/resources/icons/Execute button download the selected gcode program.webp create mode 100644 src/resources/icons/Execute button play.webp create mode 100644 src/resources/icons/Execute button upload a new gcode folder.webp create mode 100644 src/resources/icons/Execute button upload a new gcode program.webp create mode 100644 src/resources/icons/Execute_button_stop.webp diff --git a/src/pug/templates/control-view.pug b/src/pug/templates/control-view.pug index 099d094..e4feb95 100644 --- a/src/pug/templates/control-view.pug +++ b/src/pug/templates/control-view.pug @@ -62,12 +62,11 @@ script#control-view-template(type="text/x-template") td(style="height:100px",align="center") button(@click="jog_fn(-1,0,0,0)") X- td(style="height:100px",align="center") - button(@click="showMoveToZeroDialog('xy')") - .fa.fa-bullseye(style="font-size: 173%") + button(@click="showMoveToZeroDialog('xy')") XY Origin td(style="height:100px",align="center") button(@click="jog_fn(1,0,0,0)") X+ td(style="height:100px",align="center") - button(@click="showMoveToZeroDialog('z')") Z0 + button(@click="showMoveToZeroDialog('z')") Z Origin tr td(style="height:100px",align="center") button(@click="jog_fn(-1,-1,0,0)") @@ -268,7 +267,8 @@ script#control-view-template(type="text/x-template") .fa(:class="is_running ? 'fa-pause' : 'fa-play'") button.pure-button(title="Stop program.", @click="stop", style="height:100px;width:100px;font-weight:normal") - .fa.fa-stop + svg(width="50", height="50") + image(href="../resources/icons/Execute_button_stop.webp", width="50", height="50") button.pure-button(title="Pause program at next optional stop (M1).", @click="optional_pause", v-if="false", style="height:100px;width:100px;font-weight:normal") @@ -294,7 +294,7 @@ script#control-view-template(type="text/x-template") form.gcode-folder-input.file-upload input#folderInput(type="file", @change="upload_folder", :disabled="!is_ready", - webkitdirectory, directory, multiple) + webkitdirectory, directory) button.pure-button(title="Upload a new GCode program.", @click="open_file", :disabled="!is_ready",style="height:100px;width:100px;font-weight:normal") @@ -302,7 +302,7 @@ script#control-view-template(type="text/x-template") form.gcode-file-input.file-upload input(type="file", @change="upload_file", :disabled="!is_ready", - accept=".nc,.ngc,.gcode,.gc") + accept=".nc,.ngc,.gcode,.gc", multiple) a(:disabled="!state.selected", download, :href="'/api/file/' + state.selected", diff --git a/src/resources/icons/Execute button delete current gcode program.webp b/src/resources/icons/Execute button delete current gcode program.webp new file mode 100644 index 0000000000000000000000000000000000000000..21a1ee50f172cfc13040c46cd9a25b19999307d6 GIT binary patch literal 298 zcmV+_0oDFeNk&E@0RRA3MM6+kP&il$0000G0000L000*N06|PpNY(%V00DqoZQJtX zO#)qP3mCv{gVZ?m(eD5M?)@s$jC8pB0xog8aj2*xVglsr;nSz5r>B!4`Q_r) z*vQEE?(BD=#HO|O;9_lcb^UtRTDut!N&8HlU)QJFbEo{_X|BPaHd2|?A7)b0r>bg< zsxhj@sH*mfcmTB))Em&M0eB(~a1+Z?j%O-lV>f{F)j`mq&^1uP2_F39FzQk09WLQT z5C2IamqPbo2{-hki@r5VW7B2U`Yyh5f%LZmbQ{PN4^e1`y5 wP&gna0002c0sx%>Di#1306vjKol2#nqM@h=0I(7XX#fB{qo4r(_|F=^0HsWdf&c&j literal 0 HcmV?d00001 diff --git a/src/resources/icons/Execute button download the selected gcode program.webp b/src/resources/icons/Execute button download the selected gcode program.webp new file mode 100644 index 0000000000000000000000000000000000000000..b4702b095c50bfd298faf116c83094eb05234f0b GIT binary patch literal 258 zcmV+d0sa0`Nk&Hc00012MM6+kP&il$0000G0000N000mG06|PpNUZ<>00DqoZQHWu z!JW=#;Lus`?pDDhwgK@qQt1Sql(pGP&gna0002c0sx%>Di{C}06vjKol2#nqM@h=0I(7XX#fB{qo4r( I_|F=^0K&X)F8}}l literal 0 HcmV?d00001 diff --git a/src/resources/icons/Execute button play.webp b/src/resources/icons/Execute button play.webp new file mode 100644 index 0000000000000000000000000000000000000000..a5ab0ce7b5f9a1648e387114c1810fc6da2066de GIT binary patch literal 250 zcmVdRCHPXW&k*g zzGmx6LF*Uv%I3iUmPF=LI#Pfw6P{InD8Mba>YW<}Z9vdSyC(x!lbJX1Oab<6a8muF z0I%SzsesoDD(=NE?z_AMeQh_iU>{pq2l^;|fc~k@K;JqIE!gKy27i{`z-oW$WALMj z4k`jxP&gna0002c0sx%>Dir`206vjKol2#nqM@h=0I(7XX#fB{qo4r(_|F=^03F(A AcmMzZ literal 0 HcmV?d00001 diff --git a/src/resources/icons/Execute button upload a new gcode folder.webp b/src/resources/icons/Execute button upload a new gcode folder.webp new file mode 100644 index 0000000000000000000000000000000000000000..adac51b8ac66da5e495b686a33f6d4bacdbdaaed GIT binary patch literal 270 zcmV+p0rCD)Nk&En0RRA3MM6+kP&il$0000G0000N000sI06|PpNVxz200DqoYn!s@ z&7cA&b9aZF1}K2@*FXpE1rXB#9T2%g${}-E_nldtnGzym0`3W=lzue8{n5>4v#rl* znKPFpbpYYjdc%3YBMksDjh44b{t#GabGsQDOo`PhAtW%QbQln!lb)U=od`r89wOjT zNO~at{2T}Ll7c00Ndb;d#{r}+0j6t4uQ&UAX1zXhWpbV#cf0L&yWQ;`PfiwjI+y=9 zmzJ{#Y!FfxQzviTtkCXT`<)7XZvy~UP&gna0002c0sx%>Di{D006vjKol2#nqM@h= U0I(7XX#fB{qo4r(_|F=^0Aem>>i_@% literal 0 HcmV?d00001 diff --git a/src/resources/icons/Execute button upload a new gcode program.webp b/src/resources/icons/Execute button upload a new gcode program.webp new file mode 100644 index 0000000000000000000000000000000000000000..7dbe73af6ef26684727aa381ff4a5634fb37caff GIT binary patch literal 250 zcmVa!3#n6F?$r-L6KG)T)eCwFHco07T1( zW%eZi$i5lF8nEZjlMSqBe!4Jx0FPlI?MEYouFbmNlJ?ta#RF zHoalzDoOxQQn)+Z1lFoxJeiCG)fz%zZ7B$)loF+-IG0kfOJ@iPuuE(P$RiRymG@jE z$PX1(P&gna0002c0sx%>Di{C~06vjKol2#nqM@h=0I(7XX#fB{qo4r(_|F=^0FEMI AbN~PV literal 0 HcmV?d00001 diff --git a/src/resources/icons/Execute_button_stop.webp b/src/resources/icons/Execute_button_stop.webp new file mode 100644 index 0000000000000000000000000000000000000000..82b0017178c401557d81891185ebd0ea26c4c5f7 GIT binary patch literal 114 zcmWIYbaTsMU|UbJup2g3#-&P)ad+r