Move files
This commit is contained in:
parent
d2af1b8151
commit
f160b07163
159 changed files with 104 additions and 88 deletions
35
src/great_ai/deploy/routes/dashboard/get_description.py
Normal file
35
src/great_ai/deploy/routes/dashboard/get_description.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
from dash import dcc, html
|
||||
|
||||
from ....helper import snake_case_to_text, strip_lines
|
||||
|
||||
|
||||
def get_description(
|
||||
function_name: str, version: str, function_docs: str, accent_color: str
|
||||
) -> html.Div:
|
||||
return html.Div(
|
||||
[
|
||||
html.H1(
|
||||
[
|
||||
f"{snake_case_to_text(function_name)} - dashboard",
|
||||
html.Span(version, className="version-tag"),
|
||||
],
|
||||
style={"color": accent_color},
|
||||
),
|
||||
dcc.Markdown(
|
||||
strip_lines(
|
||||
f"""
|
||||
> View the live data of your deployment here.
|
||||
|
||||
## Using the API
|
||||
|
||||
You can find the available endpoints at [/docs](/docs).
|
||||
|
||||
## Details
|
||||
|
||||
{function_docs}
|
||||
"""
|
||||
),
|
||||
className="description",
|
||||
),
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue