Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78627518
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
Thu, Aug 22, 01:51
Size
1 KB
Mime Type
text/x-java
Expires
Sat, Aug 24, 01:51 (2 d)
Engine
blob
Format
Raw Data
Handle
20074208
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