Commit Graph

237 Commits

Author SHA1 Message Date
Lucas Verney 14e28694e0 Use dismissible alerts instead of dialogs to notify about errors 2018-11-07 23:18:45 +01:00
Lucas Verney 22c68454ec Rework the way Map is initialized 2018-11-07 22:25:31 +01:00
Lucas Verney 944b9842cb Add a search modal, fix for #52 2018-11-07 20:04:00 +01:00
Lucas Verney b5e54b0b90 Bump dependencies versions 2018-11-07 20:00:29 +01:00
Lucas Verney f2e6091402 Add support for work Opendata in Hauts-de-Seine 2018-11-05 20:07:24 +01:00
Lucas Verney f6cb9a3bc0 No caching in SW in development mode 2018-11-01 19:25:59 +01:00
Lucas Verney c5b64cfc72 Rework opendata import script
* Homogeneize the handling of opendata files.
* Use a clear distinction between geometry (the position of the report)
and geo_shape (the shape of the report area).
* Keep track of OpenData sources, fix #51.
* Keep track of the area covered by a given report.
2018-11-01 18:04:48 +01:00
Lucas Verney 20dd75b152 Add a source field to keep track of the source of the reports 2018-11-01 15:43:34 +01:00
Lucas Verney 903ad14bbc Add a service worker and cache assets
Assets are served from the local cache preferably. They are fetched from
the network if not available. This new addition also enables the "Add to
homescreen" in Chrome/Chromium.

Fix #22.
2018-10-26 14:15:56 +02:00
Lucas Verney 80b650c2a9 Delete reports when downvoting them 2018-10-25 11:27:54 +02:00
Lucas Verney 34e0fec016 Bump version in constants.js 2018-10-25 11:13:35 +02:00
Lucas Verney 04ff61dbdd Don't log store mutations in prod build 2018-10-22 11:20:27 +02:00
Lucas Verney 93b0ec340e Hide speed badge when setting map center manually 2018-10-21 23:42:36 +02:00
Lucas Verney 8a52c94fbb Bump translations 2018-10-18 21:19:17 +02:00
Lucas Verney 1ca9922b1b Do not show speed badge when manually picking a location 2018-10-18 20:05:48 +02:00
Lucas Verney 1733f80773 Use Sicoval opendata directly from Sicoval website 2018-10-18 19:36:54 +02:00
Lucas Verney 824de12b74 Forgot Toulouse in OpenData sources 2018-10-18 16:44:50 +02:00
Lucas Verney 1e7b2b363a Improve OpenData handling for roadwork, clear mention in About section and add OpenData for Loiret 2018-10-18 15:03:33 +02:00
Lucas Verney bbca4d88ea Handle value conversion in filtering API 2018-10-18 09:39:53 +02:00
Lucas Verney 4345c3f4e3 Drop the active reports API route and use API filtering abilities
instead

Fix for #49.
2018-10-18 09:31:52 +02:00
Lucas Verney 0f03700f71 Enhanced filtering abilities in the API
Introduce new operators and let user combine filters.
2018-10-18 09:01:47 +02:00
Lucas Verney 3f86fc21af Bump translations 2018-10-17 21:42:02 +02:00
Lucas Verney 9beed09ed0 Improve documentation. Fix #45. 2018-10-17 15:51:06 +02:00
Lucas Verney 06c02f6ece No need for global catchall when fetching reports 2018-10-16 15:15:11 +02:00
Lucas Verney 6f906ec23a Fix #43: Speed badge looking weird on touch devices 2018-10-15 23:54:20 +02:00
Lucas Verney 4ff645cc43 Filter reports returned by the API based on map center
Only keep reports which are around the map center in the data returned
by the server. Filtering is done client-side for privacy reasons.
2018-10-15 09:11:41 +02:00
Lucas Verney 19cbb3165f Better spawn of the notification 2018-09-21 15:11:31 +02:00
Lucas Verney dca0f62394 Add a setting to allow permanent notification or not. 2018-09-21 15:11:31 +02:00
Lucas Verney 04ac3538a4 Basic implementation of notification 2018-09-21 15:11:31 +02:00
Lucas Verney 085f34dbe8 Fix speed unit 2018-09-17 11:53:03 +02:00
Lucas Verney 2732f7eba3 Review contributing/code of conduct/readme doc 2018-09-14 15:56:23 +02:00
Lucas Verney 0c27768e91 Translate the rotate button tooltip 2018-09-14 15:27:03 +02:00
Lucas Verney 9b5487499a Various Map fixes
* Correctly set the position marker style at initialization.
* Fix for the position marker not rotating with the view.
* Fix for the recenter button not showing up on zooming.
2018-09-13 16:34:52 +02:00
Lucas Verney 03a0e84f58 Fix marker anchors 2018-09-13 16:04:01 +02:00
Lucas Verney b168fe2b9e Fix a bug with manual address selection 2018-09-13 15:52:39 +02:00
Lucas Verney e5838996ea Import OpenData roadworks files into the database
Currently importing from:
* Lille
* Lyon
* Montpellier
* Nancy
* Paris
* Rennes
* Seine-Saint-Denis
* Sicoval (south of Toulouse)
* Toulouse
* Versailles

Partially fixes #1.
2018-09-13 00:11:28 +02:00
Lucas Verney a7792f5dbb Rework upvotes
Upvotes now reset the `datetime` field of the report, making it appear
as if it was newly reported. They also extend the lifetime for accidents
and GCUM.

This introduces database migrations as well.

Closes https://framagit.org/phyks/cyclassist/issues/41.
2018-09-12 13:51:53 +02:00
Lucas Verney 1139dc33c5 Add screenshots in README 2018-09-11 15:50:51 +02:00
Lucas Verney 34a1a93a53 Show speed to user, fix for #37. 2018-09-11 14:54:30 +02:00
Lucas Verney 1c67f6dc1e Add a build:dev command 2018-09-11 14:54:12 +02:00
Lucas Verney 42779844a7 Prevent dismissed report details from immediately reopening 2018-09-04 15:49:02 +02:00
Lucas Verney aaa8998466 Use plain Audio API, drop Howler dependency 2018-09-04 15:27:50 +02:00
Lucas Verney f5fdb2aeb0 Drop xmlbuilder from gps-to-gpx dep 2018-09-04 14:38:32 +02:00
Lucas Verney 7557d3b64c Drop useless Babel plugins 2018-09-04 14:38:32 +02:00
Lucas Verney 25d28da6d8 Rework browsers list and PostCSS management 2018-09-04 14:38:32 +02:00
Lucas Verney 012c6fd1be Bump version 2018-08-29 18:59:22 +02:00
Lucas Verney 168f1b122c Fix a bug with mock GPX traces and delay
`Date.parse` returns milliseconds timestamp, not a `Date` object.
2018-08-29 18:57:55 +02:00
Lucas Verney f0fc8f287d Drop Moment.JS, use custom small lib for relative dates and formatting 2018-08-29 12:08:18 +02:00
Lucas Verney 2ccc4110d6 Restore the correct spaces before double punctuation 2018-08-28 20:48:50 +02:00
Lucas Verney 61828e9ef2 Bump dependencies, use Babel 7 useBuiltIns usage to reduce size of chunks 2018-08-28 17:49:54 +02:00