Add basic scheme for search engine
This commit is contained in:
parent
19d21c91ee
commit
44b9ebbaab
2 changed files with 18 additions and 2 deletions
5
app.py
5
app.py
|
@ -2,7 +2,7 @@ from pathlib import Path
|
|||
from typing import List
|
||||
from shiny import App, ui, Inputs, Outputs, Session
|
||||
from shiny.types import NavSetArg
|
||||
from src import mod_welcome
|
||||
from src import mod_welcome, mod_searchable
|
||||
from src.util import load_html_str_from_file
|
||||
|
||||
import os
|
||||
|
@ -14,7 +14,8 @@ footer_html: str = load_html_str_from_file(os.path.join("www", "footer.html"))
|
|||
def nav_controls() -> List[NavSetArg]:
|
||||
return [
|
||||
ui.nav(ui.h5("Intro"), mod_welcome.welcome_ui("Intro"), value="intro"),
|
||||
ui.nav(ui.h5("Datensatz Analyse"), "Datensatz Analyse"),
|
||||
ui.nav(ui.h5("Analyse"), "Analyse"),
|
||||
ui.nav(ui.h5("Suchmaschine"), mod_searchable.searchable_ui("Suchmaschine")),
|
||||
ui.nav_control(
|
||||
ui.a(
|
||||
ui.h5("AG-Link"),
|
||||
|
|
15
src/mod_searchable.py
Normal file
15
src/mod_searchable.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from shiny import module, ui, render, Inputs, Outputs, Session
|
||||
|
||||
|
||||
@module.ui
|
||||
def searchable_ui():
|
||||
return ui.div("hello world")
|
||||
|
||||
|
||||
@ module.server
|
||||
def searchable_server(input: Inputs, output: Outputs, session: Session, starting_value=0):
|
||||
@output
|
||||
@render.ui
|
||||
def dataset_infos():
|
||||
|
||||
return ui.markdown("")
|
Loading…
Reference in a new issue