From 72e3a165ac8616004e5864dfd396764db512b8d8 Mon Sep 17 00:00:00 2001 From: lhye200 Date: Wed, 29 Apr 2026 01:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E4=BF=AE=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E6=94=B9prusa=E7=89=88=E6=9C=AC=E5=88=B02.9.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- .gitignore | 3 +- 502_err.html | 79 +++++ app/assets/i18n/de.json | 13 +- app/assets/i18n/en.json | 13 +- app/assets/i18n/zh-cn.json | 13 +- app/templates/slice/gcode_preview.html | 330 +++++++++--------- .../slice_engines/prusa_slicer_engine.py | 4 +- .../prusa_slicer/materials/CR-PETG.ini | 4 +- .../prusa_slicer/materials/CR-PLA.ini | 4 +- .../prusa_slicer/materials/Generic_PETG.ini | 4 +- .../prusa_slicer/materials/Generic_TPU.ini | 4 +- .../prusa_slicer/materials/Hyper_L-W_PLA.ini | 4 +- .../materials/Hyper_Marble_PLA.ini | 4 +- .../prusa_slicer/materials/Hyper_PETG.ini | 3 +- .../prusa_slicer/materials/Hyper_PLA.ini | 4 +- .../materials/Hyper_Stardust_PLA.ini | 4 +- .../materials/Soleyin_Ultra_PLA.ini | 4 +- .../prusa_slicer/printers/Ender3_V3_SE.ini | 69 ++-- .../prusa_slicer/supports/grid_support.ini | 42 +-- .../prusa_slicer/supports/snug_support.ini | 44 +-- .../prusa_slicer/supports/tree_support.ini | 59 ++-- 21 files changed, 402 insertions(+), 306 deletions(-) create mode 100644 502_err.html diff --git a/.gitignore b/.gitignore index 0bc8dd5..b838eea 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ uploads/* tmp/* venv instance -huey_queue.* \ No newline at end of file +huey_queue.* +prusaslicer/* \ No newline at end of file diff --git a/502_err.html b/502_err.html new file mode 100644 index 0000000..70e833d --- /dev/null +++ b/502_err.html @@ -0,0 +1,79 @@ + + + + + + 502 - AIO 切片服务器未连接 + + + +
+
🔌
+

AIO 切片服务器连接失败 (502)

+

非常抱歉,公共代理服务器目前无法连接到后端的树莓派 AIO 切片服务。这通常是由于物理设备离线或网络异常导致的。

+ +
+ 可能的原因: +
    +
  • 树莓派尚未通电或正在启动中。
  • +
  • 树莓派所在的局域网断网,或未能成功连接到互联网。
  • +
+ 建议操作: +
    +
  • 请检查机器电源,稍等片刻后刷新页面重试。
  • +
  • 若问题仍然存在,请联系管理员检查网络配置。
  • +
  • 在局域网失效时,您可以尝试通过连接树莓派的本地热点直接进行文件传输。
  • +
+
+
+ + \ No newline at end of file diff --git a/app/assets/i18n/de.json b/app/assets/i18n/de.json index 4eff4d3..d3d971a 100644 --- a/app/assets/i18n/de.json +++ b/app/assets/i18n/de.json @@ -225,5 +225,16 @@ "Slicing Engine Configurations": "Slicer-Engine-Konfigurationen", "Slicing Engine": "Slicer-Engine", "Select the engine to be used globally. Ensure the selected engine is installed and accessible on the server.": "Wählen Sie die Engine aus, die global verwendet werden soll. Stellen Sie sicher, dass die ausgewählte Engine installiert und auf dem Server zugänglich ist.", - "Material Profile": "Materialprofil" + "Material Profile": "Materialprofil", + "Custom": "Benutzerdefiniert", + "Skirt/Brim": "Sürz / Rand", + "Support material": "Stützmaterial", + "Perimeter": "Umriss", + "External perimeter": "Externer Umriss", + "Solid infill": "Solide Füllung", + "Overhang perimeter": "Überhang Umriss", + "Internal infill": "Interne Füllung", + "Bridge infill": "Brückefüllung", + "Top solid infill": "Oberste solide Füllung", + "Others": "Andere" } \ No newline at end of file diff --git a/app/assets/i18n/en.json b/app/assets/i18n/en.json index c381558..031970a 100644 --- a/app/assets/i18n/en.json +++ b/app/assets/i18n/en.json @@ -225,5 +225,16 @@ "Slicing Engine Configurations": "Slicing Engine Configurations", "Slicing Engine": "Slicing Engine", "Select the engine to be used globally. Ensure the selected engine is installed and accessible on the server.": "Select the engine to be used globally. Ensure the selected engine is installed and accessible on the server.", - "Material Profile": "Material Profile" + "Material Profile": "Material Profile", + "Custom": "Custom", + "Skirt/Brim": "Skirt/Brim", + "Support material": "Support material", + "Perimeter": "Perimeter", + "External perimeter": "External perimeter", + "Solid infill": "Solid infill", + "Overhang perimeter": "Overhang perimeter", + "Internal infill": "Internal infill", + "Bridge infill": "Bridge infill", + "Top solid infill": "Top solid infill", + "Others": "Others" } \ No newline at end of file diff --git a/app/assets/i18n/zh-cn.json b/app/assets/i18n/zh-cn.json index 0a4d850..25c9e25 100644 --- a/app/assets/i18n/zh-cn.json +++ b/app/assets/i18n/zh-cn.json @@ -225,5 +225,16 @@ "Slicing Engine Configurations": "切片引擎配置", "Slicing Engine": "切片引擎", "Select the engine to be used globally. Ensure the selected engine is installed and accessible on the server.": "选择要全局使用的引擎。确保所选引擎已安装且在服务器上可访问。", - "Material Profile": "材料配置" + "Material Profile": "材料配置", + "Custom": "自定义", + "Skirt/Brim": "裙边", + "Support material": "支撑材料", + "Perimeter": "轮廓", + "External perimeter": "外部轮廓", + "Solid infill": "实体填充", + "Overhang perimeter": "悬垂轮廓", + "Internal infill": "内部填充", + "Bridge infill": "桥接填充", + "Top solid infill": "顶部实体填充", + "Others": "其他" } \ No newline at end of file diff --git a/app/templates/slice/gcode_preview.html b/app/templates/slice/gcode_preview.html index 35b5a56..d7de797 100644 --- a/app/templates/slice/gcode_preview.html +++ b/app/templates/slice/gcode_preview.html @@ -21,15 +21,7 @@
-
-
{{ _('Outer Wall') }}
-
{{ _('Inner Wall') }}
-
{{ _('Infill') }}
-
{{ _('Skin/TopBottom') }}
-
{{ _('Support') }}
-
{{ _('Skirt') }}
-
{{ _('Support Interface') }}
-
{{ _('Travel (Move)') }}
+
@@ -57,34 +49,6 @@