Avoid top-level await (#37272)

This commit is contained in:
wxiaoguang authored and GitHub committed 2026-04-18 16:01:58 +08:00
1 parent d5831b9385
commit cf3f8e807a
4 files changed
+35 -32

No files matched your search

@@ -1,9 +1,5 @@
@import "../../node_modules/swagger-ui-dist/swagger-ui.css";
body {
margin: 0;
}
html,
html body,
html .swagger-ui,
@@ -15,27 +11,3 @@ html .swagger-ui .scheme-container {
html.dark-mode .swagger-ui table.headers td {
color: var(--color-text) !important;
}
.swagger-back-link {
color: var(--color-primary);
text-decoration: none;
position: absolute;
top: 1rem;
right: 1.5rem;
display: flex;
align-items: center;
}
.swagger-back-link:hover {
text-decoration: underline;
}
.swagger-back-link svg {
color: inherit;
fill: currentcolor;
margin-right: 0.5rem;
}
.swagger-spec-content {
display: none;
}
+29
View File
@@ -0,0 +1,29 @@
@import "swagger-render.css";
body {
margin: 0;
}
.swagger-back-link {
color: var(--color-primary);
text-decoration: none;
position: absolute;
top: 1rem;
right: 1.5rem;
display: flex;
align-items: center;
}
.swagger-back-link:hover {
text-decoration: underline;
}
.swagger-back-link svg {
color: inherit;
fill: currentcolor;
margin-right: 0.5rem;
}
.swagger-spec-content {
display: none;
}