mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: use monaco instead of codemirror on api page
This commit is contained in:
1 parent
efbc3c0162
commit
9c02ed4dd8
4 files changed
+204
-40
No files matched your search
@@ -1,4 +1,43 @@
|
||||
{% extends "layout/basic.html" %}
|
||||
{% block content %}
|
||||
<div id="graphiql" style="height:90vh;"></div>
|
||||
<div style="height: 80vh">
|
||||
<div id="toolbar" style="display: inline-flex"></div>
|
||||
<div style="display: flex;align-items: stretch">
|
||||
<div style="width: 30vw">
|
||||
<div id="operation"></div>
|
||||
<div id="variables"></div>
|
||||
</div>
|
||||
<div style="width: 45vw">
|
||||
<div id="results"></div>
|
||||
<div id="schema-sdl"></div>
|
||||
</div>
|
||||
<div>
|
||||
<div id="docs" class="graphiql-container"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
#operation {
|
||||
height: 60vh;
|
||||
min-height: 260px;
|
||||
}
|
||||
#variables {
|
||||
height: 30vh;
|
||||
align-items: stretch;
|
||||
}
|
||||
#results {
|
||||
align-items: stretch;
|
||||
height: 60vh;
|
||||
}
|
||||
#schema-sdl {
|
||||
align-items: stretch;
|
||||
height: 30vh;
|
||||
}
|
||||
.graphiql-container .doc-explorer-contents {
|
||||
position: relative !important;
|
||||
}
|
||||
#docs {
|
||||
font-family: var(--code-font-family)
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user