-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1857 from altro3/update-views
Update views versions
- Loading branch information
Showing
11 changed files
with
576 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
5 changes: 5 additions & 0 deletions
5
openapi/src/main/resources/templates/openapi-explorer/res/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 2 additions & 2 deletions
4
openapi/src/main/resources/templates/openapi-explorer/res/openapi-explorer.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
872
openapi/src/main/resources/templates/rapidoc/res/rapidoc-min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
68
openapi/src/main/resources/templates/redoc/res/redoc.standalone.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
openapi/src/main/resources/templates/swagger-ui/res/swagger-ui-bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
openapi/src/main/resources/templates/swagger-ui/res/swagger-ui-standalone-preset.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
openapi/src/main/resources/templates/swagger-ui/res/swagger-ui.css
Large diffs are not rendered by default.
Oops, something went wrong.