Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
API Toucan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Damien Armillon
API Toucan
Commits
8e6f81a4
Commit
8e6f81a4
authored
6 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
Change calendrier
parent
6d216eed
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
front/package.json
+0
-1
0 additions, 1 deletion
front/package.json
front/src/App.js
+1
-1
1 addition, 1 deletion
front/src/App.js
front/src/FormToucan.js
+14
-26
14 additions, 26 deletions
front/src/FormToucan.js
front/yarn.lock
+1
-16
1 addition, 16 deletions
front/yarn.lock
with
16 additions
and
44 deletions
front/package.json
+
0
−
1
View file @
8e6f81a4
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
"react"
:
"^16.8.6"
,
"react"
:
"^16.8.6"
,
"react-dom"
:
"^16.8.6"
,
"react-dom"
:
"^16.8.6"
,
"react-scripts"
:
"3.0.0"
,
"react-scripts"
:
"3.0.0"
,
"semantic-ui-calendar-react"
:
"^0.15.0"
,
"semantic-ui-react"
:
"^0.86.0"
"semantic-ui-react"
:
"^0.86.0"
},
},
"scripts"
:
{
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
front/src/App.js
+
1
−
1
View file @
8e6f81a4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Segment
,
SegmentGroup
}
from
'
semantic-ui-react
'
;
import
{
Segment
}
from
'
semantic-ui-react
'
;
import
ToucanTable
from
'
./ToucanTable
'
;
import
ToucanTable
from
'
./ToucanTable
'
;
import
FormToucan
from
'
./FormToucan
'
import
FormToucan
from
'
./FormToucan
'
import
'
./App.css
'
;
import
'
./App.css
'
;
...
...
This diff is collapsed.
Click to expand it.
front/src/FormToucan.js
+
14
−
26
View file @
8e6f81a4
import
React
,
{
Component
}
from
'
react
'
import
React
,
{
Component
}
from
'
react
'
import
{
Form
,
Message
}
from
'
semantic-ui-react
'
import
{
Form
,
Message
}
from
'
semantic-ui-react
'
import
{
DateInput
}
from
'
semantic-ui-calendar-react
'
import
'
moment/locale/fr
'
import
env
from
'
./.env
'
import
env
from
'
./.env
'
class
FormToucan
extends
Component
{
class
FormToucan
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -98,8 +94,8 @@ class FormToucan extends Component {
...
@@ -98,8 +94,8 @@ class FormToucan extends Component {
return
(
return
(
<
div
>
<
div
>
<
Form
error
=
{
formError
}
onSubmit
=
{
this
.
onSubmit
}
>
<
Form
error
=
{
formError
}
style
=
{{
margin
:
"
auto
"
}}
onSubmit
=
{
this
.
onSubmit
}
>
<
Form
.
Group
style
=
{{
margin
:
"
auto
"
}}
>
<
Form
.
Group
>
<
Form
.
Input
<
Form
.
Input
type
=
"
text
"
type
=
"
text
"
label
=
"
Thème Toucan
"
label
=
"
Thème Toucan
"
...
@@ -108,24 +104,16 @@ class FormToucan extends Component {
...
@@ -108,24 +104,16 @@ class FormToucan extends Component {
onChange
=
{
this
.
onTitleChange
}
onChange
=
{
this
.
onTitleChange
}
value
=
{
this
.
state
.
title
}
value
=
{
this
.
state
.
title
}
error
=
{
this
.
state
.
titleError
}
error
=
{
this
.
state
.
titleError
}
icon
=
"
paper plane
"
iconPosition
=
"
left
"
required
required
/>
/>
{
/*<DateInput
style={{width:"10em",}}
pickerStyle={{active:{backgroundColor:"red"}}}
hideMobileKeyboard
label="Date"
localization="fr"
name="datheu"
onChange={this.onDateChange}
value={this.state.dateShown}
required
/>*/
}
<
Form
.
Input
<
Form
.
Input
type
=
"
date
"
type
=
"
date
"
label
=
"
Date
"
label
=
"
Date
"
name
=
"
date
"
name
=
"
date
"
icon
=
"
calendar
"
iconPosition
=
"
left
"
onChange
=
{
this
.
onDateChange
}
onChange
=
{
this
.
onDateChange
}
value
=
{
this
.
state
.
dateShown
}
value
=
{
this
.
state
.
dateShown
}
required
required
...
@@ -133,25 +121,25 @@ class FormToucan extends Component {
...
@@ -133,25 +121,25 @@ class FormToucan extends Component {
<
/Form.Group
>
<
/Form.Group
>
<
Form
.
Group
>
<
Form
.
Group
>
<
Form
.
Input
<
Form
.
Input
type
=
"
file
"
label
=
"
PDF du Toucan
"
label
=
"
PDF du Toucan
"
onChange
=
{
this
.
onFileChange
}
onChange
=
{
this
.
onFileChange
}
style
=
{{
w
idth
:
"
2
0
em
"
}}
style
=
{{
maxW
idth
:
"
2
5
em
"
}}
name
=
"
toucan
"
name
=
"
toucan
"
accept
=
"
application/pdf
"
accept
=
"
application/pdf
"
type
=
"
file
"
required
required
/>
/>
<
Form
.
Input
<
Form
.
Input
type
=
"
file
"
label
=
"
Cover du Toucan
"
label
=
"
Cover du Toucan
"
onChange
=
{
this
.
onFileChange
}
onChange
=
{
this
.
onFileChange
}
style
=
{{
maxWidth
:
"
25em
"
}}
name
=
"
cover
"
name
=
"
cover
"
type
=
"
file
"
accept
=
"
image/png, image/jpeg
"
accept
=
"
image/png, image/jpeg
"
required
required
/>
/>
<
Form
.
Button
disabled
=
{
formError
}
content
=
"
C'est parti !
"
/>
<
/Form.Group
>
<
/Form.Group
>
<
Form
.
Button
disabled
=
{
formError
}
content
=
"
C'est parti !
"
/>
<
Message
error
header
=
"
Formulaire incomplet
"
content
=
{
<
Message
error
header
=
"
Formulaire incomplet
"
content
=
{
<
ul
>
<
ul
>
{
errorMessage
.
map
((
err
)
=>
{
return
<
li
>
{
err
}
<
/li>}
)
}
{
errorMessage
.
map
((
err
)
=>
{
return
<
li
>
{
err
}
<
/li>}
)
}
...
...
This diff is collapsed.
Click to expand it.
front/yarn.lock
+
1
−
16
View file @
8e6f81a4
...
@@ -5681,7 +5681,7 @@ jsx-ast-utils@^2.0.1:
...
@@ -5681,7 +5681,7 @@ jsx-ast-utils@^2.0.1:
dependencies:
dependencies:
array-includes "^3.0.3"
array-includes "^3.0.3"
keyboard-key@^1.0.2,
keyboard-key@^1.0.4:
keyboard-key@^1.0.4:
version "1.0.4"
version "1.0.4"
resolved "https://registry.yarnpkg.com/keyboard-key/-/keyboard-key-1.0.4.tgz#52d8fa07b7e17757072aa22a67fb4ae85e4c46b0"
resolved "https://registry.yarnpkg.com/keyboard-key/-/keyboard-key-1.0.4.tgz#52d8fa07b7e17757072aa22a67fb4ae85e4c46b0"
integrity sha512-my04dE6BCwPpwoe4KYKfPxWiwgDYQOHrVmtzn1CfzmoEsGG/ef4oZGaXCzi1+iFhG7CN5JkOuxmei5OABY8/ag==
integrity sha512-my04dE6BCwPpwoe4KYKfPxWiwgDYQOHrVmtzn1CfzmoEsGG/ef4oZGaXCzi1+iFhG7CN5JkOuxmei5OABY8/ag==
...
@@ -6162,11 +6162,6 @@ mkdirp@0.5.1, mkdirp@0.5.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@
...
@@ -6162,11 +6162,6 @@ mkdirp@0.5.1, mkdirp@0.5.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@
dependencies:
dependencies:
minimist "0.0.8"
minimist "0.0.8"
moment@^2.22.2:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
move-concurrently@^1.0.1:
move-concurrently@^1.0.1:
version "1.0.1"
version "1.0.1"
resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
...
@@ -8398,16 +8393,6 @@ selfsigned@^1.9.1:
...
@@ -8398,16 +8393,6 @@ selfsigned@^1.9.1:
dependencies:
dependencies:
node-forge "0.7.5"
node-forge "0.7.5"
semantic-ui-calendar-react@^0.15.0:
version "0.15.0"
resolved "https://registry.yarnpkg.com/semantic-ui-calendar-react/-/semantic-ui-calendar-react-0.15.0.tgz#1294eed17304e3428b4c39fa5a3deb85db85c22c"
integrity sha512-AG+XrUrpPFwc1/dYgtVnoGZgaOw5ijJiegZuhBnYsyiWux4FITvJXnUsuHyZz4qyjcrVt0tMzNAMutJesVeG1Q==
dependencies:
keyboard-key "^1.0.2"
lodash "^4.17.10"
moment "^2.22.2"
prop-types "^15.6.2"
semantic-ui-react@^0.86.0:
semantic-ui-react@^0.86.0:
version "0.86.0"
version "0.86.0"
resolved "https://registry.yarnpkg.com/semantic-ui-react/-/semantic-ui-react-0.86.0.tgz#f3c6a27250f2e9e07a975d0a3399ffd3a48861b5"
resolved "https://registry.yarnpkg.com/semantic-ui-react/-/semantic-ui-react-0.86.0.tgz#f3c6a27250f2e9e07a975d0a3399ffd3a48861b5"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment