尚未检测到更新。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)