@solidjs/start 2.0.0-alpha.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/client/mount.d.ts +1 -7
- package/dist/client/mount.js +1 -99
- package/dist/config/constants.js +2 -2
- package/dist/config/fs-router.js +10 -22
- package/dist/config/fs-routes/fs-watcher.js +4 -4
- package/dist/config/fs-routes/index.js +4 -6
- package/dist/config/fs-routes/router.js +5 -5
- package/dist/config/fs-routes/tree-shake.js +12 -21
- package/dist/config/index.js +33 -36
- package/dist/config/lazy.js +9 -9
- package/dist/config/manifest.js +1 -1
- package/dist/http/index.d.ts +1 -4
- package/dist/http/index.js +3 -5
- package/dist/index.d.ts +0 -1
- package/dist/router.jsx +2 -2
- package/dist/server/assets/index.js +1 -1
- package/dist/server/assets/render.jsx +2 -2
- package/dist/server/fetchEvent.spec.js +1 -1
- package/dist/server/handler.js +29 -15
- package/dist/server/index.d.ts +1 -0
- package/dist/server/manifest/dev-client-manifest.js +1 -1
- package/dist/server/manifest/dev-ssr-manifest.js +1 -1
- package/dist/server/manifest/prod-ssr-manifest.js +7 -12
- package/dist/server/routes.js +3 -3
- package/dist/server/server-fns-runtime.js +2 -2
- package/dist/server/server-functions-handler.js +6 -11
- package/dist/server/server-runtime.js +8 -8
- package/dist/shared/dev-overlay/CodeView.d.ts +1 -1
- package/dist/shared/dev-overlay/CodeView.jsx +23 -34
- package/dist/shared/dev-overlay/DevOverlayDialog.jsx +4 -4
- package/dist/shared/dev-overlay/get-source-map.d.ts +1 -1
- package/dist/shared/dev-overlay/get-source-map.js +5 -5
- package/dist/shared/dev-overlay/icons.d.ts +10 -10
- package/dist/shared/dev-overlay/icons.jsx +91 -91
- package/dist/shared/dev-overlay/index.jsx +1 -1
- package/dist/shared/lazy.js +4 -2
- package/env.d.ts +9 -0
- package/package.json +5 -4
- package/scripts/build.js +3 -3
- package/scripts/validate-imports.js +8 -8
- package/src/client/mount.ts +1 -114
- package/src/config/constants.ts +3 -3
- package/src/config/dev-server.ts +95 -99
- package/src/config/fs-router.ts +140 -155
- package/src/config/fs-routes/fs-watcher.ts +57 -61
- package/src/config/fs-routes/index.ts +117 -119
- package/src/config/fs-routes/router.ts +7 -7
- package/src/config/fs-routes/tree-shake.ts +342 -363
- package/src/config/index.ts +36 -39
- package/src/config/lazy.ts +13 -13
- package/src/config/manifest.ts +5 -5
- package/src/config/vite-utils.ts +2 -6
- package/src/env.d.ts +10 -28
- package/src/http/index.ts +105 -142
- package/src/index.tsx +0 -12
- package/src/internal.d.ts +1 -1
- package/src/middleware/index.ts +39 -49
- package/src/router.tsx +4 -3
- package/src/server/StartServer.tsx +1 -7
- package/src/server/assets/index.ts +1 -1
- package/src/server/assets/render.tsx +6 -2
- package/src/server/collect-styles.ts +63 -70
- package/src/server/fetchEvent.spec.ts +71 -75
- package/src/server/fetchEvent.ts +17 -17
- package/src/server/handler.ts +136 -129
- package/src/server/index.tsx +13 -0
- package/src/server/manifest/client-manifest.ts +1 -1
- package/src/server/manifest/dev-client-manifest.ts +7 -5
- package/src/server/manifest/dev-ssr-manifest.ts +8 -6
- package/src/server/manifest/prod-client-manifest.ts +7 -4
- package/src/server/manifest/prod-ssr-manifest.ts +78 -94
- package/src/server/manifest/ssr-manifest.ts +4 -2
- package/src/server/routes.ts +96 -108
- package/src/server/server-fns-runtime.ts +3 -3
- package/src/server/server-functions-handler.ts +294 -319
- package/src/server/server-runtime.ts +13 -13
- package/src/server/spa/handler.ts +12 -12
- package/src/server/types.ts +46 -46
- package/src/server/util.ts +4 -4
- package/src/shared/ErrorBoundary.tsx +1 -1
- package/src/shared/HttpHeader.tsx +20 -20
- package/src/shared/HttpStatusCode.ts +14 -14
- package/src/shared/clientOnly.ts +3 -3
- package/src/shared/dev-overlay/CodeView.tsx +43 -46
- package/src/shared/dev-overlay/DevOverlayDialog.tsx +4 -4
- package/src/shared/dev-overlay/createStackFrame.ts +59 -62
- package/src/shared/dev-overlay/env.d.ts +2 -2
- package/src/shared/dev-overlay/get-source-map.ts +5 -7
- package/src/shared/dev-overlay/icons.tsx +289 -121
- package/src/shared/dev-overlay/index.tsx +1 -1
- package/src/shared/lazy.ts +4 -3
- package/src/shared/serverFunction.ts +1 -1
- package/src/virtual.d.ts +10 -10
- package/tsconfig.json +2 -2
- package/vitest.config.ts +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @refresh skip
|
|
2
|
-
import type { JSX } from
|
|
2
|
+
import type { JSX } from "solid-js";
|
|
3
3
|
|
|
4
4
|
export function ArrowRightIcon(
|
|
5
|
-
props: JSX.IntrinsicElements[
|
|
5
|
+
props: JSX.IntrinsicElements["svg"] & { title: string },
|
|
6
6
|
): JSX.Element {
|
|
7
7
|
return (
|
|
8
8
|
<svg
|
|
@@ -24,7 +24,7 @@ export function ArrowRightIcon(
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export function ArrowLeftIcon(
|
|
27
|
-
props: JSX.IntrinsicElements[
|
|
27
|
+
props: JSX.IntrinsicElements["svg"] & { title: string },
|
|
28
28
|
): JSX.Element {
|
|
29
29
|
return (
|
|
30
30
|
<svg
|
|
@@ -45,9 +45,7 @@ export function ArrowLeftIcon(
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export function RefreshIcon(
|
|
49
|
-
props: JSX.IntrinsicElements['svg'] & { title: string },
|
|
50
|
-
): JSX.Element {
|
|
48
|
+
export function RefreshIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
|
|
51
49
|
return (
|
|
52
50
|
<svg
|
|
53
51
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -68,7 +66,7 @@ export function RefreshIcon(
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
export function ViewCompiledIcon(
|
|
71
|
-
props: JSX.IntrinsicElements[
|
|
69
|
+
props: JSX.IntrinsicElements["svg"] & { title: string },
|
|
72
70
|
): JSX.Element {
|
|
73
71
|
return (
|
|
74
72
|
<svg
|
|
@@ -96,7 +94,7 @@ export function ViewCompiledIcon(
|
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
export function ViewOriginalIcon(
|
|
99
|
-
props: JSX.IntrinsicElements[
|
|
97
|
+
props: JSX.IntrinsicElements["svg"] & { title: string },
|
|
100
98
|
): JSX.Element {
|
|
101
99
|
return (
|
|
102
100
|
<svg
|
|
@@ -117,9 +115,7 @@ export function ViewOriginalIcon(
|
|
|
117
115
|
);
|
|
118
116
|
}
|
|
119
117
|
|
|
120
|
-
export function CameraIcon(
|
|
121
|
-
props: JSX.IntrinsicElements['svg'] & { title: string },
|
|
122
|
-
): JSX.Element {
|
|
118
|
+
export function CameraIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
|
|
123
119
|
return (
|
|
124
120
|
<svg
|
|
125
121
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -129,9 +125,7 @@ export function CameraIcon(
|
|
|
129
125
|
{...props}
|
|
130
126
|
>
|
|
131
127
|
<title>{props.title}</title>
|
|
132
|
-
<path
|
|
133
|
-
d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z"
|
|
134
|
-
/>
|
|
128
|
+
<path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" />
|
|
135
129
|
<path
|
|
136
130
|
fill-rule="evenodd"
|
|
137
131
|
d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3h-15a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
|
|
@@ -141,10 +135,7 @@ export function CameraIcon(
|
|
|
141
135
|
);
|
|
142
136
|
}
|
|
143
137
|
|
|
144
|
-
|
|
145
|
-
export function DiscordIcon(
|
|
146
|
-
props: JSX.IntrinsicElements['svg'] & { title: string },
|
|
147
|
-
): JSX.Element {
|
|
138
|
+
export function DiscordIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
|
|
148
139
|
return (
|
|
149
140
|
<svg
|
|
150
141
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -159,9 +150,7 @@ export function DiscordIcon(
|
|
|
159
150
|
);
|
|
160
151
|
}
|
|
161
152
|
|
|
162
|
-
export function GithubIcon(
|
|
163
|
-
props: JSX.IntrinsicElements['svg'] & { title: string },
|
|
164
|
-
): JSX.Element {
|
|
153
|
+
export function GithubIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
|
|
165
154
|
return (
|
|
166
155
|
<svg
|
|
167
156
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -171,118 +160,297 @@ export function GithubIcon(
|
|
|
171
160
|
{...props}
|
|
172
161
|
>
|
|
173
162
|
<title>{props.title}</title>
|
|
174
|
-
<path
|
|
163
|
+
<path
|
|
164
|
+
fill-rule="evenodd"
|
|
165
|
+
clip-rule="evenodd"
|
|
166
|
+
d="M12.026 2c-5.509 0-9.974 4.465-9.974 9.974 0 4.406 2.857 8.145 6.821 9.465.499.09.679-.217.679-.481 0-.237-.008-.865-.011-1.696-2.775.602-3.361-1.338-3.361-1.338-.452-1.152-1.107-1.459-1.107-1.459-.905-.619.069-.605.069-.605 1.002.07 1.527 1.028 1.527 1.028.89 1.524 2.336 1.084 2.902.829.091-.645.351-1.085.635-1.334-2.214-.251-4.542-1.107-4.542-4.93 0-1.087.389-1.979 1.024-2.675-.101-.253-.446-1.268.099-2.64 0 0 .837-.269 2.742 1.021a9.582 9.582 0 0 1 2.496-.336 9.554 9.554 0 0 1 2.496.336c1.906-1.291 2.742-1.021 2.742-1.021.545 1.372.203 2.387.099 2.64.64.696 1.024 1.587 1.024 2.675 0 3.833-2.33 4.675-4.552 4.922.355.308.675.916.675 1.846 0 1.334-.012 2.41-.012 2.737 0 .267.178.577.687.479C19.146 20.115 22 16.379 22 11.974 22 6.465 17.535 2 12.026 2z"
|
|
167
|
+
></path>
|
|
175
168
|
</svg>
|
|
176
169
|
);
|
|
177
170
|
}
|
|
178
171
|
|
|
179
172
|
export function SolidStartIcon(
|
|
180
|
-
props: JSX.IntrinsicElements[
|
|
173
|
+
props: JSX.IntrinsicElements["svg"] & { title: string },
|
|
181
174
|
): JSX.Element {
|
|
182
175
|
return (
|
|
183
|
-
<svg
|
|
184
|
-
viewBox="0 0 701 701"
|
|
185
|
-
fill="none"
|
|
186
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
187
|
-
{...props}
|
|
188
|
-
>
|
|
176
|
+
<svg viewBox="0 0 701 701" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
189
177
|
<title>{props.title}</title>
|
|
190
178
|
<g filter="url(#filter0_d_1_2)">
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
179
|
+
<rect width="693" height="693" transform="translate(4)" fill="white" />
|
|
180
|
+
<mask
|
|
181
|
+
id="mask0_1_2"
|
|
182
|
+
style="mask-type:luminance"
|
|
183
|
+
maskUnits="userSpaceOnUse"
|
|
184
|
+
x="323"
|
|
185
|
+
y="556"
|
|
186
|
+
width="174"
|
|
187
|
+
height="72"
|
|
188
|
+
>
|
|
189
|
+
<path
|
|
190
|
+
d="M323.508 627.978L435.81 619.384C435.81 619.384 474.315 613.168 496.842 576.082L417.413 556.809L323.508 627.978Z"
|
|
191
|
+
fill="white"
|
|
192
|
+
/>
|
|
193
|
+
</mask>
|
|
194
|
+
<g mask="url(#mask0_1_2)">
|
|
195
|
+
<path
|
|
196
|
+
d="M510.734 559.645L490 661.769L309.658 625.183L330.349 523.018L510.734 559.645Z"
|
|
197
|
+
fill="url(#paint0_linear_1_2)"
|
|
198
|
+
/>
|
|
199
|
+
</g>
|
|
200
|
+
<mask
|
|
201
|
+
id="mask1_1_2"
|
|
202
|
+
style="mask-type:luminance"
|
|
203
|
+
maskUnits="userSpaceOnUse"
|
|
204
|
+
x="73"
|
|
205
|
+
y="364"
|
|
206
|
+
width="424"
|
|
207
|
+
height="220"
|
|
208
|
+
>
|
|
209
|
+
<path
|
|
210
|
+
d="M168.488 364.785C135.031 366.371 73.2477 372.295 73.2477 372.295L342.489 567.989L403.813 583.341L496.884 576.124L225.974 380.096C225.974 380.096 204.072 364.66 172.91 364.66C171.491 364.66 169.989 364.702 168.488 364.785Z"
|
|
211
|
+
fill="white"
|
|
212
|
+
/>
|
|
213
|
+
</mask>
|
|
214
|
+
<g mask="url(#mask1_1_2)">
|
|
215
|
+
<path
|
|
216
|
+
d="M192.016 773.57L-24.954 425.942L378.115 174.389L595.085 522.017L192.016 773.57Z"
|
|
217
|
+
fill="url(#paint1_linear_1_2)"
|
|
218
|
+
/>
|
|
219
|
+
</g>
|
|
220
|
+
<mask
|
|
221
|
+
id="mask2_1_2"
|
|
222
|
+
style="mask-type:luminance"
|
|
223
|
+
maskUnits="userSpaceOnUse"
|
|
224
|
+
x="515"
|
|
225
|
+
y="255"
|
|
226
|
+
width="179"
|
|
227
|
+
height="71"
|
|
228
|
+
>
|
|
229
|
+
<path
|
|
230
|
+
d="M515.573 325.822L631.254 318.688C631.254 318.688 670.885 312.931 693.621 275.928L611.438 255.487L515.573 325.822Z"
|
|
231
|
+
fill="white"
|
|
232
|
+
/>
|
|
233
|
+
</mask>
|
|
234
|
+
<g mask="url(#mask2_1_2)">
|
|
235
|
+
<path
|
|
236
|
+
d="M557.832 401.58L485.62 272.174L651.32 179.729L723.532 309.135L557.832 401.58Z"
|
|
237
|
+
fill="url(#paint2_linear_1_2)"
|
|
238
|
+
/>
|
|
239
|
+
</g>
|
|
240
|
+
<mask
|
|
241
|
+
id="mask3_1_2"
|
|
242
|
+
style="mask-type:luminance"
|
|
243
|
+
maskUnits="userSpaceOnUse"
|
|
244
|
+
x="254"
|
|
245
|
+
y="59"
|
|
246
|
+
width="440"
|
|
247
|
+
height="223"
|
|
248
|
+
>
|
|
249
|
+
<path
|
|
250
|
+
d="M352.251 59.0417C317.751 60.1681 254.132 65.2993 254.132 65.2993L534.345 265.666L597.755 281.936L693.621 275.928L411.697 75.2279C411.697 75.2279 388.294 59 355.505 59C354.42 59 353.335 59 352.251 59.0417Z"
|
|
251
|
+
fill="white"
|
|
252
|
+
/>
|
|
253
|
+
</mask>
|
|
254
|
+
<g mask="url(#mask3_1_2)">
|
|
255
|
+
<path
|
|
256
|
+
d="M623.161 -102.236L775.386 246.226L324.592 443.172L172.325 94.7097L623.161 -102.236Z"
|
|
257
|
+
fill="url(#paint3_linear_1_2)"
|
|
258
|
+
/>
|
|
259
|
+
</g>
|
|
260
|
+
<mask
|
|
261
|
+
id="mask4_1_2"
|
|
262
|
+
style="mask-type:luminance"
|
|
263
|
+
maskUnits="userSpaceOnUse"
|
|
264
|
+
x="6"
|
|
265
|
+
y="371"
|
|
266
|
+
width="396"
|
|
267
|
+
height="257"
|
|
268
|
+
>
|
|
269
|
+
<path
|
|
270
|
+
d="M6.62575 415.555C6.41717 415.889 6.20858 416.264 6 416.64L79.6305 469.912L153.261 523.185L275.909 611.917C317.125 641.744 373.318 628.895 401.393 583.215L326.762 529.234L252.13 475.252L130.483 387.229C115.632 376.508 98.8203 371.377 82.1335 371.377C53.0567 371.335 24.272 386.895 6.62575 415.555Z"
|
|
271
|
+
fill="white"
|
|
272
|
+
/>
|
|
273
|
+
</mask>
|
|
274
|
+
<g mask="url(#mask4_1_2)">
|
|
275
|
+
<path
|
|
276
|
+
d="M529.756 464.03L265.855 829.387L-122.321 549.008L141.538 183.65L529.756 464.03Z"
|
|
277
|
+
fill="url(#paint4_linear_1_2)"
|
|
278
|
+
/>
|
|
279
|
+
</g>
|
|
280
|
+
<mask
|
|
281
|
+
id="mask5_1_2"
|
|
282
|
+
style="mask-type:luminance"
|
|
283
|
+
maskUnits="userSpaceOnUse"
|
|
284
|
+
x="187"
|
|
285
|
+
y="64"
|
|
286
|
+
width="411"
|
|
287
|
+
height="263"
|
|
288
|
+
>
|
|
289
|
+
<path
|
|
290
|
+
d="M188.47 108.101C188.261 108.476 188.053 108.81 187.844 109.186L264.478 163.751L341.112 218.317L468.725 309.177C511.61 339.714 569.388 327.532 597.755 281.977L520.078 226.661L442.401 171.386L315.832 81.2352C300.063 70.0133 282.25 64.6318 264.645 64.6318C235.026 64.6318 206.074 79.9002 188.47 108.101Z"
|
|
291
|
+
fill="white"
|
|
292
|
+
/>
|
|
293
|
+
</mask>
|
|
294
|
+
<g mask="url(#mask5_1_2)">
|
|
295
|
+
<path
|
|
296
|
+
d="M685.945 96.6704L550.031 471.164L99.6544 307.675L235.527 -66.8184L685.945 96.6704Z"
|
|
297
|
+
fill="url(#paint5_linear_1_2)"
|
|
298
|
+
/>
|
|
299
|
+
</g>
|
|
300
|
+
<mask
|
|
301
|
+
id="mask6_1_2"
|
|
302
|
+
style="mask-type:luminance"
|
|
303
|
+
maskUnits="userSpaceOnUse"
|
|
304
|
+
x="134"
|
|
305
|
+
y="164"
|
|
306
|
+
width="419"
|
|
307
|
+
height="344"
|
|
308
|
+
>
|
|
309
|
+
<path
|
|
310
|
+
d="M134.363 170.051L233.149 278.64C237.571 284.856 242.744 290.571 248.626 295.66L441.567 507.791L537.432 501.784C565.8 456.229 554.036 394.53 511.151 363.993L383.539 273.133L306.863 218.567L230.229 164.002L134.363 170.051Z"
|
|
311
|
+
fill="white"
|
|
312
|
+
/>
|
|
313
|
+
</mask>
|
|
314
|
+
<g mask="url(#mask6_1_2)">
|
|
315
|
+
<path
|
|
316
|
+
d="M291.886 715.5L-31.1699 289.528L408.235 -43.7072L731.291 382.265L291.886 715.5Z"
|
|
317
|
+
fill="url(#paint6_linear_1_2)"
|
|
318
|
+
/>
|
|
319
|
+
</g>
|
|
320
|
+
<mask
|
|
321
|
+
id="mask7_1_2"
|
|
322
|
+
style="mask-type:luminance"
|
|
323
|
+
maskUnits="userSpaceOnUse"
|
|
324
|
+
x="118"
|
|
325
|
+
y="170"
|
|
326
|
+
width="340"
|
|
327
|
+
height="338"
|
|
328
|
+
>
|
|
329
|
+
<path
|
|
330
|
+
d="M133.696 171.094C105.703 216.065 117.301 276.971 159.644 307.091L286.255 397.241L363.932 452.516L441.609 507.791C469.976 462.236 458.212 400.537 415.327 370L287.631 279.141L210.997 224.575L134.363 170.051C134.154 170.384 133.904 170.718 133.696 171.094Z"
|
|
331
|
+
fill="white"
|
|
332
|
+
/>
|
|
333
|
+
</mask>
|
|
334
|
+
<g mask="url(#mask7_1_2)">
|
|
335
|
+
<path
|
|
336
|
+
d="M606.057 239.009L395.553 654.635L-30.4607 438.833L180.043 23.2069L606.057 239.009Z"
|
|
337
|
+
fill="url(#paint7_linear_1_2)"
|
|
338
|
+
/>
|
|
339
|
+
</g>
|
|
240
340
|
</g>
|
|
241
341
|
<defs>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
342
|
+
<filter
|
|
343
|
+
id="filter0_d_1_2"
|
|
344
|
+
x="0"
|
|
345
|
+
y="0"
|
|
346
|
+
width="701"
|
|
347
|
+
height="701"
|
|
348
|
+
filterUnits="userSpaceOnUse"
|
|
349
|
+
color-interpolation-filters="sRGB"
|
|
350
|
+
>
|
|
351
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
352
|
+
<feColorMatrix
|
|
353
|
+
in="SourceAlpha"
|
|
354
|
+
type="matrix"
|
|
355
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
356
|
+
result="hardAlpha"
|
|
357
|
+
/>
|
|
358
|
+
<feOffset dy="4" />
|
|
359
|
+
<feGaussianBlur stdDeviation="2" />
|
|
360
|
+
<feComposite in2="hardAlpha" operator="out" />
|
|
361
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
|
|
362
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1_2" />
|
|
363
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1_2" result="shape" />
|
|
364
|
+
</filter>
|
|
365
|
+
<linearGradient
|
|
366
|
+
id="paint0_linear_1_2"
|
|
367
|
+
x1="522.269"
|
|
368
|
+
y1="40.5341"
|
|
369
|
+
x2="374.272"
|
|
370
|
+
y2="769.949"
|
|
371
|
+
gradientUnits="userSpaceOnUse"
|
|
372
|
+
>
|
|
373
|
+
<stop stop-color="#1593F5" />
|
|
374
|
+
<stop offset="1" stop-color="#0084CE" />
|
|
375
|
+
</linearGradient>
|
|
376
|
+
<linearGradient
|
|
377
|
+
id="paint1_linear_1_2"
|
|
378
|
+
x1="507.729"
|
|
379
|
+
y1="830.625"
|
|
380
|
+
x2="-112.45"
|
|
381
|
+
y2="-163.072"
|
|
382
|
+
gradientUnits="userSpaceOnUse"
|
|
383
|
+
>
|
|
384
|
+
<stop stop-color="#1593F5" />
|
|
385
|
+
<stop offset="1" stop-color="#0084CE" />
|
|
386
|
+
</linearGradient>
|
|
387
|
+
<linearGradient
|
|
388
|
+
id="paint2_linear_1_2"
|
|
389
|
+
x1="915.255"
|
|
390
|
+
y1="847.35"
|
|
391
|
+
x2="541.738"
|
|
392
|
+
y2="177.838"
|
|
393
|
+
gradientUnits="userSpaceOnUse"
|
|
394
|
+
>
|
|
395
|
+
<stop stop-color="white" />
|
|
396
|
+
<stop offset="1" stop-color="#15ABFF" />
|
|
397
|
+
</linearGradient>
|
|
398
|
+
<linearGradient
|
|
399
|
+
id="paint3_linear_1_2"
|
|
400
|
+
x1="254.189"
|
|
401
|
+
y1="-332.587"
|
|
402
|
+
x2="571.326"
|
|
403
|
+
y2="393.304"
|
|
404
|
+
gradientUnits="userSpaceOnUse"
|
|
405
|
+
>
|
|
406
|
+
<stop stop-color="white" />
|
|
407
|
+
<stop offset="1" stop-color="#79CFFF" />
|
|
408
|
+
</linearGradient>
|
|
409
|
+
<linearGradient
|
|
410
|
+
id="paint4_linear_1_2"
|
|
411
|
+
x1="610.213"
|
|
412
|
+
y1="-56.2573"
|
|
413
|
+
x2="106.317"
|
|
414
|
+
y2="641.444"
|
|
415
|
+
gradientUnits="userSpaceOnUse"
|
|
416
|
+
>
|
|
417
|
+
<stop stop-color="#0057E5" />
|
|
418
|
+
<stop offset="1" stop-color="#0084CE" />
|
|
419
|
+
</linearGradient>
|
|
420
|
+
<linearGradient
|
|
421
|
+
id="paint5_linear_1_2"
|
|
422
|
+
x1="496.212"
|
|
423
|
+
y1="-82.6564"
|
|
424
|
+
x2="337.643"
|
|
425
|
+
y2="354.288"
|
|
426
|
+
gradientUnits="userSpaceOnUse"
|
|
427
|
+
>
|
|
428
|
+
<stop stop-color="white" />
|
|
429
|
+
<stop offset="1" stop-color="#15ABFF" />
|
|
430
|
+
</linearGradient>
|
|
431
|
+
<linearGradient
|
|
432
|
+
id="paint6_linear_1_2"
|
|
433
|
+
x1="693.692"
|
|
434
|
+
y1="789.133"
|
|
435
|
+
x2="-102.675"
|
|
436
|
+
y2="-260.944"
|
|
437
|
+
gradientUnits="userSpaceOnUse"
|
|
438
|
+
>
|
|
439
|
+
<stop stop-color="white" />
|
|
440
|
+
<stop offset="1" stop-color="#79CFFF" />
|
|
441
|
+
</linearGradient>
|
|
442
|
+
<linearGradient
|
|
443
|
+
id="paint7_linear_1_2"
|
|
444
|
+
x1="555.118"
|
|
445
|
+
y1="-188.777"
|
|
446
|
+
x2="146.363"
|
|
447
|
+
y2="618.161"
|
|
448
|
+
gradientUnits="userSpaceOnUse"
|
|
449
|
+
>
|
|
450
|
+
<stop stop-color="white" />
|
|
451
|
+
<stop offset="1" stop-color="#79CFFF" />
|
|
452
|
+
</linearGradient>
|
|
284
453
|
</defs>
|
|
285
454
|
</svg>
|
|
286
455
|
);
|
|
287
456
|
}
|
|
288
|
-
|
package/src/shared/lazy.ts
CHANGED
|
@@ -38,14 +38,15 @@ const withAssets = function <T extends () => Promise<{ default: Component<any> }
|
|
|
38
38
|
useAssets(assets, nonce);
|
|
39
39
|
|
|
40
40
|
return mod.default(props);
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
return wrapper as T;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const lazy = !isServer
|
|
49
|
-
solidLazy
|
|
48
|
+
const lazy = !isServer
|
|
49
|
+
? solidLazy
|
|
50
|
+
: <T extends Component<any>>(fn: () => Promise<{ default: T }>) => solidLazy(withAssets(fn));
|
|
50
51
|
|
|
51
52
|
export default lazy;
|
|
@@ -6,5 +6,5 @@ import type { ServerFunctionMeta } from "../server/types.ts";
|
|
|
6
6
|
* Read more: https://docs.solidjs.com/solid-start/reference/server/get-server-function-meta
|
|
7
7
|
*/
|
|
8
8
|
export function getServerFunctionMeta(): ServerFunctionMeta | undefined {
|
|
9
|
-
|
|
9
|
+
return getRequestEvent()?.locals.serverFunctionMeta;
|
|
10
10
|
}
|
package/src/virtual.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
declare module "solid-start:client-vite-manifest" {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export const clientViteManifest: Record<
|
|
3
|
+
string,
|
|
4
|
+
{ css?: Array<string>; file: string; [key: string]: unknown }
|
|
5
|
+
>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
interface StartManifest {
|
|
9
|
-
|
|
9
|
+
getAssets(id: string): Promise<import("./server/assets/render").Asset[]>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare module "solid-start:get-client-manifest" {
|
|
13
|
-
|
|
13
|
+
export const getClientManifest: () => StartManifest;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module "solid-start:get-manifest" {
|
|
17
|
-
|
|
17
|
+
export const getManifest: (target: "client" | "ssr") => StartManifest;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
declare module "solid-start:app" {
|
|
21
|
-
|
|
21
|
+
export default App as import("solid-js").Component;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare module "solid-start:middleware" {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
type MaybeArray<T> = T | Array<T>;
|
|
26
|
+
export default Middleware as import("h3").Middleware[];
|
|
27
27
|
}
|
package/tsconfig.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"types": ["vite/client"],
|
|
18
18
|
"allowImportingTsExtensions": true,
|
|
19
19
|
"rewriteRelativeImportExtensions": true,
|
|
20
|
-
"rootDir": "./src"
|
|
20
|
+
"rootDir": "./src",
|
|
21
21
|
},
|
|
22
|
-
"include": ["./src", "./src/env.d.ts"]
|
|
22
|
+
"include": ["env.d.ts", "./src", "./src/env.d.ts"],
|
|
23
23
|
}
|
package/vitest.config.ts
CHANGED