Commit Graph

2160 Commits

Author SHA1 Message Date
Martin Raifer
67c65887b6 simplify map location restore, see #9146 2022-07-19 12:02:03 +02:00
Kyℓe Hensel
81f3b0666c support incrementing cardinal directions with the 🔼/🔽 buttons (#9141) 2022-07-15 16:48:47 +02:00
Martin Raifer
7c9b47edb5 fix typo in flash module, make linter happy 2022-07-11 20:26:05 +02:00
Martin Raifer
7d546a8f60 refactor further modules to not rely on html injection 2022-06-24 19:31:41 +02:00
Martin Raifer
209cc23d92 don't inject html code in preset names 2022-06-24 19:11:00 +02:00
Martin Raifer
8bb1d39431 refactor validation modules to not inject html 2022-06-24 13:25:56 +02:00
Martin Raifer
6626ea0682 refactor panels to not inject html 2022-06-24 12:19:17 +02:00
Martin Raifer
28eae9ed87 refactor uiSections to not inject html 2022-06-24 11:45:54 +02:00
Martin Raifer
85022dcc6c render operations texts with lang attribute 2022-06-23 19:23:16 +02:00
Martin Raifer
ac77289b4d refactor localized text rendering in tooltips, flash messages 2022-06-23 18:55:57 +02:00
Martin Raifer
422861dbc7 render background source labels as text, not html 2022-06-23 10:56:17 +02:00
Martin Raifer
9576e95d83 change label of ui fields from raw html to a callback function
fixes #9159
2022-06-23 10:49:38 +02:00
Martin Raifer
edf711ca2b fix rendering of chip labels in localizable multiCombo fields
closes #9169
2022-06-22 14:57:58 +02:00
Martin Raifer
38dc298caa Merge remote-tracking branch '1ec5/1ec5-multicombo-raw-9164' into develop 2022-06-22 14:49:39 +02:00
Martin Raifer
5ce8eb139c add fallback values for access field for barriers 2022-06-20 19:03:50 +02:00
Martin Raifer
69edff39f0 fix missing vertex icon, improve fallback icons for untagged objects
closes #9157
2022-06-20 11:19:59 +02:00
Minh Nguyễn
2433664063 Fixed tagging of localizable keys by multiCombo fields 2022-06-15 16:49:26 -07:00
Martin Raifer
977d680b3e fix "what's new" icon, fixes #9151 2022-06-14 11:52:11 +02:00
Martin Raifer
d787b2e055 fix rendering of relation membership combo dropdown 2022-06-06 17:03:32 +02:00
CommanderRoot
76738daff8 Replace deprecated String.prototype.substr() (#8988)
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-06-06 16:16:38 +02:00
Martin Raifer
c6a802b177 render lang attribute on combo field "chips" 2022-06-06 16:01:57 +02:00
Martin Raifer
8f79932ab1 prevent html injection in combobox dopdowns
and use returned wikidata label language for html `lang` metadata
2022-06-06 12:47:14 +02:00
Bryan Housel
b44c7e8741 Fix display of Wikidata combo field items 2022-06-06 12:44:58 +02:00
mukesh
180e554b7d Fixed bug Wikidata field displays [object Object] 2022-06-06 12:44:57 +02:00
Minh Nguyễn
27f665b326 Ignore invalid units in field input 2022-06-03 08:04:57 -07:00
Bryan Housel
34a2af0330 Give user the opportunity to switch users when logging out
OAuth2's idea of "logout" is just to get rid of the bearer token.
If we try to "login" again, it will just grab the token again.
What a user probably _really_ expects is to logout of OSM so that they can switch users.
2022-06-02 13:29:41 +02:00
Bryan Housel
43fe6e9579 Update account component - Add ability to both login and logout 2022-06-02 13:07:50 +02:00
Josh Lee
0c69018f96 Fix xss in user account display (#9097)
Only affects currently logged in user who has put HTML in their display name.

#8813
2022-05-25 13:47:11 +02:00
Martin Raifer
5810b61d5c Imply access=no for highway=construction objects, closes #9102 2022-05-24 14:39:02 +02:00
William Edmisten
67bd692bc0 Add multilingual field exceptions (#9124)
* Add multilingual field exceptions

* Add name:etymology

* Match language code in regex

* Restrict ISO 15924 code to 4 letters

* Allow country codes in name subkeys; match key case sensitively

Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
2022-05-21 15:09:41 -07:00
Martin Raifer
cd4f4f37f1 clear "None" placehoder in fields, fixes #8984 2022-02-15 18:34:30 +01:00
Martin Raifer
bd1836fd0c fix maki icons, tweak rendering of icons
* maki v7+ doesn't have provide "11px" icons anymore
* use 12px for icons on points & vertices on map (instead of 11px)
* use 12px for icons on QA tool (improveOSM, osmose) markers (instead of 13px)
* drop some unused code
2022-02-14 18:07:27 +01:00
Martin Raifer
4fb490abfa fix rendering of html content in turn restriction editor 2022-02-11 17:24:21 +01:00
Martin Raifer
3d427df6d6 disable eslint for purposefully unused parameter 2022-02-11 17:01:01 +01:00
Martin Raifer
ad67f81cfd code quality improvements (unused vars, duplicate css selectors, etc.) (#8965)
* mark function parameter as currently unused
* refactor some unused function parameters
* consolidate some css selectors
2022-02-07 15:30:53 +01:00
Martin Raifer
04f77be5bc fix KeepRight warnings showing up as "Unknown" issues (close #8925) 2022-02-07 10:42:36 +01:00
Martin Raifer
fe15d69b0c fix rendering of keepright issues, fixes #8963 2022-02-07 10:19:31 +01:00
Martin Raifer
d7cdab7f19 bump 'marked' to v4
closes #8952

see https://github.com/markedjs/marked/releases/tag/v4.0.0
2022-02-04 17:22:22 +01:00
Martin Raifer
609c9f63a8 make string "changelog" in welcome message translatable
closes #8948
2022-02-04 09:44:23 +01:00
Martin Raifer
f7d1459c97 Use value of vehicle tag as placeholder in derived access fields
see https://github.com/openstreetmap/id-tagging-schema/issues/378
2022-02-03 19:27:32 +01:00
Martin Raifer
fcd8a2b2e7 optimize order of values of access fields (closes #8945) 2022-02-03 18:46:42 +01:00
Martin Raifer
632e24137a drop legacy builds, unneeded polyfills, document drop of IE11 support 2022-02-03 13:07:28 +01:00
Martin Raifer
b79cae5997 Merge branch 'issue-8930' into develop 2022-02-02 19:01:57 +01:00
Martin Raifer
51f825c11e fix warning when local storage quota is exceeded 2022-02-02 18:57:13 +01:00
Martin Raifer
6c2f9a8f7d fix rendering of html of improveOSM issues 2022-02-02 18:55:33 +01:00
Martin Raifer
f990d5ac87 fix rendering of html of keepright issues 2022-02-02 18:55:33 +01:00
Martin Raifer
fca9a67a6c Merge remote-tracking branch 'jtracey/accepted-file-types' into develop 2022-01-28 13:16:49 +01:00
Martin Raifer
e9cf283447 Merge remote-tracking branch 'hodigabi/issue-8871' into develop 2022-01-28 12:34:39 +01:00
Martin Raifer
ee30fb2371 Merge pull request #8907 from hodigabi/issue/8906
[Issue8906] Fix broken html in the Area part of the Walkthrough
2022-01-28 11:33:41 +01:00
Martin Raifer
765e8e3448 activate new access values (#8876) 2022-01-25 20:41:23 +01:00