Skip to content

Commit fa4998f

Browse files
authored
Merge pull request #2 from dapper91/upgrade
UI libraries upgraded
2 parents 816cb48 + 5cc9e25 commit fa4998f

30 files changed

+5814
-220
lines changed

openapi_ui_bundles/__about__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
__description__ = 'Python static file bundles for OpenAPI UI tools'
33
__url__ = 'https://github.com/dapper91/python-openapi-ui-bundles'
44

5-
__version__ = '0.1.0'
5+
__version__ = '0.2.0'
66

77
__author__ = 'Dmitry Pershin'
8-
__email__ = '[email protected]'
8+
__email__ = '[email protected]'
99

1010
__license__ = 'Apache Software License'

openapi_ui_bundles/rapidoc/vendor/default.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_ui_bundles/rapidoc/vendor/highlight.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+22-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes"><title>RapiDoc Example</title><script defer="defer" src="rapidoc-min.js"></script></head><script>window.addEventListener('DOMContentLoaded', (event) => {
2-
const docEl = document.getElementById('thedoc');
3-
docEl.addEventListener('before-try', (e) => {
4-
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
5-
});
6-
});</script><body><rapi-doc spec-url="./specs/temp.yaml" id="thedoc" theme="light" render-style="read" schema-style="table"></rapi-doc></body></html>
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes">
6+
<title>RapiDoc</title>
7+
<link rel="stylesheet" href="./default.min.css">
8+
<script src="./highlight.min.js"></script>
9+
<script defer="defer" src="./rapidoc-min.js"></script>
10+
</head>
11+
<script>
12+
window.addEventListener('DOMContentLoaded', (event) => {
13+
const docEl = document.getElementById('thedoc');
14+
docEl.addEventListener('before-try', (e) => {
15+
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
16+
});
17+
});
18+
</script>
19+
<body>
20+
<rapi-doc spec-url="./specs/temp.yaml" id="thedoc" theme="dark" render-style="view" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true"></rapi-doc>
21+
</body>
22+
</html>
-408 Bytes
Binary file not shown.

openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js

+3,894-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js.LICENSE.txt

+32-31
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,48 @@
55
* @license MIT
66
*/
77

8-
/*!
9-
* cookie
10-
* Copyright(c) 2012-2014 Roman Shtylman
11-
* Copyright(c) 2015 Douglas Christopher Wilson
12-
* MIT Licensed
13-
*/
14-
158
/*!
169
* https://github.com/Starcounter-Jack/JSON-Patch
1710
* (c) 2017 Joachim Wester
1811
* MIT license
1912
*/
2013

14+
/*!
15+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
16+
*
17+
* Copyright (c) 2014-2017, Jon Schlinkert.
18+
* Released under the MIT License.
19+
*/
20+
21+
/*!
22+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
23+
*
24+
* Copyright (c) 2014-2015, Jon Schlinkert.
25+
* Licensed under the MIT License.
26+
*/
27+
2128
/*! https://mths.be/punycode v1.3.2 by @mathias */
2229

2330
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2431

32+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
33+
34+
/**
35+
* @license
36+
* Copyright 2017 Google LLC
37+
* SPDX-License-Identifier: BSD-3-Clause
38+
*/
39+
2540
/**
2641
* @license
27-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
28-
* This code may only be used under the BSD style license found at
29-
* http://polymer.github.io/LICENSE.txt
30-
* The complete set of authors may be found at
31-
* http://polymer.github.io/AUTHORS.txt
32-
* The complete set of contributors may be found at
33-
* http://polymer.github.io/CONTRIBUTORS.txt
34-
* Code distributed by Google as part of the polymer project is also
35-
* subject to an additional IP rights grant found at
36-
* http://polymer.github.io/PATENTS.txt
42+
* Copyright 2018 Google LLC
43+
* SPDX-License-Identifier: BSD-3-Clause
44+
*/
45+
46+
/**
47+
* @license
48+
* Copyright 2019 Google LLC
49+
* SPDX-License-Identifier: BSD-3-Clause
3750
*/
3851

3952
/**
@@ -47,20 +60,8 @@
4760

4861
/**
4962
* @preserve
50-
* RapiDoc 9.0.1-beta - WebComponent to View OpenAPI docs
63+
* RapiDoc 9.3.4 - WebComponent to View OpenAPI docs
5164
* License: MIT
52-
* Repo : https://github.com/mrin9/RapiDoc
65+
* Repo : https://github.com/rapi-doc/RapiDoc
5366
* Author : Mrinmoy Majumdar
54-
*
55-
/******/
56-
57-
/**
58-
@license
59-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
60-
This code may only be used under the BSD style license found at
61-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
62-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
63-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
64-
part of the polymer project is also subject to an additional IP rights grant
65-
found at http://polymer.github.io/PATENTS.txt
6667
*/
Binary file not shown.
Binary file not shown.

openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js.map

-1
This file was deleted.

openapi_ui_bundles/rapidoc/vendor/report.html

-37
This file was deleted.

openapi_ui_bundles/redoc/vendor/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</head>
2020
<body>
2121
<redoc spec-url='http://petstore.swagger.io/v2/swagger.json'></redoc>
22-
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
22+
<script src="./redoc.standalone.js"> </script>
2323
</body>
2424
</html>
Loading

openapi_ui_bundles/redoc/vendor/redoc.standalone.js

+1,818-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
html {
2+
box-sizing: border-box;
3+
overflow: -moz-scrollbars-vertical;
4+
overflow-y: scroll;
5+
}
6+
7+
*,
8+
*:before,
9+
*:after {
10+
box-sizing: inherit;
11+
}
12+
13+
body {
14+
margin: 0;
15+
background: #fafafa;
16+
}

openapi_ui_bundles/swagger_ui/vendor/index.html

+2-43
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,15 @@
55
<meta charset="UTF-8">
66
<title>Swagger UI</title>
77
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
8+
<link rel="stylesheet" type="text/css" href="index.css" />
89
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
910
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
10-
<style>
11-
html
12-
{
13-
box-sizing: border-box;
14-
overflow: -moz-scrollbars-vertical;
15-
overflow-y: scroll;
16-
}
17-
18-
*,
19-
*:before,
20-
*:after
21-
{
22-
box-sizing: inherit;
23-
}
24-
25-
body
26-
{
27-
margin:0;
28-
background: #fafafa;
29-
}
30-
</style>
3111
</head>
3212

3313
<body>
3414
<div id="swagger-ui"></div>
35-
3615
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
3716
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
38-
<script>
39-
window.onload = function() {
40-
// Begin Swagger UI call region
41-
const ui = SwaggerUIBundle({
42-
url: "https://petstore.swagger.io/v2/swagger.json",
43-
dom_id: '#swagger-ui',
44-
deepLinking: true,
45-
presets: [
46-
SwaggerUIBundle.presets.apis,
47-
SwaggerUIStandalonePreset
48-
],
49-
plugins: [
50-
SwaggerUIBundle.plugins.DownloadUrl
51-
],
52-
layout: "StandaloneLayout"
53-
});
54-
// End Swagger UI call region
55-
56-
window.ui = ui;
57-
};
58-
</script>
17+
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
5918
</body>
6019
</html>

openapi_ui_bundles/swagger_ui/vendor/oauth2-redirect.html

-75
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
window.onload = function() {
2+
//<editor-fold desc="Changeable Configuration Block">
3+
4+
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
5+
window.ui = SwaggerUIBundle({
6+
url: "https://petstore.swagger.io/v2/swagger.json",
7+
dom_id: '#swagger-ui',
8+
deepLinking: true,
9+
presets: [
10+
SwaggerUIBundle.presets.apis,
11+
SwaggerUIStandalonePreset
12+
],
13+
plugins: [
14+
SwaggerUIBundle.plugins.DownloadUrl
15+
],
16+
layout: "StandaloneLayout"
17+
});
18+
19+
//</editor-fold>
20+
};

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-bundle.js.map

-1
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-es-bundle-core.js

-3
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-es-bundle-core.js.map

-1
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-es-bundle.js

-3
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-es-bundle.js.map

-1
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-standalone-preset.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui-standalone-preset.js.map

-1
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui.css

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui.css.map

-1
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui.js

-3
This file was deleted.

openapi_ui_bundles/swagger_ui/vendor/swagger-ui.js.map

-1
This file was deleted.

0 commit comments

Comments
 (0)