refactoring: Fix documentation generation, (auto)remove documentation of deleted themes

This commit is contained in:
Pieter Vander Vennet 2023-04-15 03:15:17 +02:00
parent 43aeb9d191
commit b0052d3a36
33 changed files with 1565 additions and 2903 deletions

View file

@ -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(