Skip to content

Commit 02746d2

Browse files
authored
Merge pull request #292 from hatemhosny/update-livecodes
upgrade LiveCodes playground
2 parents 5fe0073 + 619e486 commit 02746d2

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

components/playgroundEditor/LiveCodes.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export default function LiveCodes({
100100
script: {
101101
language: "python-wasm",
102102
content: addTestRunner(pyCode),
103+
title: "Python",
103104
},
104105
};
105106
};
@@ -124,6 +125,7 @@ export default function LiveCodes({
124125
script: {
125126
language: "python-wasm",
126127
content: getPyCode(jsonCode),
128+
title: "Python",
127129
},
128130
tools: {
129131
enabled: ["console"],
@@ -175,6 +177,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
175177
language: "lua-wasm",
176178
content,
177179
hiddenContent: luaTestRunner,
180+
title: "Lua",
178181
},
179182
};
180183
};
@@ -185,6 +188,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
185188
script: {
186189
language: "php-wasm",
187190
content: phpCode,
191+
title: "PHP",
188192
},
189193
tools: {
190194
enabled: ["console"],
@@ -199,6 +203,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
199203
script: {
200204
language: "cpp-wasm",
201205
content: cCode,
206+
title: "C",
202207
},
203208
});
204209

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

224229
return (
225230
<LiveCodesPlayground
226-
appUrl="https://v19.livecodes.io/"
231+
appUrl="https://v34.livecodes.io/"
227232
loading="eager"
228233
config={config}
229234
style={{ borderRadius: "0", resize: "none" }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"highlight.js": "^11.5.1",
3636
"iframe-resizer-react": "^1.1.0",
3737
"katex": "^0.13.24",
38-
"livecodes": "0.3.0",
38+
"livecodes": "0.6.0",
3939
"marked": "^4.0.17",
4040
"next": "^12.1.0",
4141
"next-i18next": "^8.10.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,10 +2996,10 @@ levn@~0.3.0:
29962996
prelude-ls "~1.1.2"
29972997
type-check "~0.3.2"
29982998

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

30043004
locate-path@^2.0.0:
30053005
version "2.0.0"

0 commit comments

Comments
 (0)