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[] = [
232232 link: '/ext/paperback',
233233 section: 'Extensions'
234234 },
235 {
236 id: 'ext-mana',
237 icon: ':lucide-puzzle:',
238 title: 'Mana',
239 details: 'Manga',
240 link: '/ext/mana',
241 section: 'Extensions'
242 },
235243 {
236244 id: 'ext-suwatte',
237245 icon: ':lucide-puzzle:',
@@ -541,6 +549,7 @@ export const sidebar: DefaultTheme.Sidebar = [
541549 collapsed: true,
542550 items: [
543551 { text: 'Aidoku', link: '/ext/aidoku' },
552 { text: 'Mana', link: '/ext/mana' },
544553 { text: 'Paperback', link: '/ext/paperback' },
545554 { text: 'Suwatte', link: '/ext/suwatte' }
546555 ]
docs/.vitepress/theme/components/extrepo/install.ts +6 −1
@@ -9,6 +9,10 @@ export function suwatteBase(indexUrl: string): string {
99 return indexUrl.replace(/\/sources\.json$/, '')
1010}
1111
12export function manaBase(indexUrl: string): string {
13 return indexUrl.replace(/\/sources\.json$/, '')
14}
15
1216interface InstallOpts {
1317 suwatteV6?: boolean
1418 suwatteListUrl?: string
@@ -37,7 +41,7 @@ const INSTALL_URL_BUILDERS: Record<
3741}
3842
3943// Apps with no deep-link install scheme;
40const MANUAL_ONLY_SCHEMES = new Set(['manual'])
44const MANUAL_ONLY_SCHEMES = new Set(['manual', 'mana'])
4145
4246// Schemes with no install or copy action
4347const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'echo'])
@@ -68,6 +72,7 @@ export function installHref(
6872export function copyValue(scheme: string, indexUrl: string): string {
6973 if (scheme === 'paperback') return paperbackBase(indexUrl)
7074 if (scheme === 'suwatte') return suwatteBase(indexUrl)
75 if (scheme === 'mana') return manaBase(indexUrl)
7176 return indexUrl
7277}
7378
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 {
155155 sources: SuwatteCatalogSource[]
156156}
157157
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
158172interface KotatsuSite {
159173 name: string
160174 lang: string
@@ -596,6 +610,34 @@ function toRepoDataSuwatte(
596610 return { sites, listUrl }
597611}
598612
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
599641function toRepoDataKotatsu(index: KotatsuIndex): RepoSite[] {
600642 const seen = new Set<string>()
601643 const sites: RepoSite[] = []
@@ -809,6 +851,12 @@ async function toRepoData(
809851 'iconURL' in (json as AidokuIndex).sources[0]
810852 ) {
811853 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)
812860 } else if (
813861 (json as SuwatteCatalogIndex).sources?.length &&
814862 'thumbnail' in (json as SuwatteCatalogIndex).sources[0]
docs/ext/index.md +4
@@ -46,6 +46,9 @@ og:
4646 <Card title="Aidoku" href="/ext/aidoku">
4747 Manga
4848 </Card>
49 <Card title="Mana" href="/ext/mana">
50 Manga
51 </Card>
4952 <Card title="Paperback" href="/ext/paperback">
5053 Manga
5154 </Card>
@@ -73,6 +76,7 @@ og:
7376- Dantotsu : (Mihon), (Aniyomi), (LNreader);
7477- Futon : (Kotatsu), (Mihon);
7578- IReader : (IReader), (LNreader);
79- Mana : (Mana), (Mihon);
7680- Mangayomi : (Mihon), (Aniyomi), (Mangayomi);
7781- Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu);
7882- 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
143143| :--- | :--- |
144144| **Online** | [Aidoku](https://aidoku.app/) [:src:](https://github.com/Aidoku/Aidoku) [:e:](/ext/aidoku) |
145145| ^^ | [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)
146147| ^^ | [Mangayomi](https://github.com/kodjodevf/mangayomi) [:e:](/ext/mangayomi) |
147148| ^^ | [Paperback](https://paperback.moe/) :cs: [:e:](/ext/paperback) |
148149| ^^ | [Suwatte](https://suwatte.app/) :cs: [:e:](/ext/suwatte) |