Repository: syncope
Updated Branches:
  refs/heads/2_0_X aa493009f -> c40b2fe7b
  refs/heads/master a8dd6b794 -> f868f0a9a


[SYNCOPE-1262] Looks better


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/1d5d31cc
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/1d5d31cc
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/1d5d31cc

Branch: refs/heads/2_0_X
Commit: 1d5d31cc83c0d9afefc18cb7c9864170cc69f0c7
Parents: aa49300
Author: Francesco Chicchiriccò <[email protected]>
Authored: Mon Jan 8 14:09:57 2018 +0100
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Mon Jan 8 14:09:57 2018 +0100

----------------------------------------------------------------------
 .../META-INF/resources/swagger/index.html       | 34 +++++---------------
 1 file changed, 8 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/1d5d31cc/ext/swagger-ui/src/main/resources/META-INF/resources/swagger/index.html
----------------------------------------------------------------------
diff --git 
a/ext/swagger-ui/src/main/resources/META-INF/resources/swagger/index.html 
b/ext/swagger-ui/src/main/resources/META-INF/resources/swagger/index.html
index b97c108..a3d3cb3 100644
--- a/ext/swagger-ui/src/main/resources/META-INF/resources/swagger/index.html
+++ b/ext/swagger-ui/src/main/resources/META-INF/resources/swagger/index.html
@@ -47,17 +47,9 @@ under the License.
       background: #fafafa;
     }
     
-    // <ApacheSyncope>
-    .download-url-input {
-      pointer-events:none !important;
-    }
-    .download-url-button {
-      pointer-events:none !important;
-    }
     .download-url-wrapper {
       display: none !important;
     }
-    // </ApacheSyncope>
   </style>
 </head>
 
@@ -105,28 +97,19 @@ under the License.
 window.onload = function() {
   
   // Build a system
-  // <ApacheSyncope>
-  /*const ui = SwaggerUIBundle({
-    url: window.location.href.substring(0, 
window.location.href.lastIndexOf('/')) + "/../rest/openapi.json",
-    dom_id: '#swagger-ui',
-    deepLinking: true,
-    presets: [
-      SwaggerUIBundle.presets.apis,
-      SwaggerUIStandalonePreset
-    ],
-    plugins: [
-      SwaggerUIBundle.plugins.DownloadUrl
-    ],
-    layout: "StandaloneLayout"
-  })*/
   const ui = SwaggerUIBundle({
-    url: window.location.href.substring(0, 
window.location.href.lastIndexOf('/')) + "/../rest/openapi.json",
-    dom_id: '#swagger-ui',
-    deepLinking: true,
+    // <ApacheSyncope>
+    urls: [{
+      url: window.location.href.substring(0, 
window.location.href.lastIndexOf('/')) + "/../rest/openapi.json",
+      name: "Apache Syncope"
+    }],
     docExpansion: 'none',
     displayOperationId: true,
     operationsSorter: 'alpha',
     tagSorter: 'alpha',
+    // </ApacheSyncope>
+    dom_id: '#swagger-ui',
+    deepLinking: true,
     presets: [
       SwaggerUIBundle.presets.apis,
       SwaggerUIStandalonePreset
@@ -136,7 +119,6 @@ window.onload = function() {
     ],
     layout: "StandaloneLayout"
   })
-  // </ApacheSyncope>
 
   window.ui = ui
 }

Reply via email to