Skip to content

Commit b5a2d9b

Browse files
committed
Upgrade swagger-ui to version 3.20.1
1 parent 020a46b commit b5a2d9b

15 files changed

Lines changed: 186 additions & 78 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Buffalo .gitignore
12
example/vendor/
23
example/**/*.log
34
example/**/*.sqlite
@@ -12,3 +13,6 @@ example/.vscode/
1213
example/.grifter/
1314
example/.env
1415
example/docs/swagger
16+
17+
# Swagger dist directory
18+
dist

b0x.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# all folders and files are relative to the path
2+
# where fileb0x was run at!
3+
4+
# default: main
5+
pkg: swaggerFiles
6+
7+
# destination
8+
dest: "./swaggerFiles/"
9+
10+
# gofmt
11+
# type: bool
12+
# default: false
13+
fmt: true
14+
15+
# compress files
16+
# at the moment, only supports gzip
17+
#
18+
# type: object
19+
compression:
20+
# activates the compression
21+
#
22+
# type: bool
23+
# default: false
24+
compress: false
25+
26+
# valid values are:
27+
# -> "NoCompression"
28+
# -> "BestSpeed"
29+
# -> "BestCompression"
30+
# -> "DefaultCompression" or ""
31+
#
32+
# type: string
33+
# default: "DefaultCompression" # when: Compress == true && Method == ""
34+
method: ""
35+
36+
# true = do it yourself (the file is written as gzip compressed file into the memory file system)
37+
# false = decompress files at run time (while writing file into memory file system)
38+
#
39+
# type: bool
40+
# default: false
41+
keep: false
42+
43+
# ---------------
44+
# -- DANGEROUS --
45+
# ---------------
46+
#
47+
# cleans the destination folder (only b0xfiles)
48+
# you should use this when using the spread function
49+
# type: bool
50+
# default: false
51+
clean: true
52+
53+
# default: ab0x.go
54+
output: "ab0x.go"
55+
56+
# [unexporTed] builds non-exporTed functions, variables and types...
57+
# type: bool
58+
# default: false
59+
unexporTed: false
60+
61+
# [spread] means it will make a file to hold all fileb0x data
62+
# and each file into a separaTed .go file
63+
#
64+
# example:
65+
# theres 2 files in the folder assets, they're: hello.json and world.txt
66+
# when spread is activaTed, fileb0x will make a file:
67+
# b0x.go or [output]'s data, assets_hello.json.go and assets_world.txt.go
68+
#
69+
#
70+
# type: bool
71+
# default: false
72+
spread: true
73+
74+
# type: array of objects
75+
custom:
76+
77+
- files:
78+
# everything inside the folder
79+
# type: array of strings
80+
- "./dist/"
81+
82+
# base is the path that will be removed from all files' path
83+
# type: string
84+
base: "dist"

swaggerFiles/ab0x.go

Lines changed: 17 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// Code generaTed by fileb0x at "2017-11-26 17:57:23.142282087 +0600 +06 m=+8.898600553" from config file "b0x.yml" DO NOT EDIT.
1+
// Code generaTed by fileb0x at "2018-12-06 19:11:58.087756179 +0100 CET m=+0.076786780" from config file "b0x.yml" DO NOT EDIT.
2+
// modified(2018-12-06 19:06:51.408024982 +0100 CET)
3+
// original path: dist/favicon-16x16.png
24

35
package swaggerFiles
46

57
import (
6-
"log"
78
"os"
89
)
910

@@ -14,16 +15,16 @@ func init() {
1415

1516
f, err := FS.OpenFile(CTX, "/favicon-16x16.png", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
1617
if err != nil {
17-
log.Fatal(err)
18+
panic(err)
1819
}
1920

2021
_, err = f.Write(FileFavicon16x16Png)
2122
if err != nil {
22-
log.Fatal(err)
23+
panic(err)
2324
}
2425

2526
err = f.Close()
2627
if err != nil {
27-
log.Fatal(err)
28+
panic(err)
2829
}
2930
}
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// Code generaTed by fileb0x at "2017-11-26 17:57:18.759175324 +0600 +06 m=+4.515493805" from config file "b0x.yml" DO NOT EDIT.
1+
// Code generaTed by fileb0x at "2018-12-06 19:11:58.486534475 +0100 CET m=+0.475565406" from config file "b0x.yml" DO NOT EDIT.
2+
// modified(2018-12-06 19:06:51.408024982 +0100 CET)
3+
// original path: dist/favicon-32x32.png
24

35
package swaggerFiles
46

57
import (
6-
"log"
78
"os"
89
)
910

@@ -14,16 +15,16 @@ func init() {
1415

1516
f, err := FS.OpenFile(CTX, "/favicon-32x32.png", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
1617
if err != nil {
17-
log.Fatal(err)
18+
panic(err)
1819
}
1920

2021
_, err = f.Write(FileFavicon32x32Png)
2122
if err != nil {
22-
log.Fatal(err)
23+
panic(err)
2324
}
2425

2526
err = f.Close()
2627
if err != nil {
27-
log.Fatal(err)
28+
panic(err)
2829
}
2930
}

swaggerFiles/b0xfile__index.html.go

Lines changed: 7 additions & 6 deletions
Large diffs are not rendered by default.

swaggerFiles/b0xfile__oauth2-redirect.html.go

Lines changed: 7 additions & 6 deletions
Large diffs are not rendered by default.

swaggerFiles/b0xfile__swagger-ui-bundle.js.go

Lines changed: 7 additions & 6 deletions
Large diffs are not rendered by default.

swaggerFiles/b0xfile__swagger-ui-bundle.js.map.go

Lines changed: 7 additions & 6 deletions
Large diffs are not rendered by default.

swaggerFiles/b0xfile__swagger-ui-standalone-preset.js.go

Lines changed: 7 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)