|
@@ -1,4 +1,5 @@
|
|
|
import theme
|
|
|
+from message import message
|
|
|
|
|
|
from nicegui import APIRouter, ui
|
|
|
|
|
@@ -8,7 +9,7 @@ router = APIRouter(prefix='/c')
|
|
|
@router.page('/')
|
|
|
def example_page():
|
|
|
with theme.frame('- Example C -'):
|
|
|
- ui.label('Example C').classes('text-h4 text-grey-8')
|
|
|
+ message('Example C')
|
|
|
for i in range(1, 4):
|
|
|
ui.link(f'Item {i}', f'/c/items/{i}').classes('text-xl text-grey-8')
|
|
|
|
|
@@ -16,5 +17,5 @@ def example_page():
|
|
|
@router.page('/items/{id}', dark=True)
|
|
|
def item(id: str):
|
|
|
with theme.frame(f'- Example C{id} -'):
|
|
|
- ui.label(f'Item #{id}').classes('text-h4 text-grey-8')
|
|
|
+ message(f'Item #{id}')
|
|
|
ui.link('go back', router.prefix).classes('text-xl text-grey-8')
|