Skip to content

Commit

Permalink
Merge pull request #1857 from altro3/update-views
Browse files Browse the repository at this point in the history
Update views versions
  • Loading branch information
altro3 authored Nov 20, 2024
2 parents a11e1cf + 463d973 commit c60278c
Show file tree
Hide file tree
Showing 11 changed files with 576 additions and 467 deletions.
73 changes: 73 additions & 0 deletions download-js-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/bin/bash

SWAGGER_UI_INPUT="https://unpkg.com/swagger-ui/dist/swagger-ui-bundle.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

SWAGGER_UI_STANDALONE_INPUT="https://unpkg.com/swagger-ui/dist/swagger-ui-standalone-preset.js"
SWAGGER_UI_STANDALONE_OUTPUT="openapi/src/main/resources/templates/swagger-ui/res/swagger-ui-standalone-preset.js"

curl -L -o "$SWAGGER_UI_STANDALONE_OUTPUT" "$SWAGGER_UI_STANDALONE_INPUT"

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

SWAGGER_UI_CSS_INPUT="https://unpkg.com/swagger-ui/dist/swagger-ui.css"
SWAGGER_UI_CSS_OUTPUT="openapi/src/main/resources/templates/swagger-ui/res/swagger-ui.css"

curl -L -o "$SWAGGER_UI_CSS_OUTPUT" "$SWAGGER_UI_CSS_INPUT"

if [ $? -eq 0 ]; then
echo "File downloaded and saved to $SWAGGER_UI_CSS_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.

Large diffs are not rendered by default.

0 comments on commit c60278c

Please sign in to comment.