Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Damien Armillon
API Toucan
Commits
537cc7b2
Commit
537cc7b2
authored
May 17, 2019
by
Damien
Browse files
Add images
parent
6c4b82d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
front/public/favicon.ico
0 → 100644
View file @
537cc7b2
9.44 KB
front/src/App.js
View file @
537cc7b2
import
React
from
'
react
'
;
import
{
Image
}
from
'
semantic-ui-react
'
import
{
BrowserRouter
as
Router
,
Route
}
from
'
react-router-dom
'
;
import
'
./App.css
'
;
import
AdminPage
from
'
./view/AdminPage/AdminPage
'
;
...
...
@@ -6,14 +7,18 @@ import AllToucanPage from './view/AllToucanPage/AllToucanPage';
import
Login
from
'
./view/Login
'
;
import
env
from
'
./.env
'
;
import
isLogged
from
'
./utils/Oauth
'
;
import
logo
from
'
./image/logo.png
'
function
App
()
{
return
(
<
div
style
=
{{
verticalAlign
:
"
center
"
}}
>
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
marginLeft
:
'
30%
'
,
width
:
'
40%
'
}}
/
>
<
Router
>
<
Route
exact
path
=
'
/
'
component
=
{
AllToucanPage
}
/
>
<
Route
exact
path
=
'
/admin
'
render
=
{()
=>
isLogged
()
?
<
AdminPage
/>
:
window
.
location
=
`
${
env
.
backURL
}
/oauth/login`
}
/
>
<
Route
exact
path
=
'
/login/:token
'
component
=
{
Login
}
/
>
<
/Router
>
<
/div
>
);
}
...
...
front/src/image/logo.png
0 → 100644
View file @
537cc7b2
188 KB
front/src/view/AllToucanPage/AllToucanPage.js
View file @
537cc7b2
...
...
@@ -20,7 +20,6 @@ class AllToucan extends Component {
})
.
then
(
toucans
=>
{
this
.
setState
({
toucans
})
console
.
log
(
toucans
)
})
.
catch
(
err
=>
console
.
log
(
err
))
}
...
...
@@ -34,6 +33,7 @@ class AllToucan extends Component {
link
=
{
`
${
env
.
backURL
}
/toucan/pdf/
${
toucan
[
"
_id
"
]}
`
}
header
=
{
toucan
.
title
}
date
=
{(
new
Date
(
toucan
.
date
).
toLocaleDateString
())}
key
=
{
toucan
.
_id
}
/
>
})}
<
/Card.Group
>
...
...
front/src/view/AllToucanPage/ToucanCard.js
View file @
537cc7b2
...
...
@@ -7,7 +7,6 @@ const ToucanCard = ({...props}) => {
href
=
{
props
.
link
}
link
style
=
{{
margin
:
"
1em
"
}}
description
=
"
On test
"
>
<
Card
.
Content
>
<
Card
.
Header
content
=
{
props
.
header
}
/
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment