Skip to content

bump swagger-ui version to 4.18.1 #34

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

Merged
merged 1 commit into from
Mar 15, 2023
Merged
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
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ currently supports `OpenAPI Specification <https://github
Features
========
* Support for the OpenAPI Specification (versions 2 and 3)
* Compatibility with SwaggerUI (latest version - 4.0.0)
* Compatibility with SwaggerUI (latest version - 4.18.1)
* Support for frameworks which include:

* `Flask <https://pypi.org/project/Flask>`__
Expand Down
2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
4.18.1
16 changes: 16 additions & 0 deletions src/apispec_ui/swagger-ui/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
html {
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

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

body {
margin: 0;
background: #fafafa;
}
38 changes: 8 additions & 30 deletions src/apispec_ui/swagger-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,19 @@
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css"
href="{{ url_for('swagger.static', filename='swagger-ui.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ url_for('swagger.static', filename='swagger-ui.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ url_for('swagger.static', filename='index.css') }}"/>
<link rel="icon" href="{{ favicon }}" sizes="64x64 32x32 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="{{ url_for('swagger.static', filename='swagger-ui-bundle.js') }}"
charset="UTF-8"></script>
<script
src="{{ url_for('swagger.static', filename='swagger-ui-standalone-preset.js') }}"
charset="UTF-8"></script>
<script src="{{ url_for('swagger.static', filename='swagger-ui-bundle.js') }}" charset="UTF-8"></script>
<script src="{{ url_for('swagger.static', filename='swagger-ui-standalone-preset.js') }}" charset="UTF-8"></script>

<script>
window.onload = function () {
const ui = SwaggerUIBundle({
window.onload = () => {
window.ui = SwaggerUIBundle({
url: "{{ url }}",
dom_id: "#swagger-ui",
deepLinking: true,
Expand All @@ -50,9 +30,7 @@
layout: "StandaloneLayout"
{% endif %}
});

window.ui = ui;
};
</script>
</body>
</html>
</html>
8 changes: 4 additions & 4 deletions src/apispec_ui/swagger-ui/oauth2-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var isValid, qp, arr;

if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
qp = window.location.hash.substring(1).replace('?', '&');
} else {
qp = location.search.substring(1);
}
Expand All @@ -38,7 +38,7 @@
authId: oauth2.auth.name,
source: "auth",
level: "warning",
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
});
}

Expand All @@ -58,7 +58,7 @@
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
});
}
} else {
Expand All @@ -76,4 +76,4 @@
}
</script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-bundle.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-es-bundle-core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-es-bundle-core.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-es-bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/apispec_ui/swagger-ui/swagger-ui.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apispec_ui/swagger-ui/swagger-ui.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.