Commit 7759b99843

7759b99843040ca85501539cb993925e5cdc30ec

parent: c6177ac8b6

Unregistered key

taskylizard <75871323+taskylizard@users.noreply.github.com> · 2025-08-19 13:42 UTC

refactor: rework tooltips

Layout: unified · split

.prettierrc.yaml +2 −2
@@ -1,6 +1,6 @@
1proseWrap: always
1proseWrap: never
22semi: false
33singleQuote: true
44printWidth: 80
55trailingComma: none
6htmlWhitespaceSensitivity: ignore
\ No newline at end of file
6htmlWhitespaceSensitivity: ignore
docs/.vitepress/configs/constants.ts +8 −27
@@ -55,8 +55,6 @@ export const nav: DefaultTheme.NavItem[] = [
5555 },
5656 {
5757 text: 'Torrenting',
58 // @ts-expect-error
59 collapsed: true,
6058 items: [
6159 { text: 'Getting Started', link: '/torrenting/start' },
6260 { text: 'FAQs', link: '/torrenting/faq' },
@@ -67,8 +65,6 @@ export const nav: DefaultTheme.NavItem[] = [
6765 },
6866 {
6967 text: 'Guides',
70 // @ts-expect-error
71 collapsed: true,
7268 items: [
7369 {
7470 text: 'Anime',
@@ -91,7 +87,6 @@ export const nav: DefaultTheme.NavItem[] = [
9187 },
9288 {
9389 text: 'Extension Repos',
94 collapsed: true,
9590 items: [
9691 { text: 'Mihon & Aniyomi', link: '/guides/ext/mihon' },
9792 { text: 'Mangayomi', link: '/guides/ext/mangayomi' },
@@ -287,7 +282,7 @@ export const sidebar: DefaultTheme.Sidebar = [
287282 text: '<span class="i-lucide:heart-handshake"></span> Credits',
288283 link: '/credits'
289284 },
290 {
285 {
291286 text: '<span class="i-lucide:goal"></span> Getting Started',
292287 link: '/start'
293288 }
@@ -314,13 +309,13 @@ export const siteConfig = {
314309 ['link', { rel: 'mask-icon', href: '/asset/fav.png', color: '#56b4fc' }],
315310 // prettier-ignore
316311 [
317 'meta',
318 {
319 name: 'keywords',
320 content:
321 'Anime, Anime Piracy, Manga, Manga Piracy, VTuber, Hentai, JPOP, Music, Japan, Learning Japanese, Weeb, Otaku'
322 }
323 ],
312 "meta",
313 {
314 name: "keywords",
315 content:
316 "Anime, Anime Piracy, Manga, Manga Piracy, VTuber, Hentai, JPOP, Music, Japan, Learning Japanese, Weeb, Otaku",
317 },
318 ],
324319 [
325320 'link',
326321 {
@@ -328,20 +323,6 @@ export const siteConfig = {
328323 href: '/asset/fav.png',
329324 sizes: '192x192'
330325 }
331 ],
332 [
333 'script',
334 { id: 'restore-banner-preference' },
335 `
336(() => {
337 const restore = (key, cls, def = false) => {
338 const saved = localStorage.getItem(key);
339 if (saved) {
340 document.documentElement.classList.add(cls);
341 }
342 };
343 restore('ackDomainChange', 'banner-dismissed');
344})();`
345326 ]
346327 ],
347328 srcExclude: ['README.md', 'sandbox/**/*.md'],
docs/.vitepress/configs/index.ts +8 −3
@@ -13,7 +13,7 @@
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16import type { DefaultTheme, UserConfig } from 'vitepress'
16import type { DefaultTheme, Plugin, UserConfig } from 'vitepress'
1717import { generateImages, generateMeta } from './hooks'
1818import { defs, movePlugin, aliases } from './markdown/emoji'
1919import {
@@ -33,7 +33,6 @@ import { GIT_COMMIT, hostname, nav, sidebar, siteConfig } from './constants'
3333export const shared: UserConfig<DefaultTheme.Config> = {
3434 ...siteConfig,
3535 transformHead: async (context) => generateMeta(context, hostname),
36 // biome-ignore lint/suspicious/useAwait: <explanation>
3736 buildEnd: async (context) => {
3837 generateImages(context)
3938 },
@@ -126,11 +125,17 @@ export const shared: UserConfig<DefaultTheme.Config> = {
126125 name: 'custom:adjust-order',
127126 configResolved(c) {
128127 movePlugin(
129 c.plugins as any,
128 c.plugins as unknown as Plugin[],
130129 'vitepress',
131130 'before',
132131 'unocss:transformers:pre'
133132 )
133 movePlugin(
134 c.plugins as unknown as Plugin[],
135 'custom:tooltip-loader',
136 'before',
137 'vitepress'
138 )
134139 }
135140 }
136141 ],
docs/.vitepress/configs/markdown/index.ts +15 −363
@@ -9,361 +9,7 @@ import { align } from '@mdit/plugin-align'
99import { imgSize } from '@mdit/plugin-img-size'
1010import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
1111import { emojiRender } from './emoji'
12
13const tooltips: {
14 [key: string]: {
15 title?: string
16 icon?: string
17 content: string
18 }
19} = {
20 miruro: {
21 content: `
22 - Nice and minimal UI.
23 - Scrapes HiAnime (Zoro & Bun), AnimeKai (Arc & Gut) Animepahe (Kiwi), Gogo (Gogo & Vid), AnimeZ (Jet).
24 - Has built-in AniList support.`
25 },
26 AnimeStream: {
27 content: `
28 - Scrapes from Crunchyroll.
29 - UI is really basic.
30 - Browser has to support DRM.`
31 },
32 AnimeNexus: {
33 content: `
34 - Generally good video quality.
35 - Has multi-language softsub.
36 - Library size isn't that big. Good for recent airing shows.
37 - ⚠️ Has optimization issues on lower-end phones, may work better on different browsers. Doesn't support Safari / WebKit.`
38 },
39 KAA: {
40 content: `
41 - KAA encodes are on Videstreaming and Catstream. Birdstream scrapes Bilibili.
42 - Good for airing anime.
43 - Has good amount of missing old titles, but you can request them in their support server.`
44 },
45 AnimeKai: {
46 content: `
47 - Huge library.
48 - Re-encodes shows for smaller size.
49 - Mix of Web and Blu-ray releases.
50 - Anilist scraper is buggy. Adds PV, Specials & Extra entries even though it doesn't have the uploads.`
51 },
52 Zoro: {
53 content: `
54 - Huge library.
55 - Has multi-language softsub.
56 - Re-encodes shows for smaller size.`
57 },
58 Sudatchi: {
59 content: `
60 - Smaller library size. Good for new airing.
61 - Re-encoded to smaller filesize.
62 - Uses IPFS
63 - Only 1080p atm for most.`
64 },
65 AniZone: {
66 content: `
67 - Re-encoded to smaller file size.
68 - Very small library size.
69 - Good for airing shows.`
70 },
71 Animepahe: {
72 content: `
73 - Uploads mini encoded files, best if you want smaller files or have low bandwidth.
74 - Has a good amount of missing titles.
75 - Some titles don't get regular update.`
76 },
77 AllManga: {
78 content: `
79 - UI is really cluttered.
80 - Video quality fluctuates quite a bit.
81 - Players are a mix of self-hosted and scrapers.
82 - Luf-mp4 and Vid-mp4 are gogo scrapers.
83 - OK and AK have multiple resolutions.
84 - SW player is 720p only.`
85 },
86 Animotvslash: {
87 content: `
88 - Small library size.`
89 },
90 WCO: {
91 content: `
92 - Has both anime and cartoons.
93 - Library size is pretty good including old stuff.
94 - Uploads are compressed to mini-encode and low res.
95 - Movie uploads are paywalled. You can bypass some using wco.tv.`
96 },
97 OtakuStreamers: {
98 content: `
99 Although new releases are in 1080p, older releases are a mixed bag, ranging from 480p to 720p.`
100 },
101 AnimeRealms: {
102 content: `
103 Scrapes HiAnime (Soft), AnimePahe (Pahe), AnimeHeaven (Heaven - 720p).`
104 },
105 Enimoe: {
106 content: `
107 Scrapes HiAnime (Kaido), AnimeKai (Rose), AniZone (Zone), Anify (Violet), AnimeNoSub (Stack), FireAnime (Fire), Hikari (Cope), AnimeFox (Fox).`
108 },
109 Gojo: {
110 content: `
111 Scrapes AnimeOwl (Strix), AnimePahe (Pahe), AnimeZ (Zaza).`
112 },
113 ComicK: {
114 content: `
115 - Minimal compression
116 - Aggregates from various scanlation groups
117 - There's a 2/3 hour upload delay for most chapters sourced from scanlators' sites
118 - Has official translations
119 - Reader isn't as good as mangadex.`
120 },
121 MangaDex: {
122 content: `
123 - Uploads without compression
124 - Best reader UI (for a web reader)
125 - Uploads from various scanlation groups
126 - No official translations, barring some exceptions.
127 - Removes content upon DMCA takedown request, has already done so for 7000+ titles.`
128 },
129 WeebCentral: {
130 content: `
131 - Has official translations
132 - Compresses chapter images
133 - Chapter updates are relatively slow
134 - You can use AL sync with atsu.`
135 },
136 Batoto: {
137 content: `
138 - Has both scanlated and official releases
139 - Has some exclusive uploads
140 - Decent filtering options with site theme options
141 - Not an aggregator (unlike sister site Mangapark). Upload depends on manual upload. So has missing comics
142 - Has a lot of dupe entries.
143 - Images are compressed WEBP.`
144 },
145 MangaFire: {
146 content: `
147 - The UI is very clean with notification system
148 - Uploads both chapter (multi-lang) & volume releases
149 - Basic reader UI
150 - Watermark on almost every manga chapters
151 - Manga uploads are up to x1600.`
152 },
153 tron: {
154 content:
155 '[Comikey](https://comikey.com/), [J-Novel Club](https://j-novel.club/), [K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [Manga UP!](https://global.manga-up.com/), [Seven Seas](https://sevenseasentertainment.com/), [SQUARE ENIX](https://squareenixmangaandbooks.square-enix-games.com/en-us), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
156 },
157 anadius: { content: '[VIZ](https://www.viz.com/)' },
158 Danke: {
159 content:
160 '[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
161 },
162 DMF: {
163 content:
164 '[J-Novel Club](https://j-novel.club/), [Kodansha](https://kodansha.us/), [ONE PEACE BOOKS](https://www.onepeacebooks.com/), [Seven Seas](https://sevenseasentertainment.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
165 },
166 Empy: {
167 content:
168 '[Glacier Bay Books](https://glacierbaybooks.com/), [MANGA Plus](https://mangaplus.shueisha.co.jp/)'
169 },
170 Lord_ne: {
171 content:
172 '[Crunchyroll](https://store.crunchyroll.com/collections/manga/), [Lezhin Comics](https://www.lezhinus.com/en), [Yen Press](https://yenpress.com/)'
173 },
174 LuCaZ: {
175 content:
176 '[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)'
177 },
178 Oakminati: {
179 content:
180 '[MANGA Plus](https://mangaplus.shueisha.co.jp/), [Manga UP!](https://global.manga-up.com/) (Main), [SQUARE ENIX](https://squareenixmangaandbooks.square-enix-games.com/en-us)'
181 },
182 Rillant: {
183 content:
184 '[K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [MANGA Plus](https://mangaplus.shueisha.co.jp/), [VIZ](https://www.viz.com/)'
185 },
186 Shellshock: {
187 content:
188 '[Kodansha](https://kodansha.us/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
189 },
190 Shizu: {
191 content:
192 '[Kodansha](https://kodansha.us/), [SuBLime](https://www.sublimemanga.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
193 },
194 Stick: {
195 content:
196 '[Cross Infinite World](https://www.crossinfworld.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)'
197 },
198 SWId: {
199 content:
200 '[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)'
201 },
202 TooManyIsekai: {
203 content:
204 '[J-Novel Club](https://j-novel.club/), [K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [Manga UP!](https://global.manga-up.com/), [ONE PEACE BOOKS](https://www.onepeacebooks.com/), [Seven Seas](https://sevenseasentertainment.com/)'
205 },
206 Trite: {
207 content:
208 'Cover-to-cover (c2c) scans of physical-only books by various publishers.'
209 },
210 Ushi: {
211 content:
212 '[Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)'
213 },
214 AGR: {
215 content: 'Formerly Animated Glitched Scans and Animated Glitched Comics'
216 },
217 Scylla: { content: 'Formerly Scylla Scans' },
218 Flame: { content: 'Formerly Flame Scans' },
219 hive: { content: 'Formerly Infernal Void Scans, Void Scans and Hive toon' },
220 realm: { content: 'Formerly Realm Scans, Rizz Comics and Realm Oasis' },
221 utoon: { content: 'Formerly Manhwa Freak, freak scans, freak comics' },
222 Shiru: { content: 'Hard fork of Miru' },
223 Hakuneko: { content: 'For Linux, you have to use old one atm.' },
224 HDoujinDownloader: { content: 'Has a limit of 25 chapters per day.' },
225 CbxConverter: {
226 content:
227 'The version of Magick inside is really outdated. If you use it, download ImageMagick-[Latest_Version]-portable-Q8-x64.zip from the Imagemagick site, take the magick.exe from there and replace it in CbxConverter folder.'
228 },
229 BangumiList: {
230 content: 'Maintained by chinese devs, but lists JP schedule too.'
231 },
232 ComicRanking500: {
233 content:
234 "The rankings here are based on POS (point-of-sale) data from various bookstore chains in Japan's offline market. Books that primarily sell online or are heavily focused on online stores may rank lower on this list."
235 },
236 JosuKe: {
237 content:
238 "The site doesn't get updated often, visit their twitter for more recent graphs."
239 },
240 Flud: { content: 'Has a VPN-only option.' },
241 imgdanke: {
242 content: "Optional for GUI, but doesn't support Pingo v1+ at the moment."
243 },
244 Misskey: { content: 'Registrations are currently limited to Japan only.' },
245 Boorusphere: {
246 content: 'Repo is archived, but still works as of October 25, 2024.'
247 },
248 VocaloidRadio: {
249 content: 'Stream URL (192kbps): https://vocaloid.radioca.st/stream'
250 },
251 xManager: {
252 content:
253 "Due to Spotify changes, it doesn't work well in a lot of regions. Switch to echo."
254 },
255 Nicotine: {
256 content: 'A client for the Soulseek peer-to-peer file sharing network, primarily used for music.'
257 },
258 Koisuru: {
259 content:
260 'Subtitle files only, you need to get the episodes from another source.'
261 },
262 Spoilerplus: {
263 content:
264 "Image host is geo-restricted, so won't load pages in every region. Tested for the US."
265 },
266 Oppai: {
267 content: 'Late releases, but less compressed than other aggregators.'
268 },
269 nHentai: { content: 'Most popular. Decent UI, but compresses images.' },
270 Akuma: { content: 'E-Hentai clone.' },
271 HDoujin: { content: 'Side project of Schale Network, similar to nHentai.' },
272 Hitomi: { content: 'Big library, but difficult to navigate.' },
273 IMHentai: { content: 'Big library and great search filters.' },
274 PandaBackup: {
275 content:
276 'Archive of stuff removed from E-Hentai due to DMCA complaints. Has some obscure stuff deleted on most sites.'
277 },
278 SchaleNetwork: {
279 content: 'Formerly Koharu, has Fakku/Irodori rips (official TLs).'
280 },
281 Yabai: { content: 'E-Hentai clone.' },
282 HenTalkNexus: { content: 'Fakku/Irodori rips (official TLs).' },
283 EHentai: {
284 content:
285 "The Mangadex of doujins, almost every doujin is first uploaded here before being scraped by other sites. The online viewer compresses the images, but has the option to download in original quality. [ExHentai](https://exhentai.org/) is its sister site, which also hosts the more extreme and questionable content. You'll need an account on E-Hentai to gain access."
286 },
287 Rule34xxx: {
288 content: `
289 - Boasts a larger content library compared to Paheal.
290 - Features an extensive tagging system, allowing searches based on descriptions or depicted acts.
291 - Allows larger file uploads, up to 100MB.
292 - Searching is more user-friendly compared to Paheal.`
293 },
294 Rule34Paheal: {
295 content:
296 'Categorizes content by characters, franchises, events (such as holidays), animations, and sound, but limits uploads to 10MB.'
297 },
298 YACReader: {
299 content: `
300 - Has all the standard features, keeps last read history.
301 - Doesn't have built-in library like MComix, only the history.
302 - The bundled YACLibrary is excellent.
303 - Has lots of customization.
304 - Can act as a local manga server, like Calibre.
305 - But the server client for [Android](https://play.google.com/store/apps/details?id=com.yacreader.yacreader&hl=en&gl=US) and [iOS](https://apps.apple.com/ca/app/yacreader-comic-reader/id635717885) is paid.`
306 },
307 CDisplayEx: {
308 content: `
309 - Has a minimalist UI.
310 - Fast and simple reader with good amount of configuration.
311 - Has Nearest, Draft, linear and Lanczos (with various level) as scaling options.
312 - Not FOSS and not maintained since the development team has marked it as complete.
313 - No library view, only recent reads.`
314 },
315 OpenComic: {
316 content: `
317 - Nice clean UI, has dark mode.
318 - Has all the standard functions, including recent history.
319 - Has AniList tracking and controller support.
320 - Supports Lanczos and other scaling methods.`
321 },
322 MComix: {
323 content: `
324 - Minimal & responsive UI with good amount of customization.
325 - Has a nice library option and remembers last reading options.
326 - Has 3 scaling options: Normal, Bilinear (default) and Hyperbolic.`
327 },
328 SumatraPDF: {
329 content: `
330 - Very simple program with all the standard features.
331 - Doesn't have a library, but keeps track of recently opened files.
332 - Can open a variety of ebook formats (PDF, epub, mobi, cbz/cbr, DjVu, XPS, CHM).`
333 },
334 Yomikiru: {
335 content:
336 'Simple UI with all the basic settings. Has AniList tracking.'
337 },
338 kohi: { content: 'For now, you need to manually install and update the APK(s) from the "apk" folder in the repository. The install and URL buttons are currently non-functional.' },
339 ni3x: { content: 'Focuses on Torrents and Ero anime' },
340 secozzi: { content: 'For Jellyfin and Stremio' },
341 kei: { content: 'Maintained by former Tachiyomi contributors' },
342 yuzono: { content: 'By Komikku dev. Mirrors Keiyoushi repo with a few extra extensions' },
343 yuani: { content: 'By Anikku dev. Mirrors Kohi-den repo with a few extra extensions' },
344 demo: { content: 'Demo tooltips for start page' },
345 mirai: { content: 'Syncs the Mangayomi repository and includes their own plugins' },
346 megarepo: { content: 'Adds all the repo present in /recloudstream/cs-repos' },
347 dab: { content: 'Downloads from the Qobuz streaming platform, which only supports FLAC, not the other formats mentioned in the About page.' },
348 echo: { content: 'Use "extension" as code to load all the extensions.' },
349 cubari: { content: 'Scrapes MangaDex, WeebCentral, MangaKatana & scanlators.' },
350 akari: { content: 'Scrapes MangaKakalot.' },
351 komik: {content: 'Mostly up to the artist. Some of them are R2L too.'},
352 atosho: {content: 'Offers both DDL hosts and Usenet as download options, but only keeps uploads up to 16GB. DDL files might be auto-deleted by the hosts due to inactivity, unlike Usenet files. You can try [magicNZB](https://magicnzb.com/) for free Usenet downloads, as it allows temp-mails and does not require a CC.'},
353 linew: {content: 'In 2019, they rebranded LINE WEBTOON as WEBTOON. In some regions, it is still branded as LINE WEBTOON.'},
354 amdl: {content: 'We have not tested their software, use the web downloader for your own security. Best for downloading separate songs instead of albums. For audio quality, use "Original Quality".'},
355 webtooni: {content: 'Not uploading for a while.'},
356 hef: {content: 'Does not have all the recent fan projects.'},
357 cupscale: {content: 'Cupscale is not good for color and pages with no screentone.'},
358 kazamakase: {content: 'Does not get much update but has info about old comics.'},
359 mangarawspoil: {content: 'Has unusual geo-restrictions. Everything works in Japan, but some content may also be accessible in other regions. Although the watermarks differ, the content remains the same.'},
360 animez: {content: 'Rips 1080p from Kai.'},
361 kureha: {content: 'The site doesn’t offer a search option. To find a specific title, use Google: `LN/WN Title site:vn-meido.com`'},
362 aninow: {content: 'Scrapes HiAnime(ZoroX) and AnimePahe(BunnyCDN). Aninow is their own uploads.'},
363 zunime: {content: 'Scrapes HiAnime(yuki), Aniwave.se(miko) Animepahe(pahe) & Anizone (shiro)'},
364 mangaclan: {content: `Scrapes Zinmanga and MangaNato`},
365 vidbox: {content: `Scrapes MangaFire`}
366}
12import { getTooltip } from '../../utils/tooltips'
36713
36814export function configureMarkdown(md: MarkdownRenderer) {
36915 md.use(emojiRender)
@@ -388,7 +34,7 @@ function renderInlineTooltip(md: MarkdownRenderer) {
38834 md.use(
38935 MdReg(
39036 /\^\[(.*?)\]\((.+?)\)/,
391 ([, cont, hint]) =>
37 ([, cont, hint]: string[]) =>
39238 '<VTooltip theme="hint">' +
39339 span(md.renderInline(cont)) +
39440 '<template v-slot:popper>' +
@@ -400,13 +46,19 @@ function renderInlineTooltip(md: MarkdownRenderer) {
40046
40147function renderTooltip(md: MarkdownRenderer) {
40248 md.use(
403 MdReg(/==(.+?)==/, ([, cont]) => {
404 const keys = Object.keys(tooltips)
405 if (!keys.includes(cont)) return 'No tooltip found for ' + cont
406 const item = tooltips[cont]
49 MdReg(/==(.+?)==/, ([, cont]: string[]) => {
50 const item = getTooltip(cont)
51 if (!item) return `No tooltip found for ${cont}`
52
53 const icon = item.frontmatter.icon
54 ? `icon="${item.frontmatter.icon}"`
55 : ''
40756
408 const icon = item.icon ? `icon="${item.icon}"` : ''
409 const title = item.title ? `title="${item.title}"` : ''
57 const title = item.frontmatter.title
58 ? `title="${item.frontmatter.title}"`
59 : item.id
60 ? `title="${item.id}"`
61 : '' /** Impossible */
41062 const props = icon + title
41163 const renderedContent = md.render(item.content)
41264
@@ -417,7 +69,7 @@ function renderTooltip(md: MarkdownRenderer) {
41769
41870function span(
41971 content: string,
420 attrs: Record<string, any> | undefined = undefined
72 attrs: Record<string, unknown> | undefined = undefined
42173) {
42274 let html = '<span'
42375 if (attrs)
docs/.vitepress/theme/components/Tooltip.vue +10 −9
@@ -15,15 +15,16 @@
1515-->
1616<script setup lang="ts">
1717withDefaults(
18 defineProps<{
19 title: string
20 icon: string
21 }>(),
22 {
23 title: 'Info',
24 icon: 'i-material-symbols-info-i'
25 }
26)
18 defineProps<{
19 title: string;
20 icon: string;
21 }>(),
22 {
23 title: "Info",
24 // https://icon-sets.iconify.design/material-symbols/
25 icon: "i-material-symbols-info-i",
26 },
27);
2728</script>
2829
2930<template>
docs/.vitepress/theme/composables/useTooltips.ts added +41
@@ -0,0 +1,41 @@
1/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { ref } from "vue";
17import { getTooltip, type TooltipData } from "virtual:tooltips";
18
19const tooltipCache = ref<Map<string, TooltipData>>(new Map());
20
21export function useTooltips() {
22 const getTooltipData = (id: string): TooltipData | null => {
23 if (tooltipCache.value.has(id)) {
24 return tooltipCache.value.get(id)!;
25 }
26
27 const tooltip = getTooltip(id);
28 if (tooltip) {
29 tooltipCache.value.set(id, tooltip);
30 return tooltip;
31 }
32
33 console.warn(`Tooltip with id "${id}" not found`);
34 return null;
35 };
36
37 return {
38 getTooltipData,
39 };
40}
41
docs/.vitepress/tooltips/AGR.md added +1
@@ -0,0 +1 @@
1Formerly Animated Glitched Scans and Animated Glitched Comics
\ No newline at end of file
docs/.vitepress/tooltips/Akuma.md added +1
@@ -0,0 +1 @@
1E-Hentai clone.
\ No newline at end of file
docs/.vitepress/tooltips/AllManga.md added +6
@@ -0,0 +1,6 @@
1- UI is really cluttered.
2- Video quality fluctuates quite a bit.
3- Players are a mix of self-hosted and scrapers.
4- Luf-mp4 and Vid-mp4 are gogo scrapers.
5- OK and AK have multiple resolutions.
6- SW player is 720p only.
docs/.vitepress/tooltips/AniPlay.md added +1
@@ -0,0 +1 @@
1Scrapes HiAnime (Yuki), AnimePahe (Pahe).
\ No newline at end of file
docs/.vitepress/tooltips/AniZone.md added +3
@@ -0,0 +1,3 @@
1- Re-encoded to smaller file size.
2- Very small library size.
3- Good for airing shows.
docs/.vitepress/tooltips/AnimeKai.md added +5
@@ -0,0 +1,5 @@
1- Huge library.
2- Re-encodes shows for smaller size.
3- Mix of Web and Blu-ray releases.
4- Anilist scraper is buggy. Adds PV, Specials & Extra entries even though it
5 doesn't have the uploads.
docs/.vitepress/tooltips/AnimeNexus.md added +5
@@ -0,0 +1,5 @@
1- Generally good video quality.
2- Has multi-language softsub.
3- Library size isn't that big. Good for recent airing shows.
4- ! Has optimization issues on lower-end phones, may work better on different
5 browsers. Doesn't support Safari / WebKit.
docs/.vitepress/tooltips/AnimeRealms.md added +1
@@ -0,0 +1 @@
1Scrapes HiAnime (Soft), AnimePahe (Pahe), AnimeHeaven (Heaven - 720p).
\ No newline at end of file
docs/.vitepress/tooltips/AnimeStream.md added +3
@@ -0,0 +1,3 @@
1- Scrapes from Crunchyroll.
2- UI is really basic.
3- Browser has to support DRM.
docs/.vitepress/tooltips/Animepahe.md added +3
@@ -0,0 +1,3 @@
1- Uploads mini encoded files, best if you want smaller files or have low bandwidth.
2- Has a good amount of missing titles.
3- Some titles don't get regular update.
docs/.vitepress/tooltips/Animotvslash.md added +1
@@ -0,0 +1 @@
1- Small library size.
\ No newline at end of file
docs/.vitepress/tooltips/BangumiList.md added +1
@@ -0,0 +1 @@
1Maintained by chinese devs, but lists JP schedule too.
\ No newline at end of file
docs/.vitepress/tooltips/Batoto.md added +6
@@ -0,0 +1,6 @@
1- Has both scanlated and official releases
2- Has some exclusive uploads
3- Decent filtering options with site theme options
4- Not an aggregator (unlike sister site Mangapark). Upload depends on manual upload. So has missing comics
5- Has a lot of dupe entries.
6- Images are compressed WEBP.
docs/.vitepress/tooltips/Boorusphere.md added +1
@@ -0,0 +1 @@
1Repo is archived, but still works as of October 25, 2024.
\ No newline at end of file
docs/.vitepress/tooltips/CDisplayEx.md added +5
@@ -0,0 +1,5 @@
1- Has a minimalist UI.
2- Fast and simple reader with good amount of configuration.
3- Has Nearest, Draft, linear and Lanczos (with various level) as scaling options.
4- Not FOSS and not maintained since the development team has marked it as complete.
5- No library view, only recent reads.
docs/.vitepress/tooltips/CbxConverter.md added +1
@@ -0,0 +1 @@
1The version of Magick inside is really outdated. If you use it, download ImageMagick-[Latest_Version]-portable-Q8-x64.zip from the Imagemagick site, take the magick.exe from there and replace it in CbxConverter folder.
\ No newline at end of file
docs/.vitepress/tooltips/ComicK.md added +5
@@ -0,0 +1,5 @@
1- Minimal compression
2- Aggregates from various scanlation groups
3- There's a 2/3 hour upload delay for most chapters sourced from scanlators' sites
4- Has official translations
5- Reader isn't as good as mangadex.
docs/.vitepress/tooltips/ComicRanking500.md added +1
@@ -0,0 +1 @@
1The rankings here are based on POS (point-of-sale) data from various bookstore chains in Japan's offline market. Books that primarily sell online or are heavily focused on online stores may rank lower on this list.
\ No newline at end of file
docs/.vitepress/tooltips/DMF.md added +1
@@ -0,0 +1 @@
1[J-Novel Club](https://j-novel.club/), [Kodansha](https://kodansha.us/), [ONE PEACE BOOKS](https://www.onepeacebooks.com/), [Seven Seas](https://sevenseasentertainment.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Danke.md added +1
@@ -0,0 +1 @@
1[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/EHentai.md added +1
@@ -0,0 +1 @@
1The Mangadex of doujins, almost every doujin is first uploaded here before being scraped by other sites. The online viewer compresses the images, but has the option to download in original quality. [ExHentai](https://exhentai.org/) is its sister site, which also hosts the more extreme and questionable content. You'll need an account on E-Hentai to gain access.
\ No newline at end of file
docs/.vitepress/tooltips/Empy.md added +1
@@ -0,0 +1 @@
1[Glacier Bay Books](https://glacierbaybooks.com/), [MANGA Plus](https://mangaplus.shueisha.co.jp/)
\ No newline at end of file
docs/.vitepress/tooltips/Enimoe.md added +1
@@ -0,0 +1 @@
1Scrapes HiAnime (Kaido), AnimeKai (Rose), AniZone (Zone), Anify (Violet), AnimeNoSub (Stack), FireAnime (Fire), Hikari (Cope), AnimeFox (Fox).
\ No newline at end of file
docs/.vitepress/tooltips/Flame.md added +1
@@ -0,0 +1 @@
1Formerly Flame Scans
\ No newline at end of file
docs/.vitepress/tooltips/Flud.md added +1
@@ -0,0 +1 @@
1Has a VPN-only option.
\ No newline at end of file
docs/.vitepress/tooltips/Gojo.md added +1
@@ -0,0 +1 @@
1Scrapes AnimeOwl (Strix), AnimePahe (Pahe), AnimeZ (Zaza).
\ No newline at end of file
docs/.vitepress/tooltips/HDoujin.md added +1
@@ -0,0 +1 @@
1Side project of Schale Network, similar to nHentai.
\ No newline at end of file
docs/.vitepress/tooltips/HDoujinDownloader.md added +1
@@ -0,0 +1 @@
1Has a limit of 25 chapters per day.
\ No newline at end of file
docs/.vitepress/tooltips/Hakuneko.md added +1
@@ -0,0 +1 @@
1For Linux, you have to use old one atm.
\ No newline at end of file
docs/.vitepress/tooltips/HenTalkNexus.md added +1
@@ -0,0 +1 @@
1Fakku/Irodori rips (official TLs).
\ No newline at end of file
docs/.vitepress/tooltips/Hitomi.md added +1
@@ -0,0 +1 @@
1Big library, but difficult to navigate.
\ No newline at end of file
docs/.vitepress/tooltips/IMHentai.md added +1
@@ -0,0 +1 @@
1Big library and great search filters.
\ No newline at end of file
docs/.vitepress/tooltips/JosuKe.md added +1
@@ -0,0 +1 @@
1The site doesn't get updated often, visit their twitter for more recent graphs.
\ No newline at end of file
docs/.vitepress/tooltips/KAA.md added +3
@@ -0,0 +1,3 @@
1- KAA encodes are on Videstreaming and Catstream. Birdstream scrapes Bilibili.
2- Good for airing anime.
3- Has good amount of missing old titles, but you can request them in their support server.
docs/.vitepress/tooltips/Koisuru.md added +1
@@ -0,0 +1 @@
1Subtitle files only, you need to get the episodes from another source.
\ No newline at end of file
docs/.vitepress/tooltips/Lord_ne.md added +1
@@ -0,0 +1 @@
1[Crunchyroll](https://store.crunchyroll.com/collections/manga/), [Lezhin Comics](https://www.lezhinus.com/en), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/LuCaZ.md added +1
@@ -0,0 +1 @@
1[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/MComix.md added +3
@@ -0,0 +1,3 @@
1- Minimal & responsive UI with good amount of customization.
2- Has a nice library option and remembers last reading options.
3- Has 3 scaling options: Normal, Bilinear (default) and Hyperbolic.
docs/.vitepress/tooltips/MangaDex.md added +5
@@ -0,0 +1,5 @@
1- Uploads without compression
2- Best reader UI (for a web reader)
3- Uploads from various scanlation groups
4- No official translations, barring some exceptions.
5- Removes content upon DMCA takedown request, has already done so for 7000+ titles.
docs/.vitepress/tooltips/MangaFire.md added +5
@@ -0,0 +1,5 @@
1- The UI is very clean with notification system
2- Uploads both chapter (multi-lang) & volume releases
3- Basic reader UI
4- Watermark on almost every manga chapters
5- Manga uploads are up to x1600.
docs/.vitepress/tooltips/Misskey.md added +1
@@ -0,0 +1 @@
1Registrations are currently limited to Japan only.
\ No newline at end of file
docs/.vitepress/tooltips/Nicotine.md added +1
@@ -0,0 +1 @@
1A client for the Soulseek peer-to-peer file sharing network, primarily used for music.
\ No newline at end of file
docs/.vitepress/tooltips/Oakminati.md added +1
@@ -0,0 +1 @@
1[MANGA Plus](https://mangaplus.shueisha.co.jp/), [Manga UP!](https://global.manga-up.com/) (Main), [SQUARE ENIX](https://squareenixmangaandbooks.square-enix-games.com/en-us)
\ No newline at end of file
docs/.vitepress/tooltips/OpenComic.md added +4
@@ -0,0 +1,4 @@
1- Nice clean UI, has dark mode.
2- Has all the standard functions, including recent history.
3- Has AniList tracking and controller support.
4- Supports Lanczos and other scaling methods.
docs/.vitepress/tooltips/Oppai.md added +1
@@ -0,0 +1 @@
1Late releases, but less compressed than other aggregators.
\ No newline at end of file
docs/.vitepress/tooltips/OtakuStreamers.md added +1
@@ -0,0 +1 @@
1Although new releases are in 1080p, older releases are a mixed bag, ranging from 480p to 720p.
\ No newline at end of file
docs/.vitepress/tooltips/PandaBackup.md added +1
@@ -0,0 +1 @@
1Archive of stuff removed from E-Hentai due to DMCA complaints. Has some obscure stuff deleted on most sites.
\ No newline at end of file
docs/.vitepress/tooltips/Rillant.md added +1
@@ -0,0 +1 @@
1[K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [MANGA Plus](https://mangaplus.shueisha.co.jp/), [VIZ](https://www.viz.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Rule34Paheal.md added +1
@@ -0,0 +1 @@
1Categorizes content by characters, franchises, events (such as holidays), animations, and sound, but limits uploads to 10MB.
\ No newline at end of file
docs/.vitepress/tooltips/Rule34xxx.md added +4
@@ -0,0 +1,4 @@
1- Boasts a larger content library compared to Paheal.
2- Features an extensive tagging system, allowing searches based on descriptions or depicted acts.
3- Allows larger file uploads, up to 100MB.
4- Searching is more user-friendly compared to Paheal.
docs/.vitepress/tooltips/SWId.md added +1
@@ -0,0 +1 @@
1[Kodansha](https://kodansha.us/), [Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/SchaleNetwork.md added +1
@@ -0,0 +1 @@
1Formerly Koharu, has Fakku/Irodori rips (official TLs).
\ No newline at end of file
docs/.vitepress/tooltips/Scylla.md added +1
@@ -0,0 +1 @@
1Formerly Scylla Scans
\ No newline at end of file
docs/.vitepress/tooltips/Shellshock.md added +1
@@ -0,0 +1 @@
1[Kodansha](https://kodansha.us/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Shiru.md added +1
@@ -0,0 +1 @@
1Hard fork of Miru
\ No newline at end of file
docs/.vitepress/tooltips/Shizu.md added +1
@@ -0,0 +1 @@
1[Kodansha](https://kodansha.us/), [SuBLime](https://www.sublimemanga.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Spoilerplus.md added +1
@@ -0,0 +1 @@
1Image host is geo-restricted, so won't load pages in every region. Tested for the US.
\ No newline at end of file
docs/.vitepress/tooltips/Stick.md added +1
@@ -0,0 +1 @@
1[Cross Infinite World](https://www.crossinfworld.com/), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Sudatchi.md added +4
@@ -0,0 +1,4 @@
1- Smaller library size. Good for new airing.
2- Re-encoded to smaller filesize.
3- Uses IPFS
4- Only 1080p atm for most.
docs/.vitepress/tooltips/SumatraPDF.md added +3
@@ -0,0 +1,3 @@
1- Very simple program with all the standard features.
2- Doesn't have a library, but keeps track of recently opened files.
3- Can open a variety of ebook formats (PDF, epub, mobi, cbz/cbr, DjVu, XPS, CHM).
docs/.vitepress/tooltips/TooManyIsekai.md added +1
@@ -0,0 +1 @@
1[J-Novel Club](https://j-novel.club/), [K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [Manga UP!](https://global.manga-up.com/), [ONE PEACE BOOKS](https://www.onepeacebooks.com/), [Seven Seas](https://sevenseasentertainment.com/)
\ No newline at end of file
docs/.vitepress/tooltips/Trite.md added +1
@@ -0,0 +1 @@
1Cover-to-cover (c2c) scans of physical-only books by various publishers.
\ No newline at end of file
docs/.vitepress/tooltips/Ushi.md added +1
@@ -0,0 +1 @@
1[Seven Seas](https://sevenseasentertainment.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/VocaloidRadio.md added +1
@@ -0,0 +1 @@
1Stream URL (192kbps): https://vocaloid.radioca.st/stream
\ No newline at end of file
docs/.vitepress/tooltips/WCO.md added +4
@@ -0,0 +1,4 @@
1- Has both anime and cartoons.
2- Library size is pretty good including old stuff.
3- Uploads are compressed to mini-encode and low res.
4- Movie uploads are paywalled. You can bypass some using wco.tv.
docs/.vitepress/tooltips/WeebCentral.md added +4
@@ -0,0 +1,4 @@
1- Has official translations
2- Compresses chapter images
3- Chapter updates are relatively slow
4- You can use AL sync with atsu.
docs/.vitepress/tooltips/YACReader.md added +6
@@ -0,0 +1,6 @@
1- Has all the standard features, keeps last read history.
2- Doesn't have built-in library like MComix, only the history.
3- The bundled YACLibrary is excellent.
4- Has lots of customization.
5- Can act as a local manga server, like Calibre.
6- But the server client for [Android](https://play.google.com/store/apps/details?id=com.yacreader.yacreader&hl=en&gl=US) and [iOS](https://apps.apple.com/ca/app/yacreader-comic-reader/id635717885) is paid.
docs/.vitepress/tooltips/Yabai.md added +1
@@ -0,0 +1 @@
1E-Hentai clone.
\ No newline at end of file
docs/.vitepress/tooltips/Yomikiru.md added +1
@@ -0,0 +1 @@
1Simple UI with all the basic settings. Has AniList tracking.
\ No newline at end of file
docs/.vitepress/tooltips/Zoro.md added +3
@@ -0,0 +1,3 @@
1- Huge library.
2- Has multi-language softsub.
3- Re-encodes shows for smaller size.
docs/.vitepress/tooltips/akari.md added +1
@@ -0,0 +1 @@
1Scrapes MangaKakalot.
\ No newline at end of file
docs/.vitepress/tooltips/amdl.md added +1
@@ -0,0 +1 @@
1We have not tested their software, use the web downloader for your own security. Best for downloading separate songs instead of albums. For audio quality, use "Original Quality".
\ No newline at end of file
docs/.vitepress/tooltips/anadius.md added +1
@@ -0,0 +1 @@
1[VIZ](https://www.viz.com/)
\ No newline at end of file
docs/.vitepress/tooltips/animez.md added +1
@@ -0,0 +1 @@
1Rips 1080p from Kai.
\ No newline at end of file
docs/.vitepress/tooltips/aninow.md added +1
@@ -0,0 +1 @@
1Scrapes HiAnime(ZoroX) and AnimePahe(BunnyCDN). Aninow is their own uploads.
\ No newline at end of file
docs/.vitepress/tooltips/atosho.md added +1
@@ -0,0 +1 @@
1Offers both DDL hosts and Usenet as download options, but only keeps uploads up to 16GB. DDL files might be auto-deleted by the hosts due to inactivity, unlike Usenet files. You can try [magicNZB](https://magicnzb.com/) for free Usenet downloads, as it allows temp-mails and does not require a CC.
\ No newline at end of file
docs/.vitepress/tooltips/cubari.md added +1
@@ -0,0 +1 @@
1Scrapes MangaDex, WeebCentral, MangaKatana & scanlators.
\ No newline at end of file
docs/.vitepress/tooltips/cupscale.md added +1
@@ -0,0 +1 @@
1Cupscale is not good for color and pages with no screentone.
\ No newline at end of file
docs/.vitepress/tooltips/dab.md added +1
@@ -0,0 +1 @@
1Downloads from the Qobuz streaming platform, which only supports FLAC, not the other formats mentioned in the About page.
\ No newline at end of file
docs/.vitepress/tooltips/demo.md added +1
@@ -0,0 +1 @@
1Demo tooltips for start page
\ No newline at end of file
docs/.vitepress/tooltips/echo.md added +1
@@ -0,0 +1 @@
1Use "extension" as code to load all the extensions.
\ No newline at end of file
docs/.vitepress/tooltips/hef.md added +1
@@ -0,0 +1 @@
1Does not have all the recent fan projects.
\ No newline at end of file
docs/.vitepress/tooltips/hive.md added +1
@@ -0,0 +1 @@
1Formerly Infernal Void Scans, Void Scans and Hive toon
\ No newline at end of file
docs/.vitepress/tooltips/imgdanke.md added +1
@@ -0,0 +1 @@
1Optional for GUI, but doesn't support Pingo v1+ at the moment.
\ No newline at end of file
docs/.vitepress/tooltips/kazamakase.md added +1
@@ -0,0 +1 @@
1Does not get much update but has info about old comics.
\ No newline at end of file
docs/.vitepress/tooltips/kei.md added +1
@@ -0,0 +1 @@
1Maintained by former Tachiyomi contributors
\ No newline at end of file
docs/.vitepress/tooltips/kohi.md added +1
@@ -0,0 +1 @@
1For now, you need to manually install and update the APK(s) from the "apk" folder in the repository. The install and URL buttons are currently non-functional.
\ No newline at end of file
docs/.vitepress/tooltips/komik.md added +1
@@ -0,0 +1 @@
1Mostly up to the artist. Some of them are R2L too.
\ No newline at end of file
docs/.vitepress/tooltips/kureha.md added +1
@@ -0,0 +1 @@
1The site doesn’t offer a search option. To find a specific title, use Google: `LN/WN Title site:vn-meido.com`
\ No newline at end of file
docs/.vitepress/tooltips/linew.md added +1
@@ -0,0 +1 @@
1In 2019, they rebranded LINE WEBTOON as WEBTOON. In some regions, it is still branded as LINE WEBTOON.
\ No newline at end of file
docs/.vitepress/tooltips/mangaclan.md added +1
@@ -0,0 +1 @@
1Scrapes Zinmanga and MangaNato
\ No newline at end of file
docs/.vitepress/tooltips/mangarawspoil.md added +1
@@ -0,0 +1 @@
1Has unusual geo-restrictions. Everything works in Japan, but some content may also be accessible in other regions. Although the watermarks differ, the content remains the same.
\ No newline at end of file
docs/.vitepress/tooltips/megarepo.md added +1
@@ -0,0 +1 @@
1Adds all the repo present in /recloudstream/cs-repos
\ No newline at end of file
docs/.vitepress/tooltips/mirai.md added +1
@@ -0,0 +1 @@
1Syncs the Mangayomi repository and includes their own plugins
\ No newline at end of file
docs/.vitepress/tooltips/miruro.md added +3
@@ -0,0 +1,3 @@
1- Nice and minimal UI.
2- Scrapes HiAnime (Zoro & Bun), AnimeKai (Arc & Gut) Animepahe (Kiwi), Gogo (Gogo & Vid), AnimeZ (Jet).
3- Has built-in AniList support.
docs/.vitepress/tooltips/nHentai.md added +1
@@ -0,0 +1 @@
1Most popular. Decent UI, but compresses images.
\ No newline at end of file
docs/.vitepress/tooltips/ni3x.md added +1
@@ -0,0 +1 @@
1Focuses on Torrents and Ero anime
\ No newline at end of file
docs/.vitepress/tooltips/realm.md added +1
@@ -0,0 +1 @@
1Formerly Realm Scans, Rizz Comics and Realm Oasis
\ No newline at end of file
docs/.vitepress/tooltips/secozzi.md added +1
@@ -0,0 +1 @@
1For Jellyfin and Stremio
\ No newline at end of file
docs/.vitepress/tooltips/tron.md added +1
@@ -0,0 +1 @@
1[Comikey](https://comikey.com/), [J-Novel Club](https://j-novel.club/), [K Manga](https://kmanga.kodansha.com/), [Kodansha](https://kodansha.us/), [Manga UP!](https://global.manga-up.com/), [Seven Seas](https://sevenseasentertainment.com/), [SQUARE ENIX](https://squareenixmangaandbooks.square-enix-games.com/en-us), [VIZ](https://www.viz.com/), [Yen Press](https://yenpress.com/)
\ No newline at end of file
docs/.vitepress/tooltips/utoon.md added +1
@@ -0,0 +1 @@
1Formerly Manhwa Freak, freak scans, freak comics
\ No newline at end of file
docs/.vitepress/tooltips/vidbox.md added +1
@@ -0,0 +1 @@
1Scrapes MangaFire
\ No newline at end of file
docs/.vitepress/tooltips/webtooni.md added +1
@@ -0,0 +1 @@
1Not uploading for a while.
\ No newline at end of file
docs/.vitepress/tooltips/xManager.md added +1
@@ -0,0 +1 @@
1Due to Spotify changes, it doesn't work well in a lot of regions. Switch to echo.
\ No newline at end of file
docs/.vitepress/tooltips/yuani.md added +1
@@ -0,0 +1 @@
1By Anikku dev. Mirrors Kohi-den repo with a few extra extensions
\ No newline at end of file
docs/.vitepress/tooltips/yuzono.md added +1
@@ -0,0 +1 @@
1By Komikku dev. Mirrors Keiyoushi repo with a few extra extensions
\ No newline at end of file
docs/.vitepress/tooltips/zunime.md added +1
@@ -0,0 +1 @@
1Scrapes HiAnime(yuki), Aniwave.se(miko) Animepahe(pahe) & Anizone (shiro)
\ No newline at end of file
docs/.vitepress/types/tooltip.d.ts added +10
@@ -0,0 +1,10 @@
1declare module 'virtual:tooltips' {
2 export interface TooltipData {
3 id: string
4 title: string
5 content: string
6 }
7
8 export const tooltips: TooltipData[]
9 export function getTooltip(id: string): TooltipData | undefined
10}
docs/.vitepress/utils/tooltips.ts added +67
@@ -0,0 +1,67 @@
1/**
2 * Copyright (c) 2024 taskylizard
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import { readdirSync, readFileSync } from "node:fs";
18import { basename, join, resolve } from "pathe";
19import matter from "gray-matter";
20
21export interface TooltipData {
22 id: string;
23 frontmatter: Record<string, string>;
24 content: string;
25}
26
27let tooltipsCache: TooltipData[] | null = null;
28
29export function loadTooltips(): TooltipData[] {
30 if (tooltipsCache) return tooltipsCache;
31
32 const tooltipsDir = resolve(process.cwd(), "docs/.vitepress/tooltips");
33 const tooltips: TooltipData[] = [];
34
35 try {
36 const files = readdirSync(tooltipsDir).filter((file) =>
37 file.endsWith(".md"),
38 );
39
40 for (const file of files) {
41 const filePath = join(tooltipsDir, file);
42 const fileContent = readFileSync(filePath, "utf-8");
43 const { data, content } = matter(fileContent);
44
45 const id = basename(file, ".md");
46 const cleanContent = content.trim();
47
48 tooltips.push({
49 id,
50 frontmatter: data,
51 content: cleanContent,
52 });
53 }
54 } catch (error) {
55 console.warn("Failed to load tooltips:", error);
56 }
57
58 tooltipsCache = tooltips;
59 return tooltips;
60}
61
62export function getTooltip(id: string): TooltipData | undefined {
63 const tooltips = loadTooltips();
64 return tooltips.find((tooltip) => tooltip.id === id);
65}
66
67export const tooltips = loadTooltips();
package.json +2
@@ -28,6 +28,7 @@
2828 "@taskylizard/colors": "^0.0.2",
2929 "@vueuse/core": "^11.3.0",
3030 "floating-vue": "^5.2.2",
31 "gray-matter": "^4.0.3",
3132 "itty-fetcher": "^0.9.4",
3233 "markdown-it": "^14.1.0",
3334 "markdown-it-merge-cells": "^2.0.0",
@@ -39,6 +40,7 @@
3940 "tinyexec": "^0.3.1",
4041 "ufo": "^1.5.4",
4142 "unocss": "0.59.0-beta.1",
43 "vite-plugin-virtual": "^0.4.0",
4244 "vitepress": "^1.6.3",
4345 "vitepress-plugin-tabs": "^0.5.0",
4446 "vue": "^3.5.13",
pnpm-lock.yaml +15
@@ -38,6 +38,9 @@ importers:
3838 floating-vue:
3939 specifier: ^5.2.2
4040 version: 5.2.2(vue@3.5.13(typescript@5.6.3))
41 gray-matter:
42 specifier: ^4.0.3
43 version: 4.0.3
4144 itty-fetcher:
4245 specifier: ^0.9.4
4346 version: 0.9.4
@@ -71,6 +74,9 @@ importers:
7174 unocss:
7275 specifier: 0.59.0-beta.1
7376 version: 0.59.0-beta.1(postcss@8.5.3)(rollup@4.24.4)(vite@5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0))
77 vite-plugin-virtual:
78 specifier: ^0.4.0
79 version: 0.4.0(vite@5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0))
7480 vitepress:
7581 specifier: ^1.6.3
7682 version: 1.6.3(@algolia/client-search@5.21.0)(@types/node@22.10.2)(change-case@5.4.4)(less@4.2.1)(lightningcss@1.30.1)(postcss@8.5.3)(sass@1.83.0)(search-insights@2.17.2)(terser@5.36.0)(typescript@5.6.3)
@@ -4040,6 +4046,11 @@ packages:
40404046 '@nuxt/kit':
40414047 optional: true
40424048
4049 vite-plugin-virtual@0.4.0:
4050 resolution: {integrity: sha512-4N/vrRynD+DV4Uy2XtYxKgtujc/GQy4R7OWiuvDkMLAzS/JMCyn/L35fnaHcMMNMpO2wuXBj/FzqmJeZvy5Jwg==}
4051 peerDependencies:
4052 vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0
4053
40434054 vite-plugin-vue-devtools@7.7.0:
40444055 resolution: {integrity: sha512-1dWiREwIl4JELwXGHXih80hIgjcViMcZGr3j0edo6NQ9kNzAOxMIUgFqc/TO1ary4ZroJUxoB0YDI6jnDf13iQ==}
40454056 engines: {node: '>=v14.21.3'}
@@ -8288,6 +8299,10 @@ snapshots:
82888299 - rollup
82898300 - supports-color
82908301
8302 vite-plugin-virtual@0.4.0(vite@5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0)):
8303 dependencies:
8304 vite: 5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0)
8305
82918306 vite-plugin-vue-devtools@7.7.0(rollup@4.24.4)(vite@5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3)):
82928307 dependencies:
82938308 '@vue/devtools-core': 7.7.0(vite@5.4.19(@types/node@22.10.2)(less@4.2.1)(lightningcss@1.30.1)(sass@1.83.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))