3 Commits

Author SHA1 Message Date
ebd45a3f3d Uebergabe-Waechter: PDF wie andere Binaerdateien nicht als Text pruefen
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 11m50s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m10s
CI / Ausrollen (push) Successful in 7s
2026-10-29 19:49:39 +01:00
784475451a Paket mit Anleitung und Handbuch als PDF; letztes-update.json mit reinen Zeichenketten
- pdf-bauen.mjs legt die PDFs in docs/ ab; windows-paket.mjs kopiert sie in
  den Hauptordner des Pakets
- aktualisieren.ps1: Versionszeilen als Zeichenketten, sonst schrieb
  ConvertTo-Json die Eigenschaften von Get-Content mit (PSPath usw.) und
  zuruecksetzen.ps1 schriebe sie zurueck in VERSION.txt
2026-10-29 19:49:38 +01:00
faaed85adb Sicherheitsupdates: Next.js 16.4.3, Vitest 4.1.12, transitive Pakete; Version 0.1.1
- next und eslint-config-next 16.2.11 -> 16.4.3 (u. a. Remote Code
  Execution auf Windows-Servern und in der Bildoptimierung, SSRF, Cache
  Poisoning)
- vitest und @vitest/coverage-v8 4.1.12, npm audit fix fuer transitive
  Pakete (brace-expansion, undici, vite, js-yaml, nanoid, sharp u. a.)
- uuid per Override auf 11.1.1 (exceljs)
- npm audit: 0 Schwachstellen
2026-10-29 19:49:38 +01:00
9 changed files with 767 additions and 816 deletions

View File

@@ -178,6 +178,8 @@ Die Anwendung läuft auf Windows Server im IIS. Das Betriebshandbuch
Installation, neue Stände, Rückstieg, Plattform-Updates, Zugang und
Fehlersuche. Das Paket dafür baut `npm run paket:windows`; an jedem Release
dieses Repositoriums hängt es fertig gebaut (`.github/workflows/release.yml`).
Installationsanleitung und Betriebshandbuch liegen als PDF in `docs/` und im
Hauptordner jedes Pakets.
<!-- intern:start -->
**Intern, nicht in der Übergabe:** Der eigene Testbetrieb mit Docker steht in

View File

@@ -81,8 +81,10 @@ if ($fehlend.Count -gt 0) { throw "Unvollstaendige Konfiguration in ${Ziel}: $($
$port = [int]$app['PORT']
$url = $verwaltung['MIGRATE_DATABASE_URL']
# Als reine Zeichenketten: Get-Content haengt jeder Zeile Eigenschaften wie
# PSPath an, und ConvertTo-Json schriebe sie mit in letztes-update.json.
function Get-Version([string]$Datei) {
if (Test-Path -LiteralPath $Datei) { return @(Get-Content -LiteralPath $Datei -Encoding UTF8 | Where-Object { $_ -ne '' }) }
if (Test-Path -LiteralPath $Datei) { return @(Get-Content -LiteralPath $Datei -Encoding UTF8 | Where-Object { $_ -ne '' } | ForEach-Object { [string]$_ }) }
return @()
}

1549
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "alpenwerk-hr",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev",
@@ -25,7 +25,7 @@
"exceljs": "^4.4.0",
"kysely": "^0.29.4",
"lucide-react": "^1.26.0",
"next": "^16.2.11",
"next": "^16.4.3",
"next-auth": "^5.0.0-beta.32",
"pg": "^8.22.0",
"react": "^19.2.8",
@@ -41,16 +41,17 @@
"@types/pg": "^8.20.0",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitest/coverage-v8": "^4.1.10",
"@vitest/coverage-v8": "^4.1.12",
"eslint": "^9.39.5",
"eslint-config-next": "^16.2.11",
"eslint-config-next": "^16.4.3",
"jsdom": "^29.1.1",
"postcss": "^8.5.19",
"tailwindcss": "^4.3.3",
"typescript": "^5.9.3",
"vitest": "^4.1.10"
"vitest": "^4.1.12"
},
"overrides": {
"postcss": "^8.5.19"
"postcss": "^8.5.19",
"uuid": "^11.1.1"
}
}

View File

@@ -108,6 +108,12 @@ cpSync("deploy/db-init/01-auth-attrappe.sql", join(app, "deploy/db-init/01-auth-
// ── Betriebsskripte ───────────────────────────────────────────────────
cpSync("deploy/windows", join(ziel, "windows"), { recursive: true });
// Installationsanleitung und Betriebshandbuch liegen als PDF im Hauptordner,
// damit sie beim Entpacken als Erstes zu sehen sind.
for (const datei of readdirSync("docs").filter((d) => d.endsWith(".pdf"))) {
cpSync(join("docs", datei), join(ziel, datei));
}
writeFileSync(
join(ziel, "VERSION.txt"),
[

View File

@@ -1,4 +1,6 @@
// Baut Installationsanleitung und Betriebshandbuch als PDF im elycon-Layout.
// Die PDFs landen in docs/: von dort gehen sie in den Übergabestand und in den
// Hauptordner des Windows-Pakets (scripts/windows-paket.mjs).
//
// Aufruf: node uebergabe/anleitung/pdf-bauen.mjs (md2pdf selbst braucht bun, pandoc und Chrome)
//
@@ -74,6 +76,7 @@ for (const d of dokumente) {
const temp = join(arbeit, `${d.name}.md`);
writeFileSync(temp, md);
execFileSync("bun", [md2pdf, temp], { cwd: dirname(md2pdf), stdio: "ignore" });
copyFileSync(temp.replace(/\.md$/, ".pdf"), join(hier, `${d.name}.pdf`));
console.log(`PDF: ${join(hier, `${d.name}.pdf`)}`);
const ausgabe = join(repo, "docs", `${d.name}.pdf`);
copyFileSync(temp.replace(/\.md$/, ".pdf"), ausgabe);
console.log(`PDF: ${ausgabe}`);
}

View File

@@ -94,5 +94,5 @@ export function pruefen(pfad, text) {
/** Dateien, die nicht inhaltlich geprüft werden (binär oder erzeugt). */
export function istPruefbar(pfad) {
return !/\.(png|jpe?g|ico|gif|webp|woff2?|ttf|zip)$/i.test(pfad) && pfad !== "package-lock.json";
return !/\.(png|jpe?g|ico|gif|webp|woff2?|ttf|zip|pdf)$/i.test(pfad) && pfad !== "package-lock.json";
}