mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
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
26 lines
894 B
JavaScript
26 lines
894 B
JavaScript
|
|
import { t } from '../../core/localizer';
|
|
import { uiPane } from '../pane';
|
|
|
|
import { uiSectionBackgroundDisplayOptions } from '../sections/background_display_options';
|
|
import { uiSectionBackgroundList } from '../sections/background_list';
|
|
import { uiSectionBackgroundOffset } from '../sections/background_offset';
|
|
import { uiSectionOverlayList } from '../sections/overlay_list';
|
|
|
|
export function uiPaneBackground(context) {
|
|
|
|
var backgroundPane = uiPane('background', context)
|
|
.key(t('background.key'))
|
|
.title(t('background.title'))
|
|
.description(t('background.description'))
|
|
.iconName('iD-icon-layers')
|
|
.sections([
|
|
uiSectionBackgroundList(context),
|
|
uiSectionOverlayList(context),
|
|
uiSectionBackgroundDisplayOptions(context),
|
|
uiSectionBackgroundOffset(context)
|
|
]);
|
|
|
|
return backgroundPane;
|
|
}
|