File tree Expand file tree Collapse file tree 5 files changed +89
-6
lines changed Expand file tree Collapse file tree 5 files changed +89
-6
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ export default defineConfig({
478
478
}
479
479
] ,
480
480
outline : {
481
- level : [ 2 , 3 ] ,
481
+ level : 2 ,
482
482
label : 'Outline'
483
483
} ,
484
484
socialLinks : [
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function useFlyIn(isInView: Ref<boolean>) {
15
15
} ,
16
16
transition : {
17
17
ease : easeOutExpo ,
18
- duration : 2 ,
18
+ duration : 1.6 ,
19
19
delay
20
20
}
21
21
} ) )
@@ -32,7 +32,7 @@ export function useFadeIn(isInView: Ref<boolean>) {
32
32
} ,
33
33
transition : {
34
34
ease : easeOutExpo ,
35
- duration : 2 ,
35
+ duration : 1.6 ,
36
36
delay
37
37
}
38
38
} ) )
@@ -50,7 +50,7 @@ export function useExpandWidth(isInView: Ref<boolean>) {
50
50
} ,
51
51
transition : {
52
52
ease : easeOutExpo ,
53
- duration : 2 ,
53
+ duration : 1.6 ,
54
54
delay
55
55
}
56
56
} ) )
Original file line number Diff line number Diff line change 19
19
@reference "../../tailwind.css";
20
20
21
21
.code-compare {
22
- @apply z- 40 grid grid-cols- 1 lg :grid-cols-2 gap-2.5 bg-white dark :bg-slate-800 rounded-xl w-full;
22
+ @apply z- 40 grid grid-cols- 1 lg :grid-cols-2 gap-2.5 rounded-xl w-full;
23
23
grid-auto-rows : 1fr ;
24
24
25
25
& > article {
Original file line number Diff line number Diff line change @@ -351,14 +351,36 @@ type ContentType = |
351
351
| ' json'
352
352
// Shorthand for 'multipart/form-data'
353
353
| ' formdata'
354
- // Shorthand for 'application/x-www-form-urlencoded'\
354
+ // Shorthand for 'application/x-www-form-urlencoded'
355
355
| ' urlencoded'
356
+ // Skip body parsing entirely
357
+ | ' none'
356
358
| ' text/plain'
357
359
| ' application/json'
358
360
| ' multipart/form-data'
359
361
| ' application/x-www-form-urlencoded'
360
362
` ` `
361
363
364
+ ### Skip Body Parsing
365
+ When you need to integrate a third-party library with HTTP handler like ` trpc ` , ` orpc ` , and it throw ` Body is already used ` .
366
+
367
+ This is because Web Standard Request can be parsed only once.
368
+
369
+ Both Elysia and the third-party library both has its own body parser, so you can skip body parsing on Elysia side by specifying ` parse : ' none' `
370
+
371
+ ` ` ` typescript
372
+ import { Elysia } from ' elysia'
373
+
374
+ new Elysia ()
375
+ .post (
376
+ ' /' ,
377
+ ({ request }) => library .handle (request ),
378
+ {
379
+ parse: ' none'
380
+ }
381
+ )
382
+ ```
383
+
362
384
### Custom Parser
363
385
364
386
You can provide register a custom parser with ` parser ` :
Original file line number Diff line number Diff line change @@ -697,3 +697,64 @@ button.copy::after {
697
697
# VPSidebarNav {
698
698
@apply flex flex-col min-h-full;
699
699
}
700
+
701
+ .VPLocalSearchBox {
702
+ & > .backdrop {
703
+ @apply !bg- black/ 7.5 ;
704
+ animation : fade-in 0.4s cubic-bezier (0.16 , 1 , 0.3 , 1 );
705
+ }
706
+
707
+ & > .shell {
708
+ @apply md:max-w-2xl !bg-white md:!bg-white/75 dark:!bg-gray-800 md:dark:!bg-gray-800/75 md:backdrop-blur-md md:!rounded-2xl md:border dark:border-gray-600 md:shadow-xl shadow-black/5;
709
+ animation : search-in 0.4s cubic-bezier (0.16 , 1 , 0.3 , 1 );
710
+
711
+ & > .search-bar {
712
+ @apply !rounded- xl bg- gray-200 / 40 dark:bg-gray-500/30 !bor der-gray-200/85 dark:!bor der-gray-500/30;
713
+ }
714
+
715
+ & > .results > li > a {
716
+ @apply !rounded- xl;
717
+ }
718
+
719
+ & > .search-keyboard-shortcuts {
720
+ & > span > kbd {
721
+ @apply rounded-lg dark:!bg-gray-700;
722
+ }
723
+ }
724
+ }
725
+ }
726
+
727
+ @keyframes search-in {
728
+ from {
729
+ opacity : 0 ;
730
+ transform : translateY (1.25rem );
731
+ }
732
+
733
+ to {
734
+ opacity : 1 ;
735
+ transform : translateY (0 );
736
+ }
737
+ }
738
+
739
+ @keyframes fade-in {
740
+ from {
741
+ opacity : 0 ;
742
+ }
743
+
744
+ to {
745
+ opacity : 1 ;
746
+ }
747
+ }
748
+
749
+ .excerpt-wrapper {
750
+ & > .excerpt-gradient-bottom ,
751
+ & > .excerpt-gradient-top {
752
+ @apply hidden;
753
+ }
754
+
755
+ & > .excerpt {
756
+ & > .vp-doc {
757
+ @apply !bg- transparent;
758
+ }
759
+ }
760
+ }
You can’t perform that action at this time.
0 commit comments