add setting page

This commit is contained in:
monoid 2021-01-20 14:39:09 +09:00
parent eb6523f9c0
commit b4e0e51588
4 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import React, { createContext, useEffect, useRef, useState } from 'react';
import ReactDom from 'react-dom';
import {BrowserRouter, Redirect, Route, Switch as RouterSwitch} from 'react-router-dom';
import { Gallery, DocumentAbout, LoginPage, NotFoundPage, ProfilePage,DifferencePage} from './page/mod';
import { Gallery, DocumentAbout, LoginPage, NotFoundPage, ProfilePage,DifferencePage, SettingPage} from './page/mod';
import {getInitialValue, UserContext} from './state';
import './css/style.css';
@ -31,6 +31,7 @@ const App = () => {
<Route path="/login" render={()=><LoginPage></LoginPage>}/>
<Route path="/profile" component={ProfilePage}></Route>
<Route path="/difference" component={DifferencePage}></Route>
<Route path="/setting" component={SettingPage}></Route>
<Route>
<NotFoundPage/>
</Route>

View File

@ -3,4 +3,5 @@ export * from './gallery';
export * from './login';
export * from './404';
export * from './profile';
export * from './difference';
export * from './difference';
export * from './setting';

View File

@ -0,0 +1,13 @@
import React from 'react';
import {Typography, Paper} from '@material-ui/core';
import {ArrowBack as ArrowBackIcon} from '@material-ui/icons';
import { Headline, BackItem, NavList, CommonMenuList } from '../component/mod';
export const SettingPage = ()=>{
const menu = CommonMenuList();
return (<Headline menu={menu}>
<Paper>
<Typography variant='h2'>Setting</Typography>
</Paper>
</Headline>);
};

View File

@ -88,6 +88,7 @@ class ServerApplication{
serveindex('/login');
serveindex('/profile');
serveindex('/difference');
serveindex('/setting');
}
private serve_static_file(router: Router){
const setting = get_setting();