Skip to content

Commit adcafe3

Browse files
committed
feat: 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 3fa06b6 commit adcafe3

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

frontend/nginx.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021-2022 SECO Mind Srl
1+
# SPDX-FileCopyrightText: 2021-2026 SECO Mind Srl
22
# SPDX-License-Identifier: Apache-2.0
33
server {
44
listen 80;
@@ -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: 11 additions & 11 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";
@@ -70,7 +70,7 @@ import DeploymentCampaign from "@/pages/DeploymentCampaign";
7070
import DeploymentCampaignCreate from "@/pages/DeploymentCampaignCreate";
7171
import Deployment from "@/pages/Deployment";
7272

73-
import { bugs, repository, version } from "../package.json";
73+
// import { bugs, repository, version } from "../package.json";
7474

7575
type RouterRule = {
7676
path: string;
@@ -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)