Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90444954
App.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 17:52
Size
1 KB
Mime Type
text/x-java
Expires
Sun, Nov 3, 17:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22076351
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
App.js
View Options
import
React
from
"react"
;
import
"./App.css"
import
{
Container
,
Row
,
Col
}
from
'react-bootstrap'
;
import
SearchFilterFields
from
'./pages/SearchFilterFields'
import
Footer
from
'./components/layout/Footer'
import
About
from
"./pages/About"
import
{
Switch
,
Route
,}
from
"react-router-dom"
import
Nav
from
"./components/layout/Nav"
function
App
()
{
return
(
<
Container
fluid
>
<
Row
>
<
Col
>
<
Nav
/>
<
/Col>
<
/Row>
<
Switch
>
<
Route
exact
path
=
"/about"
component
=
{
About
}
/>
<
Route
exact
path
=
'/api'
component
=
{()
=>
{
window
.
location
.
href
=
'https://oacct-dev.epfl.ch/api/'
;
return
null
;
}}
/>
<
Route
exact
path
=
'/login'
component
=
{()
=>
{
window
.
location
.
href
=
'https://oacct-dev.epfl.ch/admin/'
;
return
null
;
}}
/>
<
Route
exact
path
=
"/"
>
<
SearchFilterFields
/>
<
/Route>
<
/Switch>
<
Footer
/>
<
/Container>
)
}
export
default
App
Event Timeline
Log In to Comment