mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
feat: ✨ Add friendly message after doctype on every page
This commit is contained in:
parent
54221ce42f
commit
2572392571
27
server/plugins/DocumentComment.ts
Normal file
27
server/plugins/DocumentComment.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const art = `
|
||||
|
||||
██╗ ██╗ ██╗███████╗ █████╗ ███╗ ██╗██████╗
|
||||
██║ ╚██╗ ██╔╝██╔════╝██╔══██╗████╗ ██║██╔══██╗
|
||||
██║ ╚████╔╝ ███████╗███████║██╔██╗ ██║██║ ██║
|
||||
██║ ╚██╔╝ ╚════██║██╔══██║██║╚██╗██║██║ ██║
|
||||
███████╗██║ ███████║██║ ██║██║ ╚████║██████╔╝
|
||||
╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝
|
||||
|
||||
* Hello from the Lysand development team!
|
||||
* If you are seeing this, we may need your help!
|
||||
* Join development at https://github.com/lysand-org
|
||||
*
|
||||
* With ❤️ from us:
|
||||
* - @jessew@social.lysand.org
|
||||
* - @aprl@social.lysand.org
|
||||
* - @graphite@social.lysand.org
|
||||
`;
|
||||
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
nitroApp.hooks.hook("render:response", (ctx) => {
|
||||
ctx.body = ctx.body.replace(
|
||||
"<!DOCTYPE html>",
|
||||
`<!DOCTYPE html>\n<!--${art}-->\n`,
|
||||
);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue