Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
iobroker:
build: ./iobroker
Expand Down
2 changes: 1 addition & 1 deletion admin/blocks/gotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Blockly.Blocks['gotify'] = {
},
};

Blockly.JavaScript['gotify'] = function (block) {
Blockly.JavaScript.forBlock['gotify'] = function (block) {
var dropdown_instance = block.getFieldValue('INSTANCE');
var message = Blockly.JavaScript.valueToCode(block, 'MESSAGE', Blockly.JavaScript.ORDER_ATOMIC);
var text = '{\n';
Expand Down
55 changes: 48 additions & 7 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,57 @@
"label": "url",
"help": "urlHelp"
},
"token": {
"table1Err1": {
"type": "staticText",
"text": "ERROR: Exactly one default token allowed!",
"newLine": true,
"type": "text",
"hidden": "let b=null; for(let ii=0; data.tokens && ii<data.tokens.length; ii++){ if (data.tokens[ii].isDefault) { if (b===null){ b=true; } else if (b===true){ return false; } else { b=false; }}}; if (b===false || b===null) return false; return true;",
"style": {
"color": "red"
},
"xs": 12,
"sm": 12,
"md": 8,
"lg": 8,
"xl": 8,
"label": "token",
"help": "tokenHelp"
"md": 12,
"lg": 6,
"xl": 6
},
"tokens": {
"type": "table",
"newLine": true,
"label": "tokens",
"help": "tokensHelp",
"sm": 12,
"md": 12,
"lg": 12,
"xl": 12,
"items": [
{
"type": "checkbox",
"attr": "isDefault",
"width": "10%",
"title": "defaultTokenAlias",
"tooltip": "defaultTokenAliasHelp",
"default": false,
"validator": "let b=null; for(let ii=0; globalData.tokens && ii<globalData.tokens.length; ii++){ if (globalData.tokens[ii].isDefault) { if (b===null){ b=true; } else if (b===true){ return false; } else { b=false; }}}; if (b===false || b===null) return false; return true;",
"validatorNoSaveOnError": true
},
{
"type": "text",
"attr": "alias",
"width": "40%",
"title": "tokenAlias",
"tooltip": "tokenAliasHelp",
"default": ""
},
{
"type": "text",
"attr": "token",
"width": "50%",
"title": "Token",
"tooltip": "tokenHelp",
"default": ""
}
]
}
}
}
Expand Down
24 changes: 12 additions & 12 deletions admin/words.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ systemDictionary = {
uk: 'Url',
'zh-cn': '网址',
},
'Url of Gotify server - http(s)://host(:port)': {
en: 'Url of Gotify server - http(s)://host(:port)',
de: 'Url des Gotify server - http(s)://host(:port)',
ru: 'URL сервера Gotify - http(s)://host(:port)',
pt: 'URL do servidor Gotify - http(s)://host(:port)',
nl: 'URL van Gotify-server - http(s)://host(:port)',
fr: 'URL du serveur Gotify - http(s)://host(:port)',
it: 'URL del server Gotify - http(s)://host(:port)',
es: 'Url del servidor Gotify - http(s)://host(:puerto)',
pl: 'Adres URL serwera Gotify - http(s)://host(:port)',
uk: 'URL-адреса сервера Gotify - http(s)://host(:port)',
'zh-cn': 'Gotify 服务器的 URL - http(s)://host(:port)',
'Url of Gotify server - http(s): //host(:port)': {
en: 'Url of Gotify server - http(s): //host(:port)',
de: 'Url des Gotify server - http(s): //host(:port)',
ru: 'URL сервера Gotify - http(s): //host(:port)',
pt: 'URL do servidor Gotify - http(s): //host(:port)',
nl: 'URL van Gotify-server - http(s): //host(:port)',
fr: 'URL du serveur Gotify - http(s): //host(:port)',
it: 'URL del server Gotify - http(s): //host(:port)',
es: 'Url del servidor Gotify - http(s): //host(:puerto)',
pl: 'Adres URL serwera Gotify - http(s): //host(:port)',
uk: 'URL-адреса сервера Gotify - http(s): //host(:port)',
'zh-cn': 'Gotify 服务器的 URL - http(s): //host(:port)',
},
'gotify adapter settings': {
en: 'Adapter settings for gotify',
Expand Down
117 changes: 91 additions & 26 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading