Skip to content

Commit

Permalink
Skyhigh173/json: rename blocks for consistency (TurboWarp#1013)
Browse files Browse the repository at this point in the history
- made booleans internally consistent with missing question marks
- removed "get" where applicable
- made some blocks be more internally consistent when it comes to value order, like putting the array before the new value
- removed unnecessary words like "content" in the list block
  • Loading branch information
fernyrepos authored Sep 6, 2023
1 parent 4942e25 commit 5c28a7d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions extensions/Skyhigh173/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
opcode: "json_is_valid",
blockType: Scratch.BlockType.BOOLEAN,
text: "is JSON [json] valid",
text: "is JSON [json] valid?",
arguments: {
json: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -41,7 +41,7 @@
{
opcode: "json_is",
blockType: Scratch.BlockType.BOOLEAN,
text: "is [json] [types]",
text: "is [json] [types]?",
arguments: {
json: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -58,7 +58,7 @@
{
opcode: "json_get_all",
blockType: Scratch.BlockType.REPORTER,
text: "get all [Stype] of [json]",
text: "all [Stype] of [json]",
arguments: {
Stype: {
type: Scratch.ArgumentType.STRING,
Expand Down Expand Up @@ -148,7 +148,7 @@
{
opcode: "json_get",
blockType: Scratch.BlockType.REPORTER,
text: "get [item] in [json]",
text: "value of [item] in [json]",
arguments: {
item: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -163,7 +163,7 @@
{
opcode: "json_set",
blockType: Scratch.BlockType.REPORTER,
text: "set [item] to [value] in [json]",
text: "set [item] in [json] to [value]",
arguments: {
item: {
type: Scratch.ArgumentType.STRING,
Expand Down Expand Up @@ -336,7 +336,7 @@
{
opcode: "json_array_fromto",
blockType: Scratch.BlockType.REPORTER,
text: "array [json] from item [item] to [item2]",
text: "items [item] to [item2] of array [json]",
arguments: {
json: {
type: Scratch.ArgumentType.STRING,
Expand Down Expand Up @@ -396,7 +396,7 @@
{
opcode: "json_array_filter",
blockType: Scratch.BlockType.REPORTER,
text: "get all value with key [key] in array [json]",
text: "get all values with key [key] in array [json]",
arguments: {
key: {
type: Scratch.ArgumentType.STRING,
Expand Down Expand Up @@ -487,7 +487,7 @@
{
opcode: "json_vm_setlist",
blockType: Scratch.BlockType.COMMAND,
text: "set list [list] to content [json]",
text: "set list [list] to [json]",
arguments: {
list: {
type: Scratch.ArgumentType.STRING,
Expand Down

0 comments on commit 5c28a7d

Please sign in to comment.