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<
4141 cloudstreamrepo: repo =>
4242 `cloudstreamrepo://${repo.indexUrl.replace(/^https?:\/\//, '')}`,
4343 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))}`
4547}
4648
4749// Apps with no deep-link install scheme;
48const MANUAL_ONLY_SCHEMES = new Set(['manual', 'mana', 'shosetsu'])
50const MANUAL_ONLY_SCHEMES = new Set(['manual', 'shosetsu'])
4951
5052// Schemes with no install or copy action
5153const 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[] {
624624 : `${iconBase}/assets/${source.thumbnail}`)
625625 : ''
626626 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
627631 for (const rawLang of langs) {
628632 const lang = normalizeLang(rawLang.split(/[_-]/)[0] ?? rawLang)
629633 addSite(seen, `${source.name}::${lang}`, sites, {
@@ -631,7 +635,8 @@ function toRepoDataMana(iconBase: string, index: ManaIndex): RepoSite[] {
631635 lang,
632636 icon,
633637 url: source.website ?? '',
634 rating
638 rating,
639 installUrl
635640 })
636641 }
637642 }