feat: implement login auth for all

also show the username underneath the logo
This commit is contained in:
2025-03-06 13:29:10 +01:00
parent 99e80c8077
commit 8b092fed51
9 changed files with 252 additions and 108 deletions

View File

@@ -43,16 +43,6 @@ export const GraphComponent = () => {
const [popularity, setPopularity] = useState(false);
const [mutuality, setMutuality] = useState(false);
const logo = document.getElementById("logo");
if (logo) {
logo.className = "logo networkroute";
}
const footer = document.getElementsByTagName("footer");
if (footer) {
footer.length &&
((footer.item(0) as HTMLElement).className = "fixed-footer");
}
async function loadData() {
setLoading(true);
await apiAuth("analysis/graph_json", null)