Commit be72f5e641

be72f5e6417bfd1b9274f34a487060bd32cd547f

parent: ee4571a558

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-10-21 17:50 UTC

mana

Layout: unified · split

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