mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 15:35:41 +00:00
Updated post / added support for diagrams
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 1m56s
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 1m56s
This commit is contained in:
parent
35d8412764
commit
56093b2629
@ -37,6 +37,20 @@ Devices connected within your Tailscale network are part of a tailnet, we'll be
|
|||||||
|
|
||||||
Any device in your tailnet can be configured to act as an [exit node](https://tailscale.com/kb/1103/exit-nodes), which means all traffic will be routed through that node. For example, let's say Bob wants to allow Alice to route all her traffic through Bob's tailnet.
|
Any device in your tailnet can be configured to act as an [exit node](https://tailscale.com/kb/1103/exit-nodes), which means all traffic will be routed through that node. For example, let's say Bob wants to allow Alice to route all her traffic through Bob's tailnet.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph TD;
|
||||||
|
subgraph AA [Bob's Tailnet]
|
||||||
|
A[Bob];
|
||||||
|
B[Alice];
|
||||||
|
end
|
||||||
|
subgraph BB [Internet]
|
||||||
|
E[Steam];
|
||||||
|
end
|
||||||
|
Z[Exit Node];
|
||||||
|
AA --> Z;
|
||||||
|
Z --> E;
|
||||||
|
```
|
||||||
|
|
||||||
Bob simply [configures a device in the tailnet as an exit node](https://tailscale.com/kb/1103/exit-nodes#configure-an-exit-node), and upon joining Bob's tailnet, Alice can route [all her traffic through Bob's exit node](https://tailscale.com/kb/1103/exit-nodes#use-the-exit-node).
|
Bob simply [configures a device in the tailnet as an exit node](https://tailscale.com/kb/1103/exit-nodes#configure-an-exit-node), and upon joining Bob's tailnet, Alice can route [all her traffic through Bob's exit node](https://tailscale.com/kb/1103/exit-nodes#use-the-exit-node).
|
||||||
|
|
||||||
Websites and apps that Alice visits will now appear to come from Bob's IP address, for as long as she is using Bob's tailnet and exit node.
|
Websites and apps that Alice visits will now appear to come from Bob's IP address, for as long as she is using Bob's tailnet and exit node.
|
||||||
|
@ -120,8 +120,11 @@ export function Header() {
|
|||||||
updateStyles()
|
updateStyles()
|
||||||
|
|
||||||
const opts: AddEventListenerOptions & EventListenerOptions = {passive: true}
|
const opts: AddEventListenerOptions & EventListenerOptions = {passive: true}
|
||||||
|
|
||||||
|
if (isHomePage) {
|
||||||
window.addEventListener('scroll', updateStyles, opts)
|
window.addEventListener('scroll', updateStyles, opts)
|
||||||
window.addEventListener('resize', updateStyles)
|
window.addEventListener('resize', updateStyles)
|
||||||
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('scroll', updateStyles, opts)
|
window.removeEventListener('scroll', updateStyles, opts)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import nextMDX from '@next/mdx'
|
import nextMDX from '@next/mdx'
|
||||||
import remarkGfm from 'remark-gfm'
|
import remarkGfm from 'remark-gfm'
|
||||||
import rehypePrism from '@mapbox/rehype-prism'
|
import rehypePrism from '@mapbox/rehype-prism'
|
||||||
|
import {remarkMermaid} from '@theguild/remark-mermaid'
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
@ -18,7 +19,7 @@ const nextConfig = {
|
|||||||
const withMDX = nextMDX({
|
const withMDX = nextMDX({
|
||||||
extension: /\.mdx?$/,
|
extension: /\.mdx?$/,
|
||||||
options: {
|
options: {
|
||||||
remarkPlugins: [remarkGfm],
|
remarkPlugins: [remarkGfm, remarkMermaid],
|
||||||
rehypePlugins: [rehypePrism],
|
rehypePlugins: [rehypePrism],
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
935
package-lock.json
generated
935
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,6 +18,7 @@
|
|||||||
"@supabase/auth-helpers-nextjs": "^0.7.3",
|
"@supabase/auth-helpers-nextjs": "^0.7.3",
|
||||||
"@supabase/supabase-js": "^2.27.0",
|
"@supabase/supabase-js": "^2.27.0",
|
||||||
"@tailwindcss/typography": "^0.5.8",
|
"@tailwindcss/typography": "^0.5.8",
|
||||||
|
"@theguild/remark-mermaid": "^0.1.2",
|
||||||
"@types/mdx": "^2.0.5",
|
"@types/mdx": "^2.0.5",
|
||||||
"@types/node": "^18.11.18",
|
"@types/node": "^18.11.18",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user