summaryrefslogtreecommitdiffstats
path: root/templates/swagger/ui.tmpl
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-04-17 04:50:55 +0200
committertechknowlogick <matti@mdranta.net>2019-04-16 22:50:55 -0400
commit4f19b082586b38006ce4d119f266f5b74cbde71d (patch)
treefa689270e0805ab8ee789c6b0cb5e0dc58fee8b7 /templates/swagger/ui.tmpl
parent4183c846e3b3b7eee2bfa7b2f20b3de6fe1896e7 (diff)
downloadgitea-4f19b082586b38006ce4d119f266f5b74cbde71d.tar.gz
gitea-4f19b082586b38006ce4d119f266f5b74cbde71d.zip
update swagger-ui (#6661)
Diffstat (limited to 'templates/swagger/ui.tmpl')
-rw-r--r--templates/swagger/ui.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl
index 802ce70eac..20d4f7f63b 100644
--- a/templates/swagger/ui.tmpl
+++ b/templates/swagger/ui.tmpl
@@ -4,7 +4,6 @@
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{AppSubUrl}}/vendor/assets/swagger-ui/swagger-ui.css" >
<link rel="icon" type="image/png" href="{{AppSubUrl}}/vendor/assets/swagger-ui/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{{AppSubUrl}}/vendor/assets/swagger-ui/favicon-16x16.png" sizes="16x16" />
@@ -80,7 +79,7 @@ window.onload = function() {
// Make the page's protocol be at the top of the schemes list
var protocol = window.location.protocol.slice(0, -1)
spec.schemes.sort(function(x,y){ return x == protocol ? -1 : y == protocol ? 1 : 0 })
- // Build the Swagger UI
+ // Begin Swagger UI call region
const ui = SwaggerUIBundle({
spec: spec,
dom_id: '#swagger-ui',
@@ -94,6 +93,7 @@ window.onload = function() {
],
layout: "StandaloneLayout"
})
+ // End Swagger UI call region
window.ui = ui
})