Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions manager-dashboard/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# base-react-app

Base React App
# Manager Dashboard
A web interface for create and manage
missions, tutorials, groups for the MapSwipe.

## Development

```bash
# Generate graphql files
yarn generate

# Start web app
yarn start

Expand All @@ -18,11 +15,9 @@ yarn build
yarn typecheck

# Eslint check
yarn eslint
yarn lint

# Check unused files
yarn check-unused

# Run tests
yarn test
```
3 changes: 2 additions & 1 deletion manager-dashboard/app/views/NewProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ function NewProject(props: Props) {
}

const storage = getStorage();
const uploadedImageRef = storageRef(storage, `projectImages/${projectImage.name}`);
const timestamp = (new Date()).getTime();
const uploadedImageRef = storageRef(storage, `projectImages/${timestamp}-project-image-${projectImage.name}`);

setProjectSubmissionStatus('imageUpload');
try {
Expand Down
5 changes: 3 additions & 2 deletions manager-dashboard/app/views/NewTutorial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ function NewTutorial(props: Props) {
} = finalValues;

const storage = getStorage();
const uploadedImage1Ref = storageRef(storage, `projectImages/${exampleImage1}`);
const uploadedImage2Ref = storageRef(storage, `projectImages/${exampleImage2}`);
const timestamp = (new Date()).getTime();
const uploadedImage1Ref = storageRef(storage, `projectImages/${timestamp}-tutorial-image-1-${exampleImage1.name}`);
const uploadedImage2Ref = storageRef(storage, `projectImages/${timestamp}-tutorial-image-2-${exampleImage2.name}`);

setTutorialSubmissionStatus('imageUpload');
try {
Expand Down
6 changes: 3 additions & 3 deletions manager-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/mapswipe/python-mapswipe-dashboard.git"
"url": "git+https://github.com/mapswipe/python-mapswipe-workers.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/mapswipe/python-mapswipe-dashboard/issues"
"url": "https://github.com/mapswipe/python-mapswipe-workers/issues"
},
"homepage": "https://github.com/mapswipe/python-mapswipe-dashboard#readme",
"homepage": "https://github.com/mapswipe/python-mapswipe-workers#readme",
"dependencies": {
"@apollo/client": "^3.3.21",
"@babel/runtime": "^7.11.2",
Expand Down