-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into pedro/add_metrics
- Loading branch information
Showing
26 changed files
with
1,827 additions
and
845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
swagger-ui from https://github.com/swagger-api/swagger-ui @v3.17.6 | ||
## Swagger | ||
|
||
swagger-ui from https://github.com/swagger-api/swagger-ui @v5.11.2 | ||
- Created [window-observer.js](swagger-ui/window-observer.js) to remove `Try it out` functionality for subscription endpoints | ||
|
||
```bash | ||
curl https://unpkg.com/[email protected]/swagger-ui.css > swagger-ui/swagger-ui.css | ||
curl https://unpkg.com/[email protected]/swagger-ui-bundle.js > swagger-ui/swagger-ui-bundle.js | ||
curl https://unpkg.com/[email protected]/swagger-ui-standalone-preset.js > swagger-ui/swagger-ui-standalone-preset.js | ||
``` | ||
|
||
## Stoplight | ||
Spotlight UI from https://github.com/stoplightio/elements @v8.0.3 | ||
- Created [window-observer.js](stoplight-ui/window-observer.js) to remove `Send API Request` functionality for subscription endpoints | ||
|
||
```bash | ||
curl https://unpkg.com/@stoplight/[email protected]/styles.min.css > stoplight-ui/styles.min.css | ||
curl https://unpkg.com/@stoplight/[email protected]/web-components.min.js > stoplight-ui/web-components.min.js | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> | ||
<title>Thor API</title> | ||
<!-- Embed elements Elements via Web Component --> | ||
<script src="./web-components.min.js"></script> | ||
<script charset="UTF-8" src="./window-observer.js"> </script> | ||
<link href="./styles.min.css" rel="stylesheet"> | ||
<link href="/doc/icons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" /> | ||
<link href="/doc/icons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" /> | ||
<link href="/doc/icons/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png" /> | ||
|
||
</head> | ||
<body> | ||
<elements-api | ||
apiDescriptionUrl="/doc/thor.yaml" | ||
layout="sidebar" | ||
logo="/doc/icons/favicon-96x96.png" | ||
router="hash" | ||
/> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* This script is used to remove the "Send API request" button and the "Response" sections from WebSocket operations. | ||
* @type {MutationObserver} | ||
*/ | ||
const mutationObserver = new MutationObserver(() => { | ||
if (window.location.hash?.includes("#/paths/subscriptions")) { | ||
const element = document.querySelector('[data-testid="two-column-right"]'); | ||
if (element) { | ||
element.remove(); | ||
} | ||
} | ||
}) | ||
|
||
mutationObserver.observe(document, {attributes: false, childList: true, characterData: false, subtree:true}); |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,30 @@ | ||
<!-- HTML for static distribution bundle build --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Swagger UI</title> | ||
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" > | ||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" /> | ||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" /> | ||
<style> | ||
html | ||
{ | ||
box-sizing: border-box; | ||
overflow: -moz-scrollbars-vertical; | ||
overflow-y: scroll; | ||
} | ||
|
||
*, | ||
*:before, | ||
*:after | ||
{ | ||
box-sizing: inherit; | ||
} | ||
|
||
body | ||
{ | ||
margin:0; | ||
background: #fafafa; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="swagger-ui"></div> | ||
|
||
<script src="./swagger-ui-bundle.js"> </script> | ||
<script src="./swagger-ui-standalone-preset.js"> </script> | ||
<script> | ||
window.onload = function() { | ||
|
||
// Build a system | ||
const ui = SwaggerUIBundle({ | ||
url: "../thor.yaml", | ||
dom_id: '#swagger-ui', | ||
deepLinking: true, | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIStandalonePreset | ||
], | ||
plugins: [ | ||
SwaggerUIBundle.plugins.DownloadUrl | ||
], | ||
layout: "StandaloneLayout" | ||
}) | ||
|
||
window.ui = ui | ||
} | ||
</script> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Thor Swagger</title> | ||
<link href="./swagger-ui.css" rel="stylesheet" /> | ||
<link href="/doc/icons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" /> | ||
<link href="/doc/icons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" /> | ||
<link href="/doc/icons/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png" /> | ||
</head> | ||
<body> | ||
<div id="swagger-ui"></div> | ||
<script charset="UTF-8" src="./window-observer.js"> </script> | ||
<script crossorigin src="./swagger-ui-bundle.js"></script> | ||
<script crossorigin src="./swagger-ui-standalone-preset.js"></script> | ||
<script> | ||
window.onload = () => { | ||
window.ui = SwaggerUIBundle({ | ||
url: `${window.location.origin}/doc/thor.yaml`, | ||
dom_id: '#swagger-ui', | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIStandalonePreset | ||
], | ||
layout: "StandaloneLayout", | ||
}); | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.