Compare commits

...

3 commits

Author SHA1 Message Date
8efcd00fce 更新.gitignore 2024-09-23 20:31:28 +08:00
2d9d9ee316 日志样式修复 2024-09-23 20:30:54 +08:00
7a34437ab2 设置encoding=utf-8 2024-09-23 20:30:32 +08:00
4 changed files with 20 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
/launcher.json
/dist
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -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)

2
ui/.gitignore vendored
View file

@ -1,3 +1,5 @@
/dist.zip
# Logs
logs
*.log

View file

@ -6,9 +6,21 @@ const log_ele = inject('log_ele')
</script>
<template>
<n-config-provider :theme="darkTheme" style="flex-grow: 1">
<n-card style="height: 100%">
<n-log :log="log" style="height: 100%" ref="log_ele" />
<n-config-provider :theme="darkTheme" class="provider">
<n-card class="full" ref="log_ele" content-style="height: 100%">
<n-log :log="log" class="full" />
</n-card>
</n-config-provider>
</template>
<style scoped>
.provider {
flex-grow: 1;
overflow: hidden;
}
.full {
height: 100% !important;
box-sizing: border-box;
}
</style>