2021-10-07 04:52:20 +09:00
|
|
|
import React, { Component } from 'react';
|
2021-12-31 09:20:26 +09:00
|
|
|
import ReactDOM from 'react-dom';
|
2021-10-07 04:52:20 +09:00
|
|
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
|
|
|
|
2021-10-09 05:26:42 +09:00
|
|
|
import Meeting from './meeting';
|
2021-10-10 06:26:44 +09:00
|
|
|
import MeetingDetail from './meeting/detail';
|
2021-10-22 09:35:32 +09:00
|
|
|
import MeetingEdit from './meeting/edit';
|
2021-10-10 06:26:44 +09:00
|
|
|
|
2021-10-10 18:24:19 +09:00
|
|
|
import Child from './child';
|
|
|
|
import ChildDetail from './child/detail';
|
|
|
|
import ChildEdit from './child/edit';
|
|
|
|
import ChildPasswordEdit from './child/password_edit';
|
|
|
|
|
|
|
|
import Parent from './parent';
|
|
|
|
import ParentDetail from './parent/detail';
|
|
|
|
import ParentEdit from './parent/edit';
|
|
|
|
import ParentPasswordEdit from './parent/password_edit';
|
|
|
|
import ParentRegister from './parent/register';
|
|
|
|
|
2021-10-09 05:26:42 +09:00
|
|
|
import Side from './side';
|
2021-12-31 07:01:06 +09:00
|
|
|
import PageChangeHandler from '../component/page_change_handler';
|
2021-12-31 10:50:15 +09:00
|
|
|
import ScrollToTop from '../component/scroll_top';
|
2021-10-07 04:52:20 +09:00
|
|
|
|
|
|
|
export default class AdminApp extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2021-10-09 05:26:42 +09:00
|
|
|
<main className="l-container meeting-consent">
|
2021-10-07 04:52:20 +09:00
|
|
|
<BrowserRouter>
|
2021-12-31 10:50:15 +09:00
|
|
|
<ScrollToTop />
|
2021-12-31 07:01:06 +09:00
|
|
|
<PageChangeHandler />
|
2021-10-07 04:52:20 +09:00
|
|
|
<Switch>
|
2021-10-09 05:26:42 +09:00
|
|
|
<Route exact path='/admin/meeting' component={Meeting} />
|
2021-10-10 06:26:44 +09:00
|
|
|
<Route exact path='/admin/meeting/detail/:meeting_id' component={MeetingDetail} />
|
2021-10-22 09:35:32 +09:00
|
|
|
<Route exact path='/admin/meeting/edit/:meeting_id' component={MeetingEdit} />
|
2021-10-10 18:24:19 +09:00
|
|
|
|
|
|
|
<Route exact path='/admin/child' component={Child} />
|
|
|
|
<Route exact path='/admin/child/detail/:child_id' component={ChildDetail} />
|
|
|
|
<Route exact path='/admin/child/edit/:child_id' component={ChildEdit} />
|
2021-10-24 01:19:37 +09:00
|
|
|
<Route exact path='/admin/child/edit/password/:child_id' component={ChildPasswordEdit} />
|
2021-10-10 18:24:19 +09:00
|
|
|
|
|
|
|
<Route exact path='/admin/parent' component={Parent} />
|
|
|
|
<Route exact path='/admin/parent/detail/:father_id' component={ParentDetail} />
|
|
|
|
<Route exact path='/admin/parent/edit/:father_id' component={ParentEdit} />
|
|
|
|
<Route exact path='/admin/parent/edit/password/:father_id' component={ParentPasswordEdit} />
|
|
|
|
<Route exact path='/admin/parent/register' component={ParentRegister} />
|
2021-10-07 04:52:20 +09:00
|
|
|
</Switch>
|
2021-10-09 05:26:42 +09:00
|
|
|
<Side />
|
2021-10-07 04:52:20 +09:00
|
|
|
</BrowserRouter>
|
2021-10-09 05:26:42 +09:00
|
|
|
</main>
|
2021-10-07 04:52:20 +09:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-12-31 07:01:06 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(document.getElementById('admin-app')){
|
|
|
|
ReactDOM.render(
|
|
|
|
<AdminApp />,
|
|
|
|
document.getElementById('admin-app')
|
|
|
|
)
|
|
|
|
}
|