mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-17 14:22:32 -05:00
fix: redesign home page UX, fix broken retropie logo
This commit is contained in:
@@ -76,6 +76,6 @@ platforms:
|
|||||||
retropie:
|
retropie:
|
||||||
config: retropie.yml
|
config: retropie.yml
|
||||||
status: archived # Last release: v4.8 (March 2022) - no update in 4 years
|
status: archived # Last release: v4.8 (March 2022) - no update in 4 years
|
||||||
logo: "https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/scriptmodules/system/RetroPie/icon.png"
|
logo: ""
|
||||||
scraper: null
|
scraper: null
|
||||||
schedule: null
|
schedule: null
|
||||||
|
|||||||
@@ -99,46 +99,45 @@ def generate_home(db: dict, coverages: dict, emulator_count: int,
|
|||||||
"",
|
"",
|
||||||
"Complete BIOS and firmware collection for retrogaming emulators.",
|
"Complete BIOS and firmware collection for retrogaming emulators.",
|
||||||
"",
|
"",
|
||||||
f"> **{total_files:,}** files | **{_fmt_size(total_size)}** "
|
"---",
|
||||||
f"| **{len(coverages)}** platforms | **{emulator_count}** emulator profiles",
|
|
||||||
"",
|
"",
|
||||||
"## Download",
|
f"**{total_files:,}** files across **{len(coverages)}** platforms, "
|
||||||
|
f"backed by **{emulator_count}** emulator source code profiles.",
|
||||||
"",
|
"",
|
||||||
"| Platform | Files | Verification | Pack |",
|
|
||||||
"|----------|-------|-------------|------|",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for name, cov in sorted(coverages.items(), key=lambda x: x[1]["platform"]):
|
# Single unified table: platform + coverage + download
|
||||||
display = cov["platform"]
|
|
||||||
total = cov["total"]
|
|
||||||
mode = cov["mode"]
|
|
||||||
logo_url = (registry or {}).get(name, {}).get("logo", "")
|
|
||||||
logo_md = f"{{ width=24 }} " if logo_url else ""
|
|
||||||
lines.append(
|
|
||||||
f"| {logo_md}{display} | {total} | {mode} | "
|
|
||||||
f"[Download]({RELEASE_URL}) |"
|
|
||||||
)
|
|
||||||
|
|
||||||
lines.extend([
|
lines.extend([
|
||||||
|
"## Platforms",
|
||||||
"",
|
"",
|
||||||
"## Coverage",
|
"| | Platform | Coverage | Verified | Download |",
|
||||||
"",
|
"|---|----------|----------|----------|----------|",
|
||||||
"| Platform | Coverage | Verified | Untested | Missing |",
|
|
||||||
"|----------|----------|----------|----------|---------|",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
for name, cov in sorted(coverages.items(), key=lambda x: x[1]["platform"]):
|
for name, cov in sorted(coverages.items(), key=lambda x: x[1]["platform"]):
|
||||||
display = cov["platform"]
|
display = cov["platform"]
|
||||||
pct = _pct(cov["present"], cov["total"])
|
pct = _pct(cov["present"], cov["total"])
|
||||||
|
logo_url = (registry or {}).get(name, {}).get("logo", "")
|
||||||
|
logo_md = f"{{ width=20 loading=lazy }}" if logo_url else ""
|
||||||
|
|
||||||
lines.append(
|
lines.append(
|
||||||
f"| [{display}](platforms/{name}.md) | "
|
f"| {logo_md} | [{display}](platforms/{name}.md) | "
|
||||||
f"{cov['present']}/{cov['total']} ({pct}) | "
|
f"{cov['present']}/{cov['total']} ({pct}) | "
|
||||||
f"{cov['verified']} | {cov['untested']} | {cov['missing']} |"
|
f"{cov['verified']} | "
|
||||||
|
f"[Pack]({RELEASE_URL}) |"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Quick links
|
||||||
lines.extend([
|
lines.extend([
|
||||||
"",
|
"",
|
||||||
f"*Generated on {ts}*",
|
"---",
|
||||||
|
"",
|
||||||
|
f"[Systems](systems/){{ .md-button }} "
|
||||||
|
f"[Emulators](emulators/){{ .md-button }} "
|
||||||
|
f"[Gap Analysis](gaps/){{ .md-button }} "
|
||||||
|
f"[Contributing](contributing/){{ .md-button .md-button--primary }}",
|
||||||
|
"",
|
||||||
|
f"*{_fmt_size(total_size)} total. Generated on {ts}.*",
|
||||||
])
|
])
|
||||||
|
|
||||||
return "\n".join(lines) + "\n"
|
return "\n".join(lines) + "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user