尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Odszkodowanie za dziurę w drodze w Łodzi – kreator zgłoszenia szkody ZDiT/PZU ze zdjęciami i oświadczeniem świadka (PDF).
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A Polish website for drivers who damaged a tyre, rim or suspension in a pothole in Łódź. It shows where to file (ZDiT or GDDKiA), compares claiming from the city's insurer against the driver's own AC policy, checks the 3 photos ZDiT requires, and generates a ready-to-sign A4 PDF: the claim letter, a witness statement and a photo appendix.
Form data and photos stay in the visitor's browser (form in sessionStorage, photos in IndexedDB, auto-deleted after 24 h). The only server code is functions/api/verify.js, which asks Stripe whether a checkout session was paid. The calculators, photo check and claim preview are free; the generated PDF package costs 9,99 zł (BLIK).
| Path | What it is |
|---|---|
public/ | The website (the only thing published): index.html, assets/ (app.js, config.js, styles.css), vendor/ (pdfmake), _headers, robots.txt, sitemap.xml, favicon, OG image |
functions/api/verify.js | Cloudflare Pages Function: server-side Stripe payment check |
src/input.css | Tailwind source for public/assets/styles.css |
tests/ | verify.test.mjs (payment check, node --test), e2e.test.js (Playwright end-to-end) |
public. The functions/ folder is deployed automatically.STRIPE_SECRET_KEY = rk_live_… – a restricted key with only Checkout Sessions: Read. A full sk_… key is refused.PAYMENT_LINK_ID = plink_… (Stripe → Payment Links → the link's details).EXPECTED_AMOUNT = 999 (price in grosze; must match the Stripe price and price in config.js).MAX_AGE_DAYS (default 30). ALLOW_TEST_MODE=true only while testing with Stripe test mode – never in production.https://DOMAIN/?platnosc=sukces&session_id={CHECKOUT_SESSION_ID}public/assets/config.js: paymentUrl = the https://buy.stripe.com/… link, seller = your name/company, address and e-mail (shown in the Regulamin and Polityka prywatności). Never put any key in config.js – it is public.https://DOMAIN/api/verify?ping=1 returns {"ready":true}. If it does not, the site refuses to send buyers to Stripe ("Sprzedaż chwilowo niedostępna – nie pobraliśmy żadnych środków").How the payment works: the browser creates a random order id, stores it in localStorage and sends it to Stripe as client_reference_id; the form is kept in sessionStorage and photos in IndexedDB so they survive the redirect. After returning, the site calls /api/verify, which checks with Stripe that the session is paid, complete, in PLN, for the expected amount, from this Payment Link, live mode, not older than 30 days, and that its client_reference_id matches. Only then is the PDF generated and downloaded. Editing the URL or localStorage does not unlock anything.
Demo mode (free PDF) runs only on localhost / 127.0.0.1 while paymentUrl is empty.
public/assets/config.js| Setting | What it does |
|---|---|
paymentUrl | Stripe Payment Link (BLIK). Empty = sales off (demo mode only on localhost). |
verifyEndpoint | /api/verify – leave as is. |
price | 9.99 – shown on the page; must equal EXPECTED_AMOUNT / 100. |
seller | name, address, email for the Regulamin and Polityka prywatności (required by Polish consumer law). |
adContactEmail, adContactPhone | Contact shown in the partner box for businesses that want to advertise. |
partners | Real, paid local ads only. Empty = neutral "Miejsce dla partnera – kontakt" box. |
Cloudflare Pages → Custom domains. Then replace the old github.io address in public/index.html, public/robots.txt and public/sitemap.xml, and set siteUrl in config.js.
The city's insurer data (PZU S.A., policy 1077814389) covers incidents from 2023–2026. When Łódź publishes the insurer for 2027, update PZU in public/assets/app.js and the texts in public/index.html.
npm install
npm run build # compiles Tailwind CSS to public/assets/styles.css and copies pdfmake to public/vendor/
npm test # payment-check unit tests + end-to-end test in Chromium (needs Playwright and poppler-utils)