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({
478478 }
479479 ] ,
480480 outline : {
481- level : [ 2 , 3 ] ,
481+ level : 2 ,
482482 label : 'Outline'
483483 } ,
484484 socialLinks : [
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function useFlyIn(isInView: Ref<boolean>) {
1515 } ,
1616 transition : {
1717 ease : easeOutExpo ,
18- duration : 2 ,
18+ duration : 1.6 ,
1919 delay
2020 }
2121 } ) )
@@ -32,7 +32,7 @@ export function useFadeIn(isInView: Ref<boolean>) {
3232 } ,
3333 transition : {
3434 ease : easeOutExpo ,
35- duration : 2 ,
35+ duration : 1.6 ,
3636 delay
3737 }
3838 } ) )
@@ -50,7 +50,7 @@ export function useExpandWidth(isInView: Ref<boolean>) {
5050 } ,
5151 transition : {
5252 ease : easeOutExpo ,
53- duration : 2 ,
53+ duration : 1.6 ,
5454 delay
5555 }
5656 } ) )
Original file line number Diff line number Diff line change 1919@reference "../../tailwind.css";
2020
2121.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;
2323 grid-auto-rows : 1fr ;
2424
2525 & > article {
Original file line number Diff line number Diff line change @@ -351,14 +351,36 @@ type ContentType = |
351351 | ' json'
352352 // Shorthand for 'multipart/form-data'
353353 | ' formdata'
354- // Shorthand for 'application/x-www-form-urlencoded'\
354+ // Shorthand for 'application/x-www-form-urlencoded'
355355 | ' urlencoded'
356+ // Skip body parsing entirely
357+ | ' none'
356358 | ' text/plain'
357359 | ' application/json'
358360 | ' multipart/form-data'
359361 | ' application/x-www-form-urlencoded'
360362` ` `
361363
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+
362384### Custom Parser
363385
364386You 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 {
697697# VPSidebarNav {
698698 @apply flex flex-col min-h-full;
699699}
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