608 Commits

Author SHA1 Message Date
4116ebf421 Add a task to register iD and web OAuth apps 2025-07-18 11:03:04 +03:00
3cba2a6cf1 Allow word separator to consist of multiple spaces
Uses negative lookbehind regexp, because .truncate calls .rindex. See ruby String#rindex method for details:

https://ruby-doc.org/3.2.6/String.html#method-i-rindex
2025-05-31 18:53:10 +03:00
7d9a45f33a Truncate rich text descriptions at word boundaries if not too short 2025-05-31 18:42:04 +03:00
8dd7eb805f Rename DESCRIPTION_MAX_LENGTH 2025-05-31 18:12:15 +03:00
706d167f08 Remove legacy OpenID login 2025-05-25 21:45:54 +02:00
ab11437302 Use I18n.exists? to filter available locales 2025-05-12 17:50:31 +03:00
81c66c2ddc Merge remote-tracking branch 'upstream/pull/5840' 2025-04-24 19:22:31 +01:00
b0e9e4a47b Fix new rubocop warnings 2025-04-22 18:06:38 +01:00
9945f10eed Merge remote-tracking branch 'upstream/pull/5121' 2025-04-16 18:14:47 +01:00
738d1f97fe Provide a truncated view of recent diaries 2025-04-16 15:33:26 +04:00
adb1b95de0 Put map key presence in js layer definitions 2025-04-12 14:59:16 +02:00
9feb1f4b40 add dir="auto" to linkified links and replicate openstreetmap#5850 in ApplicationHelper 2025-04-04 15:36:17 +03:00
14a0df4bb5 make markdown bidirectional with dir="auto" 2025-04-03 18:40:51 +03:00
dfd67489c9 Remove /wiki prefix from wiki urls in linkify 2025-03-28 05:45:16 +03:00
7a64e03a24 Merge remote-tracking branch 'upstream/pull/5850' 2025-03-27 17:30:12 +00:00
d04bbae47a Merge remote-tracking branch 'upstream/pull/5855' 2025-03-27 17:27:40 +00:00
459daa030e Shorten matching wiki urls in linkify 2025-03-27 17:23:12 +03:00
38517589ab Remove extra sanitize after simple_format RichText::HTML
simple_format already calls sanitize internally. We don't call sanitize again from a similar place of RichText::Text.
2025-03-27 04:29:31 +03:00
8cf1f5ff5e Remove TagHelper include from RichText module 2025-03-27 03:47:32 +03:00
cc06ce4c8f Shorten matching urls in linkify 2025-03-25 06:14:40 +03:00
d94a5a24b0 Remove html-safe/unsafe branches from rich text linkify
Rinku outputs html. It would make no sense to escape Rinku's output, the output should be safe when it's created. To make sure that it's safe, we need to escape the input. As it is currently used in osm-website, the input is already html-safe and escaping does nothing. However it's safer to escape anyway in case the future usage changes.
2025-03-25 03:53:27 +03:00
fc8c7403cd add dir="auto" to paragraphs of formatted text 2025-03-23 15:57:47 +00:00
9e3f9aa353 Fix new rubocop warnings 2025-03-18 18:21:40 +00:00
6ecfab9027 Put api keys directly in js layer definitions
Co-authored-by: Anton Khorev <tony29@yandex.ru>
2025-03-16 18:24:06 +01:00
a52558ecc4 Switch to using annotaterb for annotations 2025-02-28 17:22:54 +00:00
2de26d54ef Update minimum ruby version to 3.2 2025-02-21 19:48:23 +00:00
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
79f5ccca31 Fix rubocop warnings 2025-02-18 20:25:55 +00:00
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
5eed367f71 Avoid redefining object_id method
This fixes a ruby 3.4 warning.
2025-02-18 20:13:31 +00:00
6569ed24e4 Add user block api call 2025-02-15 19:20:09 +03:00
5047ec403d Merge remote-tracking branch 'upstream/pull/5233' 2025-02-15 15:22:36 +00:00
2d46b44872 Add write_changeset_comments scope 2025-02-14 00:17:45 +03:00
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
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
615a669345 Convert Auth.providers into array 2025-01-03 14:09:53 +03:00
2a5e35c716 Convert social share helper library into a real helper 2024-12-18 15:07:08 +00:00
a012c5ecee Merge pull request #5411 from tomhughes/bluesky-sharing
Add Bluesky to social sharing buttons
2024-12-18 15:06:18 +00:00
a73f9a2a3b Pass correct URL to Facebook sharing 2024-12-18 14:50:49 +00:00
7a2e53c225 Add Bluesky to social sharing buttons 2024-12-18 14:47:18 +00:00
7e7ede890e Merge branch 'pull/4985' 2024-12-18 16:35:01 +03:00
95e1aff234 Add social sharing functionality 2024-12-17 23:36:47 +01:00
e15a92a302 Fix new rubocop warnings 2024-11-05 18:23:47 +00:00
99f220cf69 Fix new rubocop warnings 2024-10-15 18:25:30 +01:00
5720968323 Merge pull request #5070 from tomhughes/rails72
Update to rails 7.2.0
2024-10-02 17:00:26 +01:00
6c6d306de9 Use stored lats/lons to draw trace images 2024-09-26 00:28:39 +03:00
ba732128a7 Store latitudes and longitudes during gpx parsing 2024-09-26 00:28:39 +03:00
7af9a60ecc Merge remote-tracking branch 'upstream/pull/5231' 2024-09-22 17:07:45 +01:00
ac42afefcd OCI: ignore invalid replacement token 2024-09-21 09:17:03 +02:00
f2e302c6a8 Suppress writing xml parse errors to stderr 2024-09-20 16:36:30 +03:00