feat: doc templating & cleanup of routes (#4411)

* feat: clean up route structure

* feat: install html-pdf-node-ts

* fea

* feat: use @ceereals/vue-pdf (react-pdf)

* feat: remove pdf

* feat: hide cc

* feat: shared template

* feat: payment statement document & redirect for emails

* feat: layout tweaks

* fix: lint issues

* fix: robots.txt

* feat: remove letterhead

* Delete .claude/settings.local.json

Signed-off-by: Calum H. <contact@cal.engineer>

---------

Signed-off-by: Calum H. <contact@cal.engineer>
This commit is contained in:
Calum H.
2025-10-07 11:47:59 +01:00
committed by GitHub
parent 59e48ea2b1
commit cb5600ad45
38 changed files with 681 additions and 325 deletions

View File

@@ -0,0 +1,43 @@
<script setup lang="ts">
import { Heading, Link as VLink, Text } from '@vue-email/components'
import StyledEmail from '../shared/StyledEmail.vue'
</script>
<template>
<StyledEmail
title="Report of '{report.title}' has been updated"
:manual-links="[
{ link: 'https://modrinth.com/legal/rules', label: 'Community Guidelines' },
{
link: 'https://modrinth.com/dashboard/report/{report.id}',
label: 'View report in dashboard',
},
{ link: 'https://support.modrinth.com', label: 'Support Portal' },
]"
>
<Heading as="h1" class="mb-2 text-2xl font-bold"
>Report of '{report.title}' has been updated</Heading
>
<Text class="text-base">Hi {user.name},</Text>
<Text class="text-base"
>Your report of {report.title} from {report.date} has been updated by our moderation
team.</Text
>
<Text class="text-base">
You can
<VLink href="https://modrinth.com/dashboard/report/{report.id}" class="text-green underline"
>view the full report thread</VLink
>
to see the update. If you have more information to add, please reply in the report thread for
our moderators to review.
</Text>
<Text class="text-base"
>Thank you for helping keep Modrinth safe and welcoming for everyone.</Text
>
</StyledEmail>
</template>