File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed
Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1- # base-react-app
2-
3- Base React App
1+ # Manager Dashboard
2+ A web interface for create and manage
3+ missions, tutorials, groups for the MapSwipe.
44
55## Development
66
77``` bash
8- # Generate graphql files
9- yarn generate
10-
118# Start web app
129yarn start
1310
@@ -18,11 +15,9 @@ yarn build
1815yarn typecheck
1916
2017# Eslint check
21- yarn eslint
18+ yarn lint
2219
2320# Check unused files
2421yarn check-unused
2522
26- # Run tests
27- yarn test
2823```
Original file line number Diff line number Diff line change @@ -340,7 +340,8 @@ function NewProject(props: Props) {
340340 }
341341
342342 const storage = getStorage ( ) ;
343- const uploadedImageRef = storageRef ( storage , `projectImages/${ projectImage . name } ` ) ;
343+ const timestamp = ( new Date ( ) ) . getTime ( ) ;
344+ const uploadedImageRef = storageRef ( storage , `projectImages/${ timestamp } -project-image-${ projectImage . name } ` ) ;
344345
345346 setProjectSubmissionStatus ( 'imageUpload' ) ;
346347 try {
Original file line number Diff line number Diff line change @@ -129,8 +129,9 @@ function NewTutorial(props: Props) {
129129 } = finalValues ;
130130
131131 const storage = getStorage ( ) ;
132- const uploadedImage1Ref = storageRef ( storage , `projectImages/${ exampleImage1 } ` ) ;
133- const uploadedImage2Ref = storageRef ( storage , `projectImages/${ exampleImage2 } ` ) ;
132+ const timestamp = ( new Date ( ) ) . getTime ( ) ;
133+ const uploadedImage1Ref = storageRef ( storage , `projectImages/${ timestamp } -tutorial-image-1-${ exampleImage1 . name } ` ) ;
134+ const uploadedImage2Ref = storageRef ( storage , `projectImages/${ timestamp } -tutorial-image-2-${ exampleImage2 . name } ` ) ;
134135
135136 setTutorialSubmissionStatus ( 'imageUpload' ) ;
136137 try {
Original file line number Diff line number Diff line change 2323 },
2424 "repository" : {
2525 "type" : " git" ,
26- "url" : " git+https://github.com/mapswipe/python-mapswipe-dashboard .git"
26+ "url" : " git+https://github.com/mapswipe/python-mapswipe-workers .git"
2727 },
2828 "keywords" : [],
2929 "author" : " " ,
3030 "license" : " ISC" ,
3131 "bugs" : {
32- "url" : " https://github.com/mapswipe/python-mapswipe-dashboard /issues"
32+ "url" : " https://github.com/mapswipe/python-mapswipe-workers /issues"
3333 },
34- "homepage" : " https://github.com/mapswipe/python-mapswipe-dashboard #readme" ,
34+ "homepage" : " https://github.com/mapswipe/python-mapswipe-workers #readme" ,
3535 "dependencies" : {
3636 "@apollo/client" : " ^3.3.21" ,
3737 "@babel/runtime" : " ^7.11.2" ,
You can’t perform that action at this time.
0 commit comments