Skip to content

Commit d37918c

Browse files
committed
更新 SHT31 模組的幫助網址,將其從示範網址更改為實際的資源連結,並在多個語言檔案中新增相應的幫助網址定義。
1 parent 7acbed6 commit d37918c

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

blockly/blocks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Blockly.Blocks['sht31_new'] = {
4646
this.setOutput(true, null);
4747
this.setColour(230);
4848
this.setTooltip('');
49-
this.setHelpUrl('http://www.example.com/');
49+
this.setHelpUrl(Blockly.Msg.WEBDUINO_SHT31_HELPURL);
5050
}
5151
};
5252

@@ -62,7 +62,7 @@ Blockly.Blocks['sht31_on'] = {
6262
this.setNextStatement(true, null);
6363
this.setColour(65);
6464
this.setTooltip('');
65-
this.setHelpUrl('http://www.example.com/');
65+
this.setHelpUrl(Blockly.Msg.WEBDUINO_SHT31_HELPURL);
6666
}
6767
};
6868

@@ -75,7 +75,7 @@ Blockly.Blocks['sht31_off'] = {
7575
this.setNextStatement(true, null);
7676
this.setColour(65);
7777
this.setTooltip('');
78-
this.setHelpUrl('http://www.example.com/');
78+
this.setHelpUrl(Blockly.Msg.WEBDUINO_SHT31_HELPURL);
7979
}
8080
};
8181

@@ -89,6 +89,6 @@ Blockly.Blocks['sht31_val'] = {
8989
this.setOutput(true, null);
9090
this.setColour(35);
9191
this.setTooltip('');
92-
this.setHelpUrl('http://www.example.com/');
92+
this.setHelpUrl(Blockly.Msg.WEBDUINO_SHT31_HELPURL);
9393
}
9494
};

blockly/msg/blocks/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Blockly.Msg.WEBDUINO_SHT31_DO = "execute";
77
Blockly.Msg.WEBDUINO_SHT31_IS = "'s";
88
Blockly.Msg.WEBDUINO_SHT31_VAL = "value";
99
Blockly.Msg.WEBDUINO_SHT31_TEMP = "temperature";
10-
Blockly.Msg.WEBDUINO_SHT31_HUM = "humidity";
10+
Blockly.Msg.WEBDUINO_SHT31_HUM = "humidity";
11+
Blockly.Msg.WEBDUINO_SHT31_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/dht-sensor";

blockly/msg/blocks/zh-hans.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Blockly.Msg.WEBDUINO_SHT31_STOP = "停止侦测";
77
Blockly.Msg.WEBDUINO_SHT31_IS = "的";
88
Blockly.Msg.WEBDUINO_SHT31_VAL = "数值";
99
Blockly.Msg.WEBDUINO_SHT31_TEMP = "温度";
10-
Blockly.Msg.WEBDUINO_SHT31_HUM = "湿度";
10+
Blockly.Msg.WEBDUINO_SHT31_HUM = "湿度";
11+
Blockly.Msg.WEBDUINO_SHT31_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/dht-sensor";

blockly/msg/blocks/zh-hant.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Blockly.Msg.WEBDUINO_SHT31_DO = "執行";
77
Blockly.Msg.WEBDUINO_SHT31_IS = "的";
88
Blockly.Msg.WEBDUINO_SHT31_VAL = "數值";
99
Blockly.Msg.WEBDUINO_SHT31_TEMP = "溫度";
10-
Blockly.Msg.WEBDUINO_SHT31_HUM = "濕度";
10+
Blockly.Msg.WEBDUINO_SHT31_HUM = "濕度";
11+
Blockly.Msg.WEBDUINO_SHT31_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/dht-sensor";

0 commit comments

Comments
 (0)