Skip to content

Commit

Permalink
FE: remove camera logic
Browse files Browse the repository at this point in the history
  • Loading branch information
andreipradan committed Oct 30, 2024
1 parent 93bc62e commit c77eaed
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 278 deletions.
53 changes: 0 additions & 53 deletions frontend/src/api/camera.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/app/AppRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useSelector } from "react-redux";

const Dashboard = lazy(() => import('./dashboard/Dashboard'));
const Bots = lazy(() => import('./bots/Bots'));
const Camera = lazy(() => import ("./apps/Camera"));
const Commands = lazy(() => import('./commands/Commands'));
const Crons = lazy(() => import('./commands/crons/Crons'));
const Devices = lazy(() => import('./apps/devices/Devices'));
Expand Down Expand Up @@ -67,7 +66,6 @@ const AppRoutes = () => {
<Route exact path="/profile" component={ Profile } />

{user?.is_staff && <Route exact path="/" component={Dashboard}/>}
{user?.is_staff && <Route exact path="/apps/camera" component={ Camera } />}
{user?.is_staff && <Route exact path="/apps/devices" component={ Devices } />}
{user?.is_staff && <Route exact path="/apps/logs" component={ Logs } />}
{user?.is_staff && <Route exact path="/apps/todo" component={ Todo } />}
Expand Down
165 changes: 0 additions & 165 deletions frontend/src/app/apps/Camera.js

This file was deleted.

5 changes: 0 additions & 5 deletions frontend/src/app/shared/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ const Sidebar = () => {
<Collapse in={appsMenuOpen}>
<div>
<ul className="nav flex-column sub-menu">
<li className="nav-item">
<Link className={isPathActive('/apps/camera') ? 'nav-link active' : 'nav-link'} to="/apps/camera">
Camera
</Link>
</li>
<li className="nav-item">
<Link className={isPathActive('/apps/devices') ? 'nav-link active' : 'nav-link'} to="/apps/devices">
Devices
Expand Down
51 changes: 0 additions & 51 deletions frontend/src/redux/cameraSlice.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/redux/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { configureStore } from "@reduxjs/toolkit";
import accountsReducer from "../redux/accountsSlice";
import authReducer from "../redux/authSlice";
import botReducer from "../redux/botsSlice";
import cameraReducer from "./cameraSlice";
import categoriesReducer from "./categoriesSlice";
import creditReducer from "../redux/creditSlice"
import commandsReducer from "../redux/commandsSlice"
Expand Down Expand Up @@ -33,7 +32,6 @@ export default configureStore({
accounts: accountsReducer,
auth: authReducer,
bots: botReducer,
camera: cameraReducer,
categories: categoriesReducer,
commands: commandsReducer,
credit: creditReducer,
Expand Down

0 comments on commit c77eaed

Please sign in to comment.