feat: add feedback functionality and modal for category feedback style: add feedback button styles in CSS docs: add explanation tab for dashboard usage instructions
31 lines
766 B
Python
31 lines
766 B
Python
# initial commit
|
|
from dash import Dash
|
|
import dash_bootstrap_components as dbc
|
|
|
|
from src.components.layout import create_layout
|
|
from src.data.loader_gz import load_spc_data
|
|
#from src.data.loader_gz import load_transition_data
|
|
from json import load
|
|
import os
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
config_file = "./config.json"
|
|
|
|
with open(config_file) as config_f:
|
|
config=load(config_f)
|
|
|
|
def main() -> None:
|
|
print(os.getenv("MY_ENV_VAR"))
|
|
print(config["Startup"])
|
|
# load the data and create the data manager
|
|
data = load_spc_data(config["DATA_PATH"])
|
|
|
|
app = Dash(external_stylesheets=[dbc.themes.LUX])
|
|
app.title = "Reliability Dashboard"
|
|
app.layout = create_layout(app, data)
|
|
app.run()
|
|
|
|
if __name__ == "__main__":
|
|
main()
|