Skip to content

Commit

Permalink
Merge pull request #292 from hatemhosny/update-livecodes
Browse files Browse the repository at this point in the history
upgrade LiveCodes playground
  • Loading branch information
maltejur committed Jul 28, 2024
2 parents 5fe0073 + 619e486 commit 02746d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion components/playgroundEditor/LiveCodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export default function LiveCodes({
script: {
language: "python-wasm",
content: addTestRunner(pyCode),
title: "Python",
},
};
};
Expand All @@ -124,6 +125,7 @@ export default function LiveCodes({
script: {
language: "python-wasm",
content: getPyCode(jsonCode),
title: "Python",
},
tools: {
enabled: ["console"],
Expand Down Expand Up @@ -175,6 +177,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
language: "lua-wasm",
content,
hiddenContent: luaTestRunner,
title: "Lua",
},
};
};
Expand All @@ -185,6 +188,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
script: {
language: "php-wasm",
content: phpCode,
title: "PHP",
},
tools: {
enabled: ["console"],
Expand All @@ -199,6 +203,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
script: {
language: "cpp-wasm",
content: cCode,
title: "C",
},
});

Expand All @@ -223,7 +228,7 @@ ${test.replace(pattern, "\n")}`.trimStart();

return (
<LiveCodesPlayground
appUrl="https://v19.livecodes.io/"
appUrl="https://v34.livecodes.io/"
loading="eager"
config={config}
style={{ borderRadius: "0", resize: "none" }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"highlight.js": "^11.5.1",
"iframe-resizer-react": "^1.1.0",
"katex": "^0.13.24",
"livecodes": "0.3.0",
"livecodes": "0.6.0",
"marked": "^4.0.17",
"next": "^12.1.0",
"next-i18next": "^8.10.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2996,10 +2996,10 @@ levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"

livecodes@0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/livecodes/-/livecodes-0.3.0.tgz#95523234f25ecbf338de3e58d4a8e6c0fc05350f"
integrity sha512-bRD9TbWCEDAXfXIzqSSgTmlwHZtMjyrqg4uwULPwIdq8ozaFRVZnIEugvNh8PivpkryWN8OgfVknsNukMov43w==
livecodes@0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/livecodes/-/livecodes-0.6.0.tgz#3ad0d4361f6615cea62b8d40acfa33a892d1542f"
integrity sha512-nUqS6yy3NAKhVw+wt6yLKiqKSNbpbaJddI+KgtpMeQuIclBZbvhXK/enF8w/vQfxODPf5tmXkq765DIDxwTLTA==

locate-path@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 02746d2

Please sign in to comment.