From 619e486a7f431d27149ece3623b9f4848c7085a6 Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Sun, 28 Jul 2024 10:08:24 +0300 Subject: [PATCH] upgrade LiveCodes playground to v34 & SDK to v0.6.0 --- components/playgroundEditor/LiveCodes.tsx | 7 ++++++- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/playgroundEditor/LiveCodes.tsx b/components/playgroundEditor/LiveCodes.tsx index 66003d25..003b84eb 100644 --- a/components/playgroundEditor/LiveCodes.tsx +++ b/components/playgroundEditor/LiveCodes.tsx @@ -100,6 +100,7 @@ export default function LiveCodes({ script: { language: "python-wasm", content: addTestRunner(pyCode), + title: "Python", }, }; }; @@ -124,6 +125,7 @@ export default function LiveCodes({ script: { language: "python-wasm", content: getPyCode(jsonCode), + title: "Python", }, tools: { enabled: ["console"], @@ -175,6 +177,7 @@ ${test.replace(pattern, "\n")}`.trimStart(); language: "lua-wasm", content, hiddenContent: luaTestRunner, + title: "Lua", }, }; }; @@ -185,6 +188,7 @@ ${test.replace(pattern, "\n")}`.trimStart(); script: { language: "php-wasm", content: phpCode, + title: "PHP", }, tools: { enabled: ["console"], @@ -199,6 +203,7 @@ ${test.replace(pattern, "\n")}`.trimStart(); script: { language: "cpp-wasm", content: cCode, + title: "C", }, }); @@ -223,7 +228,7 @@ ${test.replace(pattern, "\n")}`.trimStart(); return (