html-ui.module-info
As of snapshot UPgVfUfp48. See the latest
- description
- The number of parts, the English description and the visibility of the module, for the module page
- type
Fn(modules: List<@"podreMoVIYPLAZdx8VfSiYcQvzWF3_ML16l9zlyXAL0">, count: Number) -> @definy.json
- expression
fn(modules$0, count$1) => match @core.list-get(list: $0, index: 0) { #none(_) => #object<@definy.json>([{key: "count", value: #number<@definy.json>($1)}]), #some(module$2) => #object<@definy.json>([ {key: "count", value: #number<@definy.json>($1)}, { key: "description", value: #string<@definy.json>(@core.list-fold( T: @core.localized-text, A: String, reducer: fn(acc$3, item$4) => match @core.or(left: @core.equal(left: $4.language, right: "en"), right: @core.equal(left: $3, right: "")) { true => $4.text, false => $3 }, init: "", xs: $2.description )) }, {key: "descriptions", value: @html-ui.descriptions-json(texts: $2.description)}, { key: "visibility", value: #string<@definy.json>(match $2.visibility { #public(_) => "public", #private(_) => "private" }) } ]) }
- visibility
- public
html-ui.module-info (project html-ui, branch main, snapshot UPgVfUfp48oOYhAXmpLTGVrvRcl4DyKOa4PyXm_76qo) id: KhkUtsovhQ2jr2vLwssdMzWjWmdEt1xpHWcMB-Aa9no content hash: x8Vsp_3sQaYjOq9PA9Fr-1Ss-WunomOcTeBDF2cEBRs