update 2023-05-27 02:01:18

This commit is contained in:
github-actions[bot] 2023-05-27 02:01:19 +08:00
parent 1e98588e8d
commit 4d893bde3c
2 changed files with 9 additions and 2 deletions

View File

@ -29,6 +29,7 @@ endef
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_BUILD_FLAGS:=no-mips16
GO_PKG:=github.com/alist-org/alist
GO_PKG_LDFLAGS:=-w -s

View File

@ -12,12 +12,18 @@
}
);
}
var scrolled = false;
XHR.poll(2, '<%=url([[admin]], [[nas]], [[alist]], [[get_log]])%>', null,
function(x, data) {
if(x && x.status == 200) {
var log_textarea = document.getElementById('log_textarea');
log_textarea.innerHTML = x.responseText;
log_textarea.scrollTop = log_textarea.scrollHeight;
var str = x.responseText;
var logs = str.replace(//g, "🔧");
log_textarea.innerHTML = logs;
if (!scrolled) {
log_textarea.scrollTop = log_textarea.scrollHeight;
scrolled = true;
}
}
}
);