forked from MapComplete/MapComplete
refactoring: Fix documentation generation, (auto)remove documentation of deleted themes
This commit is contained in:
parent
43aeb9d191
commit
b0052d3a36
33 changed files with 1565 additions and 2903 deletions
|
@ -36,20 +36,11 @@ export default class DefaultGUI {
|
|||
}
|
||||
|
||||
private SetupUIElements() {
|
||||
const guiState = this.guiState
|
||||
|
||||
const extraLink = Toggle.If(
|
||||
state.featureSwitchExtraLinkEnabled,
|
||||
() => new ExtraLinkButton(state, state.layoutToUse.extraLink)
|
||||
)
|
||||
|
||||
new ScrollableFullScreen(
|
||||
() => Translations.t.general.attribution.attributionTitle,
|
||||
() => new CopyrightPanel(state),
|
||||
"copyright",
|
||||
guiState.copyrightViewIsOpened
|
||||
)
|
||||
|
||||
new Combine([extraLink]).SetClass("flex flex-col").AttachTo("top-left")
|
||||
|
||||
new Combine([
|
||||
|
@ -64,6 +55,7 @@ export default class DefaultGUI {
|
|||
.SetClass("flex items-center justify-center normal-background h-full")
|
||||
.AttachTo("on-small-screen")
|
||||
|
||||
const guiState = this.guiState
|
||||
new LeftControls(state, guiState).AttachTo("bottom-left")
|
||||
new RightControls(state, this.geolocationHandler).AttachTo("bottom-right")
|
||||
|
||||
|
|
|
@ -44,25 +44,21 @@ export default class FeatureInfoBox extends ScrollableFullScreen {
|
|||
|
||||
public static GenerateContent(
|
||||
tags: UIEventSource<any>,
|
||||
layerConfig: LayerConfig,
|
||||
state: FeaturePipelineState,
|
||||
showAllQuestions?: Store<boolean>
|
||||
layerConfig: LayerConfig
|
||||
): BaseUIElement {
|
||||
return new Toggle(
|
||||
new Combine([
|
||||
Svg.delete_icon_svg().SetClass("w-8 h-8"),
|
||||
Translations.t.delete.isDeleted,
|
||||
]).SetClass("flex justify-center font-bold items-center"),
|
||||
FeatureInfoBox.GenerateMainContent(tags, layerConfig, state, showAllQuestions),
|
||||
FeatureInfoBox.GenerateMainContent(tags, layerConfig),
|
||||
tags.map((t) => t["_deleted"] == "yes")
|
||||
)
|
||||
}
|
||||
private static GenerateMainContent(
|
||||
tags: UIEventSource<any>,
|
||||
layerConfig: LayerConfig,
|
||||
state: FeaturePipelineState
|
||||
layerConfig: LayerConfig
|
||||
): BaseUIElement {
|
||||
let questionBoxes: Map<string, QuestionBox> = new Map<string, QuestionBox>()
|
||||
const t = Translations.t.general
|
||||
|
||||
const withQuestion = layerConfig.tagRenderings.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue