Skip to content

Commit

Permalink
Update webBlocks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kloodi2020 authored Aug 5, 2024
1 parent 8714bdf commit e6317f0
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions webBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ class WebBlocks {
}
}
},
{
"opcode": "extract",
"blockType": Scratch.BlockType.REPORTER,
"text": "extract [key] from [json]",
"arguments": {
"key": {
"type": Scratch.ArgumentType.STRING,
"defaultValue": "example"
},
"json": {
"type": Scratch.ArgumentType.STRING,
"defaultValue": '{"example": 15}'
}
}
},
{
"opcode": "http",
"blockType": Scratch.BlockType.REPORTER,
Expand All @@ -56,6 +41,28 @@ class WebBlocks {
}
}
},
{
"opcode": "httpCode",
"blockType": Scratch.BlockType.REPORTER,
"text": "last request http code",
"arguments": {}
},
"---",
{
"opcode": "extract",
"blockType": Scratch.BlockType.REPORTER,
"text": "extract [key] from [json]",
"arguments": {
"key": {
"type": Scratch.ArgumentType.STRING,
"defaultValue": "example"
},
"json": {
"type": Scratch.ArgumentType.STRING,
"defaultValue": '{"example": 15}'
}
}
},
{
"opcode": "makeJson",
"blockType": Scratch.BlockType.REPORTER,
Expand Down Expand Up @@ -85,12 +92,6 @@ class WebBlocks {
"defaultValue": '{"myKey": 5}'
}
}
},
{
"opcode": "httpCode",
"blockType": Scratch.BlockType.REPORTER,
"text": "last request http code",
"arguments": {}
}
],
"menus": {
Expand Down

0 comments on commit e6317f0

Please sign in to comment.