ework-web 0.10.76 → 0.10.78

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.76",
3
+ "version": "0.10.78",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
@@ -189,7 +189,7 @@ export function renderLayout(props: LayoutProps, inner: string, initialItems: st
189
189
  ...props.extraStatusBadges,
190
190
  };
191
191
  const m = map[s] ?? { cls: "ai-idle", label: "💤 空闲" };
192
- return `<span class="ai-badge ${m.cls}" id="aiStatusBadge" data-status="${escapeAttr(s)}">${m.label}</span>`;
192
+ return `<span class="ai-badge ${m.cls}" id="aiStatusBadge" data-status="${escapeAttr(s)}" data-comment-count="${props.totalComments}">${m.label}</span>`;
193
193
  })();
194
194
  const showActions = props.writesEnabled !== false;
195
195
  const haltBtnHtml = showActions
@@ -49,9 +49,6 @@
49
49
  }
50
50
 
51
51
  if (document.getElementById("aiStatusBadge")) {
52
- var bc = document.getElementById("aiStatusBadge");
53
- var items = document.querySelectorAll('[id^="comment-"]');
54
- bc.setAttribute("data-comment-count", String(items.length));
55
52
  setInterval(refreshBadge, 8000);
56
53
  }
57
54
 
package/src/views/home.ts CHANGED
@@ -70,7 +70,7 @@ export async function buildHome(
70
70
  .flash.ok{background:rgba(63,185,80,.12);color:#3fb950;border-color:rgba(63,185,80,.4)}
71
71
  .flash.err{background:rgba(248,81,73,.12);color:#f85149;border-color:rgba(248,81,73,.4)}
72
72
  </style></head><body>
73
- <header class="topbar"><span style="font-weight:600">📦 ework</span></header>
73
+ <header class="topbar"><a href="/" style="font-weight:600;color:var(--header-text)">🏠 ework</a></header>
74
74
  ${tabNavHTML("projects", viewer ? { login: viewer.login, is_admin: viewer.is_admin } : undefined)}
75
75
  <main class="home-wrap">
76
76
  ${flashHtml}
@@ -73,7 +73,7 @@ export async function buildIssuesFeed(
73
73
  .label-filter{font-size:13px;color:var(--text-muted);margin-bottom:.4rem}
74
74
  .label-filter strong{color:var(--text)}
75
75
  </style></head><body>
76
- <header class="topbar"><span style="font-weight:600">📦 ework</span></header>
76
+ <header class="topbar"><a href="/" style="font-weight:600;color:var(--header-text)">🏠 ework</a></header>
77
77
  ${tabNavHTML("issues", viewer ? { login: viewer.login, is_admin: viewer.is_admin } : undefined)}
78
78
  <main class="feed-wrap">
79
79
  <form class="search" method="GET" action="/issues">