Add HTTPServer and PingableSystem to dashboad.system and add an example.

This commit is contained in:
ChaoticByte 2025-02-23 20:57:42 +01:00
parent cff7851a73
commit a8c8dca4aa
No known key found for this signature in database
2 changed files with 57 additions and 2 deletions

View file

@ -3,7 +3,7 @@
from nicegui import ui
from dashboard.system import System, SystemState
from dashboard.system import HTTPServer, System, SystemState
from dashboard.ui import init_ui
@ -50,7 +50,7 @@ systems = [
"Example Heading 1",
ExampleSystem("Example System 1", "Description text ..."),
"Example Heading 2",
ExampleSystem("Example System 2", "Another description text ...")
HTTPServer("example.org", "The example.org HTTP server.", "https://example.org/")
]
#