Commit graph

50 commits

Author SHA1 Message Date
Marcus Jaschen
5f0f155e5f
Improve typography for "What's new?" dialog (#391)
- remove <h1> (redundant)
- adjust font-sizes and margins for headings (h2, h3)
2021-03-26 08:28:40 +01:00
Gautier P
1a695db333
Add What's new modal (#372) 2021-02-23 18:27:08 +01:00
Norbert Renner
0ee37f557a
Add Babel and core-js & regenerator polyfills (#367) 2021-02-12 10:07:02 +01:00
Gautier P
080049fe7d
Allow to make release without incrementing tag (#366) 2021-02-08 19:42:59 +01:00
Norbert Renner
3037fb8f17 Use TopoJSON for smaller files 2021-01-22 11:50:27 +01:00
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries (#359) 2021-01-15 22:29:20 +01:00
Gautier P
d2452e6222 Remove tether 2020-12-05 13:04:48 +01:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Gautier P
652de90c06 Remove unused variable 2020-09-26 08:39:46 +02:00
Marcus Jaschen
fc54c65e23 Add sidebar tab with route analysis data
- adds a new analysis tab in the sidebar
- the analysis tab shows length distribution for different way types, surface, and smoothness
- table rows can be hovered/clicked to highlight the according segments on the map (similar behaviour as the detailed data table)
- localization is implemented for `de` and `en`
- the method for finding segment edges was extracted from `js/control/TrackMessages.js` into `js/util/TrackEdges.js` as it's used in the new analysis class too (the Gulp config was changed to reflect that)

Notes:

I had the idea to use the *DataTable* plugin for rendering the tables but decided against it. The only meaningful way to sort such a table is by the length column and that's already the case. So it's just three plain, old HTML tables, rendered by jQuery.

For meaningful statistics the `processUnusedTags` setting has to be enabled in the routing profile. Only in this case the BRouter backend includes all needed tags (`highway`, `surface`, and `smoothness`) for *every* route segment in the response. I’ve enabled that setting for all profiles at my BRouter-web instance at <https://brouter.m11n.de/>.
2020-06-07 16:56:50 +02:00
Norbert Renner
4bd3898f4f Disable opening browser on gulp serve 2020-04-14 18:56:25 +02:00
Norbert Renner
12c58b70fa Add standalone run.sh and configure localhost 2019-12-30 20:52:55 +01:00
Norbert Renner
057fd85a32 Add gulp task to generate a standalone release zip from brouter repo 2019-12-19 21:27:31 +01:00
Gautier Pelloux-Prayer
998dfaee91 Reload application on locales change 2019-10-10 21:07:46 +02:00
Gautier Pelloux-Prayer
afbd93c61d Rework gulpfile log command 2019-10-10 21:07:44 +02:00
Gautier Pelloux-Prayer
b5edb6aa0c gulp serve must depends on debug first 2019-10-02 19:03:17 +02:00
Gautier Pelloux-Prayer
6b2bc7028b Replace watch by serve command with livereload 2019-09-02 20:05:11 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Norbert Renner
e694629f8a Fix release tasks after upgrade to Gulp 4 (#210)
Completion always needs to be signalled now, use the callback.

'release:init' and 'clean' called twice: 'series' is explicit execution,
not a dependency, implicit duplicate dependency resolving not supported
anymore. Remove 'series' at tasks, solely use seperate 'series' for
execution order.

'process.exit' gets "tasks did not complete" complaint, error code
ignored. Use callback with error instead.
2019-06-29 10:27:46 +02:00
Phyks (Lucas Verney)
0068ab857f Fix #210: Issues with gulp4 2019-06-21 11:54:57 +02:00
Phyks (Lucas Verney)
057104331b Bump gulp to version 4.0.2. 2019-06-20 17:26:18 +02:00
Gautier Pelloux-Prayer
6e3ee4fd32 Use leaflet.restoreview from registry 2019-06-16 18:44:07 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
d8886e74fd Fix missing layer keys after extracting layer configs 2019-05-10 12:32:03 +02:00
Norbert Renner
5f89287a97 Add missing return in the hope to fix #140 (untested) 2019-05-08 19:27:54 +02:00
Norbert Renner
468b20ecc2 Add license references 2019-04-30 20:42:17 +02:00
Norbert Renner
753de596c6 Refactor layer configs into separate files (#146) 2019-04-27 15:18:36 +02:00
Norbert Renner
e0120239a3 Format spaces 2019-04-27 12:50:30 +02:00
Norbert Renner
944ccd6cfa Make default layers customizable 2019-03-22 19:50:45 +01:00
Norbert Renner
182edb2ee1 Extract all into file per layer, concatenate to single file 2019-03-19 20:27:56 +01:00
Norbert Renner
c2369acde0 Add additional layers from own definitions
- in JOSM format with some exceptions
- basic WMS support
- API key handling
2019-03-16 13:09:14 +01:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Gautier Pelloux-Prayer
ed79f03ebe Replace bower with npm (#116) 2019-02-13 22:32:43 +01:00
Norbert Renner
43357eee0d Improve CSS URL rebasing for images and fonts
because of jsTree; also replace concat-css and minify-css with more
common clean-css
2019-02-11 19:02:27 +01:00
Gautier Pelloux-Prayer
59a74fc407 Fix release script 2019-01-24 13:37:22 +01:00
Norbert Renner
7f4a0bfe3b Rename release zip 2018-10-11 10:56:39 +02:00
Norbert Renner
dfb1ea0674 Fix typo 2018-10-10 19:52:06 +02:00
Norbert Renner
ed07a6c3c3 Add autoprefixer
Mostly for flexbox, including leaflet-sidebar-v2 custom fork.

Unsure about Browsers to support, browserslist is a combination of:
- 'defaults', see https://github.com/ai/browserslist#queries
- "support all of the browsers that can display flexbox"
  https://davidwalsh.name/goodbye-vendor-prefixes
2018-03-20 19:29:29 +01:00
Norbert Renner
6c8e4fddca Add gulp css inject 2018-03-08 11:47:44 +01:00
Norbert Renner
cd6c1bdc54 Leaflet 1.0: revert touch style in desktop browsers, fixes #69 2017-08-07 11:26:49 +02:00
Rodolphe Pelloux-Prayer
aaa97495fd
feat: add a gulp command for release
Signed-off-by: Rodolphe Pelloux-Prayer <rodolphe@damsy.net>
2017-05-05 16:15:02 +02:00
Norbert Renner
ee91d055bc Update Leaflet plugins + Leaflet 1.0.3 2017-02-11 20:50:53 +01:00
Norbert Renner
743892bba4 restore old gulp debug task (rename to log)
was overridden by debug flag
2017-02-10 11:26:34 +01:00
Gautier Pelloux-Prayer
daa34d8c0b gulp: watch for css changes. Fix #57 2016-11-30 20:07:04 +01:00
Gautier Pelloux-Prayer
86b7bc186c gulp: don't uglify in debug mode 2016-11-30 20:04:24 +01:00
Norbert Renner
b108efae5c switch icons to Font Awesome (for now) 2016-10-01 12:30:30 +02:00
Norbert Renner
49ac7f5127 refactoring: extract map/layer init into separate file 2016-08-05 12:12:00 +02:00
Norbert Renner
8bd8fc3256 config switch for transit demo 2016-06-03 13:28:01 +02:00
Norbert Renner
8457fd4a85 add gulp-inject for debugging 2015-04-16 21:12:29 +02:00
Norbert Renner
b808fbe44e build to single distributables with gulp, check-in dist not bower_components 2015-03-29 18:55:02 +02:00