From a69f0fb00986a04c812ab273711e8f3501b98139 Mon Sep 17 00:00:00 2001 From: Ivan Shvets Date: Wed, 23 Jun 2021 12:59:47 +0300 Subject: [PATCH 01/30] feat: added git folder sync config --- .github/sync.yml | 6 ++++++ .github/workflows/sync.yml | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/sync.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 00000000..6d3a4e35 --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,6 @@ +group: + - files: + - source: docs/ + dest: docs/redoc + repos: | + Redocly/docs diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 00000000..19f53cf6 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,16 @@ +name: Sync Files +on: + push: + branches: + - master + workflow_dispatch: +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@master + - name: Run GitHub File Sync + uses: Redocly/repo-file-sync-action + with: + GH_PAT: ${{ secrets.GH_PAT }} \ No newline at end of file From f944da0e7d51f983832d9f741ff4d1d938a95ddb Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:31:20 +0300 Subject: [PATCH 02/30] chore: change cors url in the demo --- demo/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.tsx b/demo/index.tsx index 28c89522..396cf9a3 100644 --- a/demo/index.tsx +++ b/demo/index.tsx @@ -77,7 +77,7 @@ class DemoApp extends React.Component< let proxiedUrl = specUrl; if (specUrl !== DEFAULT_SPEC) { proxiedUrl = cors - ? '\\\\cors.apis.guru/' + urlResolve(window.location.href, specUrl) + ? '\\\\cors.redoc.ly/' + urlResolve(window.location.href, specUrl) : specUrl; } return ( From 3df72fb99ff24fb9a551565b7568d96f8614ed6f Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:34:49 +0300 Subject: [PATCH 03/30] fix: broken linkify fixes #1655 --- src/common-elements/linkify.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common-elements/linkify.tsx b/src/common-elements/linkify.tsx index 5fa31afc..0b059968 100644 --- a/src/common-elements/linkify.tsx +++ b/src/common-elements/linkify.tsx @@ -39,9 +39,9 @@ const isModifiedEvent = (event) => export function Link(props: { to: string; className?: string; children?: any }) { const store = React.useContext(StoreContext); const clickHandler = React.useCallback( - (event) => { + (event: React.MouseEvent) => { if (!store) return; - navigate(store.menu.history, event); + navigate(store.menu.history, event, props.to); }, [store], ); @@ -60,14 +60,14 @@ export function Link(props: { to: string; className?: string; children?: any }) ); } -function navigate(history: HistoryService, event) { +function navigate(history: HistoryService, event: React.MouseEvent, to: string) { if ( !event.defaultPrevented && // onClick prevented default event.button === 0 && // ignore everything but left clicks !isModifiedEvent(event) // ignore clicks with modifier keys ) { event.preventDefault(); - history.replace(this.props.to); + history.replace(to); } } From b41a8b4ac714084dc25de7914fa1f99386e907e2 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:37:40 +0300 Subject: [PATCH 04/30] fix: fix accidentally removed onLoaded fixes #1656 --- src/components/StoreBuilder.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/StoreBuilder.ts b/src/components/StoreBuilder.ts index 1981e2e6..527d3700 100644 --- a/src/components/StoreBuilder.ts +++ b/src/components/StoreBuilder.ts @@ -58,6 +58,12 @@ export function StoreBuilder(props: StoreBuilderProps) { } }, [resolvedSpec, specUrl, options]); + React.useEffect(() => { + if (store && onLoaded) { + onLoaded(); + } + }, [store, onLoaded]) + return children({ loading: !store, store, From a4e85fb374d153db7a8fb1a021affec95b9525b5 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:40:25 +0300 Subject: [PATCH 05/30] chore: fix sync workflow --- .github/workflows/sync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 19f53cf6..6ff78faa 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -11,6 +11,6 @@ jobs: - name: Checkout Repository uses: actions/checkout@master - name: Run GitHub File Sync - uses: Redocly/repo-file-sync-action + uses: Redocly/repo-file-sync-action@master with: - GH_PAT: ${{ secrets.GH_PAT }} \ No newline at end of file + GH_PAT: ${{ secrets.GH_PAT }} From 68690d18721ebbca6cbc1ceefe94a74d2f05d708 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:45:19 +0300 Subject: [PATCH 06/30] chore: v2.0.0-rc.55 --- CHANGELOG.md | 15 +++++++ package-lock.json | 100 +++++----------------------------------------- package.json | 4 +- 3 files changed, 26 insertions(+), 93 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c686c3..56d0b06f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +# [2.0.0-rc.55](https://github.com/Redocly/redoc/compare/v2.0.0-rc.54...v2.0.0-rc.55) (2021-07-01) + + +### Bug Fixes + +* broken linkify ([3df72fb](https://github.com/Redocly/redoc/commit/3df72fb99ff24fb9a551565b7568d96f8614ed6f)), closes [#1655](https://github.com/Redocly/redoc/issues/1655) +* fix accidentally removed onLoaded ([b41a8b4](https://github.com/Redocly/redoc/commit/b41a8b4ac714084dc25de7914fa1f99386e907e2)), closes [#1656](https://github.com/Redocly/redoc/issues/1656) + + +### Features + +* added git folder sync config ([a69f0fb](https://github.com/Redocly/redoc/commit/a69f0fb00986a04c812ab273711e8f3501b98139)) + + + # [2.0.0-rc.54](https://github.com/Redocly/redoc/compare/v2.0.0-rc.53...v2.0.0-rc.54) (2021-06-09) diff --git a/package-lock.json b/package-lock.json index 35a720d2..5601ef16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "redoc", - "version": "2.0.0-rc.54", + "version": "2.0.0-rc.55", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "2.0.0-rc.54", + "version": "2.0.0-rc.55", "license": "MIT", "dependencies": { "@babel/runtime": "^7.14.0", @@ -26,7 +26,7 @@ "path-browserify": "^1.0.1", "perfect-scrollbar": "^1.5.1", "polished": "^4.1.3", - "prismjs": "^1.23.0", + "prismjs": "^1.24.0", "prop-types": "^15.7.2", "react-tabs": "^3.2.2", "slugify": "~1.4.7", @@ -5186,17 +5186,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/clipboard": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.8.tgz", - "integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==", - "optional": true, - "dependencies": { - "good-listener": "^1.2.2", - "select": "^1.1.2", - "tiny-emitter": "^2.0.0" - } - }, "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", @@ -6686,12 +6675,6 @@ "node": ">=0.4.0" } }, - "node_modules/delegate": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", - "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==", - "optional": true - }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -9589,15 +9572,6 @@ "node": ">= 4" } }, - "node_modules/good-listener": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", - "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=", - "optional": true, - "dependencies": { - "delegate": "^3.1.2" - } - }, "node_modules/graceful-fs": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", @@ -15988,12 +15962,9 @@ } }, "node_modules/prismjs": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.23.0.tgz", - "integrity": "sha512-c29LVsqOaLbBHuIbsTxaKENh1N2EQBOHaWv7gkHN4dgRbxSREqDnDbtFJYdpPauS4YCplMSNCABQ6Eeor69bAA==", - "optionalDependencies": { - "clipboard": "^2.0.0" - } + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.24.0.tgz", + "integrity": "sha512-SqV5GRsNqnzCL8k5dfAjCNhUrF3pR0A9lTDSCUZeh/LIshheXJEaP0hwLz2t4XHivd2J/v2HR+gRnigzeKe3cQ==" }, "node_modules/process": { "version": "0.11.10", @@ -17029,12 +17000,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/select": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", - "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=", - "optional": true - }, "node_modules/select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -18755,12 +18720,6 @@ "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", "dev": true }, - "node_modules/tiny-emitter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", - "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==", - "optional": true - }, "node_modules/tmp": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", @@ -25034,17 +24993,6 @@ "string-width": "^4.2.0" } }, - "clipboard": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.8.tgz", - "integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==", - "optional": true, - "requires": { - "good-listener": "^1.2.2", - "select": "^1.1.2", - "tiny-emitter": "^2.0.0" - } - }, "cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", @@ -26202,12 +26150,6 @@ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, - "delegate": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", - "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==", - "optional": true - }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -28470,15 +28412,6 @@ } } }, - "good-listener": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", - "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=", - "optional": true, - "requires": { - "delegate": "^3.1.2" - } - }, "graceful-fs": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", @@ -33297,12 +33230,9 @@ } }, "prismjs": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.23.0.tgz", - "integrity": "sha512-c29LVsqOaLbBHuIbsTxaKENh1N2EQBOHaWv7gkHN4dgRbxSREqDnDbtFJYdpPauS4YCplMSNCABQ6Eeor69bAA==", - "requires": { - "clipboard": "^2.0.0" - } + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.24.0.tgz", + "integrity": "sha512-SqV5GRsNqnzCL8k5dfAjCNhUrF3pR0A9lTDSCUZeh/LIshheXJEaP0hwLz2t4XHivd2J/v2HR+gRnigzeKe3cQ==" }, "process": { "version": "0.11.10", @@ -34124,12 +34054,6 @@ "ajv-keywords": "^3.5.2" } }, - "select": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", - "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=", - "optional": true - }, "select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -35533,12 +35457,6 @@ "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", "dev": true }, - "tiny-emitter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", - "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==", - "optional": true - }, "tmp": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", diff --git a/package.json b/package.json index 4c28fd58..6f85f321 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redoc", - "version": "2.0.0-rc.54", + "version": "2.0.0-rc.55", "description": "ReDoc", "repository": { "type": "git", @@ -163,7 +163,7 @@ "path-browserify": "^1.0.1", "perfect-scrollbar": "^1.5.1", "polished": "^4.1.3", - "prismjs": "^1.23.0", + "prismjs": "^1.24.0", "prop-types": "^15.7.2", "react-tabs": "^3.2.2", "slugify": "~1.4.7", From 99618bbee7ac06163f07fded426bd5e675fbea4b Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Thu, 1 Jul 2021 12:53:49 +0300 Subject: [PATCH 07/30] chore: fix demo slack url --- demo/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.tsx b/demo/index.tsx index 396cf9a3..a92b940a 100644 --- a/demo/index.tsx +++ b/demo/index.tsx @@ -15,7 +15,7 @@ const demos = [ value: 'https://api.apis.guru/v2/specs/googleapis.com/calendar/v3/openapi.yaml', label: 'Google Calendar', }, - { value: 'https://api.apis.guru/v2/specs/slack.com/1.5.0/openapi.yaml', label: 'Slack' }, + { value: 'https://api.apis.guru/v2/specs/slack.com/1.7.0/openapi.yaml', label: 'Slack' }, { value: 'https://api.apis.guru/v2/specs/zoom.us/2.0.0/openapi.yaml', label: 'Zoom.us' }, { value: 'https://docs.graphhopper.com/openapi.json', label: 'GraphHopper' }, ]; From 78c7e37ecb3ac511dfbd46bc02be67f0a7cadc2b Mon Sep 17 00:00:00 2001 From: Ivan Shvets <37488015+Leocete@users.noreply.github.com> Date: Fri, 2 Jul 2021 18:14:26 +0300 Subject: [PATCH 08/30] chore: changed docs sync flow --- .github/workflows/sync.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 6ff78faa..ba673bd0 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -14,3 +14,5 @@ jobs: uses: Redocly/repo-file-sync-action@master with: GH_PAT: ${{ secrets.GH_PAT }} + COMMIT_PREFIX: "sync:" + SKIP_PR: true From a7a1efd83fc4d2a896641d0f0e9703301e4a09c0 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 5 Jul 2021 15:50:43 +0300 Subject: [PATCH 09/30] chore: added security section into pull request template --- .github/pull_request_template.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..7de82936 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,18 @@ +## What/Why/How? + +## Reference + +## Testing + +## Screenshots (optional) + +## Check yourself + +- [ ] Code is linted +- [ ] Tested +- [ ] All new/updated code is covered with tests + +## Security + +- [ ] Security impact of change has been considered +- [ ] Code follows company security practices and guidelines From eba55124c970eab3da606bc12c2ce6f7ee2fea1a Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Fri, 9 Jul 2021 08:25:52 +0100 Subject: [PATCH 10/30] docs: improve the redoc cli README (#1679) - Break some long lines - Add some articles (the, a) - Add a couple links for additional context - Expand the SSR acronym - Describe what --watch does --- cli/README.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/cli/README.md b/cli/README.md index 32bb0e0e..bc6d8bcf 100644 --- a/cli/README.md +++ b/cli/README.md @@ -3,20 +3,29 @@ **[ReDoc](https://github.com/Redocly/redoc)'s Command Line Interface** ## Installation -You can use redoc cli by installing `redoc-cli` globally or using [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b). + +You can use `redoc-cli` by installing [the package](https://www.npmjs.com/package/redoc-cli) globally, +or using [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b). ## Usage -Two following commands are available: +The two following commands are available: -- `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc. Supports SSR mode (`--ssr`) and can watch the spec (`--watch`) -- `redoc-cli bundle [spec]` - bundles spec and ReDoc into **zero-dependency** HTML file. +- `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc. + Supports a server-side rendering mode (`--ssr`), + and can watch the spec (`--watch`) to automatically reload the page whenever it changes. +- `redoc-cli bundle [spec]` - bundles `spec` and ReDoc into a **zero-dependency** HTML file. Some examples: -- Bundle with main color changed to `orange`:
`$ redoc-cli bundle [spec] --options.theme.colors.primary.main=orange` -- Serve with `nativeScrollbars` option set to true:
`$ redoc-cli serve [spec] --options.nativeScrollbars` -- Bundle using custom template (check [default template](https://github.com/Redocly/redoc/blob/master/cli/template.hbs) for reference):
`$ redoc-cli bundle [spec] -t custom.hbs` -- Bundle using custom template and add custom `templateOptions`:
`$ redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"` +- Bundle with the main color changed to `orange`:
+ `$ redoc-cli bundle [spec] --options.theme.colors.primary.main=orange` +- Serve with the `nativeScrollbars` option set to true:
+ `$ redoc-cli serve [spec] --options.nativeScrollbars` +- Bundle using a custom [Handlebars](https://handlebarsjs.com/) template + (check the [default template](https://github.com/Redocly/redoc/blob/master/cli/template.hbs) for an example):
+ `$ redoc-cli bundle [spec] -t custom.hbs` +- Bundle using a custom template and add custom `templateOptions`:
+ `$ redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"` -For more details run `redoc-cli --help`. +For more details, run `redoc-cli --help`. From ec50858ec47af08c5fe553266fe3c209fba97eae Mon Sep 17 00:00:00 2001 From: ILya Volchenkov Date: Fri, 9 Jul 2021 10:33:36 +0300 Subject: [PATCH 11/30] feat: added localization for some labels (#1675) --- src/components/ApiInfo/ApiInfo.tsx | 5 +++-- src/components/RequestSamples/RequestSamples.tsx | 3 ++- src/components/ResponseSamples/ResponseSamples.tsx | 3 ++- src/components/Responses/ResponsesList.tsx | 3 ++- src/services/Labels.ts | 12 ++++++++++++ 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/components/ApiInfo/ApiInfo.tsx b/src/components/ApiInfo/ApiInfo.tsx index ae4b4b20..6debaf7e 100644 --- a/src/components/ApiInfo/ApiInfo.tsx +++ b/src/components/ApiInfo/ApiInfo.tsx @@ -14,6 +14,7 @@ import { InfoSpanBox, InfoSpanBoxWrap, } from './styled.elements'; +import { l } from '../../services/Labels'; export interface ApiInfoProps { store: AppStore; @@ -79,14 +80,14 @@ export class ApiInfo extends React.Component { {!hideDownloadButton && (

- Download OpenAPI specification: + {l('downloadSpecification')}: - Download + {l('download')}

)} diff --git a/src/components/RequestSamples/RequestSamples.tsx b/src/components/RequestSamples/RequestSamples.tsx index 89b12d74..7a06d89f 100644 --- a/src/components/RequestSamples/RequestSamples.tsx +++ b/src/components/RequestSamples/RequestSamples.tsx @@ -6,6 +6,7 @@ import { SourceCodeWithCopy } from '../SourceCode/SourceCode'; import { RightPanelHeader, Tab, TabList, TabPanel, Tabs } from '../../common-elements'; import { OptionsContext } from '../OptionsProvider'; +import { l } from '../../services/Labels'; export interface RequestSamplesProps { operation: OperationModel; @@ -26,7 +27,7 @@ export class RequestSamples extends React.Component { return ( (hasSamples && (
- Request samples + {l('requestSamples')}