Show full datetime (Y-M-D H:M:S) in task list and detail
Docker Build and Push / check-secrets (push) Failing after 4s
Docker Build and Push / build-and-push (cpu, latest) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 11.8) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.6) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.8) (push) Has been skipped
Docker Build and Push / build-and-push (directml, latest) (push) Has been skipped
Build Windows CPU / build (push) Has been cancelled
Build Windows CUDA 11.8 / build (push) Has been cancelled
Build Windows CUDA 12.6 / build (push) Has been cancelled
Build Windows CUDA 12.8 / build (push) Has been cancelled
Build Windows DirectML / build (push) Has been cancelled
Docker Build and Push / check-secrets (push) Failing after 4s
Docker Build and Push / build-and-push (cpu, latest) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 11.8) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.6) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.8) (push) Has been skipped
Docker Build and Push / build-and-push (directml, latest) (push) Has been skipped
Build Windows CPU / build (push) Has been cancelled
Build Windows CUDA 11.8 / build (push) Has been cancelled
Build Windows CUDA 12.6 / build (push) Has been cancelled
Build Windows CUDA 12.8 / build (push) Has been cancelled
Build Windows DirectML / build (push) Has been cancelled
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
073a2a4fba
commit
50c6cf92ba
+3
-3
@@ -908,7 +908,7 @@ async function loadTasks() {
|
||||
}
|
||||
|
||||
function renderTasks() {
|
||||
const tasks = Object.values(S.tasks).sort((a,b) => (b.created_at||0) - (a.created_at||0));
|
||||
const tasks = Object.values(S.tasks).sort((a,b) => (b.created_at||0) - (a.created_at||0)); // 最新在最上
|
||||
document.getElementById('taskCount').textContent = `${tasks.length} 个任务`;
|
||||
|
||||
const body = document.getElementById('taskBody');
|
||||
@@ -922,7 +922,7 @@ function renderTasks() {
|
||||
const { cls, label } = taskStatus(t);
|
||||
const name = urlName(t.url);
|
||||
const src = t.platform_task_id ? `<span class="badge neutral">平台 #${t.platform_task_id}</span>` : '<span class="badge neutral">手动</span>';
|
||||
const fmtTime = ts => ts ? new Date(ts*1000).toLocaleTimeString('zh-CN', {hour:'2-digit',minute:'2-digit',second:'2-digit'}) : '-';
|
||||
const fmtTime = ts => ts ? new Date(ts*1000).toLocaleString('zh-CN', {year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}) : '-';
|
||||
const fmtDur = t => {
|
||||
if (!t.started_at) return '-';
|
||||
const end = t.completed_at || (Date.now()/1000);
|
||||
@@ -1008,7 +1008,7 @@ function openDetail(id) {
|
||||
el.innerHTML = `<span class="bdot"></span>${label}`;
|
||||
|
||||
// 与列表完全一致的格式函数
|
||||
const fmtTime = ts => ts ? new Date(ts*1000).toLocaleTimeString('zh-CN', {hour:'2-digit',minute:'2-digit',second:'2-digit'}) : '-';
|
||||
const fmtTime = ts => ts ? new Date(ts*1000).toLocaleString('zh-CN', {year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}) : '-';
|
||||
const fmtDur = () => {
|
||||
if (!t.started_at) return '-';
|
||||
const end = t.completed_at || (Date.now()/1000);
|
||||
|
||||
Reference in New Issue
Block a user