Update to Swagger UI 3.9.1 (#40)

Update to Swagger UI 3.9.1
This commit is contained in:
Cliff Harvey 2018-02-08 14:59:00 +01:00 committed by Oleg Grenrus
parent a0ebe34ca9
commit cbd19054a5
16 changed files with 136 additions and 153 deletions

View File

@ -19,7 +19,8 @@ Check [`example/Main.hs`](https://github.com/phadej/servant-swagger-ui/blob/mast
### Updating of bundled swagger-ui version:
- Extract `dist` directory of `swagger-ui` into `swagger-dist-<version>`
- Extract `dist` directory of `swagger-ui` into `swagger-dist-<version>`. Remove the `*.map` files.
- update `extra-source-files` in the `.cabal`
- move `index.html` into `index.html.tmpl`, do the diff, port the changes
- search replace the embbeded directory (in `Servant/Swagger/UI.hs`)
- test it works

View File

@ -1,6 +1,5 @@
name: servant-swagger-ui
version: 0.2.4.3.4.0
x-revision: 1
version: 0.2.4.3.9.1
synopsis: Servant swagger ui
description: Provide embedded swagger UI for servant and swagger (i.e. servant-swagger)
category: Web, Servant, Swagger
@ -69,12 +68,14 @@ extra-source-files:
jensoleg-dist/swagger.json
index.html.tmpl
swagger-ui-dist-3.4.0/favicon-16x16.png
swagger-ui-dist-3.4.0/favicon-32x32.png
swagger-ui-dist-3.4.0/swagger-ui-bundle.js
swagger-ui-dist-3.4.0/swagger-ui-standalone-preset.js
swagger-ui-dist-3.4.0/swagger-ui.css
swagger-ui-dist-3.4.0/swagger-ui.js
swagger-ui-dist-3.9.1/favicon-16x16.png
swagger-ui-dist-3.9.1/favicon-32x32.png
swagger-ui-dist-3.9.1/index.html
swagger-ui-dist-3.9.1/oauth2-redirect.html
swagger-ui-dist-3.9.1/swagger-ui-bundle.js
swagger-ui-dist-3.9.1/swagger-ui-standalone-preset.js
swagger-ui-dist-3.9.1/swagger-ui.css
swagger-ui-dist-3.9.1/swagger-ui.js
source-repository head
type: git
@ -89,6 +90,7 @@ library
hs-source-dirs:
src
ghc-options: -Wall
build-depends:
base >=4.7 && <4.11
, blaze-markup >=0.7.0.2 && <0.9

View File

@ -177,7 +177,7 @@ swaggerUiIndexTemplate :: T.Text
swaggerUiIndexTemplate = $(embedStringFile "index.html.tmpl")
swaggerUiFiles :: [(FilePath, ByteString)]
swaggerUiFiles = $(mkRecursiveEmbedded "swagger-ui-dist-3.4.0")
swaggerUiFiles = $(mkRecursiveEmbedded "swagger-ui-dist-3.9.1")
jensolegIndexTemplate :: T.Text
jensolegIndexTemplate = $(embedStringFile "jensoleg.index.html.tmpl")

View File

@ -1,4 +1,4 @@
resolver: nightly-2016-12-07
resolver: lts-10.3
packages:
- '.'
extra-deps: []

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long