mirror of
https://github.com/typeable/servant-swagger-ui.git
synced 2024-09-19 02:17:13 +03:00
parent
a0ebe34ca9
commit
cbd19054a5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
@ -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
0
swagger-ui-dist-3.4.0/favicon-16x16.png → swagger-ui-dist-3.9.1/favicon-16x16.png
Normal file → Executable file
0
swagger-ui-dist-3.4.0/favicon-16x16.png → swagger-ui-dist-3.9.1/favicon-16x16.png
Normal file → Executable file
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
0
swagger-ui-dist-3.4.0/favicon-32x32.png → swagger-ui-dist-3.9.1/favicon-32x32.png
Normal file → Executable file
0
swagger-ui-dist-3.4.0/favicon-32x32.png → swagger-ui-dist-3.9.1/favicon-32x32.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
swagger-ui-dist-3.4.0/index.html → swagger-ui-dist-3.9.1/index.html
Normal file → Executable file
0
swagger-ui-dist-3.4.0/index.html → swagger-ui-dist-3.9.1/index.html
Normal file → Executable file
0
swagger-ui-dist-3.4.0/oauth2-redirect.html → swagger-ui-dist-3.9.1/oauth2-redirect.html
Normal file → Executable file
0
swagger-ui-dist-3.4.0/oauth2-redirect.html → swagger-ui-dist-3.9.1/oauth2-redirect.html
Normal file → Executable file
99
swagger-ui-dist-3.9.1/swagger-ui-bundle.js
Executable file
99
swagger-ui-dist-3.9.1/swagger-ui-bundle.js
Executable file
File diff suppressed because one or more lines are too long
13
swagger-ui-dist-3.9.1/swagger-ui-standalone-preset.js
Executable file
13
swagger-ui-dist-3.9.1/swagger-ui-standalone-preset.js
Executable file
File diff suppressed because one or more lines are too long
2
swagger-ui-dist-3.9.1/swagger-ui.css
Executable file
2
swagger-ui-dist-3.9.1/swagger-ui.css
Executable file
File diff suppressed because one or more lines are too long
8
swagger-ui-dist-3.9.1/swagger-ui.js
Executable file
8
swagger-ui-dist-3.9.1/swagger-ui.js
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user