Commit a1dfcb1b0f
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/LibrarySize.vue +7 −3
| @@ -10,7 +10,11 @@ interface Entry { | ||
| 10 | 10 | size: string |
| 11 | 11 | updated: string |
| 12 | 12 | } |
| 13 | type Library = { anime: Record<string, Entry>; manga: Record<string, Entry> } | |
| 13 | type Library = { | |
| 14 | anime: Record<string, Entry> | |
| 15 | manga: Record<string, Entry> | |
| 16 | donghua: Record<string, Entry> | |
| 17 | } | |
| 14 | 18 | |
| 15 | 19 | // One shared request per page, regardless of how many markers are used. |
| 16 | 20 | let pending: Promise<Library> | null = null |
| @@ -19,7 +23,7 @@ function load(): Promise<Library> { | ||
| 19 | 23 | if (!pending) { |
| 20 | 24 | pending = fetch(LIBRARY_URL) |
| 21 | 25 | .then(res => (res.ok ? res.json() : Promise.reject(res.status))) |
| 22 | .catch(() => ({ anime: {}, manga: {} }) as Library) | |
| 26 | .catch(() => ({ anime: {}, manga: {}, donghua: {} }) as Library) | |
| 23 | 27 | } |
| 24 | 28 | return pending |
| 25 | 29 | } |
| @@ -28,7 +32,7 @@ const normalize = (s: string) => s.toLowerCase().replace(/[^a-z0-9]/g, '') | ||
| 28 | 32 | |
| 29 | 33 | function lookup(lib: Library, name: string): string | undefined { |
| 30 | 34 | const wanted = normalize(name) |
| 31 | for (const section of [lib.manga, lib.anime]) { | |
| 35 | for (const section of [lib.manga, lib.anime, lib.donghua]) { | |
| 32 | 36 | for (const [site, entry] of Object.entries(section ?? {})) { |
| 33 | 37 | if (normalize(site) === wanted) return entry.size |
| 34 | 38 | } |
docs/websites.md +17 −14
| @@ -41,20 +41,23 @@ outline: 2 | ||
| 41 | 41 | |
| 42 | 42 | == Donghua |
| 43 | 43 | |
| 44 | - [Anime4i](https://anime4i.com/) [:tg:](https://t.me/anime4iz) | |
| 45 | - [Anime Cube](https://animecube.live/) [:tg:](https://t.me/animecubehub) | |
| 46 | - [AnimeKhor](https://animekhor.org/) [:tg:](https://t.me/AnimeKhorOfficial) | |
| 47 | - [AnimeXin](https://animexin.dev/) | |
| 48 | - [Chiki Animation 2D](https://chikianimation.com/) [:tg:](https://t.me/Donghuanewofficial) | |
| 49 | - [Chiki Animation 3D](https://chikianimation.online/) [:tg:](https://t.me/Dimensional_Animation) | |
| 50 | - [donghua.site](https://donghua.site/) | |
| 51 | - [Donghua Stream](https://donghuastream.org/) [:d:](https://discord.gg/4zrUguAakG) [:tg:](https://t.me/DonghuaStream_com) | |
| 52 | - [Dongsub](https://www.dongsub.net/) [:tg:](https://t.me/dongsub) | |
| 53 | - [H-Donghua](https://h-donghua.com/) [:d:](https://discord.gg/XfJd7YC2XW%20) [:tg:](https://t.me/h_donghua) | |
| 54 | - [LM Anime](https://lmanime.com/) | |
| 55 | - [Lucifer Donghua](https://luciferdonghua.in/) [:tg:](https://t.me/luciferdonghuaz) | |
| 56 | - [Narul Donghua](https://naruldonghua.com/) [:tg:](https://t.me/Narudonghuachat) | |
| 57 | - [WowTopix](https://wowtopix.com/) | |
| 44 | | Websites | Library ==Library== | Social | | |
| 45 | |----------|---------------------|--------| | |
| 46 | | [Anime4i](https://anime4i.com/) | ==l:anime4i== | [:tg:](https://t.me/anime4iz) | | |
| 47 | | [Anime Cube](https://animecube.live/) | ==l:animecube== | [:tg:](https://t.me/animecubehub) | | |
| 48 | | [AnimeKhor](https://animekhor.org/) | ==l:animekhor== | [:tg:](https://t.me/AnimeKhorOfficial) | | |
| 49 | | [AnimeXin](https://animexin.dev/) | ==l:animexin== | :no: | | |
| 50 | | [Chiki Animation 2D](https://chikianimation.com/) | ==l:chiki2d== | [:tg:](https://t.me/Donghuanewofficial) | | |
| 51 | | [Chiki Animation 3D](https://chikianimation.online/) | ==l:chiki3d== | [:tg:](https://t.me/Dimensional_Animation) | | |
| 52 | ||
| 53 | <more> | |
| 54 | ||
| 55 | | [Donghua Stream](https://donghuastream.org/) | ==l:donghuastream== | [:d:](https://discord.gg/4zrUguAakG) [:tg:](https://t.me/DonghuaStream_com) | | |
| 56 | | [Dongsub](https://www.dongsub.net/) | ==l:dongsub== | [:tg:](https://t.me/dongsub) | | |
| 57 | | [LM Anime](https://lmanime.com/) | ==l:lmanime== | :no: | | |
| 58 | | [Lucifer Donghua](https://luciferdonghua.in/) | ==l:luciferdonghua== | [:tg:](https://t.me/luciferdonghuaz) | | |
| 59 | | [Narul Donghua](https://naruldonghua.com/) | ==l:naruldonghua== | [:tg:](https://t.me/Narudonghuachat) | | |
| 60 | | [WowTopix](https://wowtopix.com/) | ==l:wowtopix== | :no: | | |
| 58 | 61 | |
| 59 | 62 | |
| 60 | 63 | == Download |