Commit a11db1db8e
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/extrepo/ExtensionRepos.vue +5 −2
| @@ -22,11 +22,14 @@ const allSites = computed<MatchedSite[]>(() => { | |||
| 22 | const sites: MatchedSite[] = [] | 22 | const sites: MatchedSite[] = [] |
| 23 | for (const repo of props.repos) { | 23 | for (const repo of props.repos) { |
| 24 | if (repo.variants?.length) { | 24 | if (repo.variants?.length) { |
| 25 | // search fix for variations of setup. (mangayomi and kotatsu) | ||
| 26 | const sameRepoName = repo.repoName ? stripHtml(repo.name) : undefined | ||
| 25 | for (const variant of repo.variants) { | 27 | for (const variant of repo.variants) { |
| 26 | const url = mangayomiCopyValue(variant) | 28 | const url = mangayomiCopyValue(variant) |
| 27 | if (!url) continue | 29 | if (!url) continue |
| 30 | const repoName = sameRepoName ?? variant.label | ||
| 28 | for (const site of repoData[url]?.sites ?? []) { | 31 | for (const site of repoData[url]?.sites ?? []) { |
| 29 | sites.push({ ...site, repoName: variant.label }) | 32 | sites.push({ ...site, repoName }) |
| 30 | } | 33 | } |
| 31 | } | 34 | } |
| 32 | continue | 35 | continue |
| @@ -63,7 +66,7 @@ const isFiltering = computed(() => { | |||
| 63 | const filteredSites = computed(() => { | 66 | const filteredSites = computed(() => { |
| 64 | const q = query.value.trim().toLowerCase() | 67 | const q = query.value.trim().toLowerCase() |
| 65 | return allSites.value.filter(site => { | 68 | return allSites.value.filter(site => { |
| 66 | if (q && !site.name.toLowerCase().includes(q)) return false | 69 | if (q && !site.name.toLowerCase().includes(q) && !site.url.toLowerCase().includes(q)) return false |
| 67 | if (langFilter.value && site.lang !== langFilter.value) return false | 70 | if (langFilter.value && site.lang !== langFilter.value) return false |
| 68 | if (ratingFilter.value !== 'all' && site.rating !== ratingFilter.value) return false | 71 | if (ratingFilter.value !== 'all' && site.rating !== ratingFilter.value) return false |
| 69 | if (site.contentType && excludedContentTypes.value.has(site.contentType)) return false | 72 | if (site.contentType && excludedContentTypes.value.has(site.contentType)) return false |
docs/.vitepress/theme/components/extrepo/RepoRow.vue +13 −3
| @@ -78,7 +78,7 @@ function variantSites(variant: RepoVariant) { | |||
| 78 | <template v-if="headerVariant"> | 78 | <template v-if="headerVariant"> |
| 79 | <a class="ext-btn ext-btn-install" :href="mangayomiHref(repo, headerVariant)"> | 79 | <a class="ext-btn ext-btn-install" :href="mangayomiHref(repo, headerVariant)"> |
| 80 | <span class="i-lucide:download" /> | 80 | <span class="i-lucide:download" /> |
| 81 | Install | 81 | <span class="ext-btn-install-label">Install</span> |
| 82 | </a> | 82 | </a> |
| 83 | <a class="ext-btn ext-btn-livecontainer" :href="mangayomiLiveContainerHref(repo, headerVariant)" title="Install via LiveContainer (iOS)"> | 83 | <a class="ext-btn ext-btn-livecontainer" :href="mangayomiLiveContainerHref(repo, headerVariant)" title="Install via LiveContainer (iOS)"> |
| 84 | <span class="i-mdi:apple" /> | 84 | <span class="i-mdi:apple" /> |
| @@ -103,7 +103,7 @@ function variantSites(variant: RepoVariant) { | |||
| 103 | <template v-else-if="showActions"> | 103 | <template v-else-if="showActions"> |
| 104 | <a v-if="installUrl" class="ext-btn ext-btn-install" :href="installUrl"> | 104 | <a v-if="installUrl" class="ext-btn ext-btn-install" :href="installUrl"> |
| 105 | <span class="i-lucide:download" /> | 105 | <span class="i-lucide:download" /> |
| 106 | Install | 106 | <span class="ext-btn-install-label">Install</span> |
| 107 | </a> | 107 | </a> |
| 108 | <button class="ext-btn ext-btn-copy" type="button" @click="copyUrl"> | 108 | <button class="ext-btn ext-btn-copy" type="button" @click="copyUrl"> |
| 109 | <span v-if="copied" class="i-lucide:check" /> | 109 | <span v-if="copied" class="i-lucide:check" /> |
| @@ -133,7 +133,7 @@ function variantSites(variant: RepoVariant) { | |||
| 133 | <template v-if="showActions"> | 133 | <template v-if="showActions"> |
| 134 | <a class="ext-btn ext-btn-install" :href="mangayomiHref(repo, variant)"> | 134 | <a class="ext-btn ext-btn-install" :href="mangayomiHref(repo, variant)"> |
| 135 | <span class="i-lucide:download" /> | 135 | <span class="i-lucide:download" /> |
| 136 | Install | 136 | <span class="ext-btn-install-label">Install</span> |
| 137 | </a> | 137 | </a> |
| 138 | <a class="ext-btn ext-btn-livecontainer" :href="mangayomiLiveContainerHref(repo, variant)" title="Install via LiveContainer (iOS)"> | 138 | <a class="ext-btn ext-btn-livecontainer" :href="mangayomiLiveContainerHref(repo, variant)" title="Install via LiveContainer (iOS)"> |
| 139 | <span class="i-mdi:apple" /> | 139 | <span class="i-mdi:apple" /> |
| @@ -321,4 +321,14 @@ function variantSites(variant: RepoVariant) { | |||
| 321 | font-size: 13px; | 321 | font-size: 13px; |
| 322 | color: var(--vp-c-text-2); | 322 | color: var(--vp-c-text-2); |
| 323 | } | 323 | } |
| 324 | |||
| 325 | @media (max-width: 767px) { | ||
| 326 | .ext-btn-install { | ||
| 327 | padding: 5px 8px; | ||
| 328 | } | ||
| 329 | |||
| 330 | .ext-btn-install-label { | ||
| 331 | display: none; | ||
| 332 | } | ||
| 333 | } | ||
| 324 | </style> | 334 | </style> |
docs/ext/mihon.md +2 −2
| @@ -74,7 +74,7 @@ Due to DMCA takedown notices, [Tachiyomi](https://github.com/tachiyomiorg) (now | |||
| 74 | 74 | ||
| 75 | #### Adding Repo | 75 | #### Adding Repo |
| 76 | - **Auto:** Click on **Install** and the repo will be sideloaded automatically. | 76 | - **Auto:** Click on **Install** and the repo will be sideloaded automatically. |
| 77 | - **Manual:** Copy the **URL** (from the manual column) and put it in **:mdi-dots-horizontal:More -> :mdi-cog-outline:Settings -> :mdi-compass-outline:Browse -> Extension repos**. | 77 | - **Manual:** Copy the **URL** and put it in **:mdi-dots-horizontal:More -> :mdi-cog-outline:Settings -> :mdi-compass-outline:Browse -> Extension repos**. |
| 78 | ___ | 78 | ___ |
| 79 | #### Adding Extension | 79 | #### Adding Extension |
| 80 | 80 | ||
| @@ -91,7 +91,7 @@ ___ | |||
| 91 | 91 | ||
| 92 | #### Adding Repo | 92 | #### Adding Repo |
| 93 | - **Auto:** Click on **Install** and the repo will be sideloaded automatically. | 93 | - **Auto:** Click on **Install** and the repo will be sideloaded automatically. |
| 94 | - **Manual:** Copy the **URL** (from the manual column) and put it in: **Profile avatar (top right) -> :mdi-cog:Settings -> :e:Extensions -> Add Anime/Manga Repo**. | 94 | - **Manual:** Copy the **URL** and put it in: **Profile avatar (top right) -> :mdi-cog:Settings -> :e:Extensions -> Add Anime/Manga Repo**. |
| 95 | 95 | ||
| 96 | ::: tip for torrent extensions | 96 | ::: tip for torrent extensions |
| 97 | To activate torrent features, navigate to **Profile avatar (top right) -> :mdi-cog:Settings -> :mdi-silverware-fork-knife:Add-ons**. Then download and install the **:mag:Torrent Add-on**. Afterwards, switch on **:mdi-server:Enable Torrent**. | 97 | To activate torrent features, navigate to **Profile avatar (top right) -> :mdi-cog:Settings -> :mdi-silverware-fork-knife:Add-ons**. Then download and install the **:mag:Torrent Add-on**. Afterwards, switch on **:mdi-server:Enable Torrent**. |