Skip to content

Commit 6b4d582

Browse files
committed
spelling
1 parent 9334a89 commit 6b4d582

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

admin/blockly.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ Blockly.Translate =
2121
};
2222

2323
/// --- SendTo gotify --------------------------------------------------
24-
Blockly.Words["googleSpreadsheet"] = { en: "Google Spreadsheet", de: "Google Tabelle" };
25-
Blockly.Words["googleSpreadsheet_message"] = { en: "message", de: "Meldung" };
24+
Blockly.Words["google-spreadsheet"] = { en: "Google Spreadsheet", de: "Google Tabelle" };
25+
Blockly.Words["google-spreadsheet_message"] = { en: "message", de: "Meldung" };
2626

2727

28-
Blockly.Words["googleSpreadsheet_anyInstance"] = { en: "all instances", de: "Alle Instanzen" };
29-
Blockly.Words["googleSpreadsheet_tooltip"] = {
28+
Blockly.Words["google-spreadsheet_anyInstance"] = { en: "all instances", de: "Alle Instanzen" };
29+
Blockly.Words["google-spreadsheet_tooltip"] = {
3030
en: "Append data to a google spreadsheet",
3131
de: "Daten an eine Google Tabelle anhängen",
3232
};
33-
Blockly.Words["googleSpreadsheet_help"] = {
33+
Blockly.Words["google-spreadsheet_help"] = {
3434
en: "https://github.com/ThomasPohl/ioBroker.google-spreadsheet/blob/master/README.md",
3535
de: "https://github.com/ThomasPohl/ioBroker.google-spreadsheet/blob/master/README.md",
3636
};
3737

38-
Blockly.Sendto.blocks["googleSpreadsheet"] =
39-
'<block type="googleSpreadsheet">' +
38+
Blockly.Sendto.blocks["google-spreadsheet"] =
39+
'<block type="google-spreadsheet">' +
4040
' <value name="INSTANCE">' +
4141
" </value>" +
4242
' <value name="MESSAGE">' +
@@ -46,9 +46,9 @@ Blockly.Sendto.blocks["googleSpreadsheet"] =
4646
" </value>" +
4747
"</block>";
4848

49-
Blockly.Blocks["googleSpreadsheet"] = {
49+
Blockly.Blocks["google-spreadsheet"] = {
5050
init: function () {
51-
var options = [[Blockly.Translate("googleSpreadsheet_anyInstance"), ""]];
51+
var options = [[Blockly.Translate("google-spreadsheet_anyInstance"), ""]];
5252
if (typeof main !== "undefined" && main.instances) {
5353
for (var i = 0; i < main.instances.length; i++) {
5454
var m = main.instances[i].match(/^system.adapter.google-spreadsheet.(\d+)$/);
@@ -66,10 +66,10 @@ Blockly.Blocks["googleSpreadsheet"] = {
6666
}
6767

6868
this.appendDummyInput("INSTANCE")
69-
.appendField(Blockly.Translate("googleSpreadsheet"))
69+
.appendField(Blockly.Translate("google-spreadsheet"))
7070
.appendField(new Blockly.FieldDropdown(options), "INSTANCE");
7171

72-
this.appendValueInput("MESSAGE").appendField(Blockly.Translate("googleSpreadsheet_message"));
72+
this.appendValueInput("MESSAGE").appendField(Blockly.Translate("google-spreadsheet_message"));
7373

7474
/* if (input && input.connection) {
7575
input.connection._optional = true;
@@ -80,12 +80,12 @@ Blockly.Blocks["googleSpreadsheet"] = {
8080
this.setNextStatement(true, null);
8181

8282
this.setColour(Blockly.Sendto.HUE);
83-
this.setTooltip(Blockly.Translate("googleSpreadsheet_tooltip"));
84-
this.setHelpUrl(Blockly.Translate("googleSpreadsheet_help"));
83+
this.setTooltip(Blockly.Translate("google-spreadsheet_tooltip"));
84+
this.setHelpUrl(Blockly.Translate("google-spreadsheet_help"));
8585
},
8686
};
8787

88-
Blockly.JavaScript["googleSpreadsheet"] = function (block) {
88+
Blockly.JavaScript["google-spreadsheet"] = function (block) {
8989
var dropdown_instance = block.getFieldValue("INSTANCE");
9090
var message = Blockly.JavaScript.valueToCode(block, "MESSAGE", Blockly.JavaScript.ORDER_ATOMIC);
9191
var text = "{\n";

io-package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@
5757
"readme": "https://github.com/ThomasPohl/ioBroker.google-spreadsheet/blob/master/README.md",
5858
"loglevel": "info",
5959
"mode": "daemon",
60-
"type": "communication",
60+
"type": "messaging",
6161
"compact": true,
62+
"connectionType": "cloud",
63+
"dataSource": "push",
6264
"materialize": true,
6365
"blockly": true,
66+
"messagebox": true,
67+
"subscribe": "messagebox",
6468
"dependencies": [
6569
{
6670
"js-controller": ">=1.4.2"

0 commit comments

Comments
 (0)