Dario Vladović
9ad05785d2
refactor: standardize external SVG badge parsing ( #493 )
...
* refactor(codacy): standardize svg parsing
* refactor(melpa): standardize svg parsing
* refactor(synk): standardize svg parsing
* refactor: introduce `is-badge` helper
2021-02-14 10:02:28 +08:00
Dario Vladović
0ea7872945
feat: add devRant score badge ( #483 )
2021-02-04 15:25:57 +08:00
Dario Vladović
329208871c
feat: add dub service (dlang package manager) ( #482 )
2021-01-31 16:28:44 +08:00
Dario Vladović
ea75632931
badge(cran): Implement CRAN service ( #479 )
...
* feat: implement CRAN service
* feat(cran): add dependents badge
* fix(cran): alter version badge label
2021-01-21 09:24:12 +08:00
Dario Vladović
5316a2744c
badge(elm-package): add elm package service ( #477 )
2021-01-14 11:01:05 +08:00
Dario Vladović
c6f2adfb18
badge(peertube): Add PeerTube service ( #476 )
...
* feat: add peertube service
* refactor(peertube): update branding & add icon
* style(peertube): rename `videoId` to `videoUUID`
2021-01-14 09:47:18 +08:00
Dario Vladović
30e35d702e
badge(shards): add Crystal shards service ( #468 )
...
* feat: add crystal shards service
* badge(shards): remove duplicated version example
Co-authored-by: Amio Jin <amio.cn@gmail.com>
2020-12-29 19:21:53 +08:00
Dario Vladović
e6f9e76d10
badge(wapm): add wapm service ( #470 )
2020-12-29 19:20:14 +08:00
Dario Vladović
aa5c80702e
badge(melpa): Add MELPA service ( #461 )
2020-12-19 19:07:24 +08:00
Dario Vladović
04a8204f90
badgen(cpan): Add CPAN service ( #456 )
...
* Add CPAN service
* cpan: use size util
* cpan: add likes badge
* cpan: add perl version badge
Split API and web scraping handler.
2020-12-19 11:38:31 +08:00
Dario Vladović
a37cceb2e5
badge: Add CTAN service ( #455 )
2020-12-16 20:22:02 +08:00
Dario Vladović
edd4551b0d
chore: add size util ( #457 )
2020-12-16 20:20:45 +08:00
Dario Vladović
5ad28dad43
chore: add `.editorconfig` ( #446 )
...
Fix whitespace & missing newline issues.
2020-11-08 10:39:19 +08:00
lhalbert
4952a0f22f
feat(docker): Add image layers handler ( #442 )
...
* feat(docker): Add image layers handler
* Remove unnecessary BadgenError import
* Add metadataHandler and refactor code
* Separate the layers and metadata handlers
Separate the layers and metadata handlers and remove 'metadata' from the layers path.
* revert subject/label to static descriptive text
* Move manifest error checking logic into libs\docker.ts
Move manifest error checking logic into libs\docker.ts to clean up api\docker.ts
* Replace 'throw new BadenError' with grey error badge
Replace 'throw new BadenError' with grey error badge
2020-10-28 10:41:13 +08:00
Amio Jin
56e7a9a9f9
chore: remove dependabot from badge list ( #433 )
2020-10-07 20:41:13 +08:00
Nikita Karamov
27e69bf81d
badge(liberapay): add badges for Liberapay ( #425 )
2020-08-23 18:39:46 +08:00
Alexandru Naiman
f07fad5e80
badge(gitlab): adding some badges for GitLab ( #422 )
...
* wip: added some badges
* - some final touches
* small fix
* - corrected wrong error message
* fixes after code review
2020-08-20 11:22:44 +08:00
Deepak Bhardwaj
defdbb9dcd
feat: Added badge endpoint for Jenkins jobs ( #418 )
...
* feat: Added badge endpoint for Jenkins jobs
* fix: Removed unused variable
* Update api/jenkins.ts
Co-authored-by: Amio Jin <amio.cn@gmail.com>
Co-authored-by: Amio Jin <amio.cn@gmail.com>
2020-08-13 19:20:16 +08:00
Kyle Brown
370a4a87b6
feat: allow customn npm and github endpoints ( #412 )
...
* feat: allow customnpm and github endpoints
Allow specifying of custom endpoints for NPM
and Github. This is to allow usage in a
self-hosted enterprise environment.
These are configured by an override environment variable.
`NPM_URL="https://registry.npm.compnay.com "` - NPM
`GITHUB_URL="https://github.company.com/api/v3 "` - Github v3
`GITHUB_URL_GRAPHQL="https://github.company.com/api/graphql " - Github
Graphql
* feat(npm): support all pkg data through npm reg
- Add option to disable use of unpkg for npm "info"
- Add ability to query scoped packages and tags through npm
- Update env var names
Note, this keeps existing logic unless DISABLE_UNPKG == true
* fix(npm): fix if logic, remove elses
* fix: address review comments
- Address review comments
- Query NPM with abbreviated metadata header support
- Support GITHUB_TOKENS
- Environment variable info in readme
- Only skip unpkg use if a custom registry is used.
2020-07-15 14:37:18 +08:00
晋晓炜 Amio /
4dd5bd2f0b
badge(memo): add memo badge ( #399 )
...
* chore: bump deps
* badge: add /memo badge (resolve #398 )
* chore: add help for memo badge
* chore: clean code
* fix: support html entities in url
2020-06-14 17:40:19 +08:00
Dario Vladović
6ee3665d03
badge: add deepscan.io support ( #404 )
2020-05-29 14:24:22 +08:00
Dario Vladović
d0b32d6ab6
badge: add snyk support ( #394 )
...
* chore: pass search params to badge handler
* badge: ass synk support
Extract data from Synk's badge.
* refactor: correct query type
* refactor: convert `targetFile` to path segment
2020-05-25 21:34:13 +08:00
Dario Vladović
1faa455354
badge: add Mastodon/Pleroma support ( #396 )
...
* badge: add mastodon/pleroma support
* badge(mastodon): avoid description overflow
2020-05-22 12:15:07 +08:00
Dario Vladović
55926c5fb3
badge: add winget support ( #392 )
...
* badge: add winget support
* refactor: introduce github rest/graphql client lib
2020-05-20 23:49:46 +08:00
Dario Vladović
55b5a3cb59
badge: add F-Droid support ( #390 )
...
Co-authored-by: Amio <amio.cn@gmail.com>
2020-05-20 18:19:43 +08:00
Dario Vladović
a337d4656d
badge: add tidelift subscription badge ( #391 )
2020-05-20 17:50:47 +08:00
Dario Vladović
40958d3368
badge: add pub (dart) ( #388 )
2020-05-20 17:02:26 +08:00
Dario Vladović
f3c7362d7c
badge: add scoop ( #387 )
...
Co-authored-by: Amio <amio.cn@gmail.com>
2020-05-18 12:47:07 +08:00
Dario Vladović
5b4b9b6148
badge: add opam service ( #386 )
...
* badge: add opam service
* Update api/opam.ts
Co-authored-by: Amio <amio.cn@gmail.com>
2020-05-17 00:17:49 +08:00
Dario Vladović
55a89ffcea
badge: add haxelib service ( #381 )
...
* Add haxelib service
Fetch library information from https://lib.haxe.org using
`haxe-rpc-client`.
* Add latest version downloads badge
* Handle nonexistent projects gracefully
2020-05-08 23:30:53 +08:00
Steven
5a8e5cdc77
chore: rename ZEIT to Vercel ( #379 )
2020-04-26 21:29:13 +08:00
晋晓炜 Amio /
537598c7ec
chore: upgrade measurement-protocol to 0.1.1 ( #377 )
...
* chore: upgrade measurement-protocol to 0.1.1
* fix: update measurement-protocol invocation
2020-04-19 23:45:12 +08:00
Jarek Brzozowski
f155c2c254
feat(badge): add maven support ( #371 )
...
* maven support
* badge-list update
Co-authored-by: 晋晓炜 Amio / <amio.cn@gmail.com>
2020-04-05 20:36:46 +08:00
Jarek Brzozowski
ceb6ff5d09
feat(badge): add cocoapods support ( #370 )
...
* cocoapods support
* badge-list update
2020-04-05 20:15:02 +08:00
晋晓炜 Amio /
c098961ef0
chore: replace universal-analytics with measurement-protocol ( #346 )
2020-01-28 12:33:22 +08:00
晋晓炜 Amio /
6501d2e58c
chore: rollback to universal-analytics ( #344 )
...
* chore: update measurement util
* chore: add universal-analytics back
2020-01-26 23:41:20 +08:00
晋晓炜 Amio /
2dcf51eef3
chore: update got from 9.6.0 to 10.3.0 ( #341 )
...
* wip: upgrade got to 10
* chore: update got to 10
* fix: azure-pipelines error
* chore: update npm badge examples
2020-01-26 15:43:40 +08:00
晋晓炜 Amio /
b8558b1bfa
chore: replace universal-analytics with measurement-protocol.ts ( #339 )
2020-01-20 00:03:29 +08:00
晋晓炜 Amio /
f2e179e827
feat: add a cache option ( #338 )
...
* feat: add query param `cache`
* chore: bump dependencies
* chore: bump semver to 7.1.1
* chore: set default cdn cache to 6hrs
* chore: better wording
2020-01-19 00:08:00 +08:00
amio
fd3b1d0aff
chore: add log for metrics
2020-01-11 23:19:53 +08:00
晋晓炜 Amio /
bfa4d1bb16
chore: limit CDN cache to 5 mins ( #335 )
...
* fix: missing cheerio
* chore: set cdn cache to 5 min
* chore: eslint --fix
* chore: add github action config
2020-01-11 15:46:47 +08:00
晋晓炜 Amio /
7b167a519e
chore: bump deps & cleanup ( #323 )
...
* chore: bump dev deps
* chore: bump deps
* chore: cleanup
2019-11-21 13:53:03 +08:00
amio
eaa1bf87da
fix: auto choose style base on hostname
2019-11-21 00:35:05 +08:00
晋晓炜 Amio /
b008408591
chore: migrate to Now v2 ( #320 )
...
* feat: new doc generator (stage 1)
* feat: migrate badges to now v2 (stage 2)
* chore: update build & deploy config (stage 3)
* chore: address review comments
* chore: cleanup files
* fix: now deployment config
* fix: ts config
* chore: remove topbar
* chore: update routes config
2019-11-18 23:52:07 +08:00
amio
57ebe21e25
fix: typescript error
2019-11-16 13:42:31 +08:00
amio
db759b1fb1
fix: support float in `scale` arg ( #319 )
2019-11-05 10:51:42 +08:00
amio
0b55955576
feat: add create-badgen-handler.ts
2019-10-29 00:19:11 +08:00
amio
a748779c56
docs: add "Powered by ZEIT Now" #314
2019-10-26 10:39:29 +08:00
amio
836fb781f2
fix: try catch block
2019-10-25 22:18:55 +08:00
amio
2a32b967a1
fix: type annotation
2019-10-05 10:46:39 +08:00
amio
08af45e2fe
refactor: jsx => tsx
2019-10-04 20:45:52 +08:00
amio
9fd61382f9
polish: improve typing
2019-10-04 17:50:20 +08:00
amio
4996986ef9
fix: prevent miss spelled scale arg
2019-10-04 17:41:16 +08:00
amio
ce08e2308d
chore: bump dependencies
2019-10-04 17:35:32 +08:00
amio
9d55854d22
feat: support `scale` arg ( resolve #309 )
2019-10-04 17:27:30 +08:00
amio
34d153d105
fix: versionCompare util (type)
2019-09-01 21:53:41 +08:00
amio
d167f8185a
fix: versionCompare util
2019-09-01 21:21:52 +08:00
Amio
86ee22143e
style: make eslint happy
2019-08-30 11:22:22 +08:00
amio
ad19f1054a
fix version-compare type error
2019-07-18 16:55:25 +08:00
Brian Faust
2615fb8ef3
fix: check if icon is undefined before trying to set it
2019-07-18 10:01:37 +03:00
Brian Faust
958ab2af7c
fix: ignore ParsedUrlQuery modification for serve
2019-07-17 07:04:47 +03:00
Amio
f6ded9e0e6
Fix badge doc layout with `help`
2019-07-06 23:06:35 +08:00
Amio
6ab1d524fa
Support labelColor ( resolve #281 )
2019-07-06 18:12:35 +08:00
Amio
375366f445
Auto switch style in 404 badge
2019-07-06 08:56:03 +08:00
Amio
6338948b35
Pass badge error to badgenServe
2019-07-05 21:35:18 +08:00
Amio
fba3de34c1
Handle static badge docs specially
2019-07-05 18:27:58 +08:00
Amio
6a91506280
Fix badges.json generator
2019-07-05 18:09:01 +08:00
Amio
07a08c86a8
Move static folder .gen => .meta
2019-07-05 17:29:07 +08:00
Amio
76904c13d6
(doc pages): add links to scheme title
2019-07-05 17:26:26 +08:00
Amio
e28b59dc88
(doc pages): sort examples by scheme
2019-07-05 16:43:38 +08:00
Amio
768d427c26
Serve docs on live badge root path
2019-07-04 20:24:11 +08:00
Amio
614a034cc6
Handle empty icon query for static badge
2019-06-30 09:49:06 +08:00
xobotyi
f174f689e1
Codacy badges support (coverage, grade)
2019-06-29 03:35:54 +03:00
Amio
5443360f6c
Update sentry dsn
2019-06-27 09:06:26 +08:00
Andrew Leedham
b99984241f
Resolve iconPromise to undefined by default
2019-06-24 13:58:21 +01:00
Amio
6b228ca4a6
Catch external icon request error
2019-06-23 10:14:15 +08:00
Amio
2faa4c8db5
Fix missing icon when live badge request failed
2019-06-23 00:30:49 +08:00
Andrew Leedham
e21a0d1eac
Add dependabot endpoint
2019-06-21 14:45:26 +01:00
Amio
7d153dba5a
Update feat log tag
2019-06-20 11:42:08 +08:00
Amio
a850fdaeac
Support external icon ( Resolve #277 )
2019-06-20 11:33:53 +08:00
Amio
0e14e6c49a
Support legacy list param
2019-06-20 11:17:59 +08:00
Amio
eacfc03fa6
Refine error logging
2019-06-16 13:08:48 +08:00
Amio
75313a6980
Support custom list separator
2019-06-13 19:17:23 +08:00
Amio
43d6406a76
Increase client cache to 60s
2019-06-12 19:12:16 +08:00
Amio
18ae78f6c8
Support forwarded host
2019-06-12 19:05:13 +08:00
Amio
2013033643
Fix type error in resolveIcon
2019-06-12 10:48:22 +08:00
Amio
74705c5669
Better icon resolver ( fix badgen/badgen#54 )
2019-06-12 09:42:07 +08:00
Amio
2773a5cce6
Better handle style switch
2019-06-11 00:13:27 +08:00
Amio
f22b13c458
Add decoder for `%2F` in badge text
2019-06-10 23:28:20 +08:00
Amio
a5dbf95094
Support BADGE_STYLE env
2019-06-10 22:14:28 +08:00
Amio
978359074e
Decode uri components in badge text
2019-06-10 20:10:31 +08:00
Amio
cf6a5bfb7c
Extract match-router to standalone package
2019-06-09 18:41:03 +08:00
Amio
a027565f9d
Refine error handling
2019-06-07 21:18:52 +08:00
Amio
d33cdbf5e1
Add BadgenError for error handling
2019-06-07 21:09:44 +08:00
Amio
14c4bfe6f7
Simplify serve-badge
2019-06-03 22:19:17 +08:00
Amio
5cafca6682
Fix flat style serving
2019-06-03 20:38:33 +08:00
Amio
de32596334
Migrate utils to typescript
2019-06-03 20:19:00 +08:00
Amio
1135a2bec3
Cleanup legacy files 🏂
2019-06-03 19:33:00 +08:00
Amio
b4eea98f21
Fix req.hostname checking
2019-06-03 19:25:22 +08:00
Amio
5d624cbb2e
Add sentry error report
2019-06-03 19:12:23 +08:00