You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2018/01/08 13:28:12 UTC
[3/4] syncope git commit: [SYNCOPE-1262] Looks better
[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/4f005ef8
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/4f005ef8
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/4f005ef8
Branch: refs/heads/master
Commit: 4f005ef8f5d33d9a38c169826973731012bf3eff
Parents: a8dd6b7
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Mon Jan 8 14:09:57 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Mon Jan 8 14:15:49 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/4f005ef8/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
}