mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 17:01:25 -07:00
feat(anime): show extension and repo icons in extensions panel
- Add extension-icons module (buildIconIndex, isSafeIconUrl, repoFaviconUrl, iconMonogram) with tests - Render each row's icon with a monogram fallback while loading or missing - Installed extensions borrow their icon from the catalogue; repo rows use the index host's favicon - Restrict icon loads to https URLs - Thread iconUrl through AvailableExtension and the runtime, document the feature
This commit is contained in:
7 files changed
+190
-1
No files matched your search
@@ -156,6 +156,8 @@ export interface AvailableExtension {
|
||||
version: string;
|
||||
nsfw: boolean;
|
||||
repoUrl: string;
|
||||
/** Where the repository publishes the extension's icon; may 404. */
|
||||
iconUrl: string;
|
||||
sourceNames: string[];
|
||||
installed: boolean;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user