@@ -22,25 +22,25 @@ export const Home: React.FunctionComponent<Props> = () => {
22
22
id : '1' ,
23
23
jump : appGolang ,
24
24
name : 'Golang' ,
25
- img : './golang.png' ,
25
+ img : './golang.png'
26
26
} ;
27
27
const springboot = {
28
28
id : '2' ,
29
29
jump : appSpringboot ,
30
30
name : 'Springboot' ,
31
- img : './springboot.png' ,
31
+ img : './springboot.png'
32
32
} ;
33
33
const python = {
34
34
id : '3' ,
35
35
jump : appPython ,
36
36
name : 'Python' ,
37
- img : './python.png' ,
37
+ img : './python.png'
38
38
} ;
39
39
40
40
const jumps = [ golang , springboot , python ] ;
41
41
const jumpLogTest = {
42
42
dateLog : '' ,
43
- message : '' ,
43
+ message : ''
44
44
} ;
45
45
46
46
const [ data , setData ] = useState ( jumps ) ;
@@ -63,7 +63,7 @@ export const Home: React.FunctionComponent<Props> = () => {
63
63
message : 'hello' ,
64
64
jump_path : '/jump' ,
65
65
last_path : '/jump' ,
66
- jumps : data . map ( ( i ) => i . jump ) ,
66
+ jumps : data . map ( ( i ) => i . jump )
67
67
} ;
68
68
69
69
const timeout = async ( ms : number ) => {
@@ -82,7 +82,7 @@ export const Home: React.FunctionComponent<Props> = () => {
82
82
const prefix = 'Jump ' + index . toString ( ) + ' -> ' ;
83
83
const item : JumpLog = {
84
84
dateLog : prefix + date . toString ( ) ,
85
- message : JSON . stringify ( jump ) ,
85
+ message : JSON . stringify ( jump )
86
86
} ;
87
87
setCallLogs ( { ...item } ) ;
88
88
}
@@ -133,8 +133,8 @@ export const Home: React.FunctionComponent<Props> = () => {
133
133
134
134
return (
135
135
< >
136
- < div className = { cx ( 'jumps' ) } >
137
- < div className = { cx ( 'jumps-buttons' ) } >
136
+ < div role = 'jump' className = { cx ( 'jumps' ) } >
137
+ < div role = 'jumpselections' className = { cx ( 'jumps-buttons' ) } >
138
138
< div >
139
139
< h1 > Add Jump:</ h1 >
140
140
< div className = { cx ( 'jumps-buttons-images' ) } >
@@ -167,11 +167,11 @@ export const Home: React.FunctionComponent<Props> = () => {
167
167
< div >
168
168
< h1 > Calls Retries:</ h1 >
169
169
< input
170
- type = " number"
171
- id = " calls"
172
- name = " calls"
170
+ type = ' number'
171
+ id = ' calls'
172
+ name = ' calls'
173
173
required = { true }
174
- placeholder = "80"
174
+ placeholder = '80'
175
175
onChange = { ( event ) => setCalls ( parseInt ( event . target . value ) ) }
176
176
value = { calls }
177
177
className = { cx ( 'jumps-buttons-calls' ) }
@@ -180,11 +180,11 @@ export const Home: React.FunctionComponent<Props> = () => {
180
180
< div >
181
181
< h1 > Calls Interval:</ h1 >
182
182
< input
183
- type = " number"
184
- id = " callsInterval"
185
- name = " callsInterval"
183
+ type = ' number'
184
+ id = ' callsInterval'
185
+ name = ' callsInterval'
186
186
required = { true }
187
- placeholder = "80"
187
+ placeholder = '80'
188
188
onChange = { ( event ) =>
189
189
setCallsInterval ( parseInt ( event . target . value ) )
190
190
}
@@ -193,10 +193,10 @@ export const Home: React.FunctionComponent<Props> = () => {
193
193
/>
194
194
</ div >
195
195
</ div >
196
- < div className = { cx ( 'jumps-box' ) } >
196
+ < div role = 'jumpbox' className = { cx ( 'jumps-box' ) } >
197
197
< h1 > Jumps</ h1 >
198
198
< DragDropContext onDragEnd = { handleOnDragEnd } >
199
- < Droppable droppableId = " jumps" >
199
+ < Droppable droppableId = ' jumps' >
200
200
{ ( provided ) => (
201
201
< ul { ...provided . droppableProps } ref = { provided . innerRef } >
202
202
{ data . map ( ( { id, name, jump } , index ) => {
@@ -215,8 +215,8 @@ export const Home: React.FunctionComponent<Props> = () => {
215
215
</ p >
216
216
< img
217
217
onClick = { ( ) => delJump ( index ) }
218
- src = " ./bin.png"
219
- alt = " bin"
218
+ src = ' ./bin.png'
219
+ alt = ' bin'
220
220
className = { cx ( 'jumps-box-item-img' ) }
221
221
/>
222
222
</ div >
@@ -231,18 +231,18 @@ export const Home: React.FunctionComponent<Props> = () => {
231
231
</ Droppable >
232
232
</ DragDropContext >
233
233
</ div >
234
- < div className = { cx ( 'jumps-actions' ) } >
234
+ < div role = 'jumpaction' className = { cx ( 'jumps-actions' ) } >
235
235
< button onClick = { sendJumps } className = { cx ( 'jumps-actions-button' ) } >
236
236
< img
237
- src = " ./rocket.png"
238
- alt = " Jump!"
237
+ src = ' ./rocket.png'
238
+ alt = ' Jump!'
239
239
className = { cx ( 'jumps-actions-button-img' ) }
240
240
/>
241
241
< p > - JUMP -</ p >
242
242
</ button >
243
243
</ div >
244
244
</ div >
245
- < div className = { cx ( 'logs' ) } >
245
+ < div role = 'jumplog' className = { cx ( 'logs' ) } >
246
246
< div className = { cx ( 'logs-items' ) } >
247
247
< p >
248
248
{ callLogs . dateLog } { callLogs . message }
0 commit comments