forked from zauberzeug/nicegui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed the SinglePageRouter to SinglePageRouterConfig to emphasize i…
…t is a singleton, static object created and configured once.
- Loading branch information
Showing
9 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from nicegui import ui | ||
|
||
|
||
@ui.outlet('/') | ||
def main_router(url_path: str): | ||
with ui.header(): | ||
with ui.link('', '/').style('text-decoration: none; color: inherit;') as lnk: | ||
ui.html('<span style="color:white">Nice</span>' | ||
'<span style="color:black">CLOUD</span>').classes('text-h3') | ||
|
||
|
||
@main_router.view('/') | ||
def main_app_index(): | ||
# login page | ||
ui.label('Welcome to NiceCLOUD!').classes('text-3xl') | ||
ui.html('<br>') | ||
ui.label('Username:') | ||
ui.textbox('username') | ||
ui.label('Password:') | ||
ui.password('password') | ||
|
||
|
||
ui.run(show=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters