servername,captca,timestamp,reserve resources

This commit is contained in:
2026-04-22 19:47:38 +03:00
parent f4016b4431
commit 020e0026db
5 changed files with 76 additions and 18 deletions

View File

@@ -22,8 +22,10 @@ window.renderLog = function(cmds) {
const statusClass = `status-${cmd.status}`;
const cancelBtn = `<button class="btn btn-danger btn-sm" onclick="cancelCommand(${cmd.id})">✕</button>`;
const timeStr = new Date(cmd.created_at + 'Z').toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
return `<tr>
<td style="color:#888;font-size:0.7rem">#${cmd.id}</td>
<td style="color:#888;font-size:0.75rem">#${cmd.id}<br><span style="font-size:0.65rem;color:#555;">${timeStr}</span></td>
<td>${cmd.town_name || cmd.town_id}</td>
<td>${desc}</td>
<td><span class="status-badge ${statusClass}">${cmd.status}</span></td>