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
Paul Melnikow
6560706d01
Finish Typescripterizing the frontend ( #4026 )
...
* Typescripterize RequestMarkupButton
* Typescripterize Customizer
* Typescripterize MarkupModalContent (+ tweaks)
* More TypeScript
* More TS
* Fix build
* Remove prop-types dependency
* More types
* Update frontend/components/badge-examples.tsx
* Update frontend/components/badge-examples.tsx
* RequestMarkupButton: Fix weird formatting on click
2019-09-16 14:53:07 +00:00
dependabot-preview[bot]
0cdf1d376e
Build(deps-dev): bump eslint-config-standard-jsx from 6.0.2 to 8.1.0 ( #3943 )
...
* Build(deps-dev): bump eslint-config-standard-jsx from 6.0.2 to 8.1.0
Bumps [eslint-config-standard-jsx](https://github.com/standard/eslint-config-standard-jsx ) from 6.0.2 to 8.1.0.
- [Release notes](https://github.com/standard/eslint-config-standard-jsx/releases )
- [Commits](https://github.com/standard/eslint-config-standard-jsx/compare/v6.0.2...v8.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Clean lint; add rel="noopener noreferrer"
Ref https://mathiasbynens.github.io/rel-noopener
2019-09-04 00:34:44 +00:00
Paul Melnikow
fb186e2cf5
Typescripterize QueryStringBuilder and PathBuilder ( #3885 )
2019-08-25 14:46:37 -04:00
chris48s
dd89b19266
add missing alt text to some <img> tags ( #3903 )
2019-08-25 07:27:10 -04:00
Paul Melnikow
35ef9be434
Typescripterize BadgeExamples and SuggestionAndSearch ( #3879 )
...
The two different kinds of data that can be passed to `<BadgeExample />` were a bit less similar than I thought, so this includes a little refactor related to that which isn't perfect, but leaves things in a cleaner place than before.
2019-08-21 08:25:03 +01:00
chris48s
5168675d0d
move [githubtag] and [githubrelease] under /v, move variants to query params ( #3610 )
...
* move GH tag and release under /v, move variants to query params
- move github /tag and /release under /v
- both sort by date as default
- specify sort=date/semver, include_prereleases as query params
- use graphql api for tags
* pass string params from example defs to modal
2019-08-17 22:16:41 +01:00
Paul Melnikow
583cc22471
Typescripterize StaticBadgeMaker ( #3876 )
2019-08-16 19:20:42 +03:00
Paul Melnikow
b36d01ba50
More TypeScript in the frontend ( #3742 )
2019-08-16 18:29:05 +03:00
Paul Melnikow
cfbd2c30df
SVG by default ( #3717 )
...
Make cleaner badge URLs by omitting the `.svg` extension.
Closes #2674
2019-07-24 12:57:39 -05:00
Paul Melnikow
e6f8c4ed65
Fix extraneous brackets in query string builder ( #3766 )
...
Fix #3765
2019-07-24 12:13:50 -05:00
Paul Melnikow
0e181f16b5
Rewrite QueryStringBuilder using hooks ( #3740 )
2019-07-23 12:08:19 -05:00
Paul Melnikow
28b8836595
Unify the ESLint config ( #3743 )
...
Adding TypeScript to the frontend and a `.d.ts` file to `core` (see #3742 ) has multiplied out the different combinations of lint rules. ESLint has support for file-pattern-based overrides, which we've used in some places, but we've also maintained a separate eslintrc for `frontend/`.
This merges the config together, with the strategy of putting all the rules at the top level except where they conflict, and applying settings to exactly the files where they should apply.
This introduces a few new errors in the server but they are true positives – hoisting and lowercase class names – things we don't really need to be doing).
2019-07-22 15:06:38 -05:00
Paul Melnikow
ec6512b7ba
Rewrite RequestMarkupButton using hooks ( #3739 )
2019-07-21 13:48:49 -05:00
Paul Melnikow
236decac29
Rewrite Main using hooks ( #3738 )
2019-07-19 12:27:25 -05:00
Paul Melnikow
4090ab8a01
Rewrite SugggestionAndSearch using hooks ( #3741 )
2019-07-19 12:10:10 -05:00
Paul Melnikow
88fc4a751c
Initial adoption of TypeScript in the frontend ( #3722 )
...
Ref #3657
2019-07-17 23:11:51 -04:00
Paul Melnikow
d4e17d4e94
Rewrite PathBuilder using hooks ( #3721 )
2019-07-17 22:02:01 -04:00
Paul Melnikow
5d3d78b209
Rewrite Customizer using hooks ( #3720 )
2019-07-17 21:15:30 -04:00
Paul Melnikow
be275b9f13
Rewrite CopiedContentIndicator using hooks ( #3719 )
2019-07-17 16:16:42 -04:00
Pierre-Yves B
c6ef885b75
Footer update ( #3655 )
...
* Reworded footer
* Added metrics link
2019-07-06 17:14:13 +01:00
dependabot-preview[bot]
ec17c4d67e
Build(deps-dev): bump js-yaml-loader from 1.2.0 to 1.2.2 ( #3628 )
...
* Build(deps-dev): bump js-yaml-loader from 1.2.0 to 1.2.2
Bumps [js-yaml-loader](https://github.com/wwilsman/js-yaml-loader ) from 1.2.0 to 1.2.2.
- [Release notes](https://github.com/wwilsman/js-yaml-loader/releases )
- [Commits](https://github.com/wwilsman/js-yaml-loader/compare/v1.2.0...v1.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* clarify how service defs are loaded
2019-07-01 18:39:31 -04:00
dependabot-preview[bot]
7ed502e23d
Build(deps-dev): bump enzyme from 3.9.0 to 3.10.0 ( #3579 )
...
* Build(deps-dev): bump enzyme from 3.9.0 to 3.10.0
Bumps [enzyme](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/airbnb/enzyme/releases )
- [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md )
- [Commits](https://github.com/airbnb/enzyme/commits/enzyme@3.10.0/packages/enzyme )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* tests: tweak assertion on emtpy attribute
2019-06-24 21:09:04 -05:00
Caleb Cartwright
b95811ba40
fix: modal scroll bug ( #3517 )
2019-06-02 11:42:16 -05:00
Mackenzie Miller
ca49e522b3
Make dropdown visible when it overflows modal content ( #3510 )
...
Resolves #2806
2019-05-30 21:51:06 -04:00
Marcin Mielnicki
9008c4ef0f
Show a badge pattern instead of a badge url ( #3438 )
...
* Show patterns instead of real paths
* realBadge property instead of preview.buildFromExample
* E2e test for displaying a badge
* Check bagde url in badge wrapper
* expectBadgeExample helper function
* Remove a hostname from badge url
* Simpler Cypress assertions
* realBadge -> isBadgeSuggestion
* Do not show regexp in patterns
2019-05-29 21:17:27 +02:00
Paul Melnikow
5e8fcc3b3c
MarkupModal: Convert from class component to function component ( #3415 )
...
This continues the work from #3096 , of converting our class components to function components.
2019-05-06 12:13:06 -04:00