diff --git a/src/octoprint/plugins/svgtogcode/templates/override_index.jinja2 b/src/octoprint/plugins/svgtogcode/templates/override_index.jinja2 index a8e9d681..bbbf2e73 100644 --- a/src/octoprint/plugins/svgtogcode/templates/override_index.jinja2 +++ b/src/octoprint/plugins/svgtogcode/templates/override_index.jinja2 @@ -53,10 +53,10 @@ var CONFIG_USERSPERPAGE = 10; var CONFIG_WEBCAM_STREAM = "{{ webcamStream }}"; var CONFIG_ACCESS_CONTROL = {% if enableAccessControl -%} true; {% else %} false; {%- endif %} -var CONFIG_SD_SUPPORT = {% if enableSdSupport -%} true; {% else %} false; {%- endif %} -var CONFIG_FIRST_RUN = {% if firstRun -%} true; {% else %} false; {%- endif %} -var CONFIG_TEMPERATURE_GRAPH = {% if enableTemperatureGraph -%} true; {% else %} false; {%- endif %} -var CONFIG_GCODE_SIZE_THRESHOLD = {{ gcodeThreshold }}; + var CONFIG_SD_SUPPORT = {% if enableSdSupport -%} true; {% else %} false; {%- endif %} + var CONFIG_FIRST_RUN = {% if firstRun -%} true; {% else %} false; {%- endif %} + var CONFIG_TEMPERATURE_GRAPH = {% if enableTemperatureGraph -%} true; {% else %} false; {%- endif %} + var CONFIG_GCODE_SIZE_THRESHOLD = {{ gcodeThreshold }}; var CONFIG_GCODE_MOBILE_SIZE_THRESHOLD = {{ gcodeMobileThreshold }}; var SOCKJS_URI = window.location.protocol.slice(0, - 1) + "://" + (window.document ? window.document.domain : window.location.hostname) + ":" + window.location.port + BASEURL + "sockjs"; var SOCKJS_DEBUG = {% if debug -%} true; {% else %} false; {%- endif %} @@ -164,14 +164,10 @@ var UI_API_KEY = "{{ uiApiKey }}"; {% if hasZAxis %}
Z-Axis -
- -
-
- -
-
- +
+ + +
{% endif %} @@ -180,12 +176,6 @@ var UI_API_KEY = "{{ uiApiKey }}"; Jog distance: 10mm
-
@@ -229,7 +219,7 @@ var UI_API_KEY = "{{ uiApiKey }}"; - + @@ -281,63 +271,61 @@ var UI_API_KEY = "{{ uiApiKey }}";
- + - - - - -
- {{ _('Free') }}: -
-
-
- - - - {{ _('Upload') }} - - -
-
-
-
-
- {{ _('Hint: You can also drag and drop files on this page to upload them.') }} -
+ + +
+
+ {{ _('Free') }}: +
+
+
- - -
-
-
+ + + {{ _('Upload') }} + + +
+
+
+
+
+ {{ _('Hint: You can also drag and drop files on this page to upload them.') }} +
+ +
+
+
+
+ + +
@@ -388,12 +376,36 @@ var UI_API_KEY = "{{ uiApiKey }}";
-
- - - steps... 1,2,3 +
+
    +
  • Place your material on the working area
  • +
  • Move the laser over the material
  • +
  • Put on your safety glasses
  • +
  • Enable the focus mode
  • +
  • Adjust the focus until the laser beam is as small as possible
  • +
  • Disable the focus mode. You can take off the safety glasses afterwards
  • +
+
+
+ + +
+
+ {% if hasZAxis %} +
+
+ + Z-Axis +
+ + +
+
+
+ {% endif %} +
-
+
images describing the process
diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 50556c17..a6a74a19 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -397,6 +397,7 @@ $(function() { ko.applyBindings(gcodeFilesViewModel, document.getElementById("files_accordion")); //ko.applyBindings(temperatureViewModel, document.getElementById("temp")); ko.applyBindings(controlViewModel, document.getElementById("control")); + ko.applyBindings(controlViewModel, document.getElementById("focus")); ko.applyBindings(terminalViewModel, document.getElementById("term")); // var gcode = document.getElementById("gcode"); // if (gcode) {