File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ onMounted(() => {
127
127
const editor = document .querySelector <HTMLElement >(' pre.elysia-editor' )
128
128
129
129
editor .innerHTML = highlighter .codeToHtml (code , {
130
- theme: isDark ? ' github-dark' : ' github-light' ,
130
+ theme: isDark . value ? ' github-dark' : ' github-light' ,
131
131
lang: ' javascript' ,
132
132
})
133
133
@@ -136,7 +136,7 @@ onMounted(() => {
136
136
137
137
editor .innerHTML = highlighter .codeToHtml (
138
138
event .currentTarget .innerText , {
139
- theme: isDark ? ' github-dark' : ' github-light' ,
139
+ theme: isDark . value ? ' github-dark' : ' github-light' ,
140
140
lang: ' javascript' ,
141
141
})
142
142
@@ -194,7 +194,8 @@ onMounted(() => {
194
194
</p >
195
195
196
196
<aside class =" flex flex-col md:flex-row justify-center items-center w-full max-w-6xl gap-8 my-8" >
197
- <section class =" flex flex-col w-full h-96 border dark:border-slate-700 bg-white dark:bg-slate-800 rounded-2xl" >
197
+ <section
198
+ class =" flex flex-col w-full h-96 border dark:border-slate-700 bg-white dark:bg-slate-800 rounded-2xl" >
198
199
<div class =" mockup-window flex relative w-full h-full shadow-xl" >
199
200
<pre class =" elysia-editor block !bg-transparent !text-base !font-mono rounded-xl w-full max-w-xl h-full !pt-0 !px-2 outline-none"
200
201
contenteditable =" true" >
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ import '../tailwind.css'
18
18
import ' ./midori.css'
19
19
20
20
import BuiltWithLove from ' ./built-with-love.vue'
21
-
22
- import useDark from ' ./use-dark'
23
-
24
- const isDark = useDark ()
25
21
</script >
26
22
27
23
<template >
@@ -48,13 +44,15 @@ const isDark = useDark()
48
44
<template v-slot :server >
49
45
<slot name =" server" ></slot >
50
46
</template >
47
+
51
48
<template v-slot :client >
52
49
<slot name =" client" ></slot >
53
50
</template >
54
51
</E2ETypeSafety >
55
52
<Plugins />
56
53
<Suspense >
57
54
<Editor />
55
+
58
56
<template #fallback >
59
57
<video muted autoplay loop >
60
58
<source src =" /assets/elysia.mp4" />
You can’t perform that action at this time.
0 commit comments