Commit a7d21f0e34
a7d21f0e34ffc7d37a8144293c08e075dc05f65f
parent: 2a189bb976
Unsigned
TubaApollo <86665265+TubaApollo@users.noreply.github.com> · 2026-04-12 14:18 UTC
fix: ScrapeTable rendering inside details blocks and add Collapsible wrapper
Layout: unified · split
docs/.vitepress/theme/components/Collapsible.vue
added
+16
| @@ -0,0 +1,16 @@ |
| 1 | <script setup lang="ts"> |
| 2 | import { ref } from 'vue' |
| 3 | |
| 4 | const props = defineProps<{ |
| 5 | title?: string |
| 6 | }>() |
| 7 | |
| 8 | const open = ref(false) |
| 9 | </script> |
| 10 | |
| 11 | <template> |
| 12 | <details class="details custom-block" :open="open || undefined" @toggle="open = ($event.target as HTMLDetailsElement).open"> |
| 13 | <summary>{{ title || 'Details' }}</summary> |
| 14 | <slot /> |
| 15 | </details> |
| 16 | </template> |
docs/.vitepress/theme/components/ScrapeTable.vue
+1
| @@ -131,6 +131,7 @@ onMounted(() => { |
| 131 | 131 | .scrape-table-outer { |
| 132 | 132 | position: relative; |
| 133 | 133 | margin: 16px 0; |
| 134 | background: var(--vp-c-bg); |
| 134 | 135 | } |
| 135 | 136 | |
| 136 | 137 | .scrape-table-wrap { |
docs/.vitepress/theme/index.ts
+2
| @@ -19,6 +19,7 @@ import Tooltip from './components/Tooltip.vue' |
| 19 | 19 | import { createMediumZoomProvider } from './composables/medium-zoom' |
| 20 | 20 | import 'virtual:uno.css' |
| 21 | 21 | import Feedback from './components/Feedback.vue' |
| 22 | import Collapsible from './components/Collapsible.vue' |
| 22 | 23 | import ScrapeTable from './components/ScrapeTable.vue' |
| 23 | 24 | import Layout from './Layout.vue' |
| 24 | 25 | import './styles/tooltip-hint.css' |
| @@ -51,6 +52,7 @@ export default { |
| 51 | 52 | app.component('Authors', Authors) |
| 52 | 53 | app.component('Tooltip', Tooltip) |
| 53 | 54 | app.component('Feedback', Feedback) |
| 55 | app.component('Collapsible', Collapsible) |
| 54 | 56 | app.component('ScrapeTable', ScrapeTable) |
| 55 | 57 | createMediumZoomProvider(app, router) |
| 56 | 58 | app.use( |
docs/.vitepress/theme/styles/style.scss
+6 −5
| @@ -478,9 +478,9 @@ table tr:nth-child(odd) { |
| 478 | 478 | border-color: theme("colors.carnation.800") !important; |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | | .details.custom-block table tr, |
| 482 | | .details.custom-block table td, |
| 483 | | .details.custom-block table th { |
| 481 | .details.custom-block table:not(.scrape-table) tr, |
| 482 | .details.custom-block table:not(.scrape-table) td, |
| 483 | .details.custom-block table:not(.scrape-table) th { |
| 484 | 484 | border-color: theme("colors.brand.800") !important; |
| 485 | 485 | } |
| 486 | 486 | |
| @@ -1470,7 +1470,7 @@ table tr:nth-child(odd) { |
| 1470 | 1470 | } |
| 1471 | 1471 | |
| 1472 | 1472 | th, td { |
| 1473 | | background: transparent !important; |
| 1473 | background: var(--vp-c-bg) !important; |
| 1474 | 1474 | padding: 0 !important; |
| 1475 | 1475 | border: none !important; |
| 1476 | 1476 | } |
| @@ -1489,7 +1489,7 @@ table tr:nth-child(odd) { |
| 1489 | 1489 | height: 140px; |
| 1490 | 1490 | background-color: var(--vp-c-bg-soft) !important; |
| 1491 | 1491 | border-left: 1px solid var(--vp-c-divider) !important; |
| 1492 | | color: var(--vp-c-text-2); |
| 1492 | color: var(--vp-c-text-1) !important; |
| 1493 | 1493 | font-weight: 600; |
| 1494 | 1494 | font-size: 13px; |
| 1495 | 1495 | vertical-align: middle; |
| @@ -1500,6 +1500,7 @@ table tr:nth-child(odd) { |
| 1500 | 1500 | vertical-align: bottom; |
| 1501 | 1501 | height: 140px; |
| 1502 | 1502 | text-align: center; |
| 1503 | background: var(--vp-c-bg) !important; |
| 1503 | 1504 | |
| 1504 | 1505 | span { |
| 1505 | 1506 | writing-mode: vertical-lr; |
docs/websites.md
+2 −2
| @@ -27,8 +27,7 @@ outline: 1 |
| 27 | 27 | | [KickassAnime](https://kaa.lt/) ==KAA== | :sup: | :yes: | :msync: | :cc: | |
| 28 | 28 | | [AniZone](https://anizone.to/) ==AniZone== | :sup: | :no: | :no: | :cc: | |
| 29 | 29 | |
| 30 | | ### Scrape Sources |
| 31 | | |
| 30 | <Collapsible title="Scrape Sources"> |
| 32 | 31 | <ScrapeTable :sites="[ |
| 33 | 32 | { name: '1anime', scrapes: { 'Animekai': 'kai & kiwi', 'Anime Nexus': 'nexus', 'Animepahe': 'pahe', 'Anitaku': 'gogo', 'Anizone': 'Zone' } }, |
| 34 | 33 | { name: 'Anidap', scrapes: { 'Animepahe': 'pahe', 'Anify': 'lofi', 'AniWave': 'neko', 'AnimeKai': 'ozzy', 'AniXL': 'kuro', 'AniZone': 'zone', 'HiAnime': 'yuki', 'KickassAnime': 'kami', 'Sudatchi': 'sora' } }, |
| @@ -38,6 +37,7 @@ outline: 1 |
| 38 | 37 | { name: 'Animetsu', scrapes: { 'AnimeGG': 'Meg', 'AnimePahe': 'Pahe', 'AnimeZ': 'Zaza', 'HiAnime': 'Zoro' } }, |
| 39 | 38 | { name: 'Miruro', scrapes: { 'AnimeKai': 'arc', 'Animepahe': 'kiwi & telli', 'AnimeZ': 'jet', 'HiAnime': 'bee & bun', 'KickassAnime': 'hop & kuz' } } |
| 40 | 39 | ]" /> |
| 40 | </Collapsible> |
| 41 | 41 | |
| 42 | 42 | :::details More |
| 43 | 43 | |