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 link: '/ext/paperback', 232 link: '/ext/paperback',
233 section: 'Extensions' 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 id: 'ext-suwatte', 244 id: 'ext-suwatte',
237 icon: ':lucide-puzzle:', 245 icon: ':lucide-puzzle:',
@@ -541,6 +549,7 @@ export const sidebar: DefaultTheme.Sidebar = [
541 collapsed: true, 549 collapsed: true,
542 items: [ 550 items: [
543 { text: 'Aidoku', link: '/ext/aidoku' }, 551 { text: 'Aidoku', link: '/ext/aidoku' },
552 { text: 'Mana', link: '/ext/mana' },
544 { text: 'Paperback', link: '/ext/paperback' }, 553 { text: 'Paperback', link: '/ext/paperback' },
545 { text: 'Suwatte', link: '/ext/suwatte' } 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 return indexUrl.replace(/\/sources\.json$/, '') 9 return indexUrl.replace(/\/sources\.json$/, '')
10} 10}
11 11
12export function manaBase(indexUrl: string): string {
13 return indexUrl.replace(/\/sources\.json$/, '')
14}
15
12interface InstallOpts { 16interface InstallOpts {
13 suwatteV6?: boolean 17 suwatteV6?: boolean
14 suwatteListUrl?: string 18 suwatteListUrl?: string
@@ -37,7 +41,7 @@ const INSTALL_URL_BUILDERS: Record<
37} 41}
38 42
39// Apps with no deep-link install scheme; 43// Apps with no deep-link install scheme;
40const MANUAL_ONLY_SCHEMES = new Set(['manual']) 44const MANUAL_ONLY_SCHEMES = new Set(['manual', 'mana'])
41 45
42// Schemes with no install or copy action 46// Schemes with no install or copy action
43const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo']) 47const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo'])
@@ -68,6 +72,7 @@ export function installHref(
68export function copyValue(scheme: string, indexUrl: string): string { 72export function copyValue(scheme: string, indexUrl: string): string {
69 if (scheme === 'paperback') return paperbackBase(indexUrl) 73 if (scheme === 'paperback') return paperbackBase(indexUrl)
70 if (scheme === 'suwatte') return suwatteBase(indexUrl) 74 if (scheme === 'suwatte') return suwatteBase(indexUrl)
75 if (scheme === 'mana') return manaBase(indexUrl)
71 return indexUrl 76 return indexUrl
72} 77}
73 78
docs/ext/extensionRepos/mana.data.ts added +10
@@ -0,0 +1,10 @@
1import { type ExtensionRepoData, loadScheme } from './shared'
2
3export declare const data: ExtensionRepoData
4
5export 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 sources: SuwatteCatalogSource[] 155 sources: SuwatteCatalogSource[]
156} 156}
157 157
158interface ManaSource {
159 id?: string
160 name: string
161 thumbnail?: string
162 website?: string
163 rating?: number
164 supportedLanguages?: string[]
165}
166
167interface ManaIndex {
168 repositoryName?: string
169 sources: ManaSource[]
170}
171
158interface KotatsuSite { 172interface KotatsuSite {
159 name: string 173 name: string
160 lang: string 174 lang: string
@@ -596,6 +610,34 @@ function toRepoDataSuwatte(
596 return { sites, listUrl } 610 return { sites, listUrl }
597} 611}
598 612
613function 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
599function toRepoDataKotatsu(index: KotatsuIndex): RepoSite[] { 641function toRepoDataKotatsu(index: KotatsuIndex): RepoSite[] {
600 const seen = new Set<string>() 642 const seen = new Set<string>()
601 const sites: RepoSite[] = [] 643 const sites: RepoSite[] = []
@@ -809,6 +851,12 @@ async function toRepoData(
809 'iconURL' in (json as AidokuIndex).sources[0] 851 'iconURL' in (json as AidokuIndex).sources[0]
810 ) { 852 ) {
811 sites = toRepoDataAidoku(iconBase, json as AidokuIndex) 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 } else if ( 860 } else if (
813 (json as SuwatteCatalogIndex).sources?.length && 861 (json as SuwatteCatalogIndex).sources?.length &&
814 'thumbnail' in (json as SuwatteCatalogIndex).sources[0] 862 'thumbnail' in (json as SuwatteCatalogIndex).sources[0]
docs/ext/index.md +4
@@ -46,6 +46,9 @@ og:
46 <Card title="Aidoku" href="/ext/aidoku"> 46 <Card title="Aidoku" href="/ext/aidoku">
47 Manga 47 Manga
48 </Card> 48 </Card>
49 <Card title="Mana" href="/ext/mana">
50 Manga
51 </Card>
49 <Card title="Paperback" href="/ext/paperback"> 52 <Card title="Paperback" href="/ext/paperback">
50 Manga 53 Manga
51 </Card> 54 </Card>
@@ -73,6 +76,7 @@ og:
73- Dantotsu : (Mihon), (Aniyomi), (LNreader); 76- Dantotsu : (Mihon), (Aniyomi), (LNreader);
74- Futon : (Kotatsu), (Mihon); 77- Futon : (Kotatsu), (Mihon);
75- IReader : (IReader), (LNreader); 78- IReader : (IReader), (LNreader);
79- Mana : (Mana), (Mihon);
76- Mangayomi : (Mihon), (Aniyomi), (Mangayomi); 80- Mangayomi : (Mihon), (Aniyomi), (Mangayomi);
77- Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu); 81- Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu);
78- Usagi : (Kotatsu), (Mihon), (LNreader); 82- Usagi : (Kotatsu), (Mihon), (LNreader);
docs/ext/mana.md added +31
@@ -0,0 +1,31 @@
1---
2title: Mana Extension Repos
3customDescription: Extension Repos for Mana
4feedback: no
5og:
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| **Online** | [Aidoku](https://aidoku.app/) [:src:](https://github.com/Aidoku/Aidoku) [:e:](/ext/aidoku) | 144| **Online** | [Aidoku](https://aidoku.app/) [:src:](https://github.com/Aidoku/Aidoku) [:e:](/ext/aidoku) |
145| ^^ | [AnymeX](https://anymex.vercel.app/) [:src:](https://github.com/RyanYuuki/AnymeX) | 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| ^^ | [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) | 147| ^^ | [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) |
147| ^^ | [Paperback](https://paperback.moe/) :cs: [:e:](/ext/paperback) | 148| ^^ | [Paperback](https://paperback.moe/) :cs: [:e:](/ext/paperback) |
148| ^^ | [Suwatte](https://suwatte.app/) :cs: [:e:](/ext/suwatte) | 149| ^^ | [Suwatte](https://suwatte.app/) :cs: [:e:](/ext/suwatte) |