feat: static BCOS badge generator web tool (issue #2292)#1761
Open
createkr wants to merge 2 commits intoScottcjn:mainfrom
Open
feat: static BCOS badge generator web tool (issue #2292)#1761createkr wants to merge 2 commits intoScottcjn:mainfrom
createkr wants to merge 2 commits intoScottcjn:mainfrom
Conversation
- Add tools/bcos_badge_generator.py: Flask web app for generating BCOS badges - Add tests/test_bcos_badge_generator.py: 34 unit tests (100% pass) - Add tools/BCOS_BADGE_GENERATOR.md: Comprehensive documentation Features: - Dynamic SVG badge generation with tier-based styling (L0/L1/L2) - Trust score visualization with color coding - QR code support for verification - RESTful API for programmatic access - SQLite database for badge tracking and analytics - Certificate verification endpoint API Endpoints: - GET / - Badge generator UI - POST /api/badge/generate - Generate badge - GET /api/badge/verify/<id> - Verify certificate - GET /api/badge/stats - Get statistics - GET /badge/<id>.svg - Download badge SVG - GET /health - Health check Test Results: 34/34 tests passing Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Contributor
Author
|
RTC payout wallet: RTC1d48d848a5aa5ecf2c5f01aa5fb64837daaf2f35 |
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.
Summary: Delivers a static BCOS badge generator page aligned to bounty requirements. Includes cert_id/repo input, live badge preview via /bcos/badge/{cert_id}.svg, markdown embed output, HTML embed output, and style selector (flat / flat-square / for-the-badge) with rustchain.org vintage terminal aesthetic. No backend required. Includes lightweight validation/documentation for deployment under rustchain.org/bcos/badge-generator. Closes #2292.