Skip to content

Commit 632d158

Browse files
authored
Merge pull request #11 from CodeTorchNET/TurboWarp-develop
sync with upstream
2 parents 9fa820e + 4d26ed3 commit 632d158

File tree

22 files changed

+1052
-83
lines changed

22 files changed

+1052
-83
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
12+
- uses: actions/checkout@v4
1313
with:
1414
persist-credentials: false
1515
- name: Install Node.js
16-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version: 22
1919
cache: npm
2020
- run: npm ci
2121
- run: npm run build

package-lock.json

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@turbowarp/jszip": "^3.11.1",
3737
"@turbowarp/nanolog": "^0.2.0",
3838
"@turbowarp/scratch-l10n": "^3.1001.0-202401241456-994097a5",
39-
"@turbowarp/scratch-storage": "^0.0.202502192258",
39+
"@turbowarp/scratch-storage": "^0.0.202505311821",
4040
"@turbowarp/scratch-svg-renderer": "^1.0.0-202312242305-12c360b",
4141
"@turbowarp/startaudiocontext": "^1.0.0",
4242
"arraybuffer-loader": "^1.0.6",

src/addons/addons/middle-click-popup/BlockTypeInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class BlockInputEnum extends BlockInput {
207207
this.values = [];
208208
for (let i = 0; i < options.length; i++) {
209209
if (typeof options[i][1] === "string" && BlockInputEnum.INVALID_VALUES.indexOf(options[i][1]) === -1) {
210-
this.values.push({ value: options[i][1], string: options[i][0].replaceAll(String.fromCharCode(160), " ") });
210+
this.values.push({ value: options[i][1], string: options[i][0].replace(/\u00a0/g, " ") });
211211
}
212212
}
213213
this.isRound = isRound;

src/addons/addons/middle-click-popup/WorkspaceQuerier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ class QueryInfo {
10721072
/** @type {WorkspaceQuerier} */
10731073
this.querier = querier;
10741074
/** @type {string} The query */
1075-
this.str = query.replaceAll(String.fromCharCode(160), " ");
1075+
this.str = query.replace(/\u00a0/g, " ");
10761076
/** @type {string} A lowercase version of the query. Used for case insensitive comparisons. */
10771077
this.lowercase = this.str.toLowerCase();
10781078
/** @type {number} A unique identifier for this query */

src/addons/addons/onion-skinning/userscript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {sanitizeSvg} from '@turbowarp/scratch-svg-renderer';
2+
13
export default async function ({ addon, console, msg }) {
24
const paper = await addon.tab.traps.getPaper();
35

@@ -300,6 +302,8 @@ export default async function ({ addon, console, msg }) {
300302

301303
const makeVectorOnion = (opacity, costume, asset, isBefore) =>
302304
new Promise((resolve, reject) => {
305+
asset = sanitizeSvg.sanitizeSvgText(asset);
306+
303307
const { rotationCenterX, rotationCenterY } = costume;
304308
// https://github.com/scratchfoundation/scratch-paint/blob/cdf0afc217633e6cfb8ba90ea4ae38b79882cf6c/src/containers/paper-canvas.jsx#L196-L218
305309
asset = asset.split(/<\s*svg:/).join("<");

src/addons/addons/reorder-custom-inputs/modified-funcs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function modifiedCreateAllInputs(connectionMap) {
3333
}
3434

3535
// remove all traces of %l at the earliest possible time
36-
this.procCode_ = this.procCode_.replaceAll("%l ", "");
36+
this.procCode_ = this.procCode_.replace(/%l /g, "");
3737
}
3838

3939
//https://github.com/scratchfoundation/scratch-blocks/blob/f210e042988b91bcdc2abeca7a2d85e178edadb2/blocks_vertical/procedures.js#L565
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"commit":"c237cfa"}
1+
{"commit":"df5f51e"}

src/addons/settings/translations.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,16 @@
125125
},
126126
"fr": {
127127
"addonFeedback": "Commentaires sur les addons",
128+
"confirmResetAll": "Êtes-vous sûr de vouloir réinitialiser tous les paramètres des addons à leurs valeurs par défaut ?",
128129
"credits": "Crédits:",
130+
"dirty": "Rechargez les onglets pour appliquer les paramètres.",
129131
"dirtyButton": "Recharger maintenant",
130132
"enableDangerous": "Cet addon est dangereux et va intentionnellement DÉSACTIVER certaines fonctionnalitées. La plupart des utilisateurs NE DOIVENT PAS activer cet addon. Êtes-vous sûr de vouloir l'activer ?",
131133
"export": "Exporter les paramètres",
132134
"groupDanger": "Dangereux ({number})",
133135
"groupOthers": "Autres ({number})",
134136
"import": "Importer les paramètres",
137+
"noCompiler": "Cet addon ne fonctionne que lorsque le compilateur est désactivé via le menu Avancé > Désactiver le compilateur ou à l'aide de l'addon « Désactiver le compilateur dans l'éditeur ».",
135138
"noResults": "Aucun résultat.",
136139
"presets": "Préconfigurations",
137140
"reset": "Réinitialiser",
@@ -194,7 +197,7 @@
194197
"tagNew": "Új!",
195198
"tagRecommended": "Javasolt",
196199
"tagTheme": "Téma",
197-
"title": "Kiegészítő-beállítások",
200+
"title": "Kiegészítők beállításai",
198201
"unsupported": "Néhány kiegészítő nem érhető el ebben a böngészőben."
199202
},
200203
"it": {
@@ -653,12 +656,15 @@
653656
"addonFeedback": "附加元件回饋",
654657
"confirmResetAll": "你確定要重設所有附件設定?",
655658
"credits": "感謝:",
659+
"dirty": "重新加載頁面以套用設定",
656660
"dirtyButton": "重新載入",
661+
"enableDangerous": "此插件非常危險,可能會停用功能。大部分使用者不應啟用此插件。你非常確定要開啟他嗎?",
657662
"export": "匯出設定",
658663
"groupDanger": "危險({number})",
659664
"groupNew": "全新({number})",
660665
"groupOthers": "其他({number})",
661666
"import": "匯入設定",
667+
"noCompiler": "此插件只有在通過\"高級 > 禁用編譯器\"的選項或者使用\"禁用編譯器\"插件才可以正常運行。",
662668
"noResults": "沒有相符的結果。",
663669
"presets": "預設",
664670
"reset": "重設",

src/components/gui/gui.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
.page-wrapper {
66
height: 100%;
7+
display: flex;
8+
flex-direction: column;
79
}
810

911
.body-wrapper {
10-
height: calc(100% - $menu-bar-height);
12+
flex-grow: 1;
1113
background-color: $ui-primary;
1214
}
1315

0 commit comments

Comments
 (0)