Skip to content

Commit c6357c2

Browse files
committed
update LiveCodes and add themeColor
1 parent 6967d35 commit c6357c2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

components/playgroundEditor/LiveCodes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function LiveCodes({
4242
active: "console",
4343
status: "full",
4444
},
45+
themeColor: "hsl(205, 17%, 50%)", // the original theme color is "#3a4852" which is "hsl(205, 17%, 27%)"
4546
};
4647

4748
const getJSTSConfig = (
@@ -223,7 +224,7 @@ ${test.replace(pattern, "\n")}`.trimStart();
223224

224225
return (
225226
<LiveCodesPlayground
226-
appUrl="https://v34.livecodes.io/"
227+
appUrl="https://v37.livecodes.io/"
227228
loading="eager"
228229
config={config}
229230
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.6.0",
38+
"livecodes": "0.7.1",
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.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==
2999+
livecodes@0.7.1:
3000+
version "0.7.1"
3001+
resolved "https://registry.yarnpkg.com/livecodes/-/livecodes-0.7.1.tgz#cac585d84935cbb94e47894285ad32dc1114acca"
3002+
integrity sha512-YHks/nvcgHPa1YmK7l1LWnaCOQZAlsour1nrUpk3ZGpXOHmkh0V4MbNB8pW+m3u8mGMON3xlhtWEq2+0KYYs0w==
30033003

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

0 commit comments

Comments
 (0)