Commit Graph

41 Commits

Author SHA1 Message Date
Martin Raifer d78c357588 replace raw html injection of localized texts
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Quincy Morgan baace6d092 Update more code for D3 v6 2020-10-07 11:57:25 -04:00
Quincy Morgan 21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan 0c38363406 Don't instantiate uiShortcuts or its keybinding multiple times 2020-10-05 10:57:18 -04:00
Quincy Morgan a1c002ebba Add more detail to the Operations section of the help docs (re: #7829)
Add info about splitting a specific way to the help docs (close #7992)
2020-09-25 10:38:30 -04:00
Quincy Morgan 1fc43759ca Followup to #7829 2020-09-24 16:37:44 -04:00
Quincy Morgan 03ea7816c7 Merge branch 'develop' into help-edit-menu 2020-09-24 15:20:48 -04:00
Quincy Morgan 9da4c4bb62 Add lang attribute to more labels (re: #7963) 2020-09-23 10:44:38 -04:00
Quincy Morgan f2c150e83e Rename several title properties to label and pass in attributed HTML instead of string 2020-09-22 13:15:19 -04:00
Quincy Morgan 6eed721579 Use lang attributes in help pane section titles 2020-09-22 12:46:12 -04:00
Quincy Morgan 5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan a3549f9a76 Merge branch 'develop' into lang-attributes
# Conflicts:
#	modules/ui/commit_warnings.js
#	modules/ui/field.js
#	modules/ui/fields/wikidata.js
#	modules/ui/fields/wikipedia.js
#	modules/ui/full_screen.js
#	modules/ui/panels/history.js
#	modules/ui/sections/entity_issues.js
#	modules/ui/sections/map_features.js
#	modules/ui/sections/raw_member_editor.js
#	modules/ui/sections/validation_rules.js
#	modules/ui/tag_reference.js
2020-09-22 10:55:07 -04:00
Quincy Morgan 983c01d407 Make the keyboard shortcuts modal keyboard-navigable (re: #8004)
Prevent default hash behavior when clicking help pane internal links
2020-09-22 10:37:54 -04:00
Quincy Morgan b466a96c18 Make the help pane keyboard-navigable (re: #8004) 2020-09-22 10:13:33 -04:00
Quincy Morgan 32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Manfred Brandl 95dfcbaab7 Add Edit Menu to Help 2020-07-22 15:43:27 +02:00
Quincy Morgan 85e02dea87 Add info about touchscreen multiselection to the help pane 2020-07-13 14:14:45 -04:00
Quincy Morgan a3475251b8 Update more of the documentation for touch input 2020-07-13 13:22:32 -04:00
Quincy Morgan cf5bf61d72 Use the same string replacements for the walkthrough as the help docs
Use keyboard styling for keys referenced in the walkthrough
Add mouse icons for left/right click referenced in the walkthrough
Add labels for all buttons referenced by icon in the walkthrough
2020-07-10 12:18:46 -04:00
Quincy Morgan 8bd331f8c4 Reference add note shortcut key in the help docs 2020-06-29 17:17:06 -04:00
Quincy Morgan 96c29d50fe Reference the name of the turn restrictions field in the help pane 2020-06-29 17:13:42 -04:00
Quincy Morgan 8234079d10 Show operation icon colors in the help pane 2020-06-29 17:08:06 -04:00
Quincy Morgan fe73567df8 Use placeholders for Imagery Offset and Space strings in help docs 2020-06-29 16:52:09 -04:00
Quincy Morgan fab750d353 Use more placeholder references in the help docs
Use a reusable format for the section title counts
2020-06-29 12:46:06 -04:00
Quincy Morgan ac0dcf8701 Use placeholder references in the help docs for strings used elsewhere in the document 2020-06-29 12:21:30 -04:00
Quincy Morgan af4aca14b2 Use standard kbd styling for keys in help documentation 2020-06-29 11:33:47 -04:00
Quincy Morgan a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan ad327befc7 Move keybindings from map panes to uiInit 2020-03-25 13:59:09 -07:00
Quincy Morgan 9731b93cec Move uiTooltipHtml functionality into uiTooltip
Refactor uiEditMenu to use standard UI patterns instead of SVG
2020-03-25 12:22:10 -07:00
Quincy Morgan d62a62cba8 Make popover and tooltip part of the UI module instead of utils 2020-03-24 17:32:09 -07:00
Quincy Morgan 6782947f5b Make inspector sections inherit from uiSection (re: #7368) 2020-02-21 15:22:54 -08:00
Quincy Morgan 1f4fe57d8b Use d3-style API for section contents 2020-02-20 13:47:11 -08:00
Quincy Morgan 4fe9057eb7 Move remaining issues pane sections to their own objects 2020-02-20 13:02:09 -08:00
Quincy Morgan e42bc34e4b Move validation warnings and errors to their own section objects
Allow function parameters for disclosure titles
2020-02-19 17:28:51 -08:00
Quincy Morgan 68c2b9f1a8 Move the data layers section to its own object (re: #7368) 2020-02-19 14:31:32 -08:00
Quincy Morgan ff4ac253da Make photo overlays its own section object (re: #7368) 2020-02-19 12:08:13 -08:00
Quincy Morgan c6129a0493 Remove unused autohidden errors code path 2020-02-19 11:28:11 -08:00
Quincy Morgan b921ca3cb4 Move map features and map style options to their own pane section objects (re: #7368)
Handle area fill and change highlighting logic in the rendererMap object and issue change events
2020-02-19 11:23:02 -08:00
Quincy Morgan 5c04ad3eb5 Add uiSection class as standard component for pane sections
Move validation rules and privacy preferences to their own section objects
2020-02-18 20:02:55 -08:00
Quincy Morgan d8a0f030cc Add "pane" prefix to pane UI objects
Move background and overlay layer lists to their own files
2020-02-18 13:33:12 -08:00
Quincy Morgan 5c150718a3 Make all panes inherit from a standard uiPane class (re: #7368) 2020-02-18 10:40:27 -08:00