Commit graph

582 commits

Author SHA1 Message Date
Holger Jeromin
0f76726392 Migrate eslint config to esmodules
And upgrade `@stylistic/eslint-plugin-js` to `4.0.x`

closes #5704
2025-02-19 09:54:07 +01:00
Tom Hughes
79f5ccca31 Fix rubocop warnings 2025-02-18 20:25:55 +00:00
Tom Hughes
881d0b11b5 Avoid modifying constant strings
This fixes a ruby 3.4 warning about strings that will
be frozen by default in a future release.
2025-02-18 20:14:01 +00:00
Tom Hughes
5eed367f71 Avoid redefining object_id method
This fixes a ruby 3.4 warning.
2025-02-18 20:13:31 +00:00
Anton Khorev
6569ed24e4 Add user block api call 2025-02-15 19:20:09 +03:00
Tom Hughes
5047ec403d Merge remote-tracking branch 'upstream/pull/5233' 2025-02-15 15:22:36 +00:00
Anton Khorev
2d46b44872 Add write_changeset_comments scope 2025-02-14 00:17:45 +03:00
Tom Hughes
275228dec7 Move eslint ignore rules to the configuration file
Instead of having the rake task select which files to check, just
check the whole tree and have eslint ignore third party files and
generated files that we don't control.
2025-02-09 19:38:47 +00:00
Marwin Hochfelsner
bc18e85d5c Add eslint-plugin-erb for .js.erb file linting
* Add eslint-plugin-erb to provide linting of our .js.erb files
* Lint osm.js.erb and API-ify OSM.params()
---------
Co-authored-by: Andy Allan <git@gravitystorm.co.uk>
2025-02-05 17:00:38 +01:00
Anton Khorev
615a669345 Convert Auth.providers into array 2025-01-03 14:09:53 +03:00
Tom Hughes
2a5e35c716 Convert social share helper library into a real helper 2024-12-18 15:07:08 +00:00
Andy Allan
a012c5ecee
Merge pull request #5411 from tomhughes/bluesky-sharing
Add Bluesky to social sharing buttons
2024-12-18 15:06:18 +00:00
Tom Hughes
a73f9a2a3b Pass correct URL to Facebook sharing 2024-12-18 14:50:49 +00:00
Tom Hughes
7a2e53c225 Add Bluesky to social sharing buttons 2024-12-18 14:47:18 +00:00
Anton Khorev
7e7ede890e Merge branch 'pull/4985' 2024-12-18 16:35:01 +03:00
Emin Kocan
95e1aff234 Add social sharing functionality 2024-12-17 23:36:47 +01:00
Tom Hughes
e15a92a302 Fix new rubocop warnings 2024-11-05 18:23:47 +00:00
Tom Hughes
99f220cf69 Fix new rubocop warnings 2024-10-15 18:25:30 +01:00
Andy Allan
5720968323
Merge pull request #5070 from tomhughes/rails72
Update to rails 7.2.0
2024-10-02 17:00:26 +01:00
Anton Khorev
6c6d306de9 Use stored lats/lons to draw trace images 2024-09-26 00:28:39 +03:00
Anton Khorev
ba732128a7 Store latitudes and longitudes during gpx parsing 2024-09-26 00:28:39 +03:00
Tom Hughes
7af9a60ecc Merge remote-tracking branch 'upstream/pull/5231' 2024-09-22 17:07:45 +01:00
mmd-osm
ac42afefcd OCI: ignore invalid replacement token 2024-09-21 09:17:03 +02:00
Anton Khorev
f2e302c6a8 Suppress writing xml parse errors to stderr 2024-09-20 16:36:30 +03:00
Tom Hughes
6789fc3081 Drop support for ruby 3.0
Also add Ubuntu 24.04 and drop 20.04 as 24.04 is needed for
ruby 3.1 without rvm so we should test it.
2024-09-17 20:39:22 +01:00
Anton Khorev
da28c0e561 Remove Oauth::OAUTH2_SCOPES
After OAuth1 was removed, all scopes are OAuth2 scopes. Former OAuth2-only scopes now can be combined with the rest.
2024-09-06 09:14:54 +03:00
Tom Hughes
17bc0853a0 Drop support for OAuth 1 2024-09-01 03:43:02 +03:00
Tom Hughes
5f2a5cadcb Merge remote-tracking branch 'upstream/pull/4565' 2024-08-28 18:59:09 +01:00
Andy Allan
c073f15f5c
Merge pull request #5060 from tomhughes/rake-expiry
Move token expiry to a rake task
2024-08-28 14:54:31 +01:00
Tom Hughes
d17b5b6d4f Move token expiry to a rake task 2024-08-08 20:45:10 +01:00
Anton Khorev
6be766d015 Skip paragraphs with no text when looking for richtext description 2024-08-07 08:02:19 +03:00
Anton Khorev
88a7ca5625 Truncate long richtext descriptions 2024-08-07 08:02:06 +03:00
Anton Khorev
e5279dacde Detect <p> as richtext paragraph 2024-08-07 08:01:48 +03:00
Anton Khorev
aa8dd75e5e Use first paragraph as richtext description 2024-08-07 08:01:48 +03:00
Anton Khorev
097a414b22 Add a blank richtext description method 2024-08-07 08:01:14 +03:00
Anton Khorev
69a2d5f4d4 Add image_alt accessor to rich text 2024-08-05 05:08:44 +03:00
Anton Khorev
37edcb113a Skip images with missing src 2024-08-02 20:19:10 +03:00
Anton Khorev
25aea657e2 Detect <img> images in markdown rich text 2024-08-02 20:04:59 +03:00
Milan Cvetkovic
0db47f3f76 Add Messages API
as discussed in [Issue #4509](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal)
and documented in [Messaging API reference](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal)
2024-07-29 10:42:38 +00:00
Tom Hughes
3debc151a8 Only load the english resources for community index if they exist 2024-07-20 12:10:29 +01:00
Tom Hughes
f9ea6aa718 Fallback to english locale when looking for community index templates
Starting with the v5.8.0 release osm-community-index has removed
strings from translations which are identical to the engish version
which mostly causes no problem except for some of the template values
that don't involve any localised text.
2024-07-18 18:00:19 +01:00
Anton Khorev
c3ad502f90 Remove 'None' from auth providers 2024-07-18 15:30:08 +03:00
Tom Hughes
f2ca25b75c Use faraday http client for nominatim lookups 2024-07-09 18:18:09 +01:00
Tom Hughes
3c00ed8dc3 Set a custom user agent for the faraday http client 2024-07-09 18:18:09 +01:00
Tom Hughes
c38e3d6144 Enforce changeset size limit for API calls which make changes 2024-06-19 00:46:34 +01:00
Tom Hughes
f61ac2586f Add support for per-user limits on the size of changes that can be made 2024-06-19 00:46:34 +01:00
Anton Khorev
c7353c9ac1 Add image method to get first image from rich text 2024-06-06 17:09:21 +03:00
Anton Khorev
b072c2935f Add titles to changeset element page links 2024-06-03 14:07:23 +03:00
Tom Hughes
d3d0da0328 Fix new rubocop warnings 2024-05-28 17:39:33 +01:00
Tom Hughes
938037d6a2 Update eslint to v9 2024-04-07 12:13:06 +01:00