Skip to content

Commit c42d653

Browse files
committed
Update swagger-ui to 5.22.0
1 parent 29713c5 commit c42d653

32 files changed

+40
-70
lines changed

servant-swagger-ui/index.html.tmpl

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<link rel="stylesheet" type="text/css" href="index.css" />
99
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
1010
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
11-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1211
<!-- Script to reload .../swagger-ui to .../swagger-ui/ -->
1312
<script type="text/javascript">
1413
if (window.location.href.match(/\/index.html\/$/)) {
@@ -20,32 +19,10 @@
2019
window.location.href = window.location.href + '/';
2120
}
2221
</script>
23-
<style>
24-
html
25-
{
26-
box-sizing: border-box;
27-
overflow: -moz-scrollbars-vertical;
28-
overflow-y: scroll;
29-
}
30-
31-
*,
32-
*:before,
33-
*:after
34-
{
35-
box-sizing: inherit;
36-
}
37-
38-
body
39-
{
40-
margin:0;
41-
background: #fafafa;
42-
}
43-
</style>
4422
</head>
4523

4624
<body>
4725
<div id="swagger-ui"></div>
48-
4926
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
5027
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
5128
<script>
@@ -59,8 +36,7 @@
5936
var re = new RegExp("\/" + ssuDir + "/(?:index\\.html)?$","g");
6037
var url = window.location.pathname.replace(re, "/" + ssuSchema);
6138

62-
// Begin Swagger UI call region
63-
const ui = SwaggerUIBundle({
39+
window.ui = SwaggerUIBundle({
6440
url: url,
6541
dom_id: '#swagger-ui',
6642
deepLinking: true,
@@ -73,9 +49,6 @@
7349
],
7450
layout: "StandaloneLayout"
7551
});
76-
// End Swagger UI call region
77-
78-
window.ui = ui;
7952
};
8053
</script>
8154
</body>

servant-swagger-ui/servant-swagger-ui.cabal

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22
name: servant-swagger-ui
3-
version: 0.3.5.5.0.1
3+
version: 0.3.5.5.22.0
44
synopsis: Servant swagger ui
55
category: Web, Servant, Swagger
66
description:
@@ -31,23 +31,23 @@ tested-with:
3131
extra-source-files:
3232
CHANGELOG.md
3333
index.html.tmpl
34-
swagger-ui-dist-5.0.0/favicon-16x16.png
35-
swagger-ui-dist-5.0.0/favicon-32x32.png
36-
swagger-ui-dist-5.0.0/oauth2-redirect.html
37-
swagger-ui-dist-5.0.0/swagger-ui-bundle.js
38-
swagger-ui-dist-5.0.0/swagger-ui-bundle.js.map
39-
swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js
40-
swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js.map
41-
swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js
42-
swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js.map
43-
swagger-ui-dist-5.0.0/swagger-ui-standalone-preset.js
44-
swagger-ui-dist-5.0.0/swagger-ui-standalone-preset.js.map
45-
swagger-ui-dist-5.0.0/swagger-ui.css
46-
swagger-ui-dist-5.0.0/swagger-ui.css.map
47-
swagger-ui-dist-5.0.0/swagger-ui.js
48-
swagger-ui-dist-5.0.0/swagger-ui.js.map
49-
swagger-ui-dist-5.0.0/swagger-initializer.js
50-
swagger-ui-dist-5.0.0/index.css
34+
swagger-ui-dist-5.22.0/favicon-16x16.png
35+
swagger-ui-dist-5.22.0/favicon-32x32.png
36+
swagger-ui-dist-5.22.0/oauth2-redirect.html
37+
swagger-ui-dist-5.22.0/swagger-ui-bundle.js
38+
swagger-ui-dist-5.22.0/swagger-ui-bundle.js.map
39+
swagger-ui-dist-5.22.0/swagger-ui-es-bundle-core.js
40+
swagger-ui-dist-5.22.0/swagger-ui-es-bundle-core.js.map
41+
swagger-ui-dist-5.22.0/swagger-ui-es-bundle.js
42+
swagger-ui-dist-5.22.0/swagger-ui-es-bundle.js.map
43+
swagger-ui-dist-5.22.0/swagger-ui-standalone-preset.js
44+
swagger-ui-dist-5.22.0/swagger-ui-standalone-preset.js.map
45+
swagger-ui-dist-5.22.0/swagger-ui.css
46+
swagger-ui-dist-5.22.0/swagger-ui.css.map
47+
swagger-ui-dist-5.22.0/swagger-ui.js
48+
swagger-ui-dist-5.22.0/swagger-ui.js.map
49+
swagger-ui-dist-5.22.0/swagger-initializer.js
50+
swagger-ui-dist-5.22.0/index.css
5151

5252
source-repository head
5353
type: git

servant-swagger-ui/src/Servant/Swagger/UI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ swaggerUiIndexTemplate :: Text
127127
swaggerUiIndexTemplate = $(embedText "index.html.tmpl")
128128

129129
swaggerUiFiles :: [(FilePath, ByteString)]
130-
swaggerUiFiles = $(embedRecursiveDir "swagger-ui-dist-5.0.0")
130+
swaggerUiFiles = $(embedRecursiveDir "swagger-ui-dist-5.22.0")

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-bundle.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-es-bundle-core.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-es-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

servant-swagger-ui/swagger-ui-dist-5.0.0/swagger-ui-standalone-preset.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)