mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 10:07:15 +08:00 
			
		
		
		
	cleanup (eslint): cleanup as per eslint rules
This commit is contained in:
		| @ -1,8 +1,8 @@ | ||||
| import React from 'react'; | ||||
| import { BrowserRouter, Route, IndexRoute, Switch } from 'react-router-dom'; | ||||
| import { NotFoundPage, ConnectPage, HomePage, SharePage, LogoutPage, FilesPage, ViewerPage } from './pages/'; | ||||
| import { URL_HOME, URL_FILES, URL_VIEWER, URL_LOGIN, URL_LOGOUT } from  './helpers/'; | ||||
| import { Bundle, ModalPrompt, ModalAlert, ModalConfirm, Notification, Audio, Video, UploadQueue } from './components/'; | ||||
| import React from "react"; | ||||
| import { BrowserRouter, Route, Switch } from "react-router-dom"; | ||||
| import { NotFoundPage, ConnectPage, HomePage, SharePage, LogoutPage, FilesPage, ViewerPage } from "./pages/"; | ||||
| import { URL_HOME, URL_FILES, URL_VIEWER, URL_LOGIN, URL_LOGOUT, URL_ADMIN, URL_SHARE } from  "./helpers/"; | ||||
| import { Bundle, ModalPrompt, ModalAlert, ModalConfirm, Notification, UploadQueue } from "./components/"; | ||||
|  | ||||
| const AdminPage = (props) => ( | ||||
|     <Bundle loader={import(/* webpackChunkName: "admin" */"./pages/adminpage")} symbol="AdminPage"> | ||||
| @ -13,16 +13,16 @@ const AdminPage = (props) => ( | ||||
| export default class AppRouter extends React.Component { | ||||
|     render() { | ||||
|         return ( | ||||
|             <div style={{height: '100%'}}> | ||||
|             <div style={{height: "100%"}}> | ||||
|               <BrowserRouter> | ||||
|                 <Switch> | ||||
|                   <Route exact path="/" component={HomePage} /> | ||||
|                   <Route path="/s/:id*" component={SharePage} /> | ||||
|                   <Route path="/login" component={ConnectPage} /> | ||||
|                   <Route path="/files/:path*" component={FilesPage} /> | ||||
|                   <Route path="/view/:path*" component={ViewerPage} /> | ||||
|                   <Route path="/logout" component={LogoutPage} /> | ||||
|                   <Route path="/admin" component={AdminPage} /> | ||||
|                   <Route exact path={URL_HOME} component={HomePage} /> | ||||
|                   <Route path={`${URL_SHARE}/:id*`} component={SharePage} /> | ||||
|                   <Route path={URL_LOGIN} component={ConnectPage} /> | ||||
|                   <Route path={`${URL_FILES}/:path*`} component={FilesPage} /> | ||||
|                   <Route path={`${URL_VIEWER}/:path*`} component={ViewerPage} /> | ||||
|                   <Route path={URL_LOGOUT} component={LogoutPage} /> | ||||
|                   <Route path={URL_ADMIN} component={AdminPage} /> | ||||
|                   <Route component={NotFoundPage} /> | ||||
|                 </Switch> | ||||
|               </BrowserRouter> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mickael Kerjean
					Mickael Kerjean