Files
IoTManager/data/set.telegram.json

68 lines
1.8 KiB
JSON
Raw Normal View History

2020-09-02 22:34:49 +03:00
{
"configs": [
"/config.setup.json",
"/lang/lang.ru.json"
],
"class": "col-sm-offset-1 col-sm-10 col-md-offset-2 col-md-8 col-lg-offset-3 col-lg-6",
"content": [
{
"type": "h5",
"title": "{{name}}",
"class": "alert-default"
},
{
"type": "link",
"title": "{{ButMainPage}}",
"action": "/",
"class": "btn btn-block btn-default"
},
{
"type": "hr"
},
2020-11-05 02:23:08 +03:00
{
"type": "checkbox",
"name": "tel",
"title": "Включить телеграм",
"action": "/set?telegonof=[[tel]]",
"state": "{{telegonof}}"
},
{
"type": "hr"
},
2020-09-02 22:34:49 +03:00
{
"type": "h4",
2020-11-05 02:23:08 +03:00
"style": "width:40%;float:left;",
2020-11-04 23:48:21 +03:00
"title": "Telegram API token:"
2020-09-02 22:34:49 +03:00
},
{
"type": "input",
"title": "",
2020-11-04 23:48:21 +03:00
"name": "telegramApi-arg",
2020-11-05 02:23:08 +03:00
"style": "width:60%;float:right",
2020-11-04 23:48:21 +03:00
"state": "{{telegramApi}}"
2020-09-02 22:34:49 +03:00
},
{
"type": "button",
"title": "{{ButSave}}",
2020-11-04 23:48:21 +03:00
"action": "set?telegramApi=[[telegramApi-arg]]",
2020-09-02 22:34:49 +03:00
"class": "btn btn-block btn-default",
"style": "width:100%;display:inline"
},
{
"type": "hr"
2020-11-05 02:23:08 +03:00
},
{
"type": "text",
"title": "<div style='margin-top:10px;margin-bottom:10px;'><font color='black'><p style='border: 1px solid #DCDCDC; border-radius: 3px; background-color: #F5F5F5; padding: 10px;'>После настройки telegram перезагрузите устройство что бы изменения вступили в силу</p></font></div>"
2020-11-07 01:11:32 +03:00
},
{
"type": "hr"
},
{
"type": "link",
"title": "Перезагрузить устройство",
"action": "javascript:if(confirm(renameBlock(jsonResponse,'Перезагрузить?'))){send_request(this,'/set?device=ok');}",
"class": "btn btn-block btn-danger"
2020-09-02 22:34:49 +03:00
}
]
}