From e0e87c09b911c6b55f2831f9b3791738aa8fcd79 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 20 Jun 2025 01:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=B0=C3=A5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=B1=95=E7=A4=BA=E4=B8=8A=E4=BC=A0=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/popup.js | 2 ++ styles/styles-es.css | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/popup.js b/scripts/popup.js index 0d22621..89f8071 100644 --- a/scripts/popup.js +++ b/scripts/popup.js @@ -179,6 +179,7 @@ document.addEventListener("DOMContentLoaded", async () => { const filename = doc.filename || doc.title || "未知文件"; const filepath = doc.filepath?.replace(/^import-data\//, "").replace(/\.md$/, ".html") || ""; const mtime = doc.mtime ? formatLocalTime(doc.mtime) : ""; // 格式化时间 + const uploader = doc.uploader ? doc.uploader : "管理员"; const link = document.createElement("a"); link.href = doc.url ? doc.url : `${fileBaseUrl}/${filepath || filename}`; link.target = "_blank"; @@ -194,6 +195,7 @@ document.addEventListener("DOMContentLoaded", async () => { metaRow.innerHTML = ` ${filepath} ${mtime ? "更新时间:" + mtime : ""} + ${mtime ? "上传人:" + uploader : ""} `; li.appendChild(link); diff --git a/styles/styles-es.css b/styles/styles-es.css index e224011..49ed545 100644 --- a/styles/styles-es.css +++ b/styles/styles-es.css @@ -118,4 +118,6 @@ .es-updatetime { margin-left: 10px; } - +.es-uploader { + margin-left: 10px; +}