Portal_Union: v1.0.0 (2026-06-20T13:39)
This commit is contained in:
@@ -0,0 +1,41 @@
|
|||||||
|
# 40 Dateien in 1 Bundles
|
||||||
|
sync-bundle-01.txt Synchron_test.html
|
||||||
|
sync-bundle-01.txt VERSION
|
||||||
|
sync-bundle-01.txt assets/css/portal.css
|
||||||
|
sync-bundle-01.txt assets/img/polizeistern.png
|
||||||
|
sync-bundle-01.txt assets/img/portal-readme.png
|
||||||
|
sync-bundle-01.txt assets/img/portal.png
|
||||||
|
sync-bundle-01.txt assets/js/admin/historie.js
|
||||||
|
sync-bundle-01.txt assets/js/admin/navedit.js
|
||||||
|
sync-bundle-01.txt assets/js/admin/roles.js
|
||||||
|
sync-bundle-01.txt assets/js/admin/settings.js
|
||||||
|
sync-bundle-01.txt assets/js/collab/collab.js
|
||||||
|
sync-bundle-01.txt assets/js/core/core.js
|
||||||
|
sync-bundle-01.txt assets/js/core/datapflege.js
|
||||||
|
sync-bundle-01.txt assets/js/core/main.js
|
||||||
|
sync-bundle-01.txt assets/js/core/modal.js
|
||||||
|
sync-bundle-01.txt assets/js/data-bao.js
|
||||||
|
sync-bundle-01.txt assets/js/features/article.js
|
||||||
|
sync-bundle-01.txt assets/js/features/arztliste.js
|
||||||
|
sync-bundle-01.txt assets/js/features/bao.js
|
||||||
|
sync-bundle-01.txt assets/js/features/breadcrumbs.js
|
||||||
|
sync-bundle-01.txt assets/js/features/commands.js
|
||||||
|
sync-bundle-01.txt assets/js/features/feed.js
|
||||||
|
sync-bundle-01.txt assets/js/features/impressum.js
|
||||||
|
sync-bundle-01.txt assets/js/features/kennwoerter.js
|
||||||
|
sync-bundle-01.txt assets/js/features/linkcheck.js
|
||||||
|
sync-bundle-01.txt assets/js/features/linkcol.js
|
||||||
|
sync-bundle-01.txt assets/js/features/migrate-ui.js
|
||||||
|
sync-bundle-01.txt assets/js/features/nav.js
|
||||||
|
sync-bundle-01.txt assets/js/features/panels-edit.js
|
||||||
|
sync-bundle-01.txt assets/js/features/panels.js
|
||||||
|
sync-bundle-01.txt assets/js/features/pruefung.js
|
||||||
|
sync-bundle-01.txt assets/js/features/roster-edit.js
|
||||||
|
sync-bundle-01.txt assets/js/features/search.js
|
||||||
|
sync-bundle-01.txt assets/js/features/toc.js
|
||||||
|
sync-bundle-01.txt assets/js/features/whatsnew.js
|
||||||
|
sync-bundle-01.txt helfer/Helfer-beenden.bat
|
||||||
|
sync-bundle-01.txt helfer/Portal-Pflege-starten.bat
|
||||||
|
sync-bundle-01.txt helfer/hol_bao_medien.ps1
|
||||||
|
sync-bundle-01.txt helfer/portal_helfer.ps1
|
||||||
|
sync-bundle-01.txt index.html
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1.0.0
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,48 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
set "BDIR=%~dp0"
|
||||||
|
echo.
|
||||||
|
echo === Portal Union: Code aktualisieren ===
|
||||||
|
echo.
|
||||||
|
powershell -NoProfile -ExecutionPolicy Bypass -Command "$m='### PS'+'CODE ###';$me=[IO.File]::ReadAllText('%~f0');$p=$me.IndexOf($m);$nl=$me.IndexOf([char]10,$p);Invoke-Expression $me.Substring($nl+1)"
|
||||||
|
echo.
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
|
### PSCODE ###
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
$here = $env:BDIR
|
||||||
|
$root = Split-Path -Parent ($here.TrimEnd('\'))
|
||||||
|
if (-not (Test-Path -LiteralPath (Join-Path $root 'index.html'))) {
|
||||||
|
Write-Host ('FEHLER: ' + $root + ' ist nicht die Portal-Wurzel.') -ForegroundColor Red; return
|
||||||
|
}
|
||||||
|
Write-Host ('Ziel: ' + $root)
|
||||||
|
$bundles = Get-ChildItem -LiteralPath $here -Filter 'sync-bundle-*.txt' | Sort-Object Name
|
||||||
|
if (-not $bundles) { Write-Host 'FEHLER: keine sync-bundle-*.txt gefunden.' -ForegroundColor Red; return }
|
||||||
|
$flush = {
|
||||||
|
param($d, $rel, $expLen, $b64)
|
||||||
|
if (-not $rel) { return $null }
|
||||||
|
$bytes = [Convert]::FromBase64String($b64)
|
||||||
|
$full = Join-Path $d ($rel -replace '/', '\')
|
||||||
|
$pd = Split-Path -Parent $full
|
||||||
|
if (-not (Test-Path -LiteralPath $pd)) { New-Item -ItemType Directory -Path $pd -Force | Out-Null }
|
||||||
|
[IO.File]::WriteAllBytes($full, $bytes)
|
||||||
|
return ($bytes.Length -eq $expLen)
|
||||||
|
}
|
||||||
|
$ok = 0; $bad = 0; $rel = $null; $expLen = 0; $sb = New-Object System.Text.StringBuilder
|
||||||
|
foreach ($b in $bundles) {
|
||||||
|
Write-Host ('-> ' + $b.Name)
|
||||||
|
foreach ($line in [IO.File]::ReadAllLines($b.FullName)) {
|
||||||
|
if ($line.StartsWith('### FILE: ')) {
|
||||||
|
$r = & $flush $root $rel $expLen $sb.ToString()
|
||||||
|
if ($r -eq $true) { $ok++ } elseif ($r -eq $false) { $bad++ }
|
||||||
|
$meta = $line.Substring(10); $k = $meta.LastIndexOf(' | ')
|
||||||
|
$rel = $meta.Substring(0, $k); $expLen = [int]$meta.Substring($k + 3); $sb = New-Object System.Text.StringBuilder
|
||||||
|
} elseif ($line.StartsWith('###')) { continue }
|
||||||
|
elseif ($line.Length -gt 0) { [void]$sb.Append($line) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$r = & $flush $root $rel $expLen $sb.ToString()
|
||||||
|
if ($r -eq $true) { $ok++ } elseif ($r -eq $false) { $bad++ }
|
||||||
|
Write-Host ''
|
||||||
|
if ($bad -eq 0) { Write-Host ('FERTIG: ' + $ok + ' Dateien.') -ForegroundColor Green }
|
||||||
|
else { Write-Host ('FERTIG: ' + $ok + ' ok, ' + $bad + ' Fehler.') -ForegroundColor Yellow }
|
||||||
Reference in New Issue
Block a user