From e0ed7987411aa0f80d9d8d5b72d56a5ee44f5287 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Thu, 18 Jun 2026 10:03:32 -0400 Subject: [PATCH] easter egg --- server/routes/public.js | 2 +- src/App.tsx | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/server/routes/public.js b/server/routes/public.js index 15fc0be..4745acb 100644 --- a/server/routes/public.js +++ b/server/routes/public.js @@ -32,7 +32,7 @@ export function register(app) { const root = canonical.endsWith('/') ? canonical.slice(0, -1) : canonical res.type('text/plain').send( - ['User-agent: *', 'Allow: /', `Sitemap: ${root}/sitemap.xml`].join('\n'), + ['User-agent: *', 'Allow: /', 'Disallow: /salvation', `Sitemap: ${root}/sitemap.xml`].join('\n'), ) }) diff --git a/src/App.tsx b/src/App.tsx index 179b230..d2d131d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2236,6 +2236,22 @@ export default function App() { useUTMCapture() useOutboundLinkTracking() + useEffect(() => { + const TARGET = 'salvation' + let buffer = '' + function onKeyDown(e: KeyboardEvent) { + const tag = (e.target as HTMLElement)?.tagName + if (tag === 'INPUT' || tag === 'TEXTAREA' || (e.target as HTMLElement)?.isContentEditable) return + buffer = (buffer + e.key).slice(-TARGET.length) + if (buffer === TARGET) { + buffer = '' + window.location.assign('/salvation') + } + } + document.addEventListener('keydown', onKeyDown) + return () => document.removeEventListener('keydown', onKeyDown) + }, []) + useEffect(() => { fetch('/api/admin-content') .then(r => (r.ok ? r.json() : null))