Anatoli Babenia
dbf94df115
Fix invalid rst format when alt or target is present ( #8275 )
...
* Fix invalid `rst` format when `alt` or `target` is present
* Write correct test
* fix tests and lint errors
Co-authored-by: chris48s <chris.shaw480@gmail.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-08-08 20:46:39 +00:00
Jonah Lawrence
42233228b4
Fix typos in endpoint badge docs ( #8085 )
2022-06-16 01:00:22 +00:00
chris48s
c602c1d07b
generate links without trailing : if port not set ( #7655 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-27 22:22:31 +00:00
chris48s
484cec715b
remove heroku from sponsors ( #7517 )
2022-01-23 20:43:16 +00:00
chris48s
4109d36ad9
Switch callbacks to React.useCallback ( #7160 )
...
* upgrade to eslint-plugin-react@7.26 .1
* switch callbacks to React.useCallback
2021-10-17 11:42:08 +01:00
cnico
1f94f8d571
Correction of badges url in self-hosting configuration with a custom port. Issue 7025 ( #7036 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-25 03:19:44 +00:00
Pierre-Yves B
8fd54b1b8d
Switch all shields.io links to https ( #6935 )
2021-08-22 17:20:59 +01:00
Alwin John
13a9421f3f
added a correct the path to the sponsers logo ( #6813 )
2021-07-24 11:28:27 +00:00
Pierre-Yves B
5f9e8deafc
Fix UptimeRobot status endpoint ( #6757 )
2021-07-11 14:17:26 +01:00
Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
Kevin CHEN
6a7b2e3620
fix usage style ( #6638 )
2021-06-17 20:24:05 -05:00
Caleb Cartwright
956f2e0584
update simple-icons to v5 with by-name lookup backwards compatibility ( #6591 )
...
* deps: update simple-icons to v5 in BC manner
* fix: handling of overlapping titles
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-12 19:51:28 +00:00
dependabot-preview[bot]
df4315258f
Build(deps-dev): bump prettier from 2.3.0 to 2.3.1 ( #6612 )
...
* Build(deps-dev): bump prettier from 2.3.0 to 2.3.1
Bumps [prettier](https://github.com/prettier/prettier ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.3.0...2.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: make the bots happy
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-12 18:45:36 +00:00
Shmueli Englard
17489c0413
Changed creating badges to open a new Window/Tab ( #6536 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-05-29 06:35:26 +00:00
dependabot-preview[bot]
636ed87057
Build(deps-dev): bump prettier from 2.2.1 to 2.3.0, run [ciibestpractices eclipsemarketplacedownloads gemdownloads githubdeployments githubtotaldiscussions githubforks githubhacktoberfest githubissuessearch githubpackagejson githubsponsors githubtag jenkinscoverage node npm nuget scoop teamcitybuild testspace] ( #6482 )
...
* Build(deps-dev): bump prettier from 2.2.1 to 2.3.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: prettier
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-05-15 08:49:20 +00:00
dependabot-preview[bot]
ee83590942
Build(deps-dev): bump @typescript-eslint/eslint-plugin from 2.34.0 to 4.19.0, run [GitHub GitlabCoverage F-Droid Wordpress VisualStudioAppCenter Ore Packagist] ( #6319 )
...
* Build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 2.34.0 to 4.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.19.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: update eslint camelcase rule
* chore: eslint camelcase updates for wordpress
* chore: fix eslint camelcase for misc other services
* chore: fix eslint camelcase issue in github and gitlab
* chore: run prettier
* chore: account for JSX globals
* deps: bump typescript-eslint-parser to v4
* chore: frontend lint changes
* chore: update eslint config to only run @typescript-eslint/explicit-module-boundary-types on ts files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
2021-03-28 08:26:01 -05:00
GrahamSH
bb84d4115d
Fix raster example ( #6306 )
2021-03-22 19:33:31 +00:00
Sheogorath
99fc7c1a86
Use NPM packages to provide fonts instead of Google Fonts ( #6274 )
...
This patch uses the fontsource libraries instead of using Google Fonts
in order to provide the fonts in the frontend. This way the web frontend
becomes more private, since it no longer shared visitors IPs with Google
and might even loads faster since modern web browsers isolate site
caches from each other and can re-use connections with HTTP/2 instead of
setting up a new connection to Google.[1]
It's basically the next iteration of my previous PR[2], that no longer
relies on a tool to download the fonts separately, but uses a library
instead. It also relates to issues that have been opened before[3] and
should be easily handled and upgraded by the regular NPM package
tooling[4], solving all related problems to that.
[1]: https://csswizardry.com/2019/05/self-host-your-static-assets/
[2]: https://github.com/badges/shields/pull/4864
[3]: https://github.com/badges/shields/issues/5883
[4]: https://github.com/badges/shields/labels/dependencies
2021-03-16 19:09:33 +00:00
Pierre-Yves B
2094e25fff
Prevent duplication of parameters in badge examples ( #6272 )
...
* Prevent duplication of parameters in badge examples
* Update caniuse-lite
2021-03-14 19:11:52 +00:00
Pierre-Yves B
d4116b3ab0
Allow links only for social badges, affects [GitHubMilestone Dependabot] ( #6159 )
...
* Allow links only for social badges, affects [GitHubMilestone Dependabot]
* Remove getLink function
* Remove unused import
* Mention social links in guidelines as well
2021-02-08 19:58:20 +00:00
chris48s
6ccd24815f
remove refs to netlify from docs ( #5978 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-12-23 23:22:22 +00:00
dependabot-preview[bot]
d0b93b4103
Build(deps): bump path-to-regexp from 5.0.0 to 6.2.0, run [Appveyor Bitbucket Circle GitHub GitLab ScrutinizerBuild] ( #5684 )
...
* Build(deps): bump path-to-regexp from 5.0.0 to 6.2.0
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp ) from 5.0.0 to 6.2.0.
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases )
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md )
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v5.0.0...v6.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* deps: apply path-to-regexp breaking changes
* fix: path-to-regexp types in frontend
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-12-23 22:59:31 +00:00
dependabot-preview[bot]
1361500296
Build(deps-dev): bump prettier from 2.1.2 to 2.2.1 ( #5905 )
...
* Build(deps-dev): bump prettier from 2.1.2 to 2.2.1
Bumps [prettier](https://github.com/prettier/prettier ) from 2.1.2 to 2.2.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* run new prettier
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: chris48s <chris.shaw480@gmail.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-12-12 16:10:19 +00:00
chris48s
0fda6da8e7
special case generating baseUrl for production ( #5840 )
2020-11-21 20:38:36 +00:00
Sam Donald
21c15e4029
Specify logoColor does not work with logoSvg ( #5727 )
...
If your endpoint uses the `logoSvg` you can _not_ specify the `logoColor` property. This will result in the 'invalid properties: logoColor' badge.
Related to #4749
2020-10-16 21:59:51 -05:00
Paul Melnikow
af3f720113
Improve appearance of for-the-badge and social badges by measuring correct font ( #5696 )
...
Even before #2311 , Shields has measured all badge text using 11px Verdana, which is the correct font for plastic, flat, and flat-square.
However the for-the-badge style uses 10px Verdana and bold 10px Verdana, and the social badge uses bold 11px _Helvetica_. This causes these badges to be wider or narrower than they should be, and the text to be stretched accordingly.
Since the for-the-badge style relies on synthetic letter spacing (we just multiply the computed length in code) there is room to massage this further. Our test badges all look as good or better than before, so I think it should not block merging this, however we might need to get it right before the downstream problem in squint goes away. (There's also #4691 which this doesn't attempt to address.)
Fixes #4275
2020-10-15 20:06:46 -04:00
Paul Melnikow
0e90b7e6ed
Remove enzyme which we aren’t using right now ( #5626 )
...
Our approach to preventing bugs on the frontend has mostly leveraged types, though we could restore these if we start writing frontend tests again. In the meantime it's one less thing to unnecessarily install and maintain.
2020-09-29 20:17:49 -04:00
Pierre-Yves B
0b5067c412
Fix all remaining LGTM alerts ( #5394 )
2020-08-08 08:45:46 +02:00
dependabot-preview[bot]
f2e24055a9
Build(deps-dev): bump eslint-plugin-react from 7.20.0 to 7.20.3 ( #5270 )
...
* Build(deps-dev): bump eslint-plugin-react from 7.20.0 to 7.20.3
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.20.0 to 7.20.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases )
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.0...v7.20.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: apply eslint tweaks for latest version
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
2020-07-05 02:46:15 +00:00
Hunter Kvalevog
95a0f66f76
Escape special characters in badge URL ( #5263 )
...
* Markdown: Encode spaces in badge URL as %20
* Revert "Markdown: Encode spaces in badge URL as %20"
This reverts commit f49945e9e9 .
* Escape special characters in badge URL
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-07-04 15:40:58 +00:00
chris48s
dd958efae5
Community/sponsors page ( #5155 )
2020-06-17 19:11:14 +01:00
dependabot-preview[bot]
2ff6d15f38
Build(deps-dev): bump eslint-plugin-react from 7.19.0 to 7.20.0 ( #5088 )
...
* Build(deps-dev): bump eslint-plugin-react from 7.19.0 to 7.20.0
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.19.0 to 7.20.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases )
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.19.0...v7.20.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* escape slashes
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Co-authored-by: chris48s <chris.shaw480@gmail.com >
2020-05-18 19:00:47 +00:00
chris48s
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
chris48s
0129eba673
show link previews on /dev/styles page ( #5045 )
2020-05-03 15:47:56 +01:00
chris48s
762306d7aa
document request header size limit ( #4966 )
...
closes #4960
2020-04-29 11:45:04 -04:00
chris48s
3ba05cb184
📦 version 3 ( #4756 )
...
* 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 >
2020-04-23 20:05:48 +01:00
Paul Melnikow
e57c1625d5
Document that logoColor does not apply to custom logos ( #4870 )
...
Closes #4749
2020-04-04 23:21:58 -04:00
dependabot-preview[bot]
1d90e102ac
Build(deps-dev): bump typescript from 3.7.5 to 3.8.3 ( #4718 )
...
* Build(deps-dev): bump typescript from 3.7.5 to 3.8.3
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 3.7.5 to 3.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.5...v3.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Add generics to useState where necessary
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: PyvesB <PyvesDev@gmail.com >
2020-03-08 10:57:29 +00:00
Pierre-Yves B
3ecb7b2aa5
Trim user input when building path and query string ( #4753 )
2020-03-07 15:47:36 +00:00
François Hodierne
0d8a2d5ca0
Update to eslint 6.8.0 [appveyor githubissuedetail packagist] ( #4489 )
...
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* package: activate eslint-config-standard
* apply updated eslint configuration
* lint: apply eslint feedback after rebase
* Update lockfile
* Update lockfile
* Restore missing deps
* Update lockfile
* Re-add eslint-plugin-node
* Add eslint-plugin-standard and eslint-plugin-react-hooks
* Clean lint
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2020-02-29 11:06:36 -06:00
Caleb Cartwright
fe02ac723f
add [AppVeyorJobBuild] status badge ( #4409 )
...
* feat(service): add AppVeyor Job status badge
* refactor: sync file/class/route names for appveyor job
* tests: update # of build services in frontend test
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com >
2020-01-08 22:22:04 +00:00
Drew McMurry
02681cfe27
fixes small typo ( #4487 )
2020-01-03 11:58:01 -06:00
Pierre-Yves B
38e80e39b4
Remove blank space for examples with no named parameters ( #4398 )
2019-12-11 19:26:44 +00:00
dependabot-preview[bot]
6d5a23b889
Build(deps): bump path-to-regexp from 3.1.0 to 5.0.0 ( #4330 )
...
* Build(deps): bump path-to-regexp from 3.1.0 to 5.0.0
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp ) from 3.1.0 to 5.0.0.
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases )
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md )
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v3.1.0...v5.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: apply path-to-regexp v5.x changes
2019-11-16 16:27:58 -06:00
dependabot-preview[bot]
0f332413df
Build(deps-dev): bump prettier from 1.18.2 to 1.19.1 ( #4328 )
...
* Build(deps-dev): bump prettier from 1.18.2 to 1.19.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.18.2 to 1.19.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.18.2...1.19.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Build(deps-dev): bump prettier from 1.18.2 to 1.19.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.18.2 to 1.19.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.18.2...1.19.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: apply new prettier formatting
* chore: try prettier, again
2019-11-15 19:33:40 -06:00
Federico Brigante
66f86bf1f7
Don't break the back button when redirecting legacy routes ( #4305 )
...
* Don't break the back button when redirecting legacy routes
* Prettier
2019-11-12 09:17:59 -06:00
Pierre-Yves B
50a2660aa5
Align documentation to the left ( #4256 )
2019-10-27 17:40:52 +00:00
dependabot-preview[bot]
3e2fa09b92
Build(deps-dev): bump eslint-plugin-react from 7.14.3 to 7.16.0 ( #4136 )
...
* Build(deps-dev): bump eslint-plugin-react from 7.14.3 to 7.16.0
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.14.3 to 7.16.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases )
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.14.3...v7.16.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* appease the lint gods 🙏
2019-10-04 20:20:08 +00:00
Marcin Mielnicki
274dfea9a8
Missing spaces added do the usage section ( #4116 )
2019-10-03 22:31:50 +02:00
Pierre-Yves B
157a6180b2
Make search work with category names ( #4103 )
2019-10-02 20:03:59 +01:00