diff --git a/public/app.js b/public/app.js index a1917d2..ce41f11 100644 --- a/public/app.js +++ b/public/app.js @@ -278,7 +278,7 @@ function statusBadge(status) { function renderStoreCard(repo) { const owner = escape(repo.owner?.login || ""); const isOfficial = (repo.owner?.login || "").toLowerCase() === "corvidlabs"; - const topics = (repo.topics || []).slice(0, 5); + const topics = (repo.topics || []).filter((t) => t !== "fledge-plugin" && t !== "fledge-template" && t !== "fledge").slice(0, 5); const installed = isInstalled(repo.full_name); const fullEsc = escape(repo.full_name || ""); const installedPlugin = installedBySource.get((repo.full_name || "").toLowerCase()); @@ -290,6 +290,19 @@ function renderStoreCard(repo) { : ` `; + const lang = repo.language || ""; + const topicTagsHtml = topics.map((t) => { + const active = storeFilters.topics.has(t.toLowerCase()); + return ``; + }).join(""); + + const langStat = lang + ? `` + : ""; + const ownerLink = repo.owner?.login + ? `` + : owner; + return `
@@ -299,7 +312,7 @@ function renderStoreCard(repo) { ${escape(repo.name)}
- ${owner} + ${ownerLink} ${isOfficial ? 'official' : ""} ${installed ? 'installed' : ""}
@@ -308,12 +321,12 @@ function renderStoreCard(repo) {
${escape(repo.description || "No description")}
${typeBadge(repo.topics)} - ${topics.filter((t) => t !== "fledge-plugin" && t !== "fledge-template").map((t) => `${escape(t)}`).join("")} + ${topicTagsHtml}