mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-08 07:53:43 +03:00
36 lines
616 B
Python
36 lines
616 B
Python
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)
|