You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2021/03/28 21:55:58 UTC

[ofbiz-plugins] branch trunk updated (66055a7 -> 57d2442)

This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git.


    from 66055a7  Improved: Fixes sonarcloud error by using the resource integrity feature for embedding external redoc javascript file (OFBIZ-12197)
     new 5eb003e  Improved: Updates Redoc version and makes it locally available (OFBIZ-12207)
     new 57d2442  Improved: Updates swagger ui version to 3.45.1, moves and updates README (OFBIZ-12207)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 rest-api/webapp/docs/README.adoc                   |  15 +++
 rest-api/webapp/docs/redoc.html                    |   2 +-
 rest-api/webapp/docs/redoc.standalone.js           | 103 +++++++++++++++++++++
 rest-api/webapp/docs/swagger-ui-bundle.js          |   2 +-
 rest-api/webapp/docs/swagger-ui-bundle.js.map      |   2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle-core.js  |   2 +-
 .../webapp/docs/swagger-ui-es-bundle-core.js.map   |   2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle.js       |   2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle.js.map   |   2 +-
 .../webapp/docs/swagger-ui-standalone-preset.js    |   2 +-
 .../docs/swagger-ui-standalone-preset.js.map       |   2 +-
 rest-api/webapp/docs/swagger-ui.css                |   2 +-
 rest-api/webapp/docs/swagger-ui.css.map            |   2 +-
 rest-api/webapp/docs/swagger-ui.js                 |   2 +-
 rest-api/webapp/docs/swagger-ui.js.map             |   2 +-
 15 files changed, 131 insertions(+), 13 deletions(-)
 create mode 100644 rest-api/webapp/docs/README.adoc
 create mode 100644 rest-api/webapp/docs/redoc.standalone.js

[ofbiz-plugins] 02/02: Improved: Updates swagger ui version to 3.45.1, moves and updates README (OFBIZ-12207)

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git

commit 57d24425dfa6bf1ffb703f0bf5dcab40d49c6cb3
Author: Michael Brohl <mi...@ecomify.de>
AuthorDate: Sat Mar 27 11:47:28 2021 +0100

    Improved: Updates swagger ui version to 3.45.1, moves and updates README
    (OFBIZ-12207)
---
 rest-api/webapp/docs/README.adoc                         | 15 +++++++++++++++
 rest-api/webapp/docs/WEB-INF/README.adoc                 | 15 ---------------
 rest-api/webapp/docs/swagger-ui-bundle.js                |  2 +-
 rest-api/webapp/docs/swagger-ui-bundle.js.map            |  2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle-core.js        |  2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle-core.js.map    |  2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle.js             |  2 +-
 rest-api/webapp/docs/swagger-ui-es-bundle.js.map         |  2 +-
 rest-api/webapp/docs/swagger-ui-standalone-preset.js     |  2 +-
 rest-api/webapp/docs/swagger-ui-standalone-preset.js.map |  2 +-
 rest-api/webapp/docs/swagger-ui.css                      |  2 +-
 rest-api/webapp/docs/swagger-ui.css.map                  |  2 +-
 rest-api/webapp/docs/swagger-ui.js                       |  2 +-
 rest-api/webapp/docs/swagger-ui.js.map                   |  2 +-
 14 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/rest-api/webapp/docs/README.adoc b/rest-api/webapp/docs/README.adoc
new file mode 100644
index 0000000..b6448a5
--- /dev/null
+++ b/rest-api/webapp/docs/README.adoc
@@ -0,0 +1,15 @@
+= REST API documentation
+
+You can choose between Swagger UI and Redoc to publish documentation for the REST API.
+
+== Swagger
+
+Current version: swagger-ui-3.45.1
+
+Access: https://localhost:8443/docs/swagger-ui.html
+
+== Redoc
+
+Current version: redoc@2.0.0-rc.50
+
+Accesss: https://localhost:8443/docs/redoc.html
\ No newline at end of file
diff --git a/rest-api/webapp/docs/WEB-INF/README.adoc b/rest-api/webapp/docs/WEB-INF/README.adoc
deleted file mode 100644
index f99ef3c..0000000
--- a/rest-api/webapp/docs/WEB-INF/README.adoc
+++ /dev/null
@@ -1,15 +0,0 @@
-= REST API documentation
-
-You can choose between Swagger UI and Redoc to generate documentation for the REST API.
-
-== Swagger
-
-Current version: 
-
-Access: https://localhost:8443/docs/swagger-ui.html
-
-== Redoc
-
-Current version: redoc@2.0.0-rc.50
-
-Accesss: https://localhost:8443/docs/redoc.html
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-bundle.js b/rest-api/webapp/docs/swagger-ui-bundle.js
index d3afaab..7643f50 100644
--- a/rest-api/webapp/docs/swagger-ui-bundle.js
+++ b/rest-api/webapp/docs/swagger-ui-bundle.js
@@ -1,3 +1,3 @@
 /*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("esprima")}catch(e){}}()):"function"==typeof define&&define.amd?define(["esprima"],t):"object"==typeof exports?exports.SwaggerUIBundle=t(function(){try{return require("esprima")}catch(e){}}()):e.SwaggerUIBundle=t(e.esprima)}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exp [...]
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("esprima")}catch(e){}}()):"function"==typeof define&&define.amd?define(["esprima"],t):"object"==typeof exports?exports.SwaggerUIBundle=t(function(){try{return require("esprima")}catch(e){}}()):e.SwaggerUIBundle=t(e.esprima)}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exp [...]
 //# sourceMappingURL=swagger-ui-bundle.js.map
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-bundle.js.map b/rest-api/webapp/docs/swagger-ui-bundle.js.map
index d6e9de3..e1a3760 100644
--- a/rest-api/webapp/docs/swagger-ui-bundle.js.map
+++ b/rest-api/webapp/docs/swagger-ui-bundle.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/universalModuleDefinition","webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./src/core/u [...]
\ No newline at end of file
+{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/universalModuleDefinition","webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./node_modul [...]
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-es-bundle-core.js b/rest-api/webapp/docs/swagger-ui-es-bundle-core.js
index 38496d5..10e4bb2 100644
--- a/rest-api/webapp/docs/swagger-ui-es-bundle-core.js
+++ b/rest-api/webapp/docs/swagger-ui-es-bundle-core.js
@@ -1,3 +1,3 @@
 /*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */
-module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e; [...]
+module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e; [...]
 //# sourceMappingURL=swagger-ui-es-bundle-core.js.map
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-es-bundle-core.js.map b/rest-api/webapp/docs/swagger-ui-es-bundle-core.js.map
index 7d14457..72f1b90 100644
--- a/rest-api/webapp/docs/swagger-ui-es-bundle-core.js.map
+++ b/rest-api/webapp/docs/swagger-ui-es-bundle-core.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/external \"react\"","webpack://SwaggerUIBundle/external \"immutable\"","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./src/core/utils.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/createClass [...]
\ No newline at end of file
+{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/external \"react\"","webpack://SwaggerUIBundle/external \"immutable\"","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","webpack://SwaggerUIBundle/./src/co [...]
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-es-bundle.js b/rest-api/webapp/docs/swagger-ui-es-bundle.js
index fa49109..720dfc8 100644
--- a/rest-api/webapp/docs/swagger-ui-es-bundle.js
+++ b/rest-api/webapp/docs/swagger-ui-es-bundle.js
@@ -1,3 +1,3 @@
 /*! For license information please see swagger-ui-es-bundle.js.LICENSE.txt */
-module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e; [...]
+module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e; [...]
 //# sourceMappingURL=swagger-ui-es-bundle.js.map
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-es-bundle.js.map b/rest-api/webapp/docs/swagger-ui-es-bundle.js.map
index 565b562..7747c5f 100644
--- a/rest-api/webapp/docs/swagger-ui-es-bundle.js.map
+++ b/rest-api/webapp/docs/swagger-ui-es-bundle.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./src/core/utils.js","webpack://SwaggerUIBundle/./node_modules/@babel/runt [...]
\ No newline at end of file
+{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUIBundle/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","web [...]
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-standalone-preset.js b/rest-api/webapp/docs/swagger-ui-standalone-preset.js
index 8701b2c..8d552af 100644
--- a/rest-api/webapp/docs/swagger-ui-standalone-preset.js
+++ b/rest-api/webapp/docs/swagger-ui-standalone-preset.js
@@ -1,3 +1,3 @@
 /*! For license information please see swagger-ui-standalone-preset.js.LICENSE.txt */
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(function(){try{return require("esprima")}catch(t){}}()):"function"==typeof define&&define.amd?define(["esprima"],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e(function(){try{return require("esprima")}catch(t){}}()):t.SwaggerUIStandalonePreset=e(t.esprima)}(this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].ca [...]
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(function(){try{return require("esprima")}catch(t){}}()):"function"==typeof define&&define.amd?define(["esprima"],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e(function(){try{return require("esprima")}catch(t){}}()):t.SwaggerUIStandalonePreset=e(t.esprima)}(this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].ca [...]
 //# sourceMappingURL=swagger-ui-standalone-preset.js.map
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui-standalone-preset.js.map b/rest-api/webapp/docs/swagger-ui-standalone-preset.js.map
index 725a05b..ee23c75 100644
--- a/rest-api/webapp/docs/swagger-ui-standalone-preset.js.map
+++ b/rest-api/webapp/docs/swagger-ui-standalone-preset.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://SwaggerUIStandalonePreset/webpack/universalModuleDefinition","webpack://SwaggerUIStandalonePreset/webpack/bootstrap","webpack://SwaggerUIStandalonePreset/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIStandalonePreset/./node_modules/core-js-pure/internals/export.js","webpack://SwaggerUIStandalonePreset/./node_modules/react/react.js","webpack://SwaggerUIStandalonePreset/./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array. [...]
\ No newline at end of file
+{"version":3,"sources":["webpack://SwaggerUIStandalonePreset/webpack/universalModuleDefinition","webpack://SwaggerUIStandalonePreset/webpack/bootstrap","webpack://SwaggerUIStandalonePreset/./node_modules/immutable/dist/immutable.js","webpack://SwaggerUIStandalonePreset/./node_modules/core-js-pure/internals/export.js","webpack://SwaggerUIStandalonePreset/./node_modules/react/react.js","webpack://SwaggerUIStandalonePreset/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat [...]
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui.css b/rest-api/webapp/docs/swagger-ui.css
index 03c6235..5f51f9d 100644
--- a/rest-api/webapp/docs/swagger-ui.css
+++ b/rest-api/webapp/docs/swagger-ui.css
@@ -1,4 +1,4 @@
 .swagger-ui{
-  /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */font-family:sans-serif;color:#3b4151}.swagger-ui html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui footer,.swagger-ui header,.swagger-ui nav,.swagger-ui section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure [...]
+  /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */font-family:sans-serif;color:#3b4151}.swagger-ui html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui footer,.swagger-ui header,.swagger-ui nav,.swagger-ui section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure [...]
 
 /*# sourceMappingURL=swagger-ui.css.map*/
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui.css.map b/rest-api/webapp/docs/swagger-ui.css.map
index 5ac1a29..f579f4d 100644
--- a/rest-api/webapp/docs/swagger-ui.css.map
+++ b/rest-api/webapp/docs/swagger-ui.css.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///src/style/main.scss","webpack:///node_modules/tachyons-sass/scss/_normalize.scss","webpack:///src/style/_type.scss","webpack:///node_modules/tachyons-sass/scss/_debug-children.scss","webpack:///node_modules/tachyons-sass/scss/_debug-grid.scss","webpack:///node_modules/tachyons-sass/scss/_box-sizing.scss","webpack:///node_modules/tachyons-sass/scss/_aspect-ratios.scss","webpack:///node_modules/tachyons-sass/scss/_images.scss","webpack:///node_modules/ta [...]
\ No newline at end of file
+{"version":3,"sources":["webpack:///./src/style/main.scss","webpack:///./node_modules/tachyons-sass/scss/_normalize.scss","webpack:///./src/style/_type.scss","webpack:///./node_modules/tachyons-sass/scss/_debug-children.scss","webpack:///./node_modules/tachyons-sass/scss/_debug-grid.scss","webpack:///./node_modules/tachyons-sass/scss/_box-sizing.scss","webpack:///./node_modules/tachyons-sass/scss/_aspect-ratios.scss","webpack:///./node_modules/tachyons-sass/scss/_images.scss","webpack:// [...]
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui.js b/rest-api/webapp/docs/swagger-ui.js
index 959ab04..6f1fa6a 100644
--- a/rest-api/webapp/docs/swagger-ui.js
+++ b/rest-api/webapp/docs/swagger-ui.js
@@ -1,3 +1,3 @@
 /*! For license information please see swagger-ui.js.LICENSE.txt */
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=fun [...]
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=fun [...]
 //# sourceMappingURL=swagger-ui.js.map
\ No newline at end of file
diff --git a/rest-api/webapp/docs/swagger-ui.js.map b/rest-api/webapp/docs/swagger-ui.js.map
index bbba85e..06e570f 100644
--- a/rest-api/webapp/docs/swagger-ui.js.map
+++ b/rest-api/webapp/docs/swagger-ui.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://SwaggerUICore/webpack/universalModuleDefinition","webpack://SwaggerUICore/webpack/bootstrap","webpack://SwaggerUICore/external \"react\"","webpack://SwaggerUICore/external \"immutable\"","webpack://SwaggerUICore/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUICore/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUICore/./src/core/utils.js","webpack://SwaggerUICore/./node_modu [...]
\ No newline at end of file
+{"version":3,"sources":["webpack://SwaggerUICore/webpack/universalModuleDefinition","webpack://SwaggerUICore/webpack/bootstrap","webpack://SwaggerUICore/external \"react\"","webpack://SwaggerUICore/external \"immutable\"","webpack://SwaggerUICore/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://SwaggerUICore/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://SwaggerUICore/./node_modules/@babel/runtime-corejs3/core-js-stable/inst [...]
\ No newline at end of file

[ofbiz-plugins] 01/02: Improved: Updates Redoc version and makes it locally available (OFBIZ-12207)

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git

commit 5eb003e1a6d0124bcb92100983ca76a066dfece4
Author: Michael Brohl <mi...@ecomify.de>
AuthorDate: Sat Mar 27 11:35:22 2021 +0100

    Improved: Updates Redoc version and makes it locally available
    (OFBIZ-12207)
    
    The reference was chanegd from cdn-hosted version to a locally saved
    version to avoid integrity check mechanism and making it possible to
    track the used version in the README.
---
 rest-api/webapp/docs/WEB-INF/README.adoc |  15 +++++
 rest-api/webapp/docs/redoc.html          |   2 +-
 rest-api/webapp/docs/redoc.standalone.js | 103 +++++++++++++++++++++++++++++++
 3 files changed, 119 insertions(+), 1 deletion(-)

diff --git a/rest-api/webapp/docs/WEB-INF/README.adoc b/rest-api/webapp/docs/WEB-INF/README.adoc
new file mode 100644
index 0000000..f99ef3c
--- /dev/null
+++ b/rest-api/webapp/docs/WEB-INF/README.adoc
@@ -0,0 +1,15 @@
+= REST API documentation
+
+You can choose between Swagger UI and Redoc to generate documentation for the REST API.
+
+== Swagger
+
+Current version: 
+
+Access: https://localhost:8443/docs/swagger-ui.html
+
+== Redoc
+
+Current version: redoc@2.0.0-rc.50
+
+Accesss: https://localhost:8443/docs/redoc.html
\ No newline at end of file
diff --git a/rest-api/webapp/docs/redoc.html b/rest-api/webapp/docs/redoc.html
index 5825848..6fa1d23 100644
--- a/rest-api/webapp/docs/redoc.html
+++ b/rest-api/webapp/docs/redoc.html
@@ -36,7 +36,7 @@ under the License.
   </head>
   <body>
   <redoc></redoc>
-  <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.50/bundles/redoc.standalone.js" integrity="sha384-YWcR83P+iCIwWinEgobyIHtCpa2GHXZY4EGN+8CK2dDrcay1wIz3l4Txk2AEc7Qc"> </script>
+  <script src="redoc.standalone.js"> </script>
   <script>
       if (!window.location.origin) {
         window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
diff --git a/rest-api/webapp/docs/redoc.standalone.js b/rest-api/webapp/docs/redoc.standalone.js
new file mode 100644
index 0000000..2e0bbfa
--- /dev/null
+++ b/rest-api/webapp/docs/redoc.standalone.js
@@ -0,0 +1,103 @@
+/*!
+ * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
+ * -------------------------------------------------------------
+ *   Version: "2.0.0-rc.50"
+ *   Repo: https://github.com/Redocly/redoc
+ */
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("null"),function(){try{return require("esprima")}catch(e){}}()):"function"==typeof define&&define.amd?define(["null","esprima"],t):"object"==typeof exports?exports.Redoc=t(require("null"),function(){try{return require("esprima")}catch(e){}}()):e.Redoc=t(e.null,e.esprima)}(this,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return [...]
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return [...]
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <http://feross.org>
+ * @license  MIT
+ */
+var r=n(243),o=n(244),i=n(131);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a stri [...]
+/**
+ * Prism: Lightweight, robust, elegant syntax highlighting
+ *
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @author Lea Verou <https://lea.verou.me>
+ * @namespace
+ * @public
+ */e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n),n.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CD [...]
+/*!***************************************************
+* mark.js v8.11.1
+* https://markjs.io/
+* Copyright (c) 2014–2018, Julian Kühnel
+* Released under the MIT license https://git.io/vwTVl
+*****************************************************/
+e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.def [...]
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){re [...]
+/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
+e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,o=Object.freeze,i=Object.seal,a="undefined"!=typeof Reflect&&Reflect,s=a.apply,l=a.construct;s||(s=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}retur [...]
+/*!
+  Copyright (c) 2017 Jed Watson.
+  Licensed under the MIT License (MIT), see
+  http://jedwatson.github.io/classnames
+*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){n(161),e.exports=n(324)},function( [...]
+/** @license React v16.13.1
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r=n(130),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"= [...]
+/** @license React v16.13.1
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r=n(0),o=n(130),i=n(232);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)} [...]
+/** @license React v0.19.1
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r,o,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=wind [...]
+/** @license React v16.13.0
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?S [...]
+/*!
+ * Stickyfill -- `position: sticky` polyfill
+ * v. 1.1.1 | https://github.com/wilddeer/stickyfill
+ * Copyright Oleg Korsunsky | http://wd.dizaina.net/
+ *
+ * MIT License
+ */
+e.exports=function(e,t){e||(e=document),t||(t=window);var n,r,o=[],i=!1,a=e.documentElement,s=function(){},l="hidden",c="visibilitychange";void 0!==e.webkitHidden&&(l="webkitHidden",c="webkitvisibilitychange"),t.getComputedStyle||d();for(var u=["","-webkit-","-moz-","-ms-"],p=document.createElement("div"),f=u.length-1;f>=0;f--){try{p.style.position=u[f]+"sticky"}catch(e){}""!=p.style.position&&d()}function d(){C=L=I=P=R=N=s}function h(e){return parseFloat(e)||0}function m(){n={top:t.page [...]
+/*!
+ * perfect-scrollbar v1.5.0
+ * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
+ * Licensed under MIT
+ */
+function vi(e){return getComputedStyle(e)}function yi(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function bi(e){var t=document.createElement("div");return t.className=e,t}var xi="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function wi(e,t){if(!xi)throw new Error("No element matching method supported");return xi.call(e,t)} [...]
+//# sourceMappingURL=redoc.standalone.js.map
\ No newline at end of file