Tobias Speicher
be878df097
Replace deprecated String.prototype.substr()
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-02-20 22:11:11 +01:00
Tom Hughes
9bf0dee51a
Update path to js-cookie
2021-07-27 08:18:53 +01:00
Milos Brzakovic
9fe45bdfe3
iD api url update
2021-07-26 19:11:33 +02:00
Tom Hughes
b4a1e41968
Switch web site to use OAuth 2
2021-06-27 19:00:36 +01:00
Andy Allan
c8f0a81eb7
Rework sidebar to use padding on the sidebar_content div
...
This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities.
The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration.
This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
2021-06-16 15:45:58 +01:00
Andy Allan
c2587b5b57
Rework the routing credit to use a bootstrap class
...
The padding is unnecessary given it's in a paragraph anyway.
2021-06-16 13:28:33 +01:00
Tom Hughes
0a15112423
Mark javascript issued cookies with SameSite=Lax
2021-05-17 19:06:43 +01:00
Tom Hughes
32cc04fa5c
Switch to using js-cookie to manage cookies from javascript
2021-05-17 18:57:48 +01:00
Tom Hughes
f91dd6afc2
Tighten up cookie security
...
Mark all cookies as Secure, and the cookies which are not
modified client side as HttpOnly.
2021-02-19 18:18:13 +00:00
Andy Allan
501e256419
Refactor the share panel to use bootstrap forms
2021-02-17 17:17:19 +00:00
Andy Allan
5c086dad6e
Use bootstrap form-check for overlay selection
2021-02-17 17:05:49 +00:00
Tom Hughes
80f576a29b
Fix avatar mode update on file change
2021-02-16 17:12:34 +00:00
Tom Hughes
d15041f847
Use POST to submit OpenID login form
...
Fixes #3084
2021-02-06 15:04:33 +00:00
Tucker Chapman
d257e67842
Remove conditional for polyline layer
...
When a user searches for a route and one is not found the polyline
layer is removed - if they then change the mode of transportation the
event listener will not reroute if there is no polyline layer.
This commit removes the conditional that prevents the routing code from
re-running after the polyline has been removed.
Fixes #3050
Closes #3055
2021-01-28 10:31:33 +00:00
Tom Hughes
810e4da85a
Fix locate control popup on the main map to use new translations
...
Fixes #3072
2021-01-27 13:48:54 +00:00
Tom Hughes
8ac2302837
Avoid concatenating text to a translation
...
Fixes #3064
2021-01-21 17:15:27 +00:00
Tom Hughes
4abd9cfcf1
Merge remote-tracking branch 'upstream/pull/2994'
2021-01-13 20:40:48 +00:00
Tom Hughes
0ff89c31e4
Remove both Potlatch versions
...
Fixes #2622
2021-01-05 21:18:45 +00:00
Frédéric Rodrigo
bab39572a1
Add CyclOSM layer
2020-12-06 21:29:36 +01:00
Quincy Morgan
b1694ce39e
Update to iD v2.19.0
2020-10-27 17:46:24 -04:00
Tom Hughes
2f03522c42
Fix close handler for welcome message
2020-10-21 20:51:10 +01:00
Tom Hughes
e05748a9ff
Make embed.js depend on the settings
2020-08-28 09:08:28 +01:00
Tom Hughes
6855616870
Allow CDN URL for the embed page to be configured
2020-08-19 21:44:24 +01:00
Tom Hughes
b74977ba8d
Fix marker paths for embedded map
...
Fixes #2763
2020-08-10 18:20:23 +01:00
Tom Hughes
a78da07f0b
Correct path for mapnik marker images
...
Fixes #2759
2020-08-08 11:00:47 +01:00
Tom Hughes
79447e7549
Replace querystring parser with qs yarn module
2020-08-06 20:51:55 +01:00
Tom Hughes
447c05fcb8
Move jquery.cookie to be a yarn managed asset
2020-08-06 19:28:51 +01:00
Tom Hughes
6db96ae2fe
Move ohauth to be a yarn managed asset
2020-08-06 19:28:51 +01:00
Tom Hughes
916c48fd47
Move leaflet.locatecontrol to be a yarn managed asset
2020-08-06 19:28:51 +01:00
Tom Hughes
4dcedf666c
Move leaflet to be a yarn managed asset
2020-08-06 19:28:51 +01:00
Tom Hughes
5b061ef690
Move jquery.simulate to be a yarn managed asset
2020-08-06 19:19:55 +01:00
Tom Hughes
c24c2e481c
Merge remote-tracking branch 'upstream/pull/2667'
2020-08-05 21:50:08 +01:00
Peter
5444506976
turn_costs=true only for car
...
I know there was a bit forth and back in #2695 and my last recommendation was to use turn_costs=true. This was not intended for bike and foot.
2020-07-27 13:04:52 +02:00
Andy Allan
56fdf73b65
Use the worldCopyJump option for leaflet overlays
...
This means that if you pan to a 'copy' of the world, the overlays
reappear on that copy.
Fixes #2040
2020-07-22 17:54:10 +02:00
Quincy Morgan
de3ddafcd2
Update iD initialization for v2.18.1
2020-07-20 16:14:28 -04:00
Tom Hughes
7986576b0e
Fix eslint warnings
2020-07-19 19:54:17 +01:00
Tom Hughes
2898633e72
Drop ch.disable from graphhopper parameters
2020-07-19 19:38:10 +01:00
Tom Hughes
a9b00e16e7
Merge remote-tracking branch 'upstream/pull/2695'
2020-07-16 19:30:55 +01:00
Tom Hughes
8a013c0a96
Merge remote-tracking branch 'upstream/pull/2711'
2020-07-15 21:31:18 +01:00
Andy Allan
0c098c3a1d
Convert data feature warning to use bootstrap alert
...
Also rearrange dialog to fit with standard sidebar layouts, so that
the close icon and load buttons are not within the paragraph.
There may be a better way to construct this!
2020-07-15 19:34:19 +02:00
Andy Allan
e157b37ce5
Rename nav-related body classes
...
This makes it clearer that the classes are only for navigation menu
matters. Other things should be done on media queries, or ideally,
using bootstrap components like grids.
This has a side effect of removing the smaller font size from the
body when the navigation menu is in the small-nav state.
2020-07-15 11:40:02 +02:00
Tom Hughes
92a4c1feff
Fix eslint warning
2020-07-08 19:25:03 +01:00
Tom Hughes
efa2c20bff
Merge remote-tracking branch 'upstream/pull/2696'
2020-07-08 19:09:55 +01:00
Andy Allan
1977e66ace
Use bootstrap text-muted in place of custom deemphasze class
...
This avoids changing anything related to forms, since they will be
switched over to bootstrap separately.
2020-07-08 18:30:15 +02:00
Simon Poole
85cb71702e
Tuen on turn restriction support for graphhopper
...
No way of actually testing if this works, but it is based on https://docs.graphhopper.com/#operation/getRoute/parameters/point and https://www.graphhopper.com/blog/2020/07/08/turn-restriction-support-for-graphhoppers-directions-api/
2020-07-08 16:04:11 +02:00
Andy Allan
8d2271699b
Use bootstrap_form as the formbuilder for GPX upload form
...
This also uses the recommended bs-custom-file-input javascript plugin
for the file input control.
2020-07-01 17:23:02 +02:00
Andy Allan
627f2493fa
Refactor away from global form control styling
...
This enables forms to be converted one-by-one to bootstrap. Without this
refactoring, these global styles interfere with form control styling from
bootstrap.
The rearrangement of the search and directions styling is to solve CSS selector specitivity issues.
2020-07-01 17:23:02 +02:00
Paul Norman
fb4aa31048
Add ÖPNVKarte layer
2020-06-25 20:47:25 -07:00
Simon Legner
83bb627da6
Fix typo in comment
...
Closes #2576
2020-04-01 00:11:19 +01:00
Tom Hughes
3184bec5ae
Fix some untranslateable strings
...
Fixes #2565
2020-03-20 17:22:23 +00:00