Compare commits
3 commits
4308e72aa4
...
8efcd00fce
Author | SHA1 | Date | |
---|---|---|---|
8efcd00fce | |||
2d9d9ee316 | |||
7a34437ab2 |
4 changed files with 20 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
/launcher.json
|
||||
/dist
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
3
main.py
3
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)
|
||||
|
|
2
ui/.gitignore
vendored
2
ui/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
/dist.zip
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue