change 'OrcaSlicer' to 'Snapmaker Orca' (#88)

* change 'OrcaSlicer' to 'Snapmaker Orca'

* Fix Orca Multi-Language

* Update 1227
This commit is contained in:
xiaoyeliu
2025-12-27 18:28:06 +08:00
committed by GitHub
parent e14b22c1df
commit 9ade3620b0
42 changed files with 115537 additions and 180108 deletions

View File

@@ -55,27 +55,10 @@
</script>
<script>
function open_browser() {
function open_orca_webview() {
const message = JSON.stringify({
seqid: 1222222,
cmd: "homepage_test_browser",
params: {
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
},
});
// 调用 window.postMessage 传递消息给 flutter
window.wx && window.wx.postMessage(message); // 调用 window.postMessage 传递消息给 原生系统
///模拟收到响应结果5000
if(!window.wx) {
// 我不能发现 window.wx
console.log('i dont find window.wx, so i simulate a return by postMessage, message: ', message)
}
}
function open_snapmaker_browser() {
const message = JSON.stringify({
seqid: 1222222,
cmd: "sw_OpenBrowser",
cmd: "sw_OpenOrcaWebview",
params: {
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
},