-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
b9e0b07
commit 4bab76d
Showing
2 changed files
with
18 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,23 @@ export default function DataMarketplace() { | |
<Helmet> | ||
<title>NordXDataspace (NXD)</title> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" /> | ||
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script> | ||
</Helmet> | ||
<div id="swagger-ui"></div> | ||
<BrowserOnly> | ||
{() => { | ||
window.onload = () => { | ||
|
||
const script = document.createElement("script"); | ||
script.src = 'https://unpkg.com/[email protected]/swagger-ui-bundle.js'; // whatever url you want here | ||
script.charset = "utf-8"; | ||
script.crossOrigin = true; | ||
script.async = false; | ||
script.onload = function () { | ||
window.ui = SwaggerUIBundle({ | ||
url: '/openapi/datamarketplace.yaml', | ||
dom_id: '#swagger-ui', | ||
}); | ||
} | ||
}; | ||
document.head.appendChild(script); | ||
}} | ||
</BrowserOnly> | ||
<Footer /> | ||
|
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 |
---|---|---|
|
@@ -14,17 +14,23 @@ export default function Domain() { | |
<Helmet> | ||
<title>NordXDataspace (NXD)</title> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" /> | ||
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script> | ||
</Helmet> | ||
<div id="swagger-ui"></div> | ||
<BrowserOnly> | ||
{() => { | ||
window.onload = () => { | ||
|
||
const script = document.createElement("script"); | ||
script.src = 'https://unpkg.com/[email protected]/swagger-ui-bundle.js'; // whatever url you want here | ||
script.charset = "utf-8"; | ||
script.crossOrigin = true; | ||
script.async = false; | ||
script.onload = function () { | ||
window.ui = SwaggerUIBundle({ | ||
url: '/openapi/datamarketplace.yaml', | ||
dom_id: '#swagger-ui', | ||
}); | ||
} | ||
}; | ||
document.head.appendChild(script); | ||
}} | ||
</BrowserOnly> | ||
<Footer /> | ||
|