Commit 5dec8d40d8
5dec8d40d88a0bd42409e15c9240110f7b2bbd7e
parent: 72fa1941ef
Unsigned
Duck <57977673+woducku@users.noreply.github.com> · 2026-10-16 01:01 UTC
mana
Layout: unified · split
docs/.vitepress/configs/constants.ts
+9
| @@ -232,6 +232,14 @@ export const homeCards: HomeCard[] = [ |
| 232 | 232 | link: '/ext/paperback', |
| 233 | 233 | section: 'Extensions' |
| 234 | 234 | }, |
| 235 | { |
| 236 | id: 'ext-mana', |
| 237 | icon: ':lucide-puzzle:', |
| 238 | title: 'Mana', |
| 239 | details: 'Manga', |
| 240 | link: '/ext/mana', |
| 241 | section: 'Extensions' |
| 242 | }, |
| 235 | 243 | { |
| 236 | 244 | id: 'ext-suwatte', |
| 237 | 245 | icon: ':lucide-puzzle:', |
| @@ -541,6 +549,7 @@ export const sidebar: DefaultTheme.Sidebar = [ |
| 541 | 549 | collapsed: true, |
| 542 | 550 | items: [ |
| 543 | 551 | { text: 'Aidoku', link: '/ext/aidoku' }, |
| 552 | { text: 'Mana', link: '/ext/mana' }, |
| 544 | 553 | { text: 'Paperback', link: '/ext/paperback' }, |
| 545 | 554 | { text: 'Suwatte', link: '/ext/suwatte' } |
| 546 | 555 | ] |
docs/.vitepress/theme/components/extrepo/install.ts
+6 −1
| @@ -9,6 +9,10 @@ export function suwatteBase(indexUrl: string): string { |
| 9 | 9 | return indexUrl.replace(/\/sources\.json$/, '') |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | export function manaBase(indexUrl: string): string { |
| 13 | return indexUrl.replace(/\/sources\.json$/, '') |
| 14 | } |
| 15 | |
| 12 | 16 | interface InstallOpts { |
| 13 | 17 | suwatteV6?: boolean |
| 14 | 18 | suwatteListUrl?: string |
| @@ -37,7 +41,7 @@ const INSTALL_URL_BUILDERS: Record< |
| 37 | 41 | } |
| 38 | 42 | |
| 39 | 43 | // Apps with no deep-link install scheme; |
| 40 | | const MANUAL_ONLY_SCHEMES = new Set(['manual']) |
| 44 | const MANUAL_ONLY_SCHEMES = new Set(['manual', 'mana']) |
| 41 | 45 | |
| 42 | 46 | // Schemes with no install or copy action |
| 43 | 47 | const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo']) |
| @@ -68,6 +72,7 @@ export function installHref( |
| 68 | 72 | export function copyValue(scheme: string, indexUrl: string): string { |
| 69 | 73 | if (scheme === 'paperback') return paperbackBase(indexUrl) |
| 70 | 74 | if (scheme === 'suwatte') return suwatteBase(indexUrl) |
| 75 | if (scheme === 'mana') return manaBase(indexUrl) |
| 71 | 76 | return indexUrl |
| 72 | 77 | } |
| 73 | 78 | |
docs/ext/extensionRepos/mana.data.ts
added
+10
| @@ -0,0 +1,10 @@ |
| 1 | import { type ExtensionRepoData, loadScheme } from './shared' |
| 2 | |
| 3 | export declare const data: ExtensionRepoData |
| 4 | |
| 5 | export default { |
| 6 | watch: ['../../**/*.md'], |
| 7 | async load(): Promise<ExtensionRepoData> { |
| 8 | return loadScheme('mana') |
| 9 | } |
| 10 | } |
docs/ext/extensionRepos/parsers.ts
+48
| @@ -155,6 +155,20 @@ interface SuwatteCatalogIndex { |
| 155 | 155 | sources: SuwatteCatalogSource[] |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | interface ManaSource { |
| 159 | id?: string |
| 160 | name: string |
| 161 | thumbnail?: string |
| 162 | website?: string |
| 163 | rating?: number |
| 164 | supportedLanguages?: string[] |
| 165 | } |
| 166 | |
| 167 | interface ManaIndex { |
| 168 | repositoryName?: string |
| 169 | sources: ManaSource[] |
| 170 | } |
| 171 | |
| 158 | 172 | interface KotatsuSite { |
| 159 | 173 | name: string |
| 160 | 174 | lang: string |
| @@ -596,6 +610,34 @@ function toRepoDataSuwatte( |
| 596 | 610 | return { sites, listUrl } |
| 597 | 611 | } |
| 598 | 612 | |
| 613 | function toRepoDataMana(iconBase: string, index: ManaIndex): RepoSite[] { |
| 614 | const seen = new Set<string>() |
| 615 | const sites: RepoSite[] = [] |
| 616 | for (const source of index.sources ?? []) { |
| 617 | if (!source?.name) continue |
| 618 | const langs = source.supportedLanguages?.length |
| 619 | ? source.supportedLanguages |
| 620 | : ['all'] |
| 621 | const icon = source.thumbnail |
| 622 | ? (/^https?:\/\//i.test(source.thumbnail) |
| 623 | ? source.thumbnail |
| 624 | : `${iconBase}/assets/${source.thumbnail}`) |
| 625 | : '' |
| 626 | const rating = ratingFromLevel(source.rating ?? 0) |
| 627 | for (const rawLang of langs) { |
| 628 | const lang = normalizeLang(rawLang.split(/[_-]/)[0] ?? rawLang) |
| 629 | addSite(seen, `${source.name}::${lang}`, sites, { |
| 630 | name: source.name, |
| 631 | lang, |
| 632 | icon, |
| 633 | url: source.website ?? '', |
| 634 | rating |
| 635 | }) |
| 636 | } |
| 637 | } |
| 638 | return sites |
| 639 | } |
| 640 | |
| 599 | 641 | function toRepoDataKotatsu(index: KotatsuIndex): RepoSite[] { |
| 600 | 642 | const seen = new Set<string>() |
| 601 | 643 | const sites: RepoSite[] = [] |
| @@ -809,6 +851,12 @@ async function toRepoData( |
| 809 | 851 | 'iconURL' in (json as AidokuIndex).sources[0] |
| 810 | 852 | ) { |
| 811 | 853 | sites = toRepoDataAidoku(iconBase, json as AidokuIndex) |
| 854 | } else if ( |
| 855 | (json as ManaIndex).sources?.length && |
| 856 | ('supportedLanguages' in (json as ManaIndex).sources[0] || |
| 857 | 'environment' in (json as ManaIndex).sources[0]) |
| 858 | ) { |
| 859 | sites = toRepoDataMana(iconBase, json as ManaIndex) |
| 812 | 860 | } else if ( |
| 813 | 861 | (json as SuwatteCatalogIndex).sources?.length && |
| 814 | 862 | 'thumbnail' in (json as SuwatteCatalogIndex).sources[0] |
docs/ext/index.md
+4
| @@ -46,6 +46,9 @@ og: |
| 46 | 46 | <Card title="Aidoku" href="/ext/aidoku"> |
| 47 | 47 | Manga |
| 48 | 48 | </Card> |
| 49 | <Card title="Mana" href="/ext/mana"> |
| 50 | Manga |
| 51 | </Card> |
| 49 | 52 | <Card title="Paperback" href="/ext/paperback"> |
| 50 | 53 | Manga |
| 51 | 54 | </Card> |
| @@ -73,6 +76,7 @@ og: |
| 73 | 76 | - Dantotsu : (Mihon), (Aniyomi), (LNreader); |
| 74 | 77 | - Futon : (Kotatsu), (Mihon); |
| 75 | 78 | - IReader : (IReader), (LNreader); |
| 79 | - Mana : (Mana), (Mihon); |
| 76 | 80 | - Mangayomi : (Mihon), (Aniyomi), (Mangayomi); |
| 77 | 81 | - Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu); |
| 78 | 82 | - Usagi : (Kotatsu), (Mihon), (LNreader); |
docs/ext/mana.md
added
+31
| @@ -0,0 +1,31 @@ |
| 1 | --- |
| 2 | title: Mana Extension Repos |
| 3 | customDescription: Extension Repos for Mana |
| 4 | feedback: no |
| 5 | og: |
| 6 | image: /embed/ios.png |
| 7 | --- |
| 8 | # Mana |
| 9 | |
| 10 | ::: extrepo {scheme=mana} |
| 11 | |
| 12 | == Kakarot |
| 13 | - url: https://karrot0.github.io/kakarot-extensions-mana/main/ |
| 14 | - src: https://github.com/karrot0/kakarot-extensions-mana |
| 15 | - raw: https://karrot0.github.io/kakarot-extensions-mana/main/sources.json |
| 16 | |
| 17 | == Lucifer |
| 18 | - url: https://mana.pirate.vodka/ |
| 19 | - src: https://github.com/LucifersCircle/mana-extensions |
| 20 | - raw: https://mana.pirate.vodka/sources.json |
| 21 | |
| 22 | == Popmango |
| 23 | - url: https://poppingmangosources.github.io/popmango-extensions-mana/main/ |
| 24 | - src: https://github.com/PoppingMangoSources/popmango-extensions-mana |
| 25 | - raw: https://poppingmangosources.github.io/popmango-extensions-mana/main/sources.json |
| 26 | |
| 27 | == Seyden Generic |
| 28 | - url: https://seyden.github.io/extensions-mana-generic/generic/ |
| 29 | - src: https://github.com/Seyden/extensions-mana-generic |
| 30 | - raw: https://seyden.github.io/extensions-mana-generic/generic/sources.json |
| 31 | ::: |
docs/software.md
+1
| @@ -143,6 +143,7 @@ Check out [**CFW**](https://ios.cfw.guide/), [**JCoinx**](https://jcionx.dev/ios |
| 143 | 143 | | :--- | :--- | |
| 144 | 144 | | **Online** | [Aidoku](https://aidoku.app/) [:src:](https://github.com/Aidoku/Aidoku) [:e:](/ext/aidoku) | |
| 145 | 145 | | ^^ | [AnymeX](https://anymex.vercel.app/) [:src:](https://github.com/RyanYuuki/AnymeX) | |
| 146 | | ^^ | [Mana](https://testflight.apple.com/join/x2nujKx9) :tf: [:d:](https://discord.gg/3mTaMqvVuG) |
| 146 | 147 | | ^^ | [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) | |
| 147 | 148 | | ^^ | [Paperback](https://paperback.moe/) :cs: [:e:](/ext/paperback) | |
| 148 | 149 | | ^^ | [Suwatte](https://suwatte.app/) :cs: [:e:](/ext/suwatte) | |