From b0c71ac9f9335a9a0c3806269e4af0f3f4fec330 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 22 Aug 2024 12:28:32 +0530 Subject: [PATCH] Code Structure Change --- src/App.css | 0 src/App.js | 31 +- src/assets/css/App.css | 4 + src/components/common/Footer.js | 45 --- src/components/common/Header.js | 283 ------------------ src/components/pages/APIManagerStarter.js | 21 -- src/components/pages/Home.js | 12 - src/components/pages/Login.js | 122 -------- .../pages/Schema/APIManagerStarter.json | 79 ----- src/config/ComponentRegister.js | 28 ++ src/config/Global.json | 9 +- src/utils/auth/AuthContext.js | 134 --------- src/utils/auth/auth.js | 18 -- 13 files changed, 47 insertions(+), 739 deletions(-) delete mode 100644 src/App.css create mode 100644 src/assets/css/App.css delete mode 100644 src/components/common/Footer.js delete mode 100644 src/components/common/Header.js delete mode 100644 src/components/pages/APIManagerStarter.js delete mode 100644 src/components/pages/Home.js delete mode 100644 src/components/pages/Login.js delete mode 100644 src/components/pages/Schema/APIManagerStarter.json create mode 100644 src/config/ComponentRegister.js delete mode 100644 src/utils/auth/AuthContext.js delete mode 100644 src/utils/auth/auth.js diff --git a/src/App.css b/src/App.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/App.js b/src/App.js index dfa9c29..9f875db 100644 --- a/src/App.js +++ b/src/App.js @@ -1,28 +1,15 @@ import React from 'react'; -import { BrowserRouter, Route, Routes } from 'react-router-dom'; - -import { AuthProvider } from './utils/auth/AuthContext'; -import { Auth } from './utils/auth/auth'; -import LoginPage from './components/pages/Login'; -import Home from './components/pages/Home'; -import APIManagerStarter from './components/pages/APIManagerStarter'; -import Footer from './components/common/Footer'; - - - +import { BrowserRouter} from 'react-router-dom'; +import { AuthProvider } from './utils/secure-route/AuthContext'; +import RouteManager from './utils/secure-route/routeManager/RouteManager'; +import './assets/css/App.css' const App = () => { return ( - - - - } />} exact /> - } />} exact /> - } />} exact /> - -