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

Update views versions #1857

Open
wants to merge 5 commits into
base: 6.13.x
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
49 changes: 49 additions & 0 deletions download-js-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

SWAGGER_UI_INPUT="https://unpkg.com/swagger-ui/dist/swagger-ui.js"
SWAGGER_UI_OUTPUT="openapi/src/main/resources/templates/swagger-ui/res/swagger-ui-bundle.js"

curl -L -o "$SWAGGER_UI_OUTPUT" "$SWAGGER_UI_INPUT"

if [ $? -eq 0 ]; then
echo "File downloaded and saved to $SWAGGER_UI_OUTPUT"
else
echo "Failed to download the file"
exit 1
fi

OPENAPI_EXPLORER_INPUT="https://unpkg.com/openapi-explorer/dist/browser/openapi-explorer.min.js"
OPENAPI_EXPLORER_OUTPUT="openapi/src/main/resources/templates/openapi-explorer/res/openapi-explorer.min.js"

curl -L -o "$OPENAPI_EXPLORER_OUTPUT" "$OPENAPI_EXPLORER_INPUT"

if [ $? -eq 0 ]; then
echo "File downloaded and saved to $OPENAPI_EXPLORER_OUTPUT"
else
echo "Failed to download the file"
exit 1
fi

REDOC_EXPLORER_INPUT="https://unpkg.com/redoc/bundles/redoc.standalone.js"
REDOC_EXPLORER_OUTPUT="openapi/src/main/resources/templates/redoc/res/redoc.standalone.js"

curl -L -o "$REDOC_EXPLORER_OUTPUT" "$REDOC_EXPLORER_INPUT"

if [ $? -eq 0 ]; then
echo "File downloaded and saved to $REDOC_EXPLORER_OUTPUT"
else
echo "Failed to download the file"
exit 1
fi

RAPIDOC_EXPLORER_INPUT="https://unpkg.com/rapidoc/dist/rapidoc-min.js"
RAPIDOC_EXPLORER_OUTPUT="openapi/src/main/resources/templates/rapidoc/res/rapidoc-min.js"

curl -L -o "$RAPIDOC_EXPLORER_OUTPUT" "$RAPIDOC_EXPLORER_INPUT"

if [ $? -eq 0 ]; then
echo "File downloaded and saved to $RAPIDOC_EXPLORER_OUTPUT"
else
echo "Failed to download the file"
exit 1
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[OpenAPI Explorer](https://github.com/Authress-Engineering/openapi-explorer) is [licensed under the Apache License, Version 2.0](https://github.com/Authress-Engineering/openapi-explorer/blob/release/2.2/LICENSE).

The minimized version of the OpenAPI Explorer is available at:

https://unpkg.com/openapi-explorer/dist/browser/openapi-explorer.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions openapi/src/main/resources/templates/rapidoc/res/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[RapiDoc](https://github.com/rapi-doc/RapiDoc) is [licensed under the MIT License](https://github.com/rapi-doc/RapiDoc/blob/master/LICENSE.txt).

The minimized version of the RapiDoc is available at:

https://unpkg.com/rapidoc/dist/rapidoc-min.js
872 changes: 444 additions & 428 deletions openapi/src/main/resources/templates/rapidoc/res/rapidoc-min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions openapi/src/main/resources/templates/redoc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Recoc](https://github.com/Redocly/ReDoc/) is [licensed under the MIT License](https://github.com/Redocly/redoc/blob/main/LICENSE).

The minimized version of the Redoc is available at:

https://unpkg.com/redoc/bundles/redoc.standalone.js
68 changes: 34 additions & 34 deletions openapi/src/main/resources/templates/redoc/res/redoc.standalone.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions openapi/src/main/resources/templates/swagger-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[SwaggerUI](https://github.com/swagger-api/swagger-ui) is [licensed under the Apache License Version 2.0](https://github.com/swagger-api/swagger-ui/blob/master/LICENSE).

The minimized version of the Swagger UI is available at:

https://unpkg.com/swagger-ui/dist/swagger-ui.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading