Skip to content

Commit

Permalink
Merge pull request #2 from dapper91/upgrade
Browse files Browse the repository at this point in the history
UI libraries upgraded
  • Loading branch information
dapper91 authored Nov 17, 2023
2 parents 816cb48 + 5cc9e25 commit fa4998f
Show file tree
Hide file tree
Showing 30 changed files with 5,814 additions and 220 deletions.
4 changes: 2 additions & 2 deletions openapi_ui_bundles/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
__description__ = 'Python static file bundles for OpenAPI UI tools'
__url__ = 'https://github.com/dapper91/python-openapi-ui-bundles'

__version__ = '0.1.0'
__version__ = '0.2.0'

__author__ = 'Dmitry Pershin'
__email__ = 'dapper91@mail.ru'
__email__ = 'dapper1291@gmail.com'

__license__ = 'Apache Software License'
1 change: 1 addition & 0 deletions openapi_ui_bundles/rapidoc/vendor/default.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions openapi_ui_bundles/rapidoc/vendor/highlight.min.js

Large diffs are not rendered by default.

28 changes: 22 additions & 6 deletions openapi_ui_bundles/rapidoc/vendor/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
<!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) => {
const docEl = document.getElementById('thedoc');
docEl.addEventListener('before-try', (e) => {
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
});
});</script><body><rapi-doc spec-url="./specs/temp.yaml" id="thedoc" theme="light" render-style="read" schema-style="table"></rapi-doc></body></html>
<!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</title>
<link rel="stylesheet" href="./default.min.css">
<script src="./highlight.min.js"></script>
<script defer="defer" src="./rapidoc-min.js"></script>
</head>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
const docEl = document.getElementById('thedoc');
docEl.addEventListener('before-try', (e) => {
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
});
});
</script>
<body>
<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>
</body>
</html>
Binary file removed openapi_ui_bundles/rapidoc/vendor/index.html.gz
Binary file not shown.
3,898 changes: 3,894 additions & 4 deletions openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js

Large diffs are not rendered by default.

63 changes: 32 additions & 31 deletions openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,48 @@
* @license MIT
*/

/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/

/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017 Joachim Wester
* MIT license
*/

/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/

/*! https://mths.be/punycode v1.3.2 by @mathias */

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

/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */

/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
Expand All @@ -47,20 +60,8 @@

/**
* @preserve
* RapiDoc 9.0.1-beta - WebComponent to View OpenAPI docs
* RapiDoc 9.3.4 - WebComponent to View OpenAPI docs
* License: MIT
* Repo : https://github.com/mrin9/RapiDoc
* Repo : https://github.com/rapi-doc/RapiDoc
* Author : Mrinmoy Majumdar
*
/******/

/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Binary file not shown.
Binary file removed openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js.gz
Binary file not shown.
1 change: 0 additions & 1 deletion openapi_ui_bundles/rapidoc/vendor/rapidoc-min.js.map

This file was deleted.

37 changes: 0 additions & 37 deletions openapi_ui_bundles/rapidoc/vendor/report.html

This file was deleted.

2 changes: 1 addition & 1 deletion openapi_ui_bundles/redoc/vendor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
</head>
<body>
<redoc spec-url='http://petstore.swagger.io/v2/swagger.json'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script src="./redoc.standalone.js"> </script>
</body>
</html>
1 change: 1 addition & 0 deletions openapi_ui_bundles/redoc/vendor/logo-mini.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,819 changes: 1,818 additions & 1 deletion openapi_ui_bundles/redoc/vendor/redoc.standalone.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions openapi_ui_bundles/swagger_ui/vendor/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;
}
45 changes: 2 additions & 43 deletions openapi_ui_bundles/swagger_ui/vendor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,15 @@
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./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="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
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>
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
</body>
</html>
75 changes: 0 additions & 75 deletions openapi_ui_bundles/swagger_ui/vendor/oauth2-redirect.html

This file was deleted.

20 changes: 20 additions & 0 deletions openapi_ui_bundles/swagger_ui/vendor/swagger-initializer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
window.onload = function() {
//<editor-fold desc="Changeable Configuration Block">

// the following lines will be replaced by docker/configurator, when it runs in a docker-container
window.ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});

//</editor-fold>
};
2 changes: 1 addition & 1 deletion openapi_ui_bundles/swagger_ui/vendor/swagger-ui-bundle.js

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions openapi_ui_bundles/swagger_ui/vendor/swagger-ui-es-bundle.js

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

3 changes: 1 addition & 2 deletions openapi_ui_bundles/swagger_ui/vendor/swagger-ui.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion openapi_ui_bundles/swagger_ui/vendor/swagger-ui.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions openapi_ui_bundles/swagger_ui/vendor/swagger-ui.js

This file was deleted.

1 change: 0 additions & 1 deletion openapi_ui_bundles/swagger_ui/vendor/swagger-ui.js.map

This file was deleted.

0 comments on commit fa4998f

Please sign in to comment.