mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
chore(client/ts): port backend_log
This commit is contained in:
parent
423037b9d6
commit
6df588da22
@ -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);
|
Loading…
x
Reference in New Issue
Block a user