- WIP on Cronard tasks
- Added some minors features to the API web interface
This commit is contained in:
1 parent
2d560a0857
commit
a54930b6c6
10 files changed
+105
-31
No files matched your search
@@ -120,6 +120,6 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
<i class="nothing-found">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
@@ -59,6 +59,6 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
<i class="nothing-found">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
@@ -56,7 +56,10 @@
|
||||
.request-head .url button:active {filter:contrast(85%);}
|
||||
|
||||
.response-head {display: flex;border:1px solid #ececec;margin-bottom: 5px;border-top:0}
|
||||
.response-head .response-code {background:#dfdfdf;padding:0 8px;font-weight: bold;line-height: 29px;font-size: 80%;}
|
||||
.response-head[data-code="200"] .response-code{background: #cdfbbd;}
|
||||
.response-head[data-code="204"] .response-code{background: #eaeab5;}
|
||||
.response-head[data-code^="5"] .response-code{background: #ffa8a8;}
|
||||
.response-head .response-code {background:#dfdfdf;padding:0 8px;font-weight: bold;line-height: 30px;font-size: 80%;}
|
||||
.response-head .response-message {padding:0 10px;background:#fbfbfb;line-height: 30px;font-size: 80%;}
|
||||
|
||||
.request-compose {position:relative;}
|
||||
@@ -157,6 +160,7 @@
|
||||
|
||||
launchRequest(requestMethod, input.value, editor.getValue())
|
||||
.then((response) => {
|
||||
responseHead.setAttribute("data-code", response.status);
|
||||
responseHead.querySelector('.response-code').innerText = response.status;
|
||||
responseHead.querySelector('.response-message').innerText = response.statusText;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</small>
|
||||
</li>
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
<i class="nothing-found">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
{% endforeach %}
|
||||
</ul>
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
.header-fields {color: #fff;line-height: 1.8rem;font-variant: small-caps;padding: 4px 0.8rem 0 0.8rem}
|
||||
/*.fields-wrapper {border-left: 3px solid #c14141; margin-left: -10px; padding-left: 10px;}*/
|
||||
|
||||
.nothing-found {color:#585858; padding:0 12px;font-size: 75%;}
|
||||
|
||||
.forms ol {background: #ccdef2;}
|
||||
.forms li {border-color: #859aae;}
|
||||
.forms .btn {display: flex;justify-content: center;align-items: center;padding: 0 15px;gap: 15px;background-color:#4b6080;outline: 1px #4b6080 solid;border: 4px solid #9cc5e6;outline-offset: -3px;border-radius: 5px;cursor: pointer;transition: 400ms;color: white;font-weight: 100;font-size: 0.85em;transition-duration: 400ms;}
|
||||
|
||||
Reference in new issue
Block a user