Skip to content

Commit 707aec2

Browse files
committed
Temporarily commented out Sidebar, Topbar and Footer
WIP The layout visibility will later be controlled via environment variable Signed-off-by: Jasmina <jasmina.piric@secomind.com>
1 parent 7f7fc3f commit 707aec2

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

frontend/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ server {
1717
location = /50x.html {
1818
root /usr/share/nginx/html;
1919
}
20+
# Specify the valid parent that embeds dashboard using <iframe>
21+
# Uncomment the following line to update CSP
22+
# add_header Content-Security-Policy "frame-ancestors 'self' https://example.com;";
2023
}

frontend/src/App.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of Edgehog.
33
*
4-
* Copyright 2021-2025 SECO Mind Srl
4+
* Copyright 2021-2026 SECO Mind Srl
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -20,9 +20,9 @@
2020

2121
import { Navigate, useRoutes } from "react-router-dom";
2222

23-
import Footer from "@/components/Footer";
24-
import Sidebar from "@/components/Sidebar";
25-
import Topbar from "@/components/Topbar";
23+
// import Footer from "@/components/Footer";
24+
// import Sidebar from "@/components/Sidebar";
25+
// import Topbar from "@/components/Topbar";
2626
import { useAuth } from "@/contexts/Auth";
2727
import { Route } from "@/Navigation";
2828
import Application from "@/pages/Application";
@@ -139,28 +139,28 @@ function App() {
139139

140140
return (
141141
<div data-testid="app" className="d-flex vh-100 flex-column">
142-
{auth.isAuthenticated && (
142+
{/* {auth.isAuthenticated && (
143143
<header className="flex-grow-0">
144144
<Topbar />
145145
</header>
146-
)}
146+
)} */}
147147
<main className="vh-100 flex-grow-1 d-flex overflow-hidden">
148-
{auth.isAuthenticated && (
148+
{/* {auth.isAuthenticated && (
149149
<aside className="flex-grow-0 flex-shrink-0 overflow-auto">
150150
<Sidebar />
151151
</aside>
152-
)}
152+
)} */}
153153
<section className="flex-grow-1 overflow-auto">{RouterElement}</section>
154154
</main>
155-
{auth.isAuthenticated && (
155+
{/* {auth.isAuthenticated && (
156156
<Footer
157157
appName={"Edgehog Device Manager"}
158158
appVersion={version}
159159
homepageUrl={repository.url}
160160
repoUrl={repository.url}
161161
issueTrackerUrl={bugs.url}
162162
/>
163-
)}
163+
)} */}
164164
</div>
165165
);
166166
}

0 commit comments

Comments
 (0)