build(deps): update swagger-ui to v3.45.0 (#1861)

pull/1866/head
Amir Zarrinkafsh 2021-03-29 10:55:09 +11:00 committed by GitHub
parent 1f3cf34080
commit 6855898f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Swagger UI</title> <title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="{{.Base}}/api/swagger-ui.css" > <link rel="stylesheet" type="text/css" href="{{.Base}}/api/swagger-ui.css" />
<link rel="icon" type="image/png" href="{{.Base}}/api/favicon-32x32.png" sizes="32x32" /> <link rel="icon" type="image/png" href="{{.Base}}/api/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{{.Base}}/api/favicon-16x16.png" sizes="16x16" /> <link rel="icon" type="image/png" href="{{.Base}}/api/favicon-16x16.png" sizes="16x16" />
<style nonce="{{.CSPNonce}}"> <style nonce="{{.CSPNonce}}">
@ -50,11 +50,11 @@
SwaggerUIBundle.plugins.DownloadUrl SwaggerUIBundle.plugins.DownloadUrl
], ],
layout: "StandaloneLayout" layout: "StandaloneLayout"
}) });
// End Swagger UI call region // End Swagger UI call region
window.ui = ui window.ui = ui;
} };
</script> </script>
</body> </body>
</html> </html>

View File

@ -55,7 +55,7 @@ func buildFrontend() {
} }
func buildSwagger() { func buildSwagger() {
swaggerVer := "3.43.0" swaggerVer := "3.45.0"
cmd := utils.CommandWithStdout("bash", "-c", "wget -q https://github.com/swagger-api/swagger-ui/archive/v"+swaggerVer+".tar.gz -O ./v"+swaggerVer+".tar.gz") cmd := utils.CommandWithStdout("bash", "-c", "wget -q https://github.com/swagger-api/swagger-ui/archive/v"+swaggerVer+".tar.gz -O ./v"+swaggerVer+".tar.gz")
err := cmd.Run() err := cmd.Run()