Commit graph

607 commits

Author SHA1 Message Date
Paul Bienkowski 7a1b324e2f Initialize project using Create React App 2021-01-19 14:51:36 +01:00
Paul Bienkowski 4d30d6ff1b chore: change urls for new website and github org 2021-01-19 13:18:48 +01:00
Paul Bienkowski 52231280db fix: do not crash when not logged in 2021-01-19 13:06:21 +01:00
Paul Bienkowski 454803a062 Fix POST and PUT of tracks, parsing was not really done 2020-12-19 15:38:47 +01:00
Paul Bienkowski 72eb553ede chore: note in Readme on how to update 2020-12-12 13:46:04 +01:00
Paul Bienkowski de946bf9c7 chore: re-add backwards compatible /TrackData url 2020-12-12 13:43:11 +01:00
Paul Bienkowski d5f617e25c feat: ignore bad distances when measuring track length 2020-12-02 21:10:46 +01:00
Paul Bienkowski 5770229945 feat: add track length and duration (seconds) to parsed information 2020-12-02 20:55:04 +01:00
Paul Bienkowski 028d224726 feat: show publicTrackData if track is visible but you are not author, change /api/tracks/:slug/TrackData to .../data 2020-12-02 18:29:39 +01:00
Paul Bienkowski a198cb620b feat: move recordedAt and numEvents to trackData, add publicTrackData property 2020-12-02 18:24:43 +01:00
Paul Bienkowski 709b1a44cb feat: add migrations, sort script for reconstructing body as one, and build recordedAt and numEvents in migrations and track routes, too 2020-12-01 19:58:32 +01:00
Paul Bienkowski 460c114301 feat: include recordedAt and numEvents in script/reconstruct... 2020-12-01 19:22:32 +01:00
Paul Bienkowski 2ffb9b7851 chore: use ObjectId.equals instead of toString() comparison 2020-12-01 18:37:18 +01:00
Paul Bienkowski 56145565df wip: script to reconstruct body field from track data (for #20) 2020-12-01 18:18:30 +01:00
Paul Bienkowski 734ff5a288 refactor: extract database connection logic 2020-11-28 19:21:58 +01:00
Paul Bienkowski ba4634ab12 chore: remove useless headline from README 2020-11-28 19:20:56 +01:00
Paul Bienkowski 5fd17e8575 chore: remove postman examples, since the webapp text field works now 2020-11-28 19:20:04 +01:00
Paul Bienkowski 4a3b404edf chore: fix readme command example 2020-11-28 19:18:45 +01:00
Paul Bienkowski 1b4718b0ac chore: move js to src/ directory 2020-11-28 19:17:19 +01:00
Paul Bienkowski ecb1b3d04c feat: write a function to generate obsver 2 csv from TrackData 2020-11-25 22:48:43 +01:00
Paul Bienkowski f826e18ff5 chore: remove "following" logic which is not used 2020-11-25 21:33:19 +01:00
Paul Bienkowski 80b2169b15 chore: lint 2020-11-25 21:31:36 +01:00
Paul Bienkowski 4bfd55e110 refactor: remove duplicate code when loading track/comment params 2020-11-25 21:30:27 +01:00
Paul Bienkowski dbe4b1db17 chore: remove unused "favorite" track functionality 2020-11-25 15:58:26 +01:00
Paul Bienkowski b75ba42969 refactor: change mongoose models to use ES6 classes 2020-11-25 15:55:56 +01:00
Paul Bienkowski c5b5dda0b4 chore: remove Article model, it is unused, fix references from comments and favorites 2020-11-25 15:49:11 +01:00
Paul Bienkowski 11c806dbe3 fix: parse "visible" flag when posting a track, and trim details nicely when PUTing it 2020-11-25 12:40:13 +01:00
Paul Bienkowski 761330e9b6 refactor: rename req.payload to req.authInfo to be less confusing 2020-11-25 11:00:51 +01:00
Paul Bienkowski e607a1d64d chore: update routes to use new req.user 2020-11-25 11:00:51 +01:00
Paul Bienkowski 29269dcfcd feat: load user object in auth middleware chain 2020-11-25 11:00:51 +01:00
Paul Bienkowski 393fc3dbb2 fix: handle requests without authorization header 2020-11-24 23:22:22 +01:00
Paul Bienkowski 15edeb59e1 fix: show correct number of pages in global feed (only count visible tracks) 2020-11-24 20:22:49 +01:00
Paul Bienkowski 857ec7c3c6
Merge pull request #19 from Friends-of-OpenBikeSensor/streaming
More body parsers for uploading tracks
2020-11-24 20:22:25 +01:00
Paul Bienkowski cdadbb5df4 fix: a few issues with old node version, again 2020-11-24 00:32:49 +01:00
Paul Bienkowski 3b1376b661 feat: store user-agent (extracted OBS version only) for each track when uploading 2020-11-24 00:31:06 +01:00
Paul Bienkowski 2da013583b fix: raise forbidden when viewing invisible track and not author 2020-11-24 00:14:46 +01:00
Paul Bienkowski fb11a71663 feat: read a new (temporary) token type, OBSUserId from Authorization header 2020-11-24 00:14:46 +01:00
Paul Bienkowski b63afb1146 feat: allow querystring + single file body uploads for editing tracks 2020-11-24 00:14:46 +01:00
Paul Bienkowski 3c1d666dc3 feat: allow multipart bodies in POST /api/tracks and PUT /api/tracks/:track 2020-11-24 00:14:46 +01:00
Paul Bienkowski 9ad99587a9 chore: install connect-busboy for multipart body parsing 2020-11-24 00:14:46 +01:00
Paul Bienkowski 8cf01ba5f5 fix: a single-request upload shall just use /end 2020-11-23 23:21:36 +01:00
Paul Bienkowski 7460661607 fix: append to track body in /end too, and save new track in /add 2020-11-22 10:46:58 +01:00
Paul Bienkowski 33e8cbdb83 refactor: reorder /begin /add /end routes 2020-11-22 10:44:21 +01:00
Paul Bienkowski 6b98655c92 refactor: change addPointsToTrack -> parseTrackPoints generator 2020-11-21 23:07:58 +01:00
Paul Bienkowski b31d3e0e7d fix: parse tracks when they are fully uploaded in /end request, not before 2020-11-21 23:01:22 +01:00
Paul Bienkowski 13ed2ef936 fix: correctly detect dollar hack if there is no dollar at the end, also fix the tests 2020-11-21 23:00:56 +01:00
Paul Bienkowski 6b24ac59e8 chore: add .dockerignore 2020-11-21 20:05:26 +01:00
Paul Bienkowski 0b8fed3e27 chore: make everything async instead of manual promise chaining 2020-11-21 20:05:03 +01:00
Paul Bienkowski bb2b569abe chore: add "npm run lint" command 2020-11-21 19:41:25 +01:00
Paul Bienkowski b6ab3d0b1d chore: fix lint errors 2020-11-21 19:41:25 +01:00