From cb037a57c4ab95c9947c90c4ce115ef63f3dc6ad Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Tue, 10 Apr 2018 15:55:31 -0700 Subject: [PATCH 1/2] fix: provide svg assets through React app instead of relying on HTML --- dev-helpers/index.html | 34 ---------------------- dist/index.html | 36 +---------------------- src/core/components/layouts/base.jsx | 2 ++ src/core/components/svg-assets.jsx | 43 ++++++++++++++++++++++++++++ src/core/presets/base.js | 4 ++- 5 files changed, 49 insertions(+), 70 deletions(-) create mode 100644 src/core/components/svg-assets.jsx diff --git a/dev-helpers/index.html b/dev-helpers/index.html index 59ed9497aab..d589923aa59 100644 --- a/dev-helpers/index.html +++ b/dev-helpers/index.html @@ -31,40 +31,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/dist/index.html b/dist/index.html index 0de47c67555..13e7089efaa 100644 --- a/dist/index.html +++ b/dist/index.html @@ -31,47 +31,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ + - - + ui.initOAuth({ + clientId: "your-client-id", + clientSecret: "your-client-secret-if-required", + realm: "your-realms", + appName: "your-app-name", + scopeSeparator: " ", + additionalQueryStringParams: {} + }) + } + diff --git a/dist/index.html b/dist/index.html index 13e7089efaa..7a45f1d5acc 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,61 +1,61 @@ - - - Swagger UI - - - - - - + *, + *:before, + *:after + { + box-sizing: inherit; + } - + body + { + margin:0; + background: #fafafa; + } + + -
+ +
- - - + + - + // Build a system + const ui = SwaggerUIBundle({ + url: "http://petstore.swagger.io/v2/swagger.json", + dom_id: '#swagger-ui', + deepLinking: true, + presets: [ + SwaggerUIBundle.presets.apis, + SwaggerUIStandalonePreset + ], + plugins: [ + SwaggerUIBundle.plugins.DownloadUrl + ], + layout: "StandaloneLayout" + }) + window.ui = ui + } + +