Skip to content

Commit

Permalink
chore: add generated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo-ds committed Jul 25, 2023
1 parent bd92217 commit 6876c53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions routes/profile.svg.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getProfileBySlug } from '@/afdian/api';
import { resolveAvatars } from '@/afdian/helpers';
import { AFDIAN_USER } from '@/utils/secret';
import { Component, h, renderSSR } from 'nano-jsx';
import { Component, h, jsx, renderSSR } from 'nano-jsx';

export default eventHandler(async e => {
const query = new URL(e.node.req.url, `http://${e.node.req.headers['host']}`)
Expand Down Expand Up @@ -164,5 +164,5 @@ export default eventHandler(async e => {

e.node.res.appendHeader('accept-encoding', 'br');
e.node.res.appendHeader('content-type', 'image/svg+xml');
return renderSSR(SVG);
return '<!-- Generated by afdian-connect -->\n' + renderSSR(SVG);
});
2 changes: 1 addition & 1 deletion routes/sponsor.svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ export default eventHandler(async e => {

e.node.res.appendHeader('accept-encoding', 'br');
e.node.res.appendHeader('content-type', 'image/svg+xml');
return renderSSR(() => SVG);
return '<!-- Generated by afdian-connect -->\n' + renderSSR(() => SVG);
});

0 comments on commit 6876c53

Please sign in to comment.