diff --git a/README.md b/README.md index 398e55d..dd027a7 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ To set up this template in development mode: - Full documentation - Modding tutorials +- Fully Featured News Blog (as a microservice) + - Individual pages for news articles # Coming Eventually @@ -86,7 +88,6 @@ To set up this template in development mode: - Private messaging - Broadcasting to all channels - Badges next to usernames -- Better compression for client files - Backend for leaderboards (modding tutorial?) - Backend for energy systems (modding tutorial?) -- Backend for items, shops, trading and currency +- Backend for items, shops, trading and currency (modding tutorial?) diff --git a/client/client.jsx b/client/client.jsx index 1b52ed2..b6b08de 100644 --- a/client/client.jsx +++ b/client/client.jsx @@ -4,8 +4,8 @@ import 'regenerator-runtime/runtime'; import React from 'react'; import ReactDOM from 'react-dom'; -import App from './components/app'; -import TokenProvider from './components/utilities/token-provider'; +import App from './pages/app'; +import TokenProvider from './pages/utilities/token-provider'; ReactDOM.render( diff --git a/client/components/app.jsx b/client/components/app.jsx deleted file mode 100644 index 394d8f7..0000000 --- a/client/components/app.jsx +++ /dev/null @@ -1,49 +0,0 @@ -//react -import React, { useContext } from 'react'; -import { BrowserRouter, Switch } from 'react-router-dom'; -import { TokenContext } from './utilities/token-provider'; - -//library components -import LazyRoute from './utilities/lazy-route'; -import Markdown from './panels/markdown'; - -//styling -//import a styling template here - -//common components -import Header from './panels/header'; -import Footer from './panels/footer'; -import PopupChat from './panels/popup-chat'; - -const App = props => { - const authTokens = useContext(TokenContext); - - //default render - return ( - -
- - import('./pages/homepage')} /> - - import('./pages/signup')} /> - import('./pages/login')} /> - import('./pages/account')} /> - - import('./pages/recover')} /> - import('./pages/reset')} /> - - import('./pages/admin')} /> - import('./pages/mod')} /> - - () => } /> - () => } /> - - import('./pages/not-found')} /> - - { authTokens.accessToken ? : <> } -