Add support for optional human challenge

This commit is contained in:
Andrey Antukh 2024-09-05 15:28:24 +02:00 committed by Alejandro Alonso
parent b2010e5fd8
commit 3f34aa92fa
5 changed files with 62 additions and 2 deletions

View file

@ -333,6 +333,13 @@ async function generateTemplates() {
await fs.writeFile("./resources/public/index.html", content);
content = await renderTemplate(
"resources/templates/challenge.mustache",
{},
partials,
);
await fs.writeFile("./resources/public/challenge.html", content);
content = await renderTemplate("resources/templates/preview-body.mustache", {
manifest: manifest,
translations: JSON.stringify(translations),