Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

fix: add missing altcha umd (#3283)

Mike266f4ccb0032
diff --git a/static/admin/build.mjs b/static/admin/build.mjs
index 86ba624f..092b577d 100644
--- a/static/admin/build.mjs
+++ b/static/admin/build.mjs
@@ -31,6 +31,9 @@ async function build() {
// Oat CSS is loaded in <head> as is.
await cp(path.join(root, 'node_modules/@knadh/oat/oat.min.css'), path.join(dist, 'oat.min.css'));
+ // ALTCHA is loaded directly by public subscription forms.
+ await cp(path.join(root, 'node_modules/altcha/dist/altcha.umd.cjs'), path.join(root, '../public/static/altcha.umd.js'));
+
// Entry points = modules loaded directly by a <script> tag: the global main.js and
// every per-view module under assets/js/views/.
const views = (await readdir(path.join(srcJS, 'views')))
diff --git a/static/admin/bun.lock b/static/admin/bun.lock
index 26a1404b..18bbc7a4 100644
--- a/static/admin/bun.lock
+++ b/static/admin/bun.lock
@@ -17,12 +17,15 @@
"@knadh/oat": "^0.8.1",
"@lezer/highlight": "^1.2.3",
"alpinejs": "^3.15.12",
+ "altcha": "^2.3.0",
"chart.js": "^4.4.1",
"squire-rte": "2.4.8",
},
},
},
"packages": {
+ "@altcha/crypto": ["@altcha/[email protected]", "", {}, "sha512-qZMdnoD3lAyvfSUMNtC2adRi666Pxdcw9zqfMU5qBOaJWqpN9K+eqQGWqeiKDMqL0SF+EytNG4kR/Pr/99GJ6g=="],
+
"@codemirror/autocomplete": ["@codemirror/[email protected]", "", { "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.17.0", "@lezer/common": "^1.0.0" } }, "sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g=="],
"@codemirror/commands": ["@codemirror/[email protected]", "", { "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.7.0", "@codemirror/view": "^6.27.0", "@lezer/common": "^1.1.0" } }, "sha512-Ryk9y9T0FFVF0cUGhAknveAyUOl/A1qReTFi+qPKtOh2Z9F4AUBz3XOrYD4ZEgZirdugVzHvd/2/Wcwy5OliTg=="],
@@ -65,12 +68,16 @@
"@marijn/find-cluster-break": ["@marijn/[email protected]", "", {}, "sha512-FY+MKLBoTsLNJF/eLWaOsXGdz6uh3Iu1axjPf6TUq92IYumcTcXWHoS747JARLkcdlJ/Waiaxc5wQfFO8jC6NA=="],
+ "@rollup/rollup-linux-x64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w=="],
+
"@vue/reactivity": ["@vue/[email protected]", "", { "dependencies": { "@vue/shared": "3.1.5" } }, "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg=="],
"@vue/shared": ["@vue/[email protected]", "", {}, "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA=="],
"alpinejs": ["[email protected]", "", { "dependencies": { "@vue/reactivity": "~3.1.1" } }, "sha512-nJvPAQVNPdZZ0NrExJ/kzQco3ijR8LwvCOadQecllESiqT4NyZ/57sN9V2XyvhlBGAbmlKYgeWZvYdKq99ij/Q=="],
+ "altcha": ["[email protected]", "", { "dependencies": { "@altcha/crypto": "^0.0.1" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.18.0" } }, "sha512-vl8I0dQvSQB7/Mx09XuWZ1+LdSP7vEda6OLbg9kUQ2ZO2LT7MzgUyLK7Iips+GAV6c0ntVcS1XWOqhEPpwbDhQ=="],
+
"chart.js": ["[email protected]", "", { "dependencies": { "@kurkle/color": "^0.3.0" } }, "sha512-GIjfiT9dbmHRiYi6Nl2yFCq7kkwdkp1W/lp2J99rX0yo9tgJGn3lKQATztIjb5tVtevcBtIdICNWqlq5+E8/Pw=="],
"crelt": ["[email protected]", "", {}, "sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA=="],
diff --git a/static/admin/package.json b/static/admin/package.json
index d7299aac..05690e36 100644
--- a/static/admin/package.json
+++ b/static/admin/package.json
@@ -21,6 +21,7 @@
"@knadh/oat": "^0.8.1",
"@lezer/highlight": "^1.2.3",
"alpinejs": "^3.15.12",
+ "altcha": "^2.3.0",
"chart.js": "^4.4.1",
"squire-rte": "2.4.8"
}