add new table view

This commit is contained in:
2026-07-08 14:47:53 +02:00
parent a23f3587ab
commit 8b3f3e4608
6 changed files with 213 additions and 80 deletions
+3 -1
View File
@@ -51,6 +51,7 @@ export default class extends Controller {
this.resultTarget.innerHTML = '';
this.hideError();
this.stepValue = 1;
// window.history.pushState(null, null, "/");
}
// ---- pliki ----
@@ -93,7 +94,8 @@ export default class extends Controller {
const res = await fetch(this.endpointUrl, { method: 'POST', body: fd });
if (!res.ok) throw new Error('Błąd serwera (' + res.status + ')');
// const hashSummary = res.url.replace(/^https?:\/\/[^/]+\//, "/").replace(this.endpointUrl, "");
// window.history.pushState(null, null, hashSummary);
this.resultTarget.innerHTML = await res.text();
this.stepValue = 3;
} catch (err) {