ui: use monaco instead of codemirror on api page

This commit is contained in:
undefined committed 2022-08-23 17:57:51 +08:00
1 parent efbc3c0162
commit 9c02ed4dd8
4 files changed
+204 -40

No files matched your search

+40 -1
View File
@@ -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 %}