chore(client/ts): port backend_log

This commit is contained in:
Elian Doran 2025-02-28 17:59:38 +02:00
parent 423037b9d6
commit 6df588da22
No known key found for this signature in database

View File

@ -5,21 +5,25 @@ import AbstractCodeTypeWidget from "../abstract_code_type_widget.js";
const TPL = `<div style="height: 100%; display: flex; flex-direction: column;"> const TPL = `<div style="height: 100%; display: flex; flex-direction: column;">
<style> <style>
.backend-log-editor { .backend-log-editor {
flex-grow: 1; flex-grow: 1;
width: 100%; width: 100%;
border: none; border: none;
resize: none; resize: none;
} }
</style> </style>
<pre class="backend-log-editor"></pre> <pre class="backend-log-editor"></pre>
<div style="display: flex; justify-content: space-around; margin-top: 10px;"> <div style="display: flex; justify-content: space-around; margin-top: 10px;">
<button class="refresh-backend-log-button btn btn-primary">${t("backend_log.refresh")}</button> <button class="refresh-backend-log-button btn btn-primary">${t("backend_log.refresh")}</button>
</div> </div>
</div>`; </div>`;
export default class BackendLogWidget extends AbstractCodeTypeWidget { export default class BackendLogWidget extends AbstractCodeTypeWidget {
private $editor!: JQuery<HTMLElement>;
private $refreshBackendLog!: JQuery<HTMLElement>;
doRender() { doRender() {
super.doRender(); super.doRender();
this.$widget = $(TPL); this.$widget = $(TPL);