Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SwaggerUI to v3.36.1 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions dist/oauth2-redirect.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!doctype html>
<html lang="en-US">
<title>Swagger UI: OAuth2 Redirect</title>
<body onload="run()">
<head>
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
</body>
</html>
<script>
Expand Down Expand Up @@ -65,4 +67,8 @@
}
window.close();
}

window.addEventListener('DOMContentLoaded', function () {
run();
});
</script>
113 changes: 0 additions & 113 deletions dist/swagger-editor-bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/swagger-editor-bundle.js.map

This file was deleted.

86 changes: 0 additions & 86 deletions dist/swagger-editor-standalone-preset.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/swagger-editor-standalone-preset.js.map

This file was deleted.

4 changes: 0 additions & 4 deletions dist/swagger-editor.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/swagger-editor.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/swagger-editor.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/swagger-editor.js.map

This file was deleted.

93 changes: 2 additions & 91 deletions dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-bundle.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/swagger-ui-es-bundle-core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/swagger-ui-es-bundle-core.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/swagger-ui-es-bundle.js.map

Large diffs are not rendered by default.

23 changes: 2 additions & 21 deletions dist/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-standalone-preset.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.css.map

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.js.map

Large diffs are not rendered by default.

128 changes: 53 additions & 75 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,82 +1,60 @@
<!DOCTYPE html>
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CoinAPI Documentation</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Roboto,sans-serif;
font-size: 9px;
line-height: 1.42857143;
color: #444;
margin: 0px;
}

#swagger-editor {
font-size: 1.3em;
}

.container {
height: 100%;
max-width: 880px;
margin-left: auto;
margin-right: auto;
}

#editor-wrapper {
height: 100%;
border:1em solid #000;
border:none;
}

.Pane1 {
display: none;
}

.SplitPane {
position: relative !important;
display: block !important;
}

.Pane2 {
overflow-y: auto;
width: 100% !important;
}

.info .main .link {
display: none;
}

</style>
<link rel="stylesheet" type="text/css" href="dist/swagger-editor.css" >
<link rel="icon" type="image/png" href="dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="dist/favicon-16x16.png" sizes="16x16" />
</head>

<body>
<div id="swagger-editor"></div>
<script src="./dist/swagger-editor-bundle.js"> </script>
<script src="./dist/swagger-editor-standalone-preset.js"> </script>
<script>
window.onload = function() {
// Build a system
const editor = SwaggerEditorBundle({
dom_id: '#swagger-editor',
layout: 'StandaloneLayout',
url: './swagger.yaml',
presets: [
SwaggerEditorStandalonePreset
],
defaultModelsExpandDepth: -1,
})

window.editor = editor
}

<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="dist/swagger-ui.css" >
<link rel="icon" type="image/png" href="dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="dist/favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="dist/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="dist/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "swagger.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
// End Swagger UI call region

window.ui = ui
}
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion swagger-ui.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.28.0
v3.36.1