Skip to content

Commit b8be6d8

Browse files
authored
Merge branch 'main' into fix-elysia-06-typos
2 parents fecc886 + 4b5dcd5 commit b8be6d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1331
-889
lines changed

components/midori/e2e-type-safety.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ await eden.user.age.patch({
3939
Introducing
4040
</h3>
4141
<h2
42-
class="text-5xl md:text-6xl font-bold !leading-tight text-transparent bg-clip-text bg-gradient-to-r from-sky-300 to-indigo-400 mt-2 mb-4"
42+
class="text-5xl md:text-6xl font-bold !leading-tight text-transparent bg-clip-text bg-gradient-to-r from-sky-300 to-indigo-400 mt-2 mb-4 mr-auto md:mx-auto"
4343
>
4444
End–to-End Type Safety
4545
</h2>
@@ -52,9 +52,14 @@ await eden.user.age.patch({
5252
Move fast and break nothing like tRPC.
5353
</p>
5454

55-
<section
56-
class="flex flex-col lg:flex-row gap-8 w-full max-w-5xl my-8"
55+
<a
56+
class="text-lg font-medium bg-blue-50 text-blue-500 dark:text-blue-400 dark:bg-blue-500/20 mr-auto md:mx-auto px-3 py-1.5 rounded-lg mt-4"
57+
href="/patterns/end-to-end-type-safety"
5758
>
59+
See how it works
60+
</a>
61+
62+
<section class="flex flex-col lg:flex-row gap-8 w-full max-w-5xl my-8">
5863
<div class="w-full">
5964
<Prism
6065
class="!text-base !font-mono rounded-xl"

components/midori/editor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ onMounted(() => {
176176
<p
177177
class="text-xl md:text-2xl leading-relaxed text-gray-400 text-left md:text-center w-full max-w-2xl"
178178
>
179-
Being WinterCG compliance, Elysia can run in your browser!
179+
Being WinterCG compliant, Elysia can run in your browser!
180180
<br />
181181
Edit the code and see live update immediately.
182182
</p>
@@ -205,7 +205,7 @@ onMounted(() => {
205205
</section>
206206
<div class="w-full mockup-browser h-96 shadow-xl border dark:border-gray-600 bg-white dark:bg-gray-700 max-w-full">
207207
<div class="mockup-browser-toolbar">
208-
<form class="input font-medium dark:!bg-gray-600" @submit.prevent="execute">
208+
<form class="input font-medium !bg-gray-100 dark:!bg-gray-600" @submit.prevent="execute">
209209
<span class="text-gray-400 dark:text-gray-300">localhost</span>
210210
<input
211211
class="absolute"

components/midori/hero.vue

Lines changed: 4 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -3,74 +3,7 @@
33
id="splash"
44
class="pointer-events-none absolute top-[-70vh] max-w-full flex justify-center w-full h-screen opacity-50"
55
>
6-
<svg
7-
v-if="!isDark"
8-
class="filter blur-3xl"
9-
xmlns="http://www.w3.org/2000/svg"
10-
version="1.1"
11-
xmlns:xlink="http://www.w3.org/1999/xlink"
12-
xmlns:svgjs="http://svgjs.dev/svgjs"
13-
width="1100"
14-
height="1100"
15-
viewBox="0 0 1100 1100"
16-
>
17-
<defs>
18-
<radialGradient id="ffflux-gradient">
19-
<stop offset="0%" stop-color="hsl(236, 100%, 72%)"></stop>
20-
<stop offset="100%" stop-color="hsl(0, 0%, 100%)"></stop>
21-
</radialGradient>
22-
<filter
23-
id="ffflux-filter"
24-
x="-20%"
25-
y="-20%"
26-
width="140%"
27-
height="140%"
28-
filterUnits="objectBoundingBox"
29-
primitiveUnits="userSpaceOnUse"
30-
color-interpolation-filters="sRGB"
31-
>
32-
<feTurbulence
33-
type="fractalNoise"
34-
baseFrequency="0.005 0.003"
35-
numOctaves="1"
36-
seed="2"
37-
stitchTiles="stitch"
38-
x="0%"
39-
y="0%"
40-
width="100%"
41-
height="100%"
42-
result="turbulence"
43-
></feTurbulence>
44-
<feGaussianBlur
45-
stdDeviation="23 14"
46-
x="0%"
47-
y="0%"
48-
width="100%"
49-
height="100%"
50-
in="turbulence"
51-
edgeMode="duplicate"
52-
result="blur"
53-
></feGaussianBlur>
54-
<feBlend
55-
mode="color-dodge"
56-
x="0%"
57-
y="0%"
58-
width="100%"
59-
height="100%"
60-
in="SourceGraphic"
61-
in2="blur"
62-
result="blend"
63-
></feBlend>
64-
</filter>
65-
</defs>
66-
<rect
67-
width="1100"
68-
height="1100"
69-
fill="url(#ffflux-gradient)"
70-
filter="url(#ffflux-filter)"
71-
></rect>
72-
</svg>
73-
<div v-else class="block dark-light" />
6+
<div :class="(isDark ? 'block gradient -dark' : 'block gradient -light')" />
747
</div>
758
<header
769
class="relative flex flex-col justify-center items-center font-sans w-full px-6 pt-20 mb-16 md:mb-8 overflow-hidden"
@@ -154,7 +87,7 @@
15487
>, unified type system and outstanding developer experience
15588
</h3>
15689
<section
157-
class="flex flex-col sm:flex-row items-start gap-4 mt-10 mb-12"
90+
class="flex flex-col sm:flex-row items-start w-full md:w-auto gap-4 mt-10 mb-12"
15891
>
15992
<a
16093
class="text-white font-medium text-lg bg-blue-500 px-6 py-2.5 rounded-full"
@@ -165,7 +98,7 @@
16598
<code
16699
class="text-blue-500 font-mono font-medium text-lg bg-blue-200/25 dark:bg-blue-500/20 px-6 py-2.5 rounded-full"
167100
>
168-
bun create elysia new-app
101+
bun create elysia app
169102
</code>
170103
</section>
171104
<p class="flex justify-center items-center gap-2 text-gray-400">
@@ -193,7 +126,7 @@
193126
import { onMounted, ref } from 'vue'
194127
195128
const isDark = ref(false)
196-
129+
const safari =
197130
onMounted(() => {
198131
// @ts-ignore
199132
isDark.value = document.documentElement.classList.contains('dark')

components/midori/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ onMounted(() => {
9696
<Plugins />
9797
<Editor />
9898
<Community />
99+
<figure
100+
class="max-w-6xl w-full mx-auto rounded-2xl overflow-hidden my-12 shadow-xl bg-gray-50 dark:bg-gray-800"
101+
>
102+
<img
103+
class="w-full object-cover object-center"
104+
src="/assets/feature-sheet.webp"
105+
alt="Elysia Feature Sheet"
106+
/>
107+
</figure>
99108
<QuickStart />
100109
<BuiltWithLove />
101110
</article>

components/midori/midori.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
.dark-light {
1+
.gradient {
22
width: 1100px;
33
height: 1100px;
4+
}
5+
6+
.gradient.-light {
7+
background: radial-gradient(ellipse at center, #d7e0ff 0%, #eaecff 35%, transparent 70%);
8+
}
9+
10+
.gradient.-dark {
411
background: radial-gradient(ellipse at center, #797ee199 0%, transparent 70%);
512
}

components/midori/openapi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Prism from 'vue-prism-component'
33
44
const code = `import { Elysia, t } from 'elysia'
55
import { swagger } from '@elysiajs/swagger'
6-
import { user, feed } from './controllers'
6+
import { users, feed } from './controllers'
77
88
new Elysia()
99
.use(swagger())

components/midori/plugins.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ const plugins = [
1212
'https://github.com/wobsoriano/elysia-clerk'
1313
],
1414
[
15-
'OAuth',
16-
'/assets/lock.svg',
17-
'https://github.com/bogeychan/elysia-oauth2',
18-
'/assets/lock-dark.svg'
15+
'Lucia Auth',
16+
'/assets/lucia.svg',
17+
'https://github.com/pilcrowOnPaper/lucia'
1918
],
2019
[
2120
'Logger',

components/midori/quickstart.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
class="flex flex-col justify-center items-center gap-3 w-full my-24 overflow-hidden"
44
>
55
<h2
6-
class="relative text-5xl md:text-6xl md:leading-tight font-bold md:text-center leading-tight text-transparent bg-clip-text bg-gradient-to-r from-sky-300 to-indigo-400"
6+
class="relative text-5xl md:text-6xl md:leading-tight font-bold text-center leading-tight text-transparent bg-clip-text bg-gradient-to-r from-sky-300 to-indigo-400"
77
>
88
Start in minutes
99
</h2>
1010
<h3
11-
class="text-xl md:text-2xl leading-relaxed text-gray-400 text-left md:text-center w-full max-w-3xl"
11+
class="text-xl md:text-2xl leading-relaxed text-gray-400 text-center w-full max-w-3xl"
1212
>
1313
Scaffold your project, and run server in no time
1414
</h3>
1515
<section class="flex flex-col justify-center items-center gap-6 my-6">
1616
<code
1717
class="text-blue-500 font-mono font-medium text-lg bg-blue-200/25 dark:bg-blue-500/20 px-6 py-2.5 rounded-full"
1818
>
19-
bun create elysia new-app
19+
bun create elysia app
2020
</code>
2121
<aside class="flex gap-4">
2222
<a

components/midori/simple.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
everyone
3232
</p>
3333
<p class="text-xl text-gray-400 w-full max-w-lg">
34-
From built-in strict-type validaiton to a unified type
34+
From built-in strict-type validation to a unified type
3535
system, and documentation generation, making an ideal
3636
framework for building servers with TypeScript.
3737
</p>

docs/blog/elysia-06.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ By default, this declaration is used by:
146146
- Netlify Edge Function
147147
- Remix Function Handler
148148
149-
Which means you can run all of the above code to interact with Elysia all in a single server, or reused and existing function all in one deployment, no need to set up a Reverse Proxy for handling multiple server.
149+
Which means you can run all of the above code to interlop with Elysia all in a single server, or re-used and existing function all in one deployment, no need to setting up Reverse Proxy for handling multiple server.
150150
151151
If the framework also support a **.mount** function, you can deeply nested a framework that support it infinitely.
152152
```ts
@@ -163,7 +163,7 @@ const main = new Elysia()
163163
.listen(3000)
164164
```
165165

166-
You can even reused multiple existing Elysia project in your server.
166+
You can even re-used multiple existing Elysia project in your server.
167167

168168
```ts
169169
import A from 'project-a/elysia'

0 commit comments

Comments
 (0)