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(() => {
131.scrape-table-outer { 131.scrape-table-outer {
132 position: relative; 132 position: relative;
133 margin: 16px 0; 133 margin: 16px 0;
134 background: var(--vp-c-bg);
134} 135}
135 136
136.scrape-table-wrap { 137.scrape-table-wrap {
docs/.vitepress/theme/index.ts +2
@@ -19,6 +19,7 @@ import Tooltip from './components/Tooltip.vue'
19import { createMediumZoomProvider } from './composables/medium-zoom' 19import { createMediumZoomProvider } from './composables/medium-zoom'
20import 'virtual:uno.css' 20import 'virtual:uno.css'
21import Feedback from './components/Feedback.vue' 21import Feedback from './components/Feedback.vue'
22import Collapsible from './components/Collapsible.vue'
22import ScrapeTable from './components/ScrapeTable.vue' 23import ScrapeTable from './components/ScrapeTable.vue'
23import Layout from './Layout.vue' 24import Layout from './Layout.vue'
24import './styles/tooltip-hint.css' 25import './styles/tooltip-hint.css'
@@ -51,6 +52,7 @@ export default {
51 app.component('Authors', Authors) 52 app.component('Authors', Authors)
52 app.component('Tooltip', Tooltip) 53 app.component('Tooltip', Tooltip)
53 app.component('Feedback', Feedback) 54 app.component('Feedback', Feedback)
55 app.component('Collapsible', Collapsible)
54 app.component('ScrapeTable', ScrapeTable) 56 app.component('ScrapeTable', ScrapeTable)
55 createMediumZoomProvider(app, router) 57 createMediumZoomProvider(app, router)
56 app.use( 58 app.use(
docs/.vitepress/theme/styles/style.scss +6 −5
@@ -478,9 +478,9 @@ table tr:nth-child(odd) {
478 border-color: theme("colors.carnation.800") !important; 478 border-color: theme("colors.carnation.800") !important;
479} 479}
480 480
481.details.custom-block table tr, 481.details.custom-block table:not(.scrape-table) tr,
482.details.custom-block table td, 482.details.custom-block table:not(.scrape-table) td,
483.details.custom-block table th { 483.details.custom-block table:not(.scrape-table) th {
484 border-color: theme("colors.brand.800") !important; 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 th, td { 1472 th, td {
1473 background: transparent !important; 1473 background: var(--vp-c-bg) !important;
1474 padding: 0 !important; 1474 padding: 0 !important;
1475 border: none !important; 1475 border: none !important;
1476 } 1476 }
@@ -1489,7 +1489,7 @@ table tr:nth-child(odd) {
1489 height: 140px; 1489 height: 140px;
1490 background-color: var(--vp-c-bg-soft) !important; 1490 background-color: var(--vp-c-bg-soft) !important;
1491 border-left: 1px solid var(--vp-c-divider) !important; 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 font-weight: 600; 1493 font-weight: 600;
1494 font-size: 13px; 1494 font-size: 13px;
1495 vertical-align: middle; 1495 vertical-align: middle;
@@ -1500,6 +1500,7 @@ table tr:nth-child(odd) {
1500 vertical-align: bottom; 1500 vertical-align: bottom;
1501 height: 140px; 1501 height: 140px;
1502 text-align: center; 1502 text-align: center;
1503 background: var(--vp-c-bg) !important;
1503 1504
1504 span { 1505 span {
1505 writing-mode: vertical-lr; 1506 writing-mode: vertical-lr;
docs/websites.md +2 −2
@@ -27,8 +27,7 @@ outline: 1
27| [KickassAnime](https://kaa.lt/) ==KAA== | :sup: | :yes: | :msync: | :cc: | 27| [KickassAnime](https://kaa.lt/) ==KAA== | :sup: | :yes: | :msync: | :cc: |
28| [AniZone](https://anizone.to/) ==AniZone== | :sup: | :no: | :no: | :cc: | 28| [AniZone](https://anizone.to/) ==AniZone== | :sup: | :no: | :no: | :cc: |
29 29
30### Scrape Sources 30<Collapsible title="Scrape Sources">
31
32<ScrapeTable :sites="[ 31<ScrapeTable :sites="[
33 { name: '1anime', scrapes: { 'Animekai': 'kai & kiwi', 'Anime Nexus': 'nexus', 'Animepahe': 'pahe', 'Anitaku': 'gogo', 'Anizone': 'Zone' } }, 32 { name: '1anime', scrapes: { 'Animekai': 'kai & kiwi', 'Anime Nexus': 'nexus', 'Animepahe': 'pahe', 'Anitaku': 'gogo', 'Anizone': 'Zone' } },
34 { name: 'Anidap', scrapes: { 'Animepahe': 'pahe', 'Anify': 'lofi', 'AniWave': 'neko', 'AnimeKai': 'ozzy', 'AniXL': 'kuro', 'AniZone': 'zone', 'HiAnime': 'yuki', 'KickassAnime': 'kami', 'Sudatchi': 'sora' } }, 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 { name: 'Animetsu', scrapes: { 'AnimeGG': 'Meg', 'AnimePahe': 'Pahe', 'AnimeZ': 'Zaza', 'HiAnime': 'Zoro' } }, 37 { name: 'Animetsu', scrapes: { 'AnimeGG': 'Meg', 'AnimePahe': 'Pahe', 'AnimeZ': 'Zaza', 'HiAnime': 'Zoro' } },
39 { name: 'Miruro', scrapes: { 'AnimeKai': 'arc', 'Animepahe': 'kiwi & telli', 'AnimeZ': 'jet', 'HiAnime': 'bee & bun', 'KickassAnime': 'hop & kuz' } } 38 { name: 'Miruro', scrapes: { 'AnimeKai': 'arc', 'Animepahe': 'kiwi & telli', 'AnimeZ': 'jet', 'HiAnime': 'bee & bun', 'KickassAnime': 'hop & kuz' } }
40]" /> 39]" />
40</Collapsible>
41 41
42:::details More 42:::details More
43 43