From 7a34437ab2477b51db0e9195dbea02a228f4a61a Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 23 Sep 2024 20:30:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=AE=BE=E7=BD=AEencoding=3Dutf-8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c451625..04b79e0 100644 --- a/main.py +++ b/main.py @@ -62,13 +62,14 @@ class Api: bufsize=1, text=True, cwd=cwd, + encoding="utf-8", ) as p: for line in p.stdout: custom_event(line) window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api()) -webview.start() +webview.start(debug=True) with config_path.open("w") as f: json.dump(config, f) From 2d9d9ee316f5f379fc09e453ce24c8369c1f2e34 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 23 Sep 2024 20:30:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/LogComponent.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ui/src/components/LogComponent.vue b/ui/src/components/LogComponent.vue index e5fe29e..36ca683 100644 --- a/ui/src/components/LogComponent.vue +++ b/ui/src/components/LogComponent.vue @@ -6,9 +6,21 @@ const log_ele = inject('log_ele') + + From 8efcd00fce7a0e1397991d182e21e87d42dcb3bb Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 23 Sep 2024 20:31:28 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ui/.gitignore | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 35a950e..3eab2be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /launcher.json +/dist # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/ui/.gitignore b/ui/.gitignore index 8ee54e8..c6657dd 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -1,3 +1,5 @@ +/dist.zip + # Logs logs *.log