Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

운영반영 #2890

Merged
merged 31 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d28e565
로보토리 하드웨어 블록 내용 추가 및 핀 번호 수정
waterdrw Nov 22, 2024
70b64e4
Merge pull request #2880 from entrylabs/master
kimorkim Nov 29, 2024
5695715
bluetooth ssp function complete
JH-Kim88 Dec 2, 2024
5c4cbad
motor init value fix
JH-Kim88 Dec 4, 2024
f6a75f9
line Car, led strip add and modify
JH-Kim88 Dec 10, 2024
84e391f
organizinng and developing robot arm functions
JH-Kim88 Dec 13, 2024
87b1115
이슈 8950 처리
Dec 13, 2024
6562d02
Servo motor initial angle change
JH-Kim88 Dec 16, 2024
e19a967
Change channel settings, change initial values
JH-Kim88 Dec 16, 2024
c3b8c38
count_match_string, replace_string 코드 최적화
Dec 16, 2024
f9f92f5
oldWord2 -> oldWord
Dec 16, 2024
e680781
Merge pull request #2884 from entrylabs/issue/8996
kimorkim Dec 17, 2024
daa7468
주미 미니 블록 수정
truedo Dec 17, 2024
9a0e45e
불필요한 로그 제거
Dec 17, 2024
74c65ad
JDCode 및 JCBoard에서 true or false 반환값을 1 or 0으로 변경
bigstone77 Dec 17, 2024
0d686a3
RoboDog 지원
bigstone77 Dec 17, 2024
bdf8c4c
feat: led 사이즈 변경 대응
Tnks2U Dec 18, 2024
440549e
Merge pull request #2887 from bigstone77/develop-hw
Tnks2U Dec 19, 2024
d8ba698
Merge pull request #2886 from robolink-korea/develop-hw
Tnks2U Dec 19, 2024
61eb15a
Merge pull request #2881 from JH-Kim88/develop-hw
Tnks2U Dec 19, 2024
6147f36
Merge pull request #2878 from waterdrw/develop-hw
Tnks2U Dec 19, 2024
22d4a2c
Merge pull request #2883 from entrylabs/issue/8950
leunge Dec 19, 2024
df7e7b7
feat: 달고나에듀 lint적용
Tnks2U Dec 20, 2024
1f8b333
feat: 달고나 에듀 영문다국어 적용
Tnks2U Dec 20, 2024
9cc393b
확장 블록 disabled 옵션 추가
Dec 20, 2024
68a078c
Merge pull request #2888 from entrylabs/develop-hw
Tnks2U Dec 20, 2024
dfc794a
다국어 수정
Dec 24, 2024
b933b7f
lang: 마이크로비트 추가 다국어 및 블록순서 변경
Tnks2U Dec 24, 2024
f813268
Merge pull request #2889 from entrylabs/issue/9025
Tnks2U Dec 24, 2024
5286743
다국어 수정
Dec 24, 2024
9b1a148
Merge remote-tracking branch 'origin/develop' into develop
Dec 24, 2024
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
290 changes: 290 additions & 0 deletions extern/lang/en.js

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions extern/lang/ko.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions extern/util/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ EntryStatic.getAllBlocks = function () {
'get_time_weather',
'get_time_weather_data',
'check_time_weather',

'check_weather',
'check_finedust',
'get_weather_data',
Expand All @@ -480,12 +479,13 @@ EntryStatic.getAllBlocks = function () {
'festival_title',
'count_festival',
'get_festival_info',
'behaviorConductDisaster_title',
'count_disaster_behavior',
'get_disaster_behavior',
'behaviorConductLifeSafety_title',
'count_lifeSafety_behavior',
'get_lifeSafety_behavior',
'emergencyActionGuidelines_title',
'count_disaster_guideline',
'get_disaster_guideline',
'count_social_disaster_guideline',
'get_social_disaster_guideline',
'count_safety_accident_guideline',
'get_safety_accident_guideline',
],
},
{
Expand Down
Binary file added images/hardware/guideline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/class/Expansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import '../playground/blocks/block_expansion_weather';
import '../playground/blocks/block_expansion_festival';
import '../playground/blocks/block_expansion_behaviorconduct_disaster';
import '../playground/blocks/block_expansion_behaviorconduct_lifesafety';
import '../playground/blocks/block_expansion_emergencyActionGuidelines';

export default class Expansion {
constructor(playground) {
Expand All @@ -12,7 +13,9 @@ export default class Expansion {
async init() {
const blockObject = {};
Object.entries(Entry.EXPANSION_BLOCK).forEach(([key, value]) => {
Entry.EXPANSION_BLOCK_LIST[key] = value;
if (!value.disabled) {
Entry.EXPANSION_BLOCK_LIST[key] = value;
}
if ('getBlocks' in value) {
Object.assign(blockObject, value.getBlocks());
}
Expand Down
21 changes: 4 additions & 17 deletions src/playground/blocks/block_calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2060,15 +2060,7 @@ module.exports = {
func(sprite, script) {
const originStr = script.getStringValue('STRING', script);
const targetStr = script.getStringValue('TARGET', script);

let count = 0;
const substrLength = targetStr.length;
for (let i = 0; i <= originStr.length - substrLength; i++) {
if (originStr.substring(i, i + substrLength) === targetStr) {
count++;
}
}
return count;
return originStr.split(targetStr).length - 1;
},
syntax: {
js: [],
Expand Down Expand Up @@ -2253,13 +2245,9 @@ module.exports = {
const oldWord = script
.getStringValue('OLD_WORD', script)
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

return script
.getStringValue('STRING', script)
.replace(
new RegExp(oldWord, 'gm'),
script.getStringValue('NEW_WORD', script)
);
const newWord = script.getStringValue('NEW_WORD', script);
const originalString = script.getStringValue('STRING', script);
return originalString.split(oldWord).join(newWord);
},
syntax: {
js: [],
Expand Down Expand Up @@ -2600,7 +2588,6 @@ module.exports = {
},
func(sprite, script) {
const bool = script.getValue('BOOLEAN', script);
console.log('bool', bool);
if (Boolean(bool)) {
return 'TRUE';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Entry.EXPANSION_BLOCK.behaviorConductDisaster = {
description: Lang.Msgs.expansion_behaviorConductDisaster_description,
descriptionKey: 'Msgs.expansion_behaviorConductDisaster_description',
isInitialized: false,
disabled: true,
init() {
if (this.isInitialized) {
return;
Expand All @@ -82,9 +83,9 @@ Entry.EXPANSION_BLOCK.behaviorConductDisaster = {
apiType: '01',
};

Entry.EXPANSION_BLOCK.behaviorConductDisaster.getBlocks = function() {
Entry.EXPANSION_BLOCK.behaviorConductDisaster.getBlocks = function () {
const categoryMap = getInitialCategoryMap();
const getCategory = function() {
const getCategory = function () {
return Object.keys(categoryMap).map((category) => [categoryMap[category].lang, category]);
};
const defaultCategory = Object.keys(categoryMap)[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Entry.EXPANSION_BLOCK.behaviorConductLifeSafety = {
description: Lang.Msgs.expansion_behaviorConductLifeSafety_description,
descriptionKey: 'Msgs.expansion_behaviorConductLifeSafety_description',
isInitialized: false,
disabled: true,
init() {
if (this.isInitialized) {
return;
Expand All @@ -86,9 +87,9 @@ Entry.EXPANSION_BLOCK.behaviorConductLifeSafety = {
apiType: '03',
};

Entry.EXPANSION_BLOCK.behaviorConductLifeSafety.getBlocks = function() {
Entry.EXPANSION_BLOCK.behaviorConductLifeSafety.getBlocks = function () {
const categoryMap = getInitialCategoryMap();
const getCategory = function() {
const getCategory = function () {
return Object.keys(categoryMap).map((category) => [categoryMap[category].lang, category]);
};
const defaultCategory = Object.keys(categoryMap)[0];
Expand Down
Loading
Loading