easter egg

This commit is contained in:
nmemmert
2026-06-18 10:03:32 -04:00
parent 9174331d2d
commit e0ed798741
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export function register(app) {
const root = canonical.endsWith('/') ? canonical.slice(0, -1) : canonical const root = canonical.endsWith('/') ? canonical.slice(0, -1) : canonical
res.type('text/plain').send( 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'),
) )
}) })
+16
View File
@@ -2236,6 +2236,22 @@ export default function App() {
useUTMCapture() useUTMCapture()
useOutboundLinkTracking() 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(() => { useEffect(() => {
fetch('/api/admin-content') fetch('/api/admin-content')
.then(r => (r.ok ? r.json() : null)) .then(r => (r.ok ? r.json() : null))