Skip to content

Commit c9027c2

Browse files
committed
更新 RFID 模塊的幫助網址,將其替換為新的資源連結,並在多個語言文件中添加相應的網址常量。
1 parent 22dda5f commit c9027c2

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

blockly/blocks.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Blockly.Blocks['rfid_new'] = {
2323
this.setOutput(true);
2424
this.setColour(230);
2525
this.setTooltip('');
26-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
26+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_NEW);
2727
}
2828
};
2929

@@ -38,7 +38,7 @@ Blockly.Blocks['rfid_enter'] = {
3838
this.setNextStatement(true);
3939
this.setColour(65);
4040
this.setTooltip('');
41-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
41+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_ENTER);
4242
}
4343
};
4444

@@ -50,7 +50,7 @@ Blockly.Blocks['rfid_uid'] = {
5050
this.setOutput(true);
5151
this.setTooltip('');
5252
this.setColour(35);
53-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
53+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_UID);
5454
}
5555
};
5656

@@ -66,7 +66,7 @@ Blockly.Blocks['rfid_if'] = {
6666
this.setNextStatement(true);
6767
this.setTooltip('');
6868
this.setColour(35);
69-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
69+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_IF);
7070
}
7171
};
7272

@@ -82,7 +82,7 @@ Blockly.Blocks['rfid_leave'] = {
8282
this.setNextStatement(true);
8383
this.setTooltip('');
8484
this.setColour(65);
85-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
85+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_LEAVE);
8686
}
8787
};
8888

@@ -95,6 +95,6 @@ Blockly.Blocks['rfid_stopread'] = {
9595
this.setNextStatement(true);
9696
this.setColour(65);
9797
this.setTooltip('');
98-
this.setHelpUrl(mainUrl + 'basic/sensor/rfid.html' + utmUrl);
98+
this.setHelpUrl(Blockly.Msg.WEBDUINO_RFID_URL_STOPREAD);
9999
}
100100
};

blockly/msg/blocks/en.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ Blockly.Msg.WEBDUINO_RFID_UIDIS = "'s uid is";
44
Blockly.Msg.WEBDUINO_RFID_IF = "If";
55
Blockly.Msg.WEBDUINO_RFID_DO = "do";
66
Blockly.Msg.WEBDUINO_RFID_OUT = "left detection range";
7-
Blockly.Msg.WEBDUINO_RFID_OFF = "stops detecting";
7+
Blockly.Msg.WEBDUINO_RFID_OFF = "stops detecting";
8+
Blockly.Msg.WEBDUINO_RFID_URL_NEW = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
9+
Blockly.Msg.WEBDUINO_RFID_URL_ENTER = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
10+
Blockly.Msg.WEBDUINO_RFID_URL_UID = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
11+
Blockly.Msg.WEBDUINO_RFID_URL_IF = "https://resource.webduino.io/docs/cloud-project/sensor/rfid-youtube#rfid_if";
12+
Blockly.Msg.WEBDUINO_RFID_URL_LEAVE = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
13+
Blockly.Msg.WEBDUINO_RFID_URL_STOPREAD = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";

blockly/msg/blocks/zh-hans.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ Blockly.Msg.WEBDUINO_RFID_UIDIS = "侦测到的代码为";
44
Blockly.Msg.WEBDUINO_RFID_IF = "如果";
55
Blockly.Msg.WEBDUINO_RFID_DO = "执行";
66
Blockly.Msg.WEBDUINO_RFID_OUT = "讯号离开";
7-
Blockly.Msg.WEBDUINO_RFID_OFF = "停止侦测";
7+
Blockly.Msg.WEBDUINO_RFID_OFF = "停止侦测";
8+
Blockly.Msg.WEBDUINO_RFID_URL_NEW = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
9+
Blockly.Msg.WEBDUINO_RFID_URL_ENTER = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
10+
Blockly.Msg.WEBDUINO_RFID_URL_UID = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
11+
Blockly.Msg.WEBDUINO_RFID_URL_IF = "https://resource.webduino.io/docs/cloud-project/sensor/rfid-youtube#rfid_if";
12+
Blockly.Msg.WEBDUINO_RFID_URL_LEAVE = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
13+
Blockly.Msg.WEBDUINO_RFID_URL_STOPREAD = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";

blockly/msg/blocks/zh-hant.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ Blockly.Msg.WEBDUINO_RFID_UIDIS = "偵測到的代碼為";
44
Blockly.Msg.WEBDUINO_RFID_IF = "如果";
55
Blockly.Msg.WEBDUINO_RFID_DO = "執行";
66
Blockly.Msg.WEBDUINO_RFID_OUT = "訊號離開";
7-
Blockly.Msg.WEBDUINO_RFID_OFF = "停止偵測";
7+
Blockly.Msg.WEBDUINO_RFID_OFF = "停止偵測";
8+
Blockly.Msg.WEBDUINO_RFID_URL_NEW = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
9+
Blockly.Msg.WEBDUINO_RFID_URL_ENTER = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
10+
Blockly.Msg.WEBDUINO_RFID_URL_UID = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
11+
Blockly.Msg.WEBDUINO_RFID_URL_IF = "https://resource.webduino.io/docs/cloud-project/sensor/rfid-youtube#rfid_if";
12+
Blockly.Msg.WEBDUINO_RFID_URL_LEAVE = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";
13+
Blockly.Msg.WEBDUINO_RFID_URL_STOPREAD = "https://resource.webduino.io/docs/cloud-component/component-io/rfid";

0 commit comments

Comments
 (0)