feat(web): add privacy policy page and trim the memory block text

This commit is contained in:
Loki 2026-10-24 17:28:14 +02:00
parent 8ce307e25b
commit 309b77e63c
Signed by: boba
GPG key ID: 253067914055423B
7 changed files with 89 additions and 15 deletions

View file

@ -42,6 +42,10 @@ test("every translation key used in code exists and every key is used", async ()
used.add(`faq${part}`);
used.add(`faq${part}Answer`);
}
for (const part of ["Collect", "Cookies", "Track", "Other", "Delete"]) {
used.add(`privacy${part}Title`);
used.add(`privacy${part}Text`);
}
for (const m of code.matchAll(/\b(?:tr|t)\(\s*"([A-Za-z]+)"/g))
used.add(m[1]!);
for (const m of code.matchAll(/\(\[((?:"[a-z]+",?\s*)+)\] as const\)/g))