Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules/*
build/*
dist/*
# Files imported from upstream
# Files imported from upstream or generated by scripts
src/addons/addons
src/addons/libraries
src/addons/api-libraries
src/addons/generated
19 changes: 12 additions & 7 deletions src/addons/addons/2d-color-picker/addon.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "2D color picker",
"description": "Replaces saturation and brightness sliders with a 2D color picker. Hold Shift while dragging the cursor to change the values on a single axis.",
"tags": ["editor", "costumeEditor"],
"tags": [
"editor",
"costumeEditor"
],
"credits": [
{
"name": "Ucrash"
Expand All @@ -10,16 +13,18 @@
"userscripts": [
{
"url": "userscript.js",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"userstyles": [
{
"url": "style.css",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"libraries": ["tinycolor2"],
"enabledByDefault": false,
"l10n": true
}
"enabledByDefault": false
}
18 changes: 18 additions & 0 deletions src/addons/addons/2d-color-picker/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* generated by pull.js */
export default {
"de": () => require("./l10n/de.json"),
"en": () => require("./l10n/en.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"ko": () => require("./l10n/ko.json"),
"nl": () => require("./l10n/nl.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"ru": () => require("./l10n/ru.json"),
"sl": () => require("./l10n/sl.json"),
"sv": () => require("./l10n/sv.json"),
"tr": () => require("./l10n/tr.json"),
};
9 changes: 9 additions & 0 deletions src/addons/addons/2d-color-picker/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("2d-color-picker", manifest);
runner.l10n(l10n);
runner.userscript("userscript.js", () => require("./userscript.js"));
runner.userstyle("style.css", () => require("!!raw-loader!./style.css"));
runner.run();
20 changes: 13 additions & 7 deletions src/addons/addons/bitmap-copy/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,24 @@
"info": [
{
"type": "notice",
"text": "\"Right click \u2192 copy\" is not supported. You must press Ctrl+C while a bitmap image is selected.",
"text": "\"Right click copy\" is not supported. You must press Ctrl+C while a bitmap image is selected.",
"id": "norightclick"
}
],
"userscripts": [
{
"url": "userscript.js",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"tags": ["editor", "costumeEditor"],
"permissions": ["clipboardWrite"],
"enabledByDefault": true,
"l10n": true
}
"tags": [
"editor",
"costumeEditor"
],
"permissions": [
"clipboardWrite"
],
"enabledByDefault": true
}
13 changes: 13 additions & 0 deletions src/addons/addons/bitmap-copy/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated by pull.js */
export default {
"de": () => require("./l10n/de.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"sl": () => require("./l10n/sl.json"),
"tr": () => require("./l10n/tr.json"),
};
8 changes: 8 additions & 0 deletions src/addons/addons/bitmap-copy/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("bitmap-copy", manifest);
runner.l10n(l10n);
runner.userscript("userscript.js", () => require("./userscript.js"));
runner.run();
25 changes: 17 additions & 8 deletions src/addons/addons/block-palette-icons/addon.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
{
"name": "Block palette category icons",
"description": "Adds icons inside the colored circles that identify block categories.",
"tags": ["editor", "codeEditor", "theme"],
"tags": [
"editor",
"codeEditor",
"theme"
],
"enabledByDefault": false,
"dynamicEnable": true,
"dynamicDisable": true,
"userstyles": [
{
"url": "userstyle.css",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"l10n": true,
"credits": [
{ "name": "--Explosion--", "link": "https://scratch.mit.edu/users/--Explosion--/" },
{ "name": "RedGuy7", "link": "https://scratch.mit.edu/users/RedGuy7/" }
{
"name": "--Explosion--",
"link": "https://scratch.mit.edu/users/--Explosion--/"
},
{
"name": "RedGuy7",
"link": "https://scratch.mit.edu/users/RedGuy7/"
}
]
}
}
17 changes: 17 additions & 0 deletions src/addons/addons/block-palette-icons/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* generated by pull.js */
export default {
"ar": () => require("./l10n/ar.json"),
"de": () => require("./l10n/de.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"ko": () => require("./l10n/ko.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"ru": () => require("./l10n/ru.json"),
"sl": () => require("./l10n/sl.json"),
"sv": () => require("./l10n/sv.json"),
"tr": () => require("./l10n/tr.json"),
};
8 changes: 8 additions & 0 deletions src/addons/addons/block-palette-icons/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("block-palette-icons", manifest);
runner.l10n(l10n);
runner.userstyle("userstyle.css", () => require("!!raw-loader!./userstyle.css"));
runner.run();
16 changes: 9 additions & 7 deletions src/addons/addons/block-switching/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
"name": "GarboMuffin"
}
],
"dynamicEnable": true,
"dynamicDisable": true,
"userscripts": [
{
"url": "userscript.js",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"tags": ["editor", "codeEditor", "recommended"],
"tags": [
"editor",
"codeEditor",
"recommended"
],
"settings": [
{
"name": "Show option to change block to self",
Expand Down Expand Up @@ -83,7 +87,5 @@
"default": true
}
],
"libraries": ["scratch-blocks"],
"l10n": true,
"enabledByDefault": true
}
}
17 changes: 17 additions & 0 deletions src/addons/addons/block-switching/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* generated by pull.js */
export default {
"de": () => require("./l10n/de.json"),
"en": () => require("./l10n/en.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"ko": () => require("./l10n/ko.json"),
"nl": () => require("./l10n/nl.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"ru": () => require("./l10n/ru.json"),
"sl": () => require("./l10n/sl.json"),
"tr": () => require("./l10n/tr.json"),
};
8 changes: 8 additions & 0 deletions src/addons/addons/block-switching/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("block-switching", manifest);
runner.l10n(l10n);
runner.userscript("userscript.js", () => require("./userscript.js"));
runner.run();
14 changes: 9 additions & 5 deletions src/addons/addons/blocks2image/addon.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "Save blocks as image",
"description": "Right click the editor workspace to export blocks as SVG/PNG images.",
"tags": ["editor", "codeEditor"],
"tags": [
"editor",
"codeEditor"
],
"credits": [
{
"name": "summerscar"
Expand All @@ -10,9 +13,10 @@
"userscripts": [
{
"url": "userscript.js",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"enabledByDefault": false,
"l10n": true
}
"enabledByDefault": false
}
17 changes: 17 additions & 0 deletions src/addons/addons/blocks2image/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* generated by pull.js */
export default {
"de": () => require("./l10n/de.json"),
"en": () => require("./l10n/en.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"ko": () => require("./l10n/ko.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"ru": () => require("./l10n/ru.json"),
"sl": () => require("./l10n/sl.json"),
"sv": () => require("./l10n/sv.json"),
"tr": () => require("./l10n/tr.json"),
};
8 changes: 8 additions & 0 deletions src/addons/addons/blocks2image/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("blocks2image", manifest);
runner.l10n(l10n);
runner.userscript("userscript.js", () => require("./userscript.js"));
runner.run();
16 changes: 9 additions & 7 deletions src/addons/addons/cat-blocks/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"userscripts": [
{
"url": "userscript.js",
"matches": ["https://scratch.mit.edu/projects/*"]
"matches": [
"https://scratch.mit.edu/projects/*"
]
}
],
"info": [
Expand All @@ -31,9 +33,9 @@
"type": "boolean"
}
],
"tags": ["editor", "codeEditor"],
"versionAdded": "1.14.0",
"enabledByDefault": false,
"libraries": ["scratch-blocks"],
"l10n": true
}
"tags": [
"editor",
"codeEditor"
],
"enabledByDefault": false
}
14 changes: 14 additions & 0 deletions src/addons/addons/cat-blocks/l10n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* generated by pull.js */
export default {
"de": () => require("./l10n/de.json"),
"es": () => require("./l10n/es.json"),
"fr": () => require("./l10n/fr.json"),
"it": () => require("./l10n/it.json"),
"ja": () => require("./l10n/ja.json"),
"ko": () => require("./l10n/ko.json"),
"pl": () => require("./l10n/pl.json"),
"pt-br": () => require("./l10n/pt-br.json"),
"ro": () => require("./l10n/ro.json"),
"sl": () => require("./l10n/sl.json"),
"tr": () => require("./l10n/tr.json"),
};
8 changes: 8 additions & 0 deletions src/addons/addons/cat-blocks/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated by pull.js */
import AddonRunner from "../../api.js";
import manifest from "./addon.json";
import l10n from "./l10n.js";
const runner = new AddonRunner("cat-blocks", manifest);
runner.l10n(l10n);
runner.userscript("userscript.js", () => require("./userscript.js"));
runner.run();
Loading