Skip to content

Commit

Permalink
Merge pull request #8 from swaggest/update-3.24.3
Browse files Browse the repository at this point in the history
Update Swagger UI
  • Loading branch information
vearutop authored Dec 6, 2019
2 parents 9732763 + ef64204 commit 1da30d3
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 228 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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.26.3](https://github.com/swagger-api/swagger-ui/releases/tag/v3.26.3).
Static assets for `v3` are built from Swagger UI [v3.24.3](https://github.com/swagger-api/swagger-ui/releases/tag/v3.24.3).

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

## How to use

Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ require (
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd
golang.org/x/tools v0.0.0-20190830172400-56125e7d709e // indirect
)

go 1.11
93 changes: 0 additions & 93 deletions v3/index.tpl.html

This file was deleted.

36 changes: 18 additions & 18 deletions v3/static.go

Large diffs are not rendered by default.

Empty file modified v3/static/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 v3/static/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.
1 change: 1 addition & 0 deletions v3/static/oauth2-redirect.html
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en-US">
<title>Swagger UI: OAuth2 Redirect</title>
<body onload="run()">
</body>
</html>
Expand Down
26 changes: 13 additions & 13 deletions v3/static/swagger-ui-bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 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
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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.23.6/swagger-ui.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/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.23.6/swagger-ui-bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.6/swagger-ui-standalone-preset.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/swagger-ui-bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/swagger-ui-standalone-preset.js"></script>
<script>
window.onload = function () {
Expand Down
93 changes: 0 additions & 93 deletions v3cdn/index.tpl.html

This file was deleted.

0 comments on commit 1da30d3

Please sign in to comment.