Files
babaevmm 201be941c9 fix json format
commit_hash:fd6e36a8ea96d96b9a00bac60a72f213c5f2dc0e
2025-02-07 18:43:40 +03:00

103 lines
2.2 KiB
JSON

{
"templates": {
"alert_card": {
"type": "container",
"height": {
"type": "fixed",
"unit": "sp",
"value": 76
},
"width": {
"type": "match_parent"
},
"background": [
{
"color": "#FFFFFF",
"type": "solid"
}
],
"border": {
"corner_radius": 6,
"stroke": {
"color": "#E5E5E5"
}
},
"orientation": "vertical",
"items": [
{
"type": "text",
"font_size": 14,
"text": "original text:"
},
{
"type": "text",
"max_lines": 3,
"font_size": 14,
"line_height": 18,
"margins": {
"top": 9,
"left": 8
},
"font_weight": "medium",
"$text": "alert_text"
}
]
}
},
"card": {
"log_id": "alerts_gallery",
"variables": [
{
"type": "string",
"name": "patch_status",
"value": "loading"
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"visibility_action": {
"log_id": "visibility",
"url": "div-action://download?url=https%3A%2F%2Fyastatic.net%2Fs3%2Fhome%2Fdivkit%2Ftranscation-callbacks.json"
},
"width": {
"type": "match_parent"
},
"paddings": {
"top": 12,
"bottom": 12
},
"items": [
{
"type": "alert_card",
"id": "item1",
"alert_text": "1 item"
},
{
"type": "alert_card",
"id": "item2",
"alert_text": "2 item"
},
{
"type": "alert_card",
"id": "item3",
"alert_text": "3 item"
},
{
"type": "alert_card",
"id": "item4",
"alert_text": "4 item"
},
{
"type": "alert_card",
"alert_text": "Patch status: @{patch_status}"
}
]
}
}
]
}
}