Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function renderRepositoryGrid() {
features.decorateRepositories();
return;
}
target.innerHTML = repos.map((repo) => `<article class="repo-card"><div class="repo-card-head"><div class="repo-glyph" aria-hidden="true">${escapeHtml(repo.name.slice(0, 2).toUpperCase())}</div><div class="repo-badges">${badgeMarkup(repo)}</div></div><h3 title="${escapeHtml(repo.name)}">${escapeHtml(repo.name)}</h3><div class="path" title="${escapeHtml(repo.path)}">${escapeHtml(repo.path)}</div><div class="repo-card-details"><span class="detail-chip branch-chip" title="Branch">⌘ ${escapeHtml(repo.branch || "detached")}</span><span class="detail-chip commit-chip" title="${escapeHtml(repo.last_commit || "No commits yet")}">${escapeHtml(repo.last_commit || "No commits yet")}</span></div><div class="repo-card-actions"><button data-open="editor" data-path="${escapeHtml(repo.path)}" aria-label="Open ${escapeHtml(repo.name)} in editor">Open editor</button><button data-open="terminal" data-path="${escapeHtml(repo.path)}" aria-label="Open terminal for ${escapeHtml(repo.name)}">Terminal</button>${repo.remote_url ? `<button data-open="remote" data-path="${escapeHtml(repo.path)}" aria-label="Open remote for ${escapeHtml(repo.name)}">Remote ↗</button>` : ""}</div></article>`).join("");
target.innerHTML = repos.map((repo) => `<article class="repo-card ${needsAttention(repo) ? "needs-attention" : "is-clean"}"><div class="repo-card-head"><div class="repo-glyph" aria-hidden="true">${escapeHtml(repo.name.slice(0, 2).toUpperCase())}</div><div class="repo-badges">${badgeMarkup(repo)}</div></div><h3 title="${escapeHtml(repo.name)}">${escapeHtml(repo.name)}</h3><div class="path" title="${escapeHtml(repo.path)}">${escapeHtml(repo.path)}</div><div class="repo-card-details"><span class="detail-chip branch-chip" title="Branch">⌘ ${escapeHtml(repo.branch || "detached")}</span><span class="detail-chip commit-chip" title="${escapeHtml(repo.last_commit || "No commits yet")}">${escapeHtml(repo.last_commit || "No commits yet")}</span></div><div class="repo-card-actions"><button data-open="editor" data-path="${escapeHtml(repo.path)}" aria-label="Open ${escapeHtml(repo.name)} in editor">Open editor</button><button data-open="terminal" data-path="${escapeHtml(repo.path)}" aria-label="Open terminal for ${escapeHtml(repo.name)}">Terminal</button>${repo.remote_url ? `<button data-open="remote" data-path="${escapeHtml(repo.path)}" aria-label="Open remote for ${escapeHtml(repo.name)}">Remote ↗</button>` : ""}</div></article>`).join("");
target.querySelectorAll("[data-open]").forEach((button) => button.addEventListener("click", async () => {
button.disabled = true;
try { await openRepository(button.dataset.path, button.dataset.open); }
Expand Down
24 changes: 24 additions & 0 deletions src/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading