|
1 |
| -<!-- HTML for static distribution bundle build --> |
2 | 1 | <!DOCTYPE html>
|
3 | 2 | <html lang="en">
|
4 | 3 | <head>
|
5 |
| - <meta charset="UTF-8"> |
6 |
| - <title>{{config('swagger-lume.api.title')}}</title> |
7 |
| - <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet"> |
8 |
| - <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/<?php echo $swaggerVersion; ?>/swagger-ui.css" > |
9 |
| - <style> |
10 |
| - html |
11 |
| - { |
12 |
| - box-sizing: border-box; |
13 |
| - overflow: -moz-scrollbars-vertical; |
14 |
| - overflow-y: scroll; |
15 |
| - } |
16 |
| - *, |
17 |
| - *:before, |
18 |
| - *:after |
19 |
| - { |
20 |
| - box-sizing: inherit; |
21 |
| - } |
22 |
| - body { |
23 |
| - margin:0; |
24 |
| - background: #fafafa; |
25 |
| - } |
26 |
| - </style> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | + <meta |
| 7 | + name="description" |
| 8 | + content="SwaggerUI" |
| 9 | + /> |
| 10 | + <title>SwaggerUI</title> |
| 11 | + <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@<?php echo $swaggerVersion; ?>/swagger-ui.css" /> |
27 | 12 | </head>
|
28 | 13 | <body>
|
29 | 14 | <div id="swagger-ui"></div>
|
30 |
| -<script src="//cdnjs.cloudflare.com/ajax/libs/swagger-ui/<?php echo $swaggerVersion; ?>/swagger-ui-bundle.js"> </script> |
31 |
| -<script src="//cdnjs.cloudflare.com/ajax/libs/swagger-ui/<?php echo $swaggerVersion; ?>/swagger-ui-standalone-preset.js"> </script> |
| 15 | +<script src="https://unpkg.com/swagger-ui-dist@<?php echo $swaggerVersion; ?>/swagger-ui-bundle.js" crossorigin></script> |
| 16 | +<script src="https://unpkg.com/swagger-ui-dist@<?php echo $swaggerVersion; ?>/swagger-ui-standalone-preset.js" crossorigin></script> |
32 | 17 | <script>
|
33 |
| - window.onload = function() { |
34 |
| - // Build a system |
35 |
| - const ui = SwaggerUIBundle({ |
| 18 | + window.onload = () => { |
| 19 | + window.ui = SwaggerUIBundle({ |
| 20 | + url: '<?php echo $documentationFile; ?>', |
36 | 21 | dom_id: '#swagger-ui',
|
37 |
| - url: "<?php echo $documentationFile; ?>", |
38 |
| -
|
39 |
| - operationsSorter: {!! isset($operationsSorter) ? '"' . $operationsSorter . '"' : 'null' !!}, |
40 |
| - configUrl: {!! isset($additionalConfigUrl) ? '"' . $additionalConfigUrl . '"' : 'null' !!}, |
41 |
| - validatorUrl: {!! isset($validatorUrl) ? '"' . $validatorUrl . '"' : 'null' !!}, |
42 |
| -
|
43 | 22 | presets: [
|
44 | 23 | SwaggerUIBundle.presets.apis,
|
45 | 24 | SwaggerUIStandalonePreset
|
46 | 25 | ],
|
47 |
| - plugins: [ |
48 |
| - SwaggerUIBundle.plugins.DownloadUrl |
49 |
| - ], |
50 |
| - layout: "StandaloneLayout" |
| 26 | + layout: "StandaloneLayout", |
51 | 27 | });
|
52 |
| - window.ui = ui |
53 |
| - } |
| 28 | + }; |
54 | 29 | </script>
|
55 | 30 | </body>
|
56 | 31 | </html>
|
0 commit comments