Skip to content

Commit

Permalink
chore: Add links to sources
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Sep 15, 2023
1 parent a31b2f4 commit e52c29c
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/demos/basic-counter/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export default function BasicCounterDemoPage() {
</button>
</nav>
<p>Counter: {counter}</p>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/basic-counter/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/batching/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default function BuilderPatternDemoPage() {
Lng {lngStr[0].padStart(4) + '.' + (lngStr[1] ?? '00')}
</code>
</pre>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/batching/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/builder-pattern/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export default function BuilderPatternDemoPage() {
enabled.
</em>
</p>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/builder-pattern/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/compound-parsers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ export default function CompoundParsersDemo() {
<code>{JSON.stringify(array, null, 2)}</code>
</pre>
</section>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/compound-parsers/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/crosslink/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export default function CrosslinkDemoPage() {
`}
</code>
</pre>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/crosslink/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/hex-colors/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ export default function HexColorsDemo() {
backgroundColor: `rgb(${color.r} ${color.g} ${color.b})`
}}
></div>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/hex-colors/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
Expand Down
5 changes: 5 additions & 0 deletions src/app/demos/server-side-parsing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export default function ServerSideParsingDemo({ searchParams }: PageProps) {
<p>Server rendered counter: {counter}</p>
</ServerSideParsingDemoClient>
</Suspense>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/server-side-parsing/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/app/demos/subscribeToQueryUpdates/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export default function BuilderPatternDemoPage() {
<p>
<em>Check the console</em>
</p>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/app/demos/subscribeToQueryUpdates/page.tsx">
Source on GitHub
</a>
</p>
</>
)
}
5 changes: 5 additions & 0 deletions src/pages/demos/pages/server-side-counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export default function ServerSideCounterPage({
<button onClick={() => setCounter(null)}>Reset</button>
<p>Client counter: {counter}</p>
<p>Server counter: {serverSideCounter}</p>
<p>
<a href="https://github.com/47ng/next-usequerystate/blob/next/src/pages/demos/pages/server-side-counter.tsx">
Source on GitHub
</a>
</p>
</DemoPageLayout>
)
}
Expand Down

0 comments on commit e52c29c

Please sign in to comment.