easter egg
This commit is contained in:
@@ -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
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user