Commit graph

205 commits

Author SHA1 Message Date
Paul Bienkowski 09fe1a7ac0 feat: Add optional banner to frontend via config entry (solves #128) 2021-12-03 17:31:43 +01:00
Paul Bienkowski 99f33aa988 chore: Use config.json from API route in development mode 2021-12-03 17:31:03 +01:00
Paul Bienkowski 84683c7789 Set example files map home to cover most of Germany 2021-12-03 17:06:29 +01:00
Paul Bienkowski 3aee226630 chore: remove outdated "mapTileset" frontend config section 2021-12-03 17:01:10 +01:00
Paul Bienkowski 7d2c45da43 Improve mobile layout a bit (fixes #123) 2021-12-03 16:55:50 +01:00
Paul Bienkowski 2592fe029a fix: Show correct API URL for OBS in settings page 2021-12-02 21:02:11 +01:00
Paul Bienkowski 40784ba51e Fix typo xtrack -> track 2021-11-30 23:36:53 +01:00
Paul Bienkowski 004ad46251 Fix saving profile and add generating new API key 2021-11-30 23:32:42 +01:00
Paul Bienkowski 7ad5fad056 Improve display of road details 2021-11-30 22:04:34 +01:00
Paul Bienkowski 61efdeb673 Add details for roads when clicking them in the big map 2021-11-30 21:58:05 +01:00
Paul Bienkowski fe3aa7a8f6 feat: fit to bounds when loading track page 2021-11-30 21:50:56 +01:00
Paul Bienkowski 38b1b92210 make mapstyles simpler 2021-11-30 21:42:41 +01:00
Paul Bienkowski 15dfb2dc3b feat: put map page viewport into URL 2021-11-30 21:36:44 +01:00
Paul Bienkowski 9c7b1bc662 Better prod builds 2021-11-30 20:30:09 +01:00
Paul Bienkowski 618230601e chore: Format code 2021-11-30 19:55:51 +01:00
Paul Bienkowski 989b294791 remove debug logs 2021-11-30 19:54:18 +01:00
Paul Bienkowski e481356af4 fix: menu items navigate with JS, not with links 2021-11-30 19:53:52 +01:00
Paul Bienkowski 54cc80e5bc fix: style of menu 2021-11-30 19:51:33 +01:00
Paul Bienkowski 66ab9a73ef Fix webpack dev build 2021-11-30 19:50:10 +01:00
Paul Bienkowski 8fc755f153 Fix licensing of styles, make tile-generator content our own by removing all OpenMapTiles licensed parts (it is only our config now) 2021-11-28 23:18:02 +01:00
Paul Bienkowski 4f382819fd Change basemap URL again 2021-11-28 14:18:32 +01:00
Paul Bienkowski 04add36a5b Change basemap URL 2021-11-27 23:22:12 +01:00
Paul Bienkowski 75323ebc79 webpack 2021-11-27 22:45:22 +01:00
Paul Bienkowski bf1536f443 remove craco/react-scripts, configure webpack ourselves 2021-11-27 22:45:22 +01:00
Paul Bienkowski 5fcb959002 fix: remove typescript annotations from .js file 2021-11-27 22:45:22 +01:00
Paul Bienkowski f183b9e33a Change style preprocessor to less, as semantic-ui is using that, so we need only one 2021-11-27 22:45:22 +01:00
Paul Bienkowski b06b7ba1ad Update deps for webpack 2021-11-27 22:44:52 +01:00
Paul Bienkowski c90d4da97a frontend: Keep track distance labels aligned to map 2021-11-24 23:40:06 +01:00
Paul Bienkowski 4b270877ca frontend: Improve config example obsMapSource 2021-11-22 09:52:42 +01:00
Paul Bienkowski 5d96009b01 Only one place for the version 2021-11-22 09:51:18 +01:00
Paul Bienkowski ea106539c6 Improve docs around tiles, remove old stuff, bump 0.3.0-rc.1 2021-11-22 09:51:18 +01:00
Paul Bienkowski 12686abe14 frontend: Replace openlayers track map with gl version 2021-11-22 09:51:18 +01:00
Paul Bienkowski f54fe701e7 frontend: Fix attributions and reuse map code 2021-11-22 09:51:18 +01:00
Paul Bienkowski 7add8caaa1 Live tiles, API executes openmaptiles-tools 2021-11-22 09:51:18 +01:00
Paul Bienkowski 131afd5adc feat: publish tiles from API directly 2021-11-22 09:51:18 +01:00
Paul Bienkowski c85f261292 Single-container API+Frontend+Worker 2021-11-22 09:51:16 +01:00
Paul Bienkowski da33d814ae Move API to python. 2021-11-22 09:50:33 +01:00
Paul Bienkowski e3ec5ce1f9 Correct directional road rendering, and include all roads with null data in obs layer 2021-11-22 09:50:33 +01:00
Paul Bienkowski 79f3469df8 frontend: add MapPage and make OBS data vector tiles URL configurable 2021-11-22 09:50:33 +01:00
Paul Bienkowski ec60fc3873 Start working on PostGIS supported tile generation 2021-11-22 09:50:33 +01:00
Paul Bienkowski 65b261630f frontend: fix config URL when loading from sub-page 2021-11-22 09:50:33 +01:00
gluap e74d2c9130 needs to match permitted redirect url in api 2021-11-22 09:40:21 +01:00
gluap 2996ec35c3 adapt endpoint to new scheme
to be consistent with traefik endpoint and the new scheme we should use `/api` here, too.
@opatut mention as discussed
2021-10-19 23:03:30 +02:00
Paul Bienkowski 7bba46fa52 frontend: show event points with correct zIndex, too (fixes #99) 2021-10-05 16:06:15 +02:00
Paul Bienkowski 305850ea63 frontend: fix z-order of layers on track page 2021-09-27 20:50:56 +02:00
Paul Bienkowski 59651d3cb9 add production setup 2021-09-27 18:54:02 +02:00
Paul Bienkowski c7202eadd2 frontend: load config.json at runtime from public dir, to be overwritable 2021-09-14 22:02:57 +02:00
Paul Bienkowski 85d93fe598 frontend: add API URL in settings page next to API key, and add copy buttons for both values (fixes #97) 2021-09-14 20:56:24 +02:00
Paul Bienkowski aaea78daf7 frontend: Make home zone configurable 2021-09-12 11:13:03 +02:00
Paul Bienkowski 35fc7193b7 frontend: fix warning about DOM attributes 2021-09-12 11:12:52 +02:00
Paul Bienkowski 14039f30f3 frontend: Make tileset and zoom levels configurable (fixes #83) 2021-09-12 11:05:42 +02:00
Paul Bienkowski 88937b2f49 add API and Frontend version in frontend footer (fixes #81) 2021-09-12 10:37:40 +02:00
Paul Bienkowski 00eece8406 frontend: update manifest and description 2021-05-19 19:19:21 +02:00
Paul Bienkowski 1dce9aba60 frontend: Add arrows to indicate track direction (close #41) 2021-05-15 13:11:42 +02:00
Paul Bienkowski 54d0a56b9a Show per-user stats in profile settings 2021-05-14 20:44:36 +02:00
Paul Bienkowski 630f8ca10c Remove debug log 2021-05-14 20:17:02 +02:00
Paul Bienkowski b34fbb1ee7 Add date range to statistics 2021-05-14 20:16:05 +02:00
Paul Bienkowski 420b4f2a85 frontend: Style stats according to styleguide 2021-05-14 19:41:07 +02:00
Paul Bienkowski 41313f6f63 frontend: Workaround for prop warning on <a> tag 2021-05-14 19:34:21 +02:00
Paul Bienkowski 5c28f1d344 Make stats calculation more robust, ignore obvious errors 2021-05-14 19:25:27 +02:00
Paul Bienkowski 95a28ec457 Some eslint and typescript 2021-05-14 19:25:11 +02:00
Paul Bienkowski 9b633a3c88 Update frontend dependencies 2021-05-14 19:24:29 +02:00
Paul Bienkowski f2e6c062d3 Improve logout mechanism 2021-05-14 19:24:17 +02:00
Paul Bienkowski 94dae5e88a frontend: Fix page numbering using comma values at some point (fix #76) 2021-05-14 16:58:52 +02:00
Paul Bienkowski 16b89ce08b Disable npm update message when building docker files (resolves #75) 2021-05-14 09:19:45 +02:00
Paul Bienkowski bc682a22a1 Fix .dockerignore by moving them into the actual contexts 2021-05-14 09:19:25 +02:00
Paul Bienkowski ce2a27ed51 Expose all generated JSON files in one endpoint, and use actual track data for rendering the blue line (fixes #72, fixes #64) 2021-05-13 20:32:55 +02:00
Paul Bienkowski cf30037a85 frontend: Show actual track duration, not dummy data from testing the code 2021-05-13 20:20:41 +02:00
Paul Bienkowski 798ff9fb1b frontend: ignore drop event in form, trigger upload instead of file input dialog (fixes #74, maybe) 2021-05-13 20:17:21 +02:00
Paul Bienkowski 3d8238307a frontend: More compact menu 2021-05-09 20:33:57 +02:00
Paul Bienkowski a4756873e5 frontend: Add footer, improve menu, add links to privacy policy and imprint 2021-05-09 15:38:18 +02:00
Paul Bienkowski c380b0d1fb frontend: Some more styling 2021-05-07 18:10:15 +02:00
Paul Bienkowski 73e855550c frontend: Customize style, start using styleguide 2021-05-07 17:29:26 +02:00
Paul Bienkowski 34042ede54 feat: stop using smiley default avatar, use first letter of name on colored square as fallback 2021-05-07 14:57:54 +02:00
Paul Bienkowski 817de8fae5 frontend: Add download button for original file 2021-05-01 13:31:03 +02:00
Paul Bienkowski c32a475b96 frontend: Downgrade to node:14, chokidar was not availble 2021-05-01 13:28:42 +02:00
Paul Bienkowski 760ea4c013 frontend: Include roads.json in homepage, and use grayscale theme for maps 2021-05-01 11:19:34 +02:00
Paul Bienkowski 912aebb9d5 frontend: format a file 2021-05-01 11:18:21 +02:00
Dennis Boldt 4f5177a5fc Bump node to 15.14 + add .nvmrc 2021-04-29 21:43:40 +02:00
Dennis Boldt 7cdf6b2d17 hrs -> hours 2021-04-29 21:30:04 +02:00
Dennis Boldt 09dfe24045 Link OpenBikeSensor text in headline as well. 2021-04-29 21:29:18 +02:00
Paul Bienkowski 840ecc6d6f Rename track.visible -> track.public 2021-04-19 21:57:40 +02:00
Paul Bienkowski 13b6dd8691 Fix wording for missing public tracks 2021-04-19 21:53:35 +02:00
Paul Bienkowski bca3582e30 Add worker, queue, redis, and call python script to import files 2021-04-19 21:38:54 +02:00
Paul Bienkowski e1a9898fd9 frontend: Add apiUrl to upload request URL 2021-02-28 22:42:32 +01:00
Paul Bienkowski a0d9c2dbc4 frontend: Add API url config 2021-02-28 22:21:38 +01:00
Paul Bienkowski e10b29e0c6 frontend: Configure base-href and router with PUBLIC_URL 2021-02-28 22:11:32 +01:00
Paul Bienkowski 2c5ba1d5a0 frontend: Make config file overridable 2021-02-28 20:29:47 +01:00
Paul Bienkowski 4779965377 api: Move OAuth2.0 client definitions to config file, from MongoDB 2021-02-28 20:19:08 +01:00
Paul Bienkowski cc4679d048 frontend: Replace tracks with new file through upload in edit page 2021-02-26 23:10:10 +01:00
Paul Bienkowski 40882549f7 frontend: Small UI improvements 2021-02-26 22:50:33 +01:00
Paul Bienkowski 7ab7e4918e frontend: Track editor and redirects on errors 2021-02-26 21:57:36 +01:00
Paul Bienkowski eef5deca70 frontend: Format and lint 2021-02-26 20:09:52 +01:00
Paul Bienkowski 6a1b193e06 frontend: Add favicons 2021-02-26 20:09:39 +01:00
Paul Bienkowski d1d7921808 frontend: Settings page 2021-02-23 21:52:57 +01:00
Paul Bienkowski 12bd42a3bb Implement and enforce PKCE 2021-02-23 19:32:08 +01:00
Paul Bienkowski 5ce2947fea frontend,api: Expose authorization server metadata and use it 2021-02-23 18:26:37 +01:00
Paul Bienkowski 6ba29e68a0 frontend: Better style for welcome map on mobile 2021-02-21 11:34:10 +01:00
Paul Bienkowski 1e0544802f Oauth code flow in API and frontend 2021-02-21 11:22:22 +01:00
Paul Bienkowski eb7663e2e9 frontend: Add frame of registration page 2021-02-18 09:25:10 +01:00
Paul Bienkowski 94b466e6d8 frontend: Some linting 2021-02-17 23:12:44 +01:00
Paul Bienkowski 146c5e8e66 Move and unify readme 2021-02-17 22:58:18 +01:00
Paul Bienkowski 1fbd471341 frontend: Add "name" and "email" field names to login form 2021-02-17 22:30:54 +01:00
Paul Bienkowski 1ab51fa578 Move docker to top level, include frontend 2021-02-17 22:19:42 +01:00
Paul Bienkowski 08e59cfe17 Move everything into "frontend" folder, for this will be a monorepo 2021-02-17 21:50:47 +01:00