A few more style tweaks
This commit is contained in:
parent
2a252cb6a6
commit
e42b5f1740
|
@ -44,8 +44,8 @@ async def main():
|
||||||
for app_name, command in applications.items():
|
for app_name, command in applications.items():
|
||||||
ui.button(app_name, on_click=lambda cmd=command: launch_app(cmd)).style('width: 150px; height: 50px; margin: 5px;')
|
ui.button(app_name, on_click=lambda cmd=command: launch_app(cmd)).style('width: 150px; height: 50px; margin: 5px;')
|
||||||
with ui.tab_panel(tab_robots):
|
with ui.tab_panel(tab_robots):
|
||||||
new_robot_widget = ui.element()
|
new_robot_widget = ui.element().classes("w-1/2")
|
||||||
with ui.element():
|
with ui.element().classes("w-1/2"):
|
||||||
ui.label("Debug")
|
ui.label("Debug")
|
||||||
def cleanup_all_containers():
|
def cleanup_all_containers():
|
||||||
#Find all containers that start with spiri-sdk
|
#Find all containers that start with spiri-sdk
|
||||||
|
|
|
@ -47,6 +47,7 @@ robots = set()
|
||||||
async def container_logs(container, element):
|
async def container_logs(container, element):
|
||||||
adocker = aiodocker.Docker()
|
adocker = aiodocker.Docker()
|
||||||
with element:
|
with element:
|
||||||
|
with ui.scroll_area():
|
||||||
acontainer = await adocker.containers.get(container.id)
|
acontainer = await adocker.containers.get(container.id)
|
||||||
async for log in acontainer.log(stdout=True, stderr=True, follow=True):
|
async for log in acontainer.log(stdout=True, stderr=True, follow=True):
|
||||||
for line in log.splitlines():
|
for line in log.splitlines():
|
||||||
|
|
Loading…
Reference in New Issue