Rechtliches: Erstbefuellung aus der Git-Geschichte (22 Versionen, 4 Anbieter)
Website-Seiten werden per React zu HTML gerendert, Portal-HTML kommt direkt aus Git. Eine gemeinsame Datenschutzerklaerung statt zwei Karten, weil webklar.com/datenschutz nur auf das Portal weiterleitet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7c1e338a3
commit
c8c1d84794
3 files changed
+389
-6
No files matched your search
+10
-6
@@ -10,6 +10,8 @@
|
||||
* APPWRITE_API_KEY=... node scripts/setup-legal.mjs
|
||||
*/
|
||||
|
||||
import { pathToFileURL } from "node:url";
|
||||
|
||||
const dryRun = process.argv.includes("--dry-run");
|
||||
const endpoint = process.env.APPWRITE_ENDPOINT || "https://appwrite.webklar.com/v1";
|
||||
const projectId = process.env.APPWRITE_PROJECT_ID || "6a1058610003c5a13a05";
|
||||
@@ -83,8 +85,7 @@ export const DOCUMENTS = [
|
||||
{ key: "agb", title: "AGB", liveUrl: "https://webklar.com/agb" },
|
||||
{ key: "abo-bedingungen", title: "Abo-Bedingungen", liveUrl: "https://project.webklar.com/abo-bedingungen.html" },
|
||||
{ key: "avv", title: "AVV (Auftragsverarbeitung)", liveUrl: "https://project.webklar.com/abo-bedingungen.html" },
|
||||
{ key: "datenschutz-website", title: "Datenschutz Website", liveUrl: "https://webklar.com/datenschutz" },
|
||||
{ key: "datenschutz-portal", title: "Datenschutz Kundenportal", liveUrl: "https://project.webklar.com/datenschutz.html" },
|
||||
{ key: "datenschutz", title: "Datenschutzerklärung (Website und Portal)", liveUrl: "https://project.webklar.com/datenschutz.html" },
|
||||
{ key: "impressum", title: "Impressum", liveUrl: "https://webklar.com/impressum" },
|
||||
{ key: "widerruf", title: "Widerrufsbelehrung und -formular", liveUrl: "https://project.webklar.com/widerrufen.html" },
|
||||
].map((d, i) => ({ ...d, sort: i + 1 }));
|
||||
@@ -173,7 +174,10 @@ async function run() {
|
||||
console.log("Fertig.");
|
||||
}
|
||||
|
||||
run().catch((e) => {
|
||||
console.error(e.message || e);
|
||||
process.exit(1);
|
||||
});
|
||||
// Nur direkt aufgerufen ausfuehren; seed-legal.mjs importiert DOCUMENTS.
|
||||
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
||||
run().catch((e) => {
|
||||
console.error(e.message || e);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user