Bladeren bron

fix: specify charset utf-8 in html script declaration (#6278)

ref: #5311
bubble
Irena Shaigorodsky 4 jaren geleden
committed by GitHub
bovenliggende
commit
d7d166d0a4
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4AEE18F83AFDEB23
6 gewijzigde bestanden met toevoegingen van 13 en 13 verwijderingen
  1. +2
    -2
      dev-helpers/index.html
  2. +2
    -2
      dist/index.html
  3. +2
    -2
      docs/usage/installation.md
  4. +2
    -2
      test/e2e-cypress/static/index.html
  5. +3
    -3
      test/e2e-cypress/static/pages/5138/index.html
  6. +2
    -2
      test/e2e-selenium/static/index.html

+ 2
- 2
dev-helpers/index.html Bestand weergeven

@@ -34,8 +34,8 @@
<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]


+ 2
- 2
dist/index.html Bestand weergeven

@@ -33,8 +33,8 @@
<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region


+ 2
- 2
docs/usage/installation.md Bestand weergeven

@@ -90,7 +90,7 @@ For more information on controlling Swagger UI through the Docker image, see the
You can embed Swagger UI's code directly in your HTML by using unpkg's interface:

```html
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js" charset="UTF-8"></script>
<!-- `SwaggerUIBundle` is now available on the page -->
```

@@ -98,4 +98,4 @@ See [unpkg's main page](https://unpkg.com/) for more information on how to use u

### Static files without HTTP or HTML

Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.

+ 2
- 2
test/e2e-cypress/static/index.html Bestand weergeven

@@ -32,8 +32,8 @@

<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]


+ 3
- 3
test/e2e-cypress/static/pages/5138/index.html Bestand weergeven

@@ -31,8 +31,8 @@

<div id="swagger-ui"></div>

<script src="/swagger-ui-bundle.js"> </script>
<script src="/swagger-ui-standalone-preset.js"> </script>
<script src="/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function () {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
@@ -73,4 +73,4 @@
</script>
</body>

</html>
</html>

+ 2
- 2
test/e2e-selenium/static/index.html Bestand weergeven

@@ -66,8 +66,8 @@

<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]


Laden…
Annuleren
Opslaan