feat: add graphical user interface (#34)

This commit is contained in:
Stephan Lüscher 2024-05-10 16:03:05 +02:00 committed by GitHub
parent c3ed45a21b
commit 4f2130bcce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 2939 additions and 971 deletions

35
anvil/nicegui/main.py Normal file
View file

@ -0,0 +1,35 @@
import pages
import pages.about
import pages.ansible
import pages.home
import pages.registry
import theme
from nicegui import ui
@ui.page("/")
def index_page() -> None:
with theme.frame("Home"):
pages.home.content()
@ui.page("/ansible")
def ansible_page() -> None:
with theme.frame("Ansible"):
pages.ansible.content()
@ui.page("/registry")
def registry_page() -> None:
with theme.frame("Registry"):
pages.registry.content()
@ui.page("/about")
def about_page() -> None:
with theme.frame("About"):
pages.about.content()
ui.run(title="uBlue Forge", port=3000)