mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-08 21:24:15 +08:00
🐤 Sync 2026-08-24 23:23:52
This commit is contained in:
1 parent
73568a624f
commit
1391687e01
82 files changed
+5971
-5537
No files matched your search
@@ -1684,7 +1684,10 @@ return dm2.dv.extend({
|
||||
return false;
|
||||
}
|
||||
|
||||
const logText = response?.body || _('No logs available');
|
||||
let logText = response?.body || _('No logs available');
|
||||
if ("application/vnd.docker.multiplexed-stream" == response?.headers['content-type']) {
|
||||
logText = (response?.body || []).map((frame)=>frame.payload).join('');
|
||||
}
|
||||
// Convert ANSI codes to HTML and set innerHTML
|
||||
logsDiv.innerHTML = dm2.ansiToHtml(logText);
|
||||
logsDiv.scrollTop = logsDiv.scrollHeight;
|
||||
|
||||
Reference in new issue
Block a user