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">
2import { ref } from 'vue'
3
4const props = defineProps<{
5 title?: string
6}>()
7
8const 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(() => {
131131.scrape-table-outer {
132132 position: relative;
133133 margin: 16px 0;
134 background: var(--vp-c-bg);
134135}
135136
136137.scrape-table-wrap {
docs/.vitepress/theme/index.ts +2
@@ -19,6 +19,7 @@ import Tooltip from './components/Tooltip.vue'
1919import { createMediumZoomProvider } from './composables/medium-zoom'
2020import 'virtual:uno.css'
2121import Feedback from './components/Feedback.vue'
22import Collapsible from './components/Collapsible.vue'
2223import ScrapeTable from './components/ScrapeTable.vue'
2324import Layout from './Layout.vue'
2425import './styles/tooltip-hint.css'
@@ -51,6 +52,7 @@ export default {
5152 app.component('Authors', Authors)
5253 app.component('Tooltip', Tooltip)
5354 app.component('Feedback', Feedback)
55 app.component('Collapsible', Collapsible)
5456 app.component('ScrapeTable', ScrapeTable)
5557 createMediumZoomProvider(app, router)
5658 app.use(
docs/.vitepress/theme/styles/style.scss +6 −5
@@ -478,9 +478,9 @@ table tr:nth-child(odd) {
478478 border-color: theme("colors.carnation.800") !important;
479479}
480480
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 {
484484 border-color: theme("colors.brand.800") !important;
485485}
486486
@@ -1470,7 +1470,7 @@ table tr:nth-child(odd) {
14701470 }
14711471
14721472 th, td {
1473 background: transparent !important;
1473 background: var(--vp-c-bg) !important;
14741474 padding: 0 !important;
14751475 border: none !important;
14761476 }
@@ -1489,7 +1489,7 @@ table tr:nth-child(odd) {
14891489 height: 140px;
14901490 background-color: var(--vp-c-bg-soft) !important;
14911491 border-left: 1px solid var(--vp-c-divider) !important;
1492 color: var(--vp-c-text-2);
1492 color: var(--vp-c-text-1) !important;
14931493 font-weight: 600;
14941494 font-size: 13px;
14951495 vertical-align: middle;
@@ -1500,6 +1500,7 @@ table tr:nth-child(odd) {
15001500 vertical-align: bottom;
15011501 height: 140px;
15021502 text-align: center;
1503 background: var(--vp-c-bg) !important;
15031504
15041505 span {
15051506 writing-mode: vertical-lr;
docs/websites.md +2 −2
@@ -27,8 +27,7 @@ outline: 1
2727| [KickassAnime](https://kaa.lt/) ==KAA== | :sup: | :yes: | :msync: | :cc: |
2828| [AniZone](https://anizone.to/) ==AniZone== | :sup: | :no: | :no: | :cc: |
2929
30### Scrape Sources
31
30<Collapsible title="Scrape Sources">
3231<ScrapeTable :sites="[
3332 { name: '1anime', scrapes: { 'Animekai': 'kai & kiwi', 'Anime Nexus': 'nexus', 'Animepahe': 'pahe', 'Anitaku': 'gogo', 'Anizone': 'Zone' } },
3433 { 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
3837 { name: 'Animetsu', scrapes: { 'AnimeGG': 'Meg', 'AnimePahe': 'Pahe', 'AnimeZ': 'Zaza', 'HiAnime': 'Zoro' } },
3938 { name: 'Miruro', scrapes: { 'AnimeKai': 'arc', 'Animepahe': 'kiwi & telli', 'AnimeZ': 'jet', 'HiAnime': 'bee & bun', 'KickassAnime': 'hop & kuz' } }
4039]" />
40</Collapsible>
4141
4242:::details More
4343