Synchronizuj paczke Cloudflare przed wdrozeniem

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
2026-09-18 19:34:06 +02:00
co-authored by Copilot
parent 67cf1ca87f
commit 7d07b6cd9b
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -15,6 +15,17 @@ if (-not (Test-Path (Join-Path $publishDirectory "index.html"))) {
throw "Folder wersja1 nie zawiera index.html." throw "Folder wersja1 nie zawiera index.html."
} }
# The repository root is the editing source; keep the Cloudflare bundle in sync.
$publishFiles = @("index.html", "styles.css", "app.js", "atut_baza.csv")
foreach ($file in $publishFiles) {
$source = Join-Path $root $file
$target = Join-Path $publishDirectory $file
if (-not (Test-Path $source)) {
throw "Brak pliku źródłowego: $source"
}
Copy-Item $source $target -Force
}
if (-not $ProjectName) { if (-not $ProjectName) {
$ProjectName = $env:CLOUDFLARE_PAGES_PROJECT $ProjectName = $env:CLOUDFLARE_PAGES_PROJECT
} }
+1 -1
View File
@@ -38,7 +38,7 @@
<button id="clearButton" class="clear" type="button" aria-label="Wyczyść wyszukiwanie">×</button> <button id="clearButton" class="clear" type="button" aria-label="Wyczyść wyszukiwanie">×</button>
</div> </div>
<div id="suggestions" class="suggestions" role="listbox" aria-label="Podpowiedzi wyszukiwania"></div> <div id="suggestions" class="suggestions" role="listbox" aria-label="Podpowiedzi wyszukiwania"></div>
<div class="hint" id="searchHint">Wpisz minimum 4 znaki. Wyniki aktualizują się automatycznie.</div> <div class="hint" id="searchHint">Wpisz minimum 3 znaki. Wyniki aktualizują się automatycznie.</div>
</section> </section>
<section class="results-header"> <section class="results-header">