Commit f8cc2cf 1 parent 05a1764 commit f8cc2cf Copy full SHA for f8cc2cf
File tree 9 files changed +15
-8
lines changed
9 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " fragment.js" ,
6
6
"scripts" : {
7
7
"build" : " webpack -p" ,
8
- "watch" : " webpack -p --watch " ,
8
+ "watch" : " webpack -w " ,
9
9
"start" : " node fragment.js"
10
10
},
11
11
"author" : " " ,
Original file line number Diff line number Diff line change 5
5
"main" : " fragment.js" ,
6
6
"scripts" : {
7
7
"build" : " webpack -p" ,
8
- "watch" : " webpack -p --watch " ,
8
+ "watch" : " webpack -w " ,
9
9
"start" : " node fragment.js"
10
10
},
11
11
"author" : " " ,
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ const Contacts = ({
22
22
contacts
23
23
} ) => (
24
24
< div className = "contacts" >
25
- { contacts . map ( contact => (
25
+ { contacts . map ( ( contact , index ) => (
26
26
< Contact
27
- key = { contact . id . value }
27
+ key = { index }
28
28
contact = { contact }
29
29
/>
30
30
) ) }
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ import {
4
4
} from 'prop-types'
5
5
6
6
export default shape ( {
7
- id : string ,
7
+ id : shape ( {
8
+ name : string ,
9
+ value : string
10
+ } ) ,
8
11
email : string ,
9
12
name : shape ( {
10
13
title : string ,
Original file line number Diff line number Diff line change 5
5
"main" : " fragment.js" ,
6
6
"scripts" : {
7
7
"build" : " webpack -p" ,
8
- "watch" : " webpack -p --watch " ,
8
+ "watch" : " webpack -w " ,
9
9
"start" : " node fragment.js"
10
10
},
11
11
"author" : " " ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const Header = ({
35
35
36
36
Header . propTypes = {
37
37
items : PropTypes . arrayOf ( PropTypes . number ) . isRequired ,
38
- active : PropTypes . bool . isRequired ,
38
+ active : PropTypes . number . isRequired ,
39
39
setActive : PropTypes . func . isRequired
40
40
}
41
41
Original file line number Diff line number Diff line change 13
13
},
14
14
"scripts" : {
15
15
"build" : " webpack -p" ,
16
- "watch" : " webpack -p --watch " ,
16
+ "watch" : " webpack -w " ,
17
17
"start" : " node fragment.js"
18
18
},
19
19
"author" : " " ,
Original file line number Diff line number Diff line change 12
12
res . writeHead ( 200 , { 'Content-Type' : 'image/x-icon' } )
13
13
return res . end ( '' )
14
14
}
15
+
16
+ req . headers [ 'x-request-uri' ] = req . url
17
+ req . url = '/index'
18
+
15
19
tailor . requestHandler ( req , res )
16
20
} )
17
21
. listen ( 8080 , function ( ) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments