liquid_feedback_frontend

view app/main/api/style.lua @ 1559:7eda69e1d14f

Fixed layout of incoming delegations in vote view
author bsw
date Tue Nov 10 20:29:19 2020 +0100 (2020-11-10)
parents 32cc544d5a5b
children
line source
1 slot.set_layout(nil, "application/json")
4 local r = json.object{
5 color = json.object()
6 }
8 local style = execute.chunk{ module = "style", chunk = "_style", params = { style = config.style } }
10 if style.color_md then
11 r.color.md = {}
12 for k, v in pairs(style.color_md) do
13 r.color.md[k] = v
14 end
15 end
17 if style.color_rgb then
18 r.color.rgb = {}
19 for k, v in pairs(style.color_rgb) do
20 r.color.rgb[k] = v
21 end
22 end
24 slot.put_into("data", json.export(json.object{ result = r }))

Impressum / About Us