Skip to content

Commit fa56e77

Browse files
committed
Definition des types d'actions
1 parent 7bea2f5 commit fa56e77

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"axios": "^0.16.2",
67
"react": "^15.6.1",
78
"react-dom": "^15.6.1",
89
"react-redux": "^5.0.5",

src/constants/actionTypes.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//Asyncrone request and Promise based HTTP client for the browser
2+
import axios from 'axios';
3+
4+
//Liste des Interventins
5+
export const FETCH_INTERVENTIONS = 'FETCH_INTERVENTIONS';
6+
export const FETCH_INTERVENTIONS_SUCCESS = 'FETCH_INTERVENTIONS_SUCCESS';
7+
export const FETCH_INTERVENTIONS_FAILURE = 'FETCH_INTERVENTIONS_FAILURE';
8+
9+
//Liste des Competences
10+
export const FETCH_COMPETENCES = 'FETCH_COMPETENCES';
11+
export const FETCH_COMPETENCES_SUCCESS = 'FETCH_COMPETENCES_SUCCESS';
12+
export const FETCH_COMPETENCES_FAILURE = 'FETCH_COMPETENCES_FAILURE';

yarn.lock

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ aws4@^1.2.1:
312312
version "1.6.0"
313313
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
314314

315+
axios@^0.16.2:
316+
version "0.16.2"
317+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.16.2.tgz#ba4f92f17167dfbab40983785454b9ac149c3c6d"
318+
dependencies:
319+
follow-redirects "^1.2.3"
320+
is-buffer "^1.1.5"
321+
315322
axobject-query@^0.1.0:
316323
version "0.1.0"
317324
resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-0.1.0.tgz#62f59dbc59c9f9242759ca349960e7a2fe3c36c0"
@@ -1720,7 +1727,7 @@ debug@2.6.7:
17201727
dependencies:
17211728
ms "2.0.0"
17221729

1723-
debug@2.6.8, debug@^2.1.1, debug@^2.2.0, debug@^2.6.0, debug@^2.6.3, debug@^2.6.6, debug@^2.6.8:
1730+
debug@2.6.8, debug@^2.1.1, debug@^2.2.0, debug@^2.4.5, debug@^2.6.0, debug@^2.6.3, debug@^2.6.6, debug@^2.6.8:
17241731
version "2.6.8"
17251732
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
17261733
dependencies:
@@ -2522,6 +2529,12 @@ flatten@^1.0.2:
25222529
version "1.0.2"
25232530
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
25242531

2532+
follow-redirects@^1.2.3:
2533+
version "1.2.4"
2534+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.4.tgz#355e8f4d16876b43f577b0d5ce2668b9723214ea"
2535+
dependencies:
2536+
debug "^2.4.5"
2537+
25252538
for-in@^1.0.1:
25262539
version "1.0.2"
25272540
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"

0 commit comments

Comments
 (0)