Skip to content

Commit cdfc8a5

Browse files
authored
Merge pull request #9003 from swagger-api/update-ui
update UI to latest
2 parents d46ba8b + 098fe68 commit cdfc8a5

File tree

7 files changed

+41
-78
lines changed

7 files changed

+41
-78
lines changed
293 Bytes
Loading
502 Bytes
Loading

modules/swagger-generator/src/main/webapp/ui/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@
7171
<script src="./swagger-ui-standalone-preset.js"> </script>
7272
<script>
7373
window.onload = function() {
74-
apiUrl = window.location.protocol + "//" + window.location.host + "/openapi.json";
7574
// Build a system
75+
apiUrl = window.location.protocol + "//" + window.location.host + "/openapi.json";
7676
const ui = SwaggerUIBundle({
77+
oauth2RedirectUrl: window.location.protocol + '//' + window.location.host + '/oauth2-redirect.html',
7778
url: apiUrl,
7879
dom_id: '#swagger-ui',
7980
presets: [
@@ -91,4 +92,4 @@
9192
</script>
9293
</body>
9394

94-
</html>
95+
</html>

modules/swagger-generator/src/main/webapp/ui/swagger-ui-bundle.js

Lines changed: 32 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/swagger-generator/src/main/webapp/ui/swagger-ui-standalone-preset.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/swagger-generator/src/main/webapp/ui/swagger-ui.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/swagger-generator/src/main/webapp/ui/swagger-ui.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)