Commit be72f5e641
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/extrepo/install.ts +4 −2
| @@ -41,11 +41,13 @@ const INSTALL_URL_BUILDERS: Record< | ||
| 41 | 41 | cloudstreamrepo: repo => |
| 42 | 42 | `cloudstreamrepo://${repo.indexUrl.replace(/^https?:\/\//, '')}`, |
| 43 | 43 | hayase: repo => `hayase://extensions/install?url=${repo.indexUrl}`, |
| 44 | lnreader: repo => `lnreader://repo/add?url=${repo.indexUrl}` | |
| 44 | lnreader: repo => `lnreader://repo/add?url=${repo.indexUrl}`, | |
| 45 | mana: repo => | |
| 46 | `mana://add-repo?url=${encodeURIComponent(manaBase(repo.indexUrl))}` | |
| 45 | 47 | } |
| 46 | 48 | |
| 47 | 49 | // Apps with no deep-link install scheme; |
| 48 | const MANUAL_ONLY_SCHEMES = new Set(['manual', 'mana', 'shosetsu']) | |
| 50 | const MANUAL_ONLY_SCHEMES = new Set(['manual', 'shosetsu']) | |
| 49 | 51 | |
| 50 | 52 | // Schemes with no install or copy action |
| 51 | 53 | const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo']) |
docs/ext/extensionRepos/parsers.ts +6 −1
| @@ -624,6 +624,10 @@ function toRepoDataMana(iconBase: string, index: ManaIndex): RepoSite[] { | ||
| 624 | 624 | : `${iconBase}/assets/${source.thumbnail}`) |
| 625 | 625 | : '' |
| 626 | 626 | const rating = ratingFromLevel(source.rating ?? 0) |
| 627 | const repoParam = encodeURIComponent(iconBase) | |
| 628 | const installUrl = source.id | |
| 629 | ? `mana://install-source?repo=${repoParam}&id=${encodeURIComponent(source.id)}` | |
| 630 | : undefined | |
| 627 | 631 | for (const rawLang of langs) { |
| 628 | 632 | const lang = normalizeLang(rawLang.split(/[_-]/)[0] ?? rawLang) |
| 629 | 633 | addSite(seen, `${source.name}::${lang}`, sites, { |
| @@ -631,7 +635,8 @@ function toRepoDataMana(iconBase: string, index: ManaIndex): RepoSite[] { | ||
| 631 | 635 | lang, |
| 632 | 636 | icon, |
| 633 | 637 | url: source.website ?? '', |
| 634 | rating | |
| 638 | rating, | |
| 639 | installUrl | |
| 635 | 640 | }) |
| 636 | 641 | } |
| 637 | 642 | } |