generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doc: Ignore analytics for stats page * doc: Refactor playground (WIP) * doc: Add RGB demo * doc: Add pagination demo * doc: Fix relative imports on Vercel * doc: Trying a simpler approach * chore: Log the file path * chore: Go for the official tutorial * chore: Rename renderOn search param * doc: Use serializer * doc: Auto-compute bundle size * doc: Go through PNPM * doc: Use direct CLI path * doc: Cleanup * doc: Add more quotes
- Loading branch information
Showing
59 changed files
with
1,352 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { execa } from 'execa' | ||
import path from 'node:path' | ||
import prettyBytes from 'pretty-bytes' | ||
|
||
export async function BundleSize() { | ||
const { stdout } = await execa('./node_modules/.bin/size-limit', ['--json'], { | ||
cwd: path.resolve(process.cwd(), '../../packages/nuqs') | ||
}) | ||
const [{ size }] = JSON.parse(stdout) | ||
return prettyBytes(size) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
packages/docs/src/app/(pages)/playground/_components/playground-page-layout.tsx
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
packages/docs/src/app/(pages)/playground/basic-counter/page.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/docs/src/app/playground/(demos)/_components/query-spy.skeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { twMerge } from 'tailwind-merge' | ||
|
||
export function QuerySpySkeleton({ | ||
children, | ||
className, | ||
...props | ||
}: React.ComponentProps<'pre'>) { | ||
return ( | ||
<pre | ||
aria-label="Querystring spy" | ||
aria-description="For browsers where the query is hard to see (eg: on mobile)" | ||
className={twMerge( | ||
'mt-4 block w-full overflow-x-auto rounded-lg border bg-background px-3 py-2 text-xs dark:bg-zinc-900 dark:shadow-inner sm:text-sm', | ||
className | ||
)} | ||
{...props} | ||
> | ||
{children} | ||
</pre> | ||
) | ||
} |
Oops, something went wrong.