Published source
Download source ZIP
CH-J Server Manager
Browse directories and files for a specific application release.
Source is provided under the CH-J Proprietary Software License 1.14. Its availability does not change the license terms or grant additional rights.
1
"use strict";2
const fs = require("node:fs");3
const path = require("node:path");4
const crypto = require("node:crypto");6
const GUIDANCE_FILES = Object.freeze({7
cs: "provozni-bezpecnost-a-zalohovani.md",8
de: "betriebssicherheit-und-datensicherung.md",9
en: "operational-safety-and-backup-guidance.md"10
});12
function loadGuidanceDocuments(docsRoot) {13
const documents = {};14
for (const [language, filename] of Object.entries(GUIDANCE_FILES)) {15
const text = fs.readFileSync(path.join(docsRoot, filename), "utf8");16
if (text.length < 1000) throw new Error(`Missing or incomplete operational guidance: ${filename}`);17
documents[language] = text;18
}19
const sha256 = crypto.createHash("sha256").update(JSON.stringify(documents)).digest("hex");20
return { documents, sha256 };21
}23
module.exports = { GUIDANCE_FILES, loadGuidanceDocuments };SHA-256: 53f229563c6c287f683d89174386e108ff84fa034750a57bf87459056a6189b4
Archive SHA-256: 5ac91caf4fa32a6fdb114f2430deed486fbe7489d5eea343d1f034169fafb5e0