chris48s
5305e11f79
Remove 'suggest badges' feature ( #8311 )
...
* remove 'suggest badges' feature
* remove allowedOrigin/ALLOWED_ORIGIN setting
* keep allowedOrigin for now
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-11-09 18:15:59 +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
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
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
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
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
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
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
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
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
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
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
ec6512b7ba
Rewrite RequestMarkupButton using hooks ( #3739 )
2019-07-21 13:48:49 -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
Marcin Mielnicki
eeb78ccf15
Badge suggestion feature fix ( #3331 )
...
* Display suggested badges
* E2e test for badge suggestion
* Suggest resource returns example with pattern
* Do not require preview in MarkupModalContent
* Skip integration test for suggestion
* Unmodifiable path in customizer
* Use suggested link
* Allow to change suggested badges
* Enable skipped test
* Enable skipped test
* Code refactoring
* Code refactoring
* Code refactoring
* Code refactoring
* Code refactoring
* Code refactoring
* Unused code removed
* Unused code removed
* getExampleWithServiceByPattern helper added
* BadgeExamples uses examples instead of services definitions
* Revert "getExampleWithServiceByPattern helper added"
This reverts commit 80839fd705 .
* style removed from example
* example.exact replaced with preview.buildFromExample
* keywords are required again
* Code refactoring
* More e2e tests for suggestion feature
* Code refactoring
* Build add with a base url
* showActualParams -> isPrefilled
* A new schema for BadgeExamples
* Link moved to queryParams
* Updated documentation for the suggest reponse format
* Link moved to queryParams - another test updated
* Revert "Link moved to queryParams - another test updated"
This reverts commit b5f811bb07 .
* Revert "Link moved to queryParams"
This reverts commit 3b54c6d2b4 .
* Disable changes in path in suggested badges
* 'link' element documentation restored
2019-04-29 18:38:27 +02:00
Paul Melnikow
09e902fa38
Add frontend prop-type validation for the service definition schema ( #3063 )
...
Closes #2702
2019-02-23 15:34:49 -05:00
Paul Melnikow
4bd16f93e8
Sort imports and requires ( #3056 )
...
This will definitely save time, and ensure more uniformity.
It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.
Closes #2701
2019-02-21 22:14:40 -05:00
Paul Melnikow
9e4a8cec09
Consolidate badge URL generation functions ( #3032 )
...
This consolidates all the badge URL generation functions into a single place, and updates the rest of the calling code to use it. It renames some things and updates labels to bring the names into alignment with the current API.
Resolve #2027
2019-02-21 21:07:27 -05:00
Paul Melnikow
5fda6ac11e
Alphabetize JSX props in the frontend ( #3055 )
...
I'm game to give this a shot.
Ref #2701
2019-02-20 18:58:24 -05:00
mbarkhau
6e2992a3e3
Rename colorB -> color; colorA -> labelColor ( #3012 )
...
This makes it possible to override the parameters `color` and `labelColor`.
ref #2673
2019-02-19 22:03:45 -05:00
Paul Melnikow
0506a1762b
Omit style=flat from generated URLs ( #3025 )
...
Fix #2953
2019-02-18 18:01:44 -05:00
Paul Melnikow
d9d8a3b227
Drop-downs for multiple choice in patterns ( #2882 )
...
You can see it in effect on the PyPI downloads and the David badges.
2019-02-18 11:15:58 -05:00
Paul Melnikow
90f8ad5b73
Endpoint customizer ( #2908 )
...
* Endpoint page: improve formatting
Cherry-picked from #2906 (conflicts with that)
Partly addresses #2837 but does not resolve it
* Add badge customizer to the endpoint page
* Clean lint
2019-02-14 19:08:56 -06:00