ework-web 0.10.107 → 0.10.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/views/issueList.ts
CHANGED
|
@@ -25,9 +25,11 @@ function issueRow(
|
|
|
25
25
|
: "";
|
|
26
26
|
const aiBadge = aiStatusBadge(it.ai_status);
|
|
27
27
|
const modelChip = it.model ? ` · <span class="row-model" title="模型">${escapeHtml(it.model)}</span>` : "";
|
|
28
|
+
// Synced issues carry their upstream (GitHub) author; local ones the poster.
|
|
29
|
+
const authorChip = it.author ? ` · <span class="row-author" title="创建者">👤 ${escapeHtml(it.author)}</span>` : "";
|
|
28
30
|
return `<a class="row" href="${escapeAttr(href)}">
|
|
29
31
|
<div class="row-title">${title}${chips}</div>
|
|
30
|
-
<div class="row-meta">#${it.number} · 💬 ${it.comment_count} · ${relTime(it.updated_at)}${aiBadge ? ` · ${aiBadge}` : ""}${modelChip}</div>
|
|
32
|
+
<div class="row-meta">#${it.number}${authorChip} · 💬 ${it.comment_count} · ${relTime(it.updated_at)}${aiBadge ? ` · ${aiBadge}` : ""}${modelChip}</div>
|
|
31
33
|
</a>`;
|
|
32
34
|
}
|
|
33
35
|
|
package/src/views/issueThread.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from "../config";
|
|
2
|
-
import { classifyActor, renderCommentCard, type CommentView } from "../render/components";
|
|
2
|
+
import { classifyActor, renderCommentCard, relTime, type CommentView } from "../render/components";
|
|
3
3
|
import { renderMarkdown } from "../render/markdown";
|
|
4
4
|
import { renderLayout, escapeHtml, escapeAttr } from "../render/layout";
|
|
5
5
|
import { runIssueActionsHook, type IssueActionContext, type IssueAction } from "../issue-actions-hook";
|
|
@@ -164,6 +164,7 @@ export async function buildIssueThread(
|
|
|
164
164
|
!wakeList.some((l) => l.toLowerCase() === lowerAuthor);
|
|
165
165
|
const authorLineHtml =
|
|
166
166
|
`<div class="author-line">由 <strong>${escapeHtml(issue.author)}</strong> 提交` +
|
|
167
|
+
` <span class="when" data-ts="${escapeAttr(issue.created_at)}" title="${escapeAttr(issue.created_at)}">${relTime(issue.created_at)}</span>` +
|
|
167
168
|
(authorKind === "bot" ? ` <span class="kind-tag">bot</span>` : "") +
|
|
168
169
|
(showAuthorWhitelist
|
|
169
170
|
? `<form method="post" action="/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/settings/ai/wake-logins" class="wl-form">` +
|