diff --git a/preview-1.png b/preview-1.png deleted file mode 100644 index 272e3aa..0000000 Binary files a/preview-1.png and /dev/null differ diff --git a/preview-2.png b/preview-2.png deleted file mode 100644 index 240914f..0000000 Binary files a/preview-2.png and /dev/null differ diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 8512439..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/src/App.tsx b/src/App.tsx index 2b323a1..2503557 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,12 @@ import React from 'react'; -import { Routes, Route } from 'react-router-dom'; +import { Routes, Route, Navigate } from 'react-router-dom'; import { IntlProvider } from 'react-intl'; import { CustomProvider } from 'rsuite'; import enUS from 'rsuite/locales/en_GB'; import locales from './locales'; import Frame from './components/Frame'; import HistogramPage from './pages/histogram'; -import Error404Page from './pages/authentication/404'; -import Error500Page from './pages/authentication/500'; +import Error404Page from './pages/404'; import { appNavs } from './config'; import Info from './pages/info'; @@ -17,11 +16,9 @@ const App = () => { }> - } /> + } /> } /> } /> - } /> - } /> } /> diff --git a/src/constants/index.ts b/src/constants/index.ts deleted file mode 100644 index 8337712..0000000 --- a/src/constants/index.ts +++ /dev/null @@ -1 +0,0 @@ -// diff --git a/src/pages/authentication/404/Error404.tsx b/src/pages/404/Error404.tsx similarity index 100% rename from src/pages/authentication/404/Error404.tsx rename to src/pages/404/Error404.tsx diff --git a/src/pages/authentication/404/index.ts b/src/pages/404/index.ts similarity index 100% rename from src/pages/authentication/404/index.ts rename to src/pages/404/index.ts diff --git a/src/pages/authentication/500/Error500.tsx b/src/pages/authentication/500/Error500.tsx deleted file mode 100644 index c05665d..0000000 --- a/src/pages/authentication/500/Error500.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import ErrorPage from '@/components/ErrorPage'; -import { IconButton } from 'rsuite'; -import ArrowLeftLine from '@rsuite/icons/ArrowLeftLine'; - -export default () => ( - -

Oops… You just found an error page

-

- We are sorry but our server encountered an internal error -

- } appearance="primary" href="/"> - Take me home - -
-); diff --git a/src/pages/authentication/500/index.ts b/src/pages/authentication/500/index.ts deleted file mode 100644 index 868698a..0000000 --- a/src/pages/authentication/500/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Error500 from './Error500'; - -export default Error500;