From e6317f040a115e2d556099591fd07b785f5a6fd3 Mon Sep 17 00:00:00 2001 From: kloodi2020 <80544193+kloodi2020@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:08:02 +0300 Subject: [PATCH] Update webBlocks.js --- webBlocks.js | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/webBlocks.js b/webBlocks.js index 6d72ace..ac454d0 100644 --- a/webBlocks.js +++ b/webBlocks.js @@ -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, @@ -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, @@ -85,12 +92,6 @@ class WebBlocks { "defaultValue": '{"myKey": 5}' } } - }, - { - "opcode": "httpCode", - "blockType": Scratch.BlockType.REPORTER, - "text": "last request http code", - "arguments": {} } ], "menus": {