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
|
/launcher.json
|
||||||
|
/dist
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
3
main.py
3
main.py
|
@ -62,13 +62,14 @@ class Api:
|
||||||
bufsize=1,
|
bufsize=1,
|
||||||
text=True,
|
text=True,
|
||||||
cwd=cwd,
|
cwd=cwd,
|
||||||
|
encoding="utf-8",
|
||||||
) as p:
|
) as p:
|
||||||
for line in p.stdout:
|
for line in p.stdout:
|
||||||
custom_event(line)
|
custom_event(line)
|
||||||
|
|
||||||
|
|
||||||
window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api())
|
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:
|
with config_path.open("w") as f:
|
||||||
json.dump(config, f)
|
json.dump(config, f)
|
||||||
|
|
2
ui/.gitignore
vendored
2
ui/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
/dist.zip
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
|
|
@ -6,9 +6,21 @@ const log_ele = inject('log_ele')
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-config-provider :theme="darkTheme" style="flex-grow: 1">
|
<n-config-provider :theme="darkTheme" class="provider">
|
||||||
<n-card style="height: 100%">
|
<n-card class="full" ref="log_ele" content-style="height: 100%">
|
||||||
<n-log :log="log" style="height: 100%" ref="log_ele" />
|
<n-log :log="log" class="full" />
|
||||||
</n-card>
|
</n-card>
|
||||||
</n-config-provider>
|
</n-config-provider>
|
||||||
</template>
|
</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