Commit 28d6d513f2

28d6d513f2d55b15c856649f3a7089a8eefd0cae

parent: 74703c4ae3

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-11-07 01:15 UTC

mini

Layout: unified · split

docs/.vitepress/theme/components/link-card/Card.vue +26 −2
@@ -18,6 +18,13 @@ const props = withDefaults(
18 18
19const deckMini = inject(DECK_MINI_KEY, ref(false)) 19const deckMini = inject(DECK_MINI_KEY, ref(false))
20const isMini = computed(() => props.mini ?? deckMini.value) 20const isMini = computed(() => props.mini ?? deckMini.value)
21
22const isImageIcon = computed(() => {
23 const icon = props.icon
24 if (!icon) return false
25 return icon.startsWith('/') || icon.startsWith('http') ||
26 icon.startsWith('data:')
27})
21</script> 28</script>
22 29
23<template> 30<template>
@@ -38,8 +45,17 @@ const isMini = computed(() => props.mini ?? deckMini.value)
38 <div 45 <div
39 v-if="props.icon" 46 v-if="props.icon"
40 class="vp-card-icon" 47 class="vp-card-icon"
41 v-html="renderCardIcon(props.icon)" 48 >
42 /> 49 <img
50 v-if="isImageIcon"
51 class="vp-card-icon-img no-zoom"
52 :src="props.icon"
53 alt=""
54 loading="lazy"
55 decoding="async"
56 />
57 <span v-else v-html="renderCardIcon(props.icon)" />
58 </div>
43 <h3 class="vp-card-title">{{ props.title }}</h3> 59 <h3 class="vp-card-title">{{ props.title }}</h3>
44 <p v-if="$slots.default" class="vp-card-details"><slot /></p> 60 <p v-if="$slots.default" class="vp-card-details"><slot /></p>
45 </article> 61 </article>
@@ -86,6 +102,7 @@ const isMini = computed(() => props.mini ?? deckMini.value)
86 align-items: center; 102 align-items: center;
87 margin-bottom: 12px; 103 margin-bottom: 12px;
88 border-radius: 6px; 104 border-radius: 6px;
105 overflow: hidden;
89 background-color: var(--vp-c-default-soft); 106 background-color: var(--vp-c-default-soft);
90 width: 40px; 107 width: 40px;
91 height: 40px; 108 height: 40px;
@@ -93,6 +110,13 @@ const isMini = computed(() => props.mini ?? deckMini.value)
93 transition: background-color 0.25s; 110 transition: background-color 0.25s;
94} 111}
95 112
113.vp-card-icon-img {
114 display: block;
115 width: 100%;
116 height: 100%;
117 object-fit: contain;
118}
119
96.vp-card-title { 120.vp-card-title {
97 margin: 0 0 8px; 121 margin: 0 0 8px;
98 padding: 0; 122 padding: 0;
docs/ext/index.md +22 −22
@@ -20,72 +20,72 @@ og:
20 20
21## Android 21## Android
22 22
23<Deck> 23<Deck mini>
24 <Card title="Mihon" href="/ext/mihon"> 24 <Card title="Mihon" href="/ext/mihon" icon="/ext/icons/mihon.avif">
25 Manga 25 Manga
26 </Card> 26 </Card>
27 <Card title="Aniyomi" href="/ext/aniyomi"> 27 <Card title="Aniyomi" href="/ext/aniyomi" icon="/ext/icons/aniyomi.avif">
28 Anime & Live Action 28 Anime & Live Action
29 </Card> 29 </Card>
30 <Card title="Cloudstream" href="/ext/cloudstream"> 30 <Card title="Cloudstream" href="/ext/cloudstream" icon="/ext/icons/cloudstream.avif">
31 Anime & Live Action 31 Anime & Live Action
32 </Card> 32 </Card>
33 <Card title="Echo" href="/ext/echo"> 33 <Card title="Echo" href="/ext/echo" icon="/ext/icons/echo.avif">
34 Music, Anime & Live Action 34 Music, Anime & Live Action
35 </Card> 35 </Card>
36 <Card title="IReader" href="/ext/ireader"> 36 <Card title="IReader" href="/ext/ireader" icon="/ext/icons/ireader.avif">
37 Novels 37 Novels
38 </Card> 38 </Card>
39 <Card title="Kotatsu" href="/ext/kotatsu"> 39 <Card title="Kotatsu" href="/ext/kotatsu" icon="/ext/icons/kotatsu.avif">
40 Manga 40 Manga
41 </Card> 41 </Card>
42 <Card title="LNReader" href="/ext/lnreader"> 42 <Card title="LNReader" href="/ext/lnreader" icon="/ext/icons/lnreader.avif">
43 Novels 43 Novels
44 </Card> 44 </Card>
45 <Card title="Shosetsu" href="/ext/shosetsu"> 45 <Card title="Shosetsu" href="/ext/shosetsu" icon="/ext/icons/shosetsu.avif">
46 Novels 46 Novels
47 </Card> 47 </Card>
48 <Card title="Tsundoku" href="/ext/tsundoku"> 48 <Card title="Tsundoku" href="/ext/tsundoku" icon="/ext/icons/tsundoku.avif">
49 Novels 49 Novels
50 </Card> 50 </Card>
51</Deck> 51</Deck>
52 52
53## iOS 53## iOS
54 54
55<Deck> 55<Deck mini>
56 <Card title="Aidoku" href="/ext/aidoku"> 56 <Card title="Aidoku" href="/ext/aidoku" icon="/ext/icons/aidoku.avif">
57 Manga & Novels 57 Manga & Novels
58 </Card> 58 </Card>
59 <Card title="Mana" href="/ext/mana"> 59 <Card title="Mana" href="/ext/mana" icon="/ext/icons/mana.avif">
60 Manga & Novels 60 Manga & Novels
61 </Card> 61 </Card>
62 <Card title="Paperback" href="/ext/paperback"> 62 <Card title="Paperback" href="/ext/paperback" icon="/ext/icons/paperback.avif">
63 Manga & Novels 63 Manga & Novels
64 </Card> 64 </Card>
65 <Card title="Suwatte" href="/ext/suwatte"> 65 <Card title="Suwatte" href="/ext/suwatte" icon="/ext/icons/suwatte.avif">
66 Manga & Novels 66 Manga & Novels
67 </Card> 67 </Card>
68 <Card title="Sora" href="/ext/sora"> 68 <Card title="Sora" href="/ext/sora" icon="/ext/icons/sora.avif">
69 Anime, Manga, Novels & Live Action 69 Anime, Manga, Novels & Live Action
70 </Card> 70 </Card>
71</Deck> 71</Deck>
72 72
73## Multi 73## Multi
74 74
75<Deck> 75<Deck mini>
76 <Card title="Hayase" href="/ext/hayase"> 76 <Card title="Hayase" href="/ext/hayase" icon="/ext/icons/hayase.avif">
77 Anime 77 Anime
78 </Card> 78 </Card>
79 <Card title="Mangayomi" href="/ext/mangayomi"> 79 <Card title="Mangayomi" href="/ext/mangayomi" icon="/ext/icons/mangayomi.avif">
80 Manga, Anime, Novels & Live Action 80 Manga, Anime, Novels & Live Action
81 </Card> 81 </Card>
82 <Card title="Nuvio" href="/ext/nuvio"> 82 <Card title="Nuvio" href="/ext/nuvio" icon="/ext/icons/nuvio.avif">
83 Anime, Live Action & others 83 Anime, Live Action & others
84 </Card> 84 </Card>
85 <Card title="Seanime" href="/ext/seanime"> 85 <Card title="Seanime" href="/ext/seanime" icon="/ext/icons/seanime.avif">
86 Anime, Manga, Novels & Live Action 86 Anime, Manga, Novels & Live Action
87 </Card> 87 </Card>
88 <Card title="Stremio" href="/ext/stremio"> 88 <Card title="Stremio" href="/ext/stremio" icon="/ext/icons/stremio.avif">
89 Anime, Live Action & others 89 Anime, Live Action & others
90 </Card> 90 </Card>
91</Deck> 91</Deck>
docs/public/ext/icons/aidoku.avif added

Binary file not shown.

docs/public/ext/icons/aniyomi.avif added

Binary file not shown.

docs/public/ext/icons/cloudstream.avif added

Binary file not shown.

docs/public/ext/icons/echo.avif added

Binary file not shown.

docs/public/ext/icons/hayase.avif added

Binary file not shown.

docs/public/ext/icons/ireader.avif added

Binary file not shown.

docs/public/ext/icons/kotatsu.avif added

Binary file not shown.

docs/public/ext/icons/lnreader.avif added

Binary file not shown.

docs/public/ext/icons/mana.avif added

Binary file not shown.

docs/public/ext/icons/mangayomi.avif added

Binary file not shown.

docs/public/ext/icons/mihon.avif added

Binary file not shown.

docs/public/ext/icons/nuvio.avif added

Binary file not shown.

docs/public/ext/icons/paperback.avif added

Binary file not shown.

docs/public/ext/icons/seanime.avif added

Binary file not shown.

docs/public/ext/icons/shosetsu.avif added

Binary file not shown.

docs/public/ext/icons/sora.avif added

Binary file not shown.

docs/public/ext/icons/stremio.avif added

Binary file not shown.

docs/public/ext/icons/suwatte.avif added

Binary file not shown.

docs/public/ext/icons/tsundoku.avif added

Binary file not shown.