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

Updated UI 3 Version to 3.52.5 #104

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
7 changes: 6 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
Version dev
===========
- Updated swagger ui version to 3.52.5

Version 1.0.15
==============
- Fixes a bug in setup.py where the distribution exports the package tests along with the actual library.
- Latest js-yaml fixes security issue related to https://www.npmjs.com/advisories/813
- Added logic that checks whether the route.method is * or contains a single method. When the latter is the case only the method that is specified will be added to the Swagger UI.
Expand Down Expand Up @@ -33,4 +38,4 @@ Improvements and fixes
New features
------------

- First Version
- First Version
12 changes: 6 additions & 6 deletions aiohttp_swagger/swagger_ui3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="##STATIC_PATH##/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="##STATIC_PATH##/swagger-ui.css" />
<link rel="icon" type="image/png" href="##STATIC_PATH##/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="##STATIC_PATH##/favicon-16x16.png" sizes="16x16" />
<style>
Expand Down Expand Up @@ -32,9 +32,9 @@

<body>
<div id="swagger-ui"></div>
<script src="##STATIC_PATH##/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="##STATIC_PATH##/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>

<script src="##STATIC_PATH##/swagger-ui-bundle.js"> </script>
<script src="##STATIC_PATH##/swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
Expand All @@ -50,11 +50,11 @@
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
});
// End Swagger UI call region

window.ui = ui
}
window.ui = ui;
};
</script>
</body>
</html>
31 changes: 19 additions & 12 deletions aiohttp_swagger/swagger_ui3/oauth2-redirect.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html>
<html lang="en-US">
<title>Swagger UI: OAuth2 Redirect</title>
<body onload="run()">
</body>
</html>
<head>
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
<script>
'use strict';
function run () {
Expand All @@ -18,19 +18,20 @@
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
arr = qp.split("&");
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value)
return key === "" ? value : decodeURIComponent(value);
}
) : {}
) : {};

isValid = qp.state === sentState
isValid = qp.state === sentState;

if ((
oauth2.auth.schema.get("flow") === "accessCode"||
oauth2.auth.schema.get("flow") === "authorizationCode"
oauth2.auth.schema.get("flow") === "accessCode" ||
oauth2.auth.schema.get("flow") === "authorizationCode" ||
oauth2.auth.schema.get("flow") === "authorization_code"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({
Expand All @@ -46,7 +47,7 @@
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg
let oauthErrorMsg;
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
Expand All @@ -65,4 +66,10 @@
}
window.close();
}

window.addEventListener('DOMContentLoaded', function () {
run();
});
</script>
</body>
</html>
135 changes: 2 additions & 133 deletions aiohttp_swagger/swagger_ui3/swagger-ui-bundle.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions aiohttp_swagger/swagger_ui3/swagger-ui.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.