Skip to content

Update swagger-ui to 5.22.0 #131

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

Open
wants to merge 1 commit into
base: master
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
29 changes: 1 addition & 28 deletions servant-swagger-ui/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Script to reload .../swagger-ui to .../swagger-ui/ -->
<script type="text/javascript">
if (window.location.href.match(/\/index.html\/$/)) {
Expand All @@ -20,32 +19,10 @@
window.location.href = window.location.href + '/';
}
</script>
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
Expand All @@ -59,8 +36,7 @@
var re = new RegExp("\/" + ssuDir + "/(?:index\\.html)?$","g");
var url = window.location.pathname.replace(re, "/" + ssuSchema);

// Begin Swagger UI call region
const ui = SwaggerUIBundle({
window.ui = SwaggerUIBundle({
url: url,
dom_id: '#swagger-ui',
deepLinking: true,
Expand All @@ -73,9 +49,6 @@
],
layout: "StandaloneLayout"
});
// End Swagger UI call region

window.ui = ui;
};
</script>
</body>
Expand Down
36 changes: 18 additions & 18 deletions servant-swagger-ui/servant-swagger-ui.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12
name: servant-swagger-ui
version: 0.3.5.5.0.1
version: 0.3.5.5.22.0
synopsis: Servant swagger ui
category: Web, Servant, Swagger
description:
Expand Down Expand Up @@ -31,23 +31,23 @@ tested-with:
extra-source-files:
CHANGELOG.md
index.html.tmpl
swagger-ui-dist-5.0.0/favicon-16x16.png
swagger-ui-dist-5.0.0/favicon-32x32.png
swagger-ui-dist-5.0.0/oauth2-redirect.html
swagger-ui-dist-5.0.0/swagger-ui-bundle.js
swagger-ui-dist-5.0.0/swagger-ui-bundle.js.map
swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js
swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js.map
swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js
swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js.map
swagger-ui-dist-5.0.0/swagger-ui-standalone-preset.js
swagger-ui-dist-5.0.0/swagger-ui-standalone-preset.js.map
swagger-ui-dist-5.0.0/swagger-ui.css
swagger-ui-dist-5.0.0/swagger-ui.css.map
swagger-ui-dist-5.0.0/swagger-ui.js
swagger-ui-dist-5.0.0/swagger-ui.js.map
swagger-ui-dist-5.0.0/swagger-initializer.js
swagger-ui-dist-5.0.0/index.css
swagger-ui-dist-5.22.0/favicon-16x16.png
swagger-ui-dist-5.22.0/favicon-32x32.png
swagger-ui-dist-5.22.0/oauth2-redirect.html
swagger-ui-dist-5.22.0/swagger-ui-bundle.js
swagger-ui-dist-5.22.0/swagger-ui-bundle.js.map
swagger-ui-dist-5.22.0/swagger-ui-es-bundle-core.js
swagger-ui-dist-5.22.0/swagger-ui-es-bundle-core.js.map
swagger-ui-dist-5.22.0/swagger-ui-es-bundle.js
swagger-ui-dist-5.22.0/swagger-ui-es-bundle.js.map
swagger-ui-dist-5.22.0/swagger-ui-standalone-preset.js
swagger-ui-dist-5.22.0/swagger-ui-standalone-preset.js.map
swagger-ui-dist-5.22.0/swagger-ui.css
swagger-ui-dist-5.22.0/swagger-ui.css.map
swagger-ui-dist-5.22.0/swagger-ui.js
swagger-ui-dist-5.22.0/swagger-ui.js.map
swagger-ui-dist-5.22.0/swagger-initializer.js
swagger-ui-dist-5.22.0/index.css

source-repository head
type: git
Expand Down
2 changes: 1 addition & 1 deletion servant-swagger-ui/src/Servant/Swagger/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ swaggerUiIndexTemplate :: Text
swaggerUiIndexTemplate = $(embedText "index.html.tmpl")

swaggerUiFiles :: [(FilePath, ByteString)]
swaggerUiFiles = $(embedRecursiveDir "swagger-ui-dist-5.0.0")
swaggerUiFiles = $(embedRecursiveDir "swagger-ui-dist-5.22.0")
3 changes: 0 additions & 3 deletions servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-bundle.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui.css

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui.js

This file was deleted.

1 change: 0 additions & 1 deletion servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions servant-swagger-ui/swagger-ui-dist-5.22.0/swagger-ui.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions servant-swagger-ui/swagger-ui-dist-5.22.0/swagger-ui.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.