|
1 | 1 | <!-- HTML for static distribution bundle build -->
|
2 | 2 | <!DOCTYPE html>
|
3 | 3 | <html lang="en">
|
4 |
| - <head> |
5 |
| - <meta charset="UTF-8"> |
6 |
| - <title>Builder-API</title> |
7 |
| - <link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css" > |
8 |
| - <link rel="stylesheet" type="text/css" href="./dist/theme-material.css" > |
9 |
| - <style> |
10 |
| - .topbar-wrapper img[alt="Swagger UI"] { |
11 |
| - content: url("./assets/ethereum_logo.png"); |
12 |
| - height: 68px; /* Width of new image */ |
13 |
| - } |
14 |
| - </style> |
15 |
| - <link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" /> |
16 |
| - <link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" /> |
17 |
| - <style> |
18 |
| - html |
19 |
| - { |
20 |
| - box-sizing: border-box; |
21 |
| - overflow: -moz-scrollbars-vertical; |
22 |
| - overflow-y: scroll; |
23 |
| - } |
24 | 4 |
|
25 |
| - *, |
26 |
| - *:before, |
27 |
| - *:after |
28 |
| - { |
29 |
| - box-sizing: inherit; |
30 |
| - } |
| 5 | +<head> |
| 6 | + <meta charset="UTF-8"> |
| 7 | + <title>Builder-API</title> |
| 8 | + <link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css"> |
| 9 | + <link rel="stylesheet" type="text/css" href="./dist/theme-material.css"> |
| 10 | + <style> |
| 11 | + .topbar-wrapper img[alt="Swagger UI"] { |
| 12 | + content: url("./assets/ethereum_logo.png"); |
| 13 | + height: 68px; |
| 14 | + /* Width of new image */ |
| 15 | + } |
| 16 | + |
| 17 | + </style> |
| 18 | + <link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" /> |
| 19 | + <link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" /> |
| 20 | + <style> |
| 21 | + html { |
| 22 | + box-sizing: border-box; |
| 23 | + overflow: -moz-scrollbars-vertical; |
| 24 | + overflow-y: scroll; |
| 25 | + } |
| 26 | + |
| 27 | + *, |
| 28 | + *:before, |
| 29 | + *:after { |
| 30 | + box-sizing: inherit; |
| 31 | + } |
| 32 | + |
| 33 | + body { |
| 34 | + margin: 0; |
| 35 | + background: #fafafa; |
| 36 | + } |
31 | 37 |
|
32 |
| - body |
33 |
| - { |
34 |
| - margin:0; |
35 |
| - background: #fafafa; |
36 |
| - } |
37 |
| - </style> |
38 |
| - </head> |
| 38 | + </style> |
| 39 | +</head> |
39 | 40 |
|
40 |
| - <body> |
41 |
| - <div id="swagger-ui"></div> |
| 41 | +<body> |
| 42 | + <div id="swagger-ui"></div> |
42 | 43 |
|
43 |
| - <script src="./dist/swagger-ui-bundle.js"> </script> |
44 |
| - <script src="./dist/swagger-ui-standalone-preset.js"> </script> |
45 |
| - <script> |
46 |
| - window.onload = function() { |
| 44 | + <script src="./dist/swagger-ui-bundle.js"> </script> |
| 45 | + <script src="./dist/swagger-ui-standalone-preset.js"> </script> |
| 46 | + <script> |
| 47 | + window.onload = function () { |
47 | 48 | // Begin Swagger UI call region
|
48 | 49 | const ui = SwaggerUIBundle({
|
49 | 50 | urls: [
|
50 |
| - {url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0"}, |
51 |
| - {url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0"}, |
52 |
| - {url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0"}, |
53 |
| - {url: "./builder-oapi.yaml", name: "dev"} |
| 51 | + { url: "https://github.com/ethereum/builder-specs/releases/download/v0.3.0/builder-oapi.yaml", name: "v0.3.0" }, |
| 52 | + { url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0" }, |
| 53 | + { url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0" }, |
| 54 | + { url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0" }, |
| 55 | + { url: "./builder-oapi.yaml", name: "dev" } |
54 | 56 | ],
|
55 | 57 | basePath: "/",
|
56 | 58 | dom_id: '#swagger-ui',
|
|
65 | 67 | SwaggerUIBundle.plugins.DownloadUrl
|
66 | 68 | ],
|
67 | 69 | layout: "StandaloneLayout",
|
68 |
| - requestInterceptor: function() { |
69 |
| - if(this.url.startsWith("http")) { |
| 70 | + requestInterceptor: function () { |
| 71 | + if (this.url.startsWith("http")) { |
70 | 72 | this.url = "https://api.allorigins.win/raw?url=" + this.url; // will change the URL used.
|
71 | 73 | }
|
72 | 74 | return this;
|
73 | 75 | }
|
74 |
| - }) |
| 76 | + }) |
75 | 77 | // End Swagger UI call region
|
76 | 78 |
|
77 | 79 | window.ui = ui
|
78 | 80 | }
|
79 | 81 | </script>
|
80 |
| - </body> |
| 82 | +</body> |
| 83 | + |
81 | 84 | </html>
|
0 commit comments