Skip to content

Commit

Permalink
Merge pull request #11 from jsonCarmock/upd-3.35.1
Browse files Browse the repository at this point in the history
Update Swagger UI to v3.35.1
  • Loading branch information
vearutop authored Oct 10, 2020
2 parents 8818671 + 41a1530 commit 55b73eb
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 188 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SWAGGER_UI_VERSION := v3.25.4
SWAGGER_UI_VERSION := v3.35.1

update:
curl https://raw.githubusercontent.com/swagger-api/swagger-ui/$(SWAGGER_UI_VERSION)/dist/swagger-ui-bundle.js -o ./v3/static/swagger-ui-bundle.js
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Package `swgui` (Swagger UI) provides HTTP handler to serve Swagger UI.
All assets are embedded in Go source code, so just build and run.

Static assets for `v3` are built from Swagger UI [v3.25.4](https://github.com/swagger-api/swagger-ui/releases/tag/v3.25.4).
Static assets for `v3` are built from Swagger UI [v3.35.1](https://github.com/swagger-api/swagger-ui/releases/tag/v3.35.1).

[CDN-based](https://cdnjs.com/libraries/swagger-ui) `v3cdn` uses Swagger UI [v3.24.2](https://github.com/swagger-api/swagger-ui/releases/tag/v3.24.2).
[CDN-based](https://cdnjs.com/libraries/swagger-ui) `v3cdn` uses Swagger UI [v3.35.1](https://github.com/swagger-api/swagger-ui/releases/tag/v3.35.1).

## How to use

Expand Down
Empty file modified v2/static/images/favicon-16x16.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified v2/static/images/favicon-32x32.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified v2/static/images/favicon.ico
100755 → 100644
Empty file.
Empty file modified v2/static/lang/ja.js
100755 → 100644
Empty file.
36 changes: 18 additions & 18 deletions v3/static.go

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion v3/static/oauth2-redirect.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en-US">
<title>Swagger UI: OAuth2 Redirect</title>
<body onload="run()">
<body>
</body>
</html>
<script>
Expand Down Expand Up @@ -65,4 +65,8 @@
}
window.close();
}

window.addEventListener('DOMContentLoaded', function () {
run();
});
</script>
135 changes: 2 additions & 133 deletions v3/static/swagger-ui-bundle.js

Large diffs are not rendered by default.

23 changes: 2 additions & 21 deletions v3/static/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v3/static/swagger-ui.css

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions v3/static/swagger-ui.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions v3cdn/index.tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var indexTpl = `
<head>
<meta charset="UTF-8">
<title>{{ .Title }} - Swagger UI</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.35.1/swagger-ui.css">
<link rel="icon" type="image/png" href="https://petstore.swagger.io/favicon-32x32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="https://petstore.swagger.io/favicon-16x16.png" sizes="16x16"/>
<style>
Expand All @@ -32,8 +32,8 @@ var indexTpl = `
<body>
<div id="swagger-ui"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-standalone-preset.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.35.1/swagger-ui-bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.35.1/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = function () {
Expand Down

0 comments on commit 55b73eb

Please sign in to comment.