Changements cosmétiques

This commit is contained in:
Colin Maudry
2025-06-16 19:08:30 +02:00
parent 8e7048490e
commit 89f95904b8
4 changed files with 23 additions and 4 deletions
+5 -1
View File
@@ -3,7 +3,11 @@ import logging
import dash_bootstrap_components as dbc import dash_bootstrap_components as dbc
from dash import Dash, dcc, html, page_container, page_registry from dash import Dash, dcc, html, page_container, page_registry
app = Dash(external_stylesheets=[dbc.themes.UNITED], title="decp.info", use_pages=True) app = Dash(external_stylesheets=[dbc.themes.SIMPLEX], title="decp.info", use_pages=True)
# COSMO (belle font, blue),
# UNITED (rouge, ubuntu font),
# LUMEN (gros séparateur, blue clair),
# SIMPLEX (rouge, séparateur)
logger = logging.getLogger("decp.info") logger = logging.getLogger("decp.info")
logging.basicConfig( logging.basicConfig(
+5 -1
View File
@@ -51,7 +51,7 @@ td[data-dash-column="objet"] {
.navbar { .navbar {
width: 100%; width: 100%;
height: 100px; height: 100px;
padding: 10px; padding: 0 10px;
} }
a.nav { a.nav {
@@ -68,3 +68,7 @@ a.nav {
h3 { h3 {
display: inline; display: inline;
} }
#_pages_content {
padding-top: 28px;
}
-1
View File
@@ -195,7 +195,6 @@ def update_table(page_current, page_size, filter_query, data_timestamp):
start_row = page_current * page_size start_row = page_current * page_size
# end_row = (page_current + 1) * page_size # end_row = (page_current + 1) * page_size
dff = dff.slice(start_row, page_size) dff = dff.slice(start_row, page_size)
# print("dff_sliced:", lff.select("titulaire.typeId"))
dicts = dff.to_dicts() dicts = dff.to_dicts()
return dicts, data_timestamp + 1, nb_rows return dicts, data_timestamp + 1, nb_rows
+13 -1
View File
@@ -59,7 +59,19 @@ layout = [
className="container", className="container",
children=[ children=[
html.H2(title), html.H2(title),
html.Div(children=[dcc.Graph(figure=fig)]), dcc.Markdown("""
Si nous disposons de beaucoup de données pour certains départements, pour d'autres les sources de DECP doivent encore être identifiées et ajoutées.
Par exemple, les données des plateformes Atexo [ne sont pas encore présentes](https://github.com/ColinMaudry/decp-processing/issues/57).
"""),
dcc.Loading(
overlay_style={"visibility": "visible", "filter": "blur(2px)"},
id="loading-1",
type="default",
children=[
html.Div(children=[dcc.Graph(figure=fig)]),
],
),
], ],
) )
] ]