* fix: added detection of private subs and aded a test
* test: added test for no subscriber info
* feat: added user-karma badge
* refactor: changed class name for testing
Changed the class name to allow testing the whole service with 'reddit'
* refactor: refactored code for code and output style
* refactor: change how variables are passed to be cleaner
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add the /steam/update-date badge
This adds the /steam/update-date badge, to also provide a badge that shows the date of a file on steam when it was last updated.
* Add class to module exports
* Add new field to schema definition
This fixes the tests
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Streamline Packagist Badge titles in frontend.
Always add the general topic/category to each badge title.
Closes#5039
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Validate input to BadgeFactory.create() (#3875)
* validate input to create()
* remove deprecated properties (#3881)
* remove BadgeFactory class (#3884)
* Template literal templates (#4459)
- Remove use of the doT template library and move to generating SVG output using javascript template literals.
- Drop SVGO and mostly manually implement the optimisations.
- Add a bunch more tests
Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
* drop raster support in package CLI (#4523)
* drop raster support in package CLI
* update docs
* rename gh-badges package to badge-maker
* rename gh-badges dir to badge-maker
* update relative imports and other refs to in parent dir
'gh-badges' --> 'badge-maker'
* update snyk service tests
This change is only tangentially related
We've used the shields repo as an example for these tests so
moving files around in our repo has a knock-on effect on them
* add missing type hints to dev style page
* write the changelog/migration guide for v3
* use extension in README CLI example
* update CLI help
whoops - missed this in #4523
* bump version
* update for self-hosting users
* README updates
* drop .format param from CLI, always output SVG
* Change text[] to label and message, Remove JSON output
- Change text[] to label and message
- Fix message only badge
- Remove JSON output format
- Update the docs
* update package-lock
* rename 'template' to 'style'
* handle invalid styles in coalesceBadge
* ensure makeBadge is passed a string for template in coalesceBadge()
issue #4925
* fix (logo/no label text/label color specified) case
issue #4926
* add example of (logo/no label text/label color specified) to style debug page
* update type defs
* padding fix for FTB style
Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
* ignore case if we fall back to string sorting versions
* if no latest MaybeSemVer, try latest pre-MaybeSemVer
* filter versions before we pass it to latestMaybeSemVer()
* Add [OffsetEarth] trees service
* Add mocked tests for [OffsetEarth] tree service
* Update [OffsetEarth] trees name to be more unique
* Add [OffsetEarth] carbon offset service
* Update [OffsetEarth] services to use floorCount()
* Clean up [OffsetEarth] loops and unnecessary code
* Update [OffsetEarth] services to use proper APIs
* Fix order of imports in [OffsetEarth] services
* Update [OffsetEarth] tests to be more robust
* Update [OffsetEarth] tests to check colour
* Update to use unmocked [OffsetEarth] tests
* Update to use nonNegativeInteger in [OffsetEarth]
* Apply additional [OffsetEarth] review comments
* Update [OffsetEarth] references to username
Co-authored-by: Pierre-Yves B <PyvesDev@gmail.com>
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* fix: node service has bad colors #4809
* chore: minor service test rename
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* fix: spiget invalid response for external downloads #4840
* Changed the background color if resource is external and use proper Spiget API for the test
* Fix invalid mocked response for spiget service tests
Co-authored-by: Pierre-Yves B <PyvesDev@gmail.com>
* Add POEditor badge for language translation progress
* Add example, tests, and documentation key for POEditor
* Remove redundant required() as indicated in PR review
* Throw errors instead of rendering red badge
* small wording tweak: mention read-only again
Co-authored-by: chris48s <chris.shaw480@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add [Treeware] trees service
* Add tests for the [Treeware] tree service
* Update [Treeware] tree test to use package
* Update [Treeware] badge description
* Update [Treeware] test to remove timeout
* Update [Treeware] tree service to use queryParams
* Apply review comments to [Treeware] tests
* Update [Treeware] test to check colour