to prod view
This commit is contained in:
parent
5719e3ec1a
commit
3549ea7f20
13
main.py
13
main.py
@ -2,19 +2,24 @@ import streamlit as st
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from app.auth.service import AuthService, clear_session
|
from app.auth.service import AuthService, clear_session
|
||||||
from app.ui import render_profile
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
st.set_page_config(page_title="SFM Streamlit", page_icon=":lock:", layout="wide")
|
st.set_page_config(page_title="СФМ", page_icon=":lock:", layout="wide")
|
||||||
st.title("SFM Streamlit: Keycloak-only auth")
|
st.title("СФМ")
|
||||||
|
|
||||||
if not AuthService().run():
|
if not AuthService().run():
|
||||||
return
|
return
|
||||||
|
|
||||||
render_profile(st.session_state["user_profile"])
|
_, center_col, _ = st.columns([1, 2, 1])
|
||||||
|
with center_col:
|
||||||
|
st.button(
|
||||||
|
"Запустить обработку xml в excel",
|
||||||
|
type="primary",
|
||||||
|
use_container_width=True,
|
||||||
|
)
|
||||||
|
|
||||||
if st.button("Выйти", type="secondary"):
|
if st.button("Выйти", type="secondary"):
|
||||||
clear_session()
|
clear_session()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user