Commit graph

21 commits

Author SHA1 Message Date
Norbert Renner
a57a560950 Fix default profile not selected with hash 2022-06-07 19:26:41 +02:00
Marcus Jaschen
f1557a1d5c remember and recall last used (non-custom) profile 2021-11-15 19:00:40 +01:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Henrik Fehlauer
09f987ea07 Combine and reuse translations for keyboard shortcuts
Using i18next's "nesting" and "interpolation" features should reduce the
overall number of strings to translate, as well as provide a
standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding
differently structured sentences in each language.

Resolves #315
2020-06-21 18:00:00 +00:00
Henrik Fehlauer
6da520ed4d Add shortcut to toggle profile switcher
Press 'G' to open the profile switcher, select a profile with the arrow
keys, apply with 'Enter' and close the switcher with 'Escape'.

While 'T' and 'P' will be / were already taken, 'G' is at least easily
reachable with the left hand for users using a mouse with their right
hand at the same time.

Since Bootstrap keeps updating the tooltip when changing options in the
dropdown (which is useful in case the text is longer than the width of
the control), the shortcut text needs to be applied dynamically too.
2020-06-09 18:00:00 +00:00
Norbert Renner
a70cf43838 Fix Custom option not disabled when URL with profile
Getting value of 'profile' ele no longer works (?), replace with proper
check if profile name is custom.
2019-11-29 15:45:31 +01:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Norbert Renner
9112d0984c Remove old layout Control superclass, now obsolete (#111) 2018-07-12 20:28:22 +02:00
Norbert Renner
208041c3d8 Fix cleaning custom profile
- picked from bagage/brouter-web@8bcb267
- set default value to what is used in code, display text might change
- keep currently selected profile on clean when other than custom
2018-03-10 16:13:55 +01:00
Norbert Renner
20ddb88562 Replace L.Mixin.Events with L.Evented (#103) 2018-02-05 17:40:53 +01:00
Norbert Renner
a5c6e338b6 Remove profile from footer, already in header 2018-01-27 10:34:43 +01:00
Gautier Pelloux-Prayer
595ac34d58 Fix profile/alternative loading 2017-05-03 22:01:15 +02:00
Gautier Pelloux-Prayer
d7e476db82 Updating UI to also fit on mobile devices. Fix #34 2017-01-23 10:47:28 +01:00
Norbert Renner
0e77fc6c6e build profile option list dynamically from config.js 2014-05-30 11:55:25 +02:00
Norbert Renner
858b68f91e Clear profile (creates new file on next upload) 2014-05-24 13:09:25 +02:00
Norbert Renner
3c0765547c reuse existing custom profile file in editing session by passing id in URL 2014-05-22 18:01:12 +02:00
Norbert Renner
973d8bab75 profile upload (requires server update) 2014-05-22 11:20:22 +02:00
Norbert Renner
136a182539 routing permalink 2014-05-15 20:37:17 +02:00
Norbert Renner
4cc16bccd0 initial commit 2014-01-27 18:34:48 +01:00