Skip to content

Commit 7e70201

Browse files
committed
Rename swagger-ui-wrapper component to swagger-ui
1 parent 299d9e2 commit 7e70201

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

internal/ui/apidocpage/templates.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ templ APIDocContent() {
77
The <a href="/getting-started">pkgstats CLI</a> uses this API to search and compare packages from the terminal.
88
Please be considerate with request rates to keep the service available for everyone.
99
</p>
10-
<swagger-ui-wrapper></swagger-ui-wrapper>
10+
<swagger-ui></swagger-ui>
1111
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
swagger-ui-wrapper {
1+
swagger-ui {
22
display: block;
33
min-height: 300px;
44
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class SwaggerUIWrapper extends HTMLElement {
1+
class SwaggerUIElement extends HTMLElement {
22
connectedCallback() {
33
this.renderSwagger();
44
}
@@ -45,4 +45,4 @@ class SwaggerUIWrapper extends HTMLElement {
4545
}
4646
}
4747

48-
customElements.define("swagger-ui-wrapper", SwaggerUIWrapper);
48+
customElements.define("swagger-ui", SwaggerUIElement);

src/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
@import "overrides";
88
@import "fun";
99
@import "components/popularity-chart";
10-
@import "components/swagger-ui-wrapper";
10+
@import "components/swagger-ui";

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import "./main.scss";
22
import "bootstrap/js/src/collapse.js";
33
import "./components/popularity-chart.ts";
44
import "./components/country-map.ts";
5-
import "./components/swagger-ui-wrapper.ts";
5+
import "./components/swagger-ui.ts";
66
import "./compare-packages-redirect";

0 commit comments

Comments
 (0)