Repository navigation
Онлайн-версия: проверка выписки прямо в браузере - #2
Merged
Merged
Conversation
docs/ is a static page for GitHub Pages: drop a CSV, get the report, tick subscriptions to see yearly savings, download a CSV. The page's CSP forbids any network request, and it also works from file://. The JS core mirrors subhunter.py; tests check both give identical results on the example and on random statements. CSV exports from both versions now escape formula-like cells. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MpsK69KgisJfdYCQ3RWcU6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
docs/— статичная страница для GitHub Pages: перетащил CSV → отчёт, отметки «отменить» с подсчётом экономии за год, скачивание таблицы. Работает и при открытии файлаdocs/index.htmlбез интернета.default-src 'none',connect-src 'none'). Все тексты из выписки вставляются черезtextContent.docs/subhunter.jsповторяетsubhunter.pyшаг в шаг (включая банковское округление Python и\bдля кириллицы).scripts/build_web.pyсобираетdocs/data.jsиз справочника и примера.=,+,-,@).Проверки
data.jsактуален; CSP запрещает сеть; в коде нетfetch/XMLHttpRequest/innerHTML; JS и Python дают одинаковый JSON на примере и на 25 случайных выписках (без Node.js эти тесты пропускаются).<img onerror>показана как текст, на ширине 390 px нет горизонтальной прокрутки, скачивание работает.После слияния
Включить GitHub Pages: Settings → Pages → Source: Deploy from a branch →
main//docs.🤖 Generated with Claude Code
https://claude.ai/code/session_01MpsK69KgisJfdYCQ3RWcU6
Generated by Claude Code