Commit bf63a29611

bf63a29611d2c5ee933239a07c619eb37a266690

parent: bc9df8f510

Unsigned

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

b

Layout: unified · split

docs/.vitepress/configs/constants.ts +40 −49
@@ -72,14 +72,7 @@ export const homeCards: HomeCard[] = [
7272 link: '/games'
7373 },
7474 {
75 id: 'nonen',
76 icon: ':lucide-map:',
77 title: 'Non-English',
78 details: 'Otaku resources for other regions',
79 link: '/nonen'
80 },
81 {
82 id: 'nonen-multilingual',
75 id: 'multilingual',
8376 icon: ':lucide-map:',
8477 title: 'Multilingual',
8578 details: 'Anime & manga with multi-language support',
@@ -87,7 +80,7 @@ export const homeCards: HomeCard[] = [
8780 section: 'Non-English'
8881 },
8982 {
90 id: 'nonen-arabic',
83 id: 'arabic',
9184 icon: ':lucide-map:',
9285 title: 'Arabic',
9386 details: 'Anime, manga & novels',
@@ -95,7 +88,7 @@ export const homeCards: HomeCard[] = [
9588 section: 'Non-English'
9689 },
9790 {
98 id: 'nonen-chinese',
91 id: 'chinese',
9992 icon: ':lucide-map:',
10093 title: 'Chinese',
10194 details: 'Anime, manhua & novels',
@@ -103,15 +96,7 @@ export const homeCards: HomeCard[] = [
10396 section: 'Non-English'
10497 },
10598 {
106 id: 'nonen-hebrew',
107 icon: ':lucide-map:',
108 title: 'Hebrew',
109 details: 'Anime & manga',
110 link: '/nonen/hebrew',
111 section: 'Non-English'
112 },
113 {
114 id: 'nonen-indian',
99 id: 'indian',
115100 icon: ':lucide-map:',
116101 title: 'Indian',
117102 details: 'Anime & cartoons',
@@ -119,7 +104,7 @@ export const homeCards: HomeCard[] = [
119104 section: 'Non-English'
120105 },
121106 {
122 id: 'nonen-indonesian',
107 id: 'indonesian',
123108 icon: ':lucide-map:',
124109 title: 'Indonesian',
125110 details: 'Anime, manga & light novels',
@@ -127,7 +112,7 @@ export const homeCards: HomeCard[] = [
127112 section: 'Non-English'
128113 },
129114 {
130 id: 'nonen-japanese',
115 id: 'japanese',
131116 icon: ':lucide-map:',
132117 title: 'Japanese',
133118 details: 'Raw manga & direct downloads',
@@ -135,7 +120,7 @@ export const homeCards: HomeCard[] = [
135120 section: 'Non-English'
136121 },
137122 {
138 id: 'nonen-korean',
123 id: 'korean',
139124 icon: ':lucide-map:',
140125 title: 'Korean',
141126 details: 'Manhwa & anime',
@@ -143,7 +128,7 @@ export const homeCards: HomeCard[] = [
143128 section: 'Non-English'
144129 },
145130 {
146 id: 'nonen-turkish',
131 id: 'turkish',
147132 icon: ':lucide-map:',
148133 title: 'Turkish',
149134 details: 'Anime & manga',
@@ -151,7 +136,7 @@ export const homeCards: HomeCard[] = [
151136 section: 'Non-English'
152137 },
153138 {
154 id: 'nonen-vietnamese',
139 id: 'vietnamese',
155140 icon: ':lucide-map:',
156141 title: 'Vietnamese',
157142 details: 'Anime, comics & novels',
@@ -159,15 +144,7 @@ export const homeCards: HomeCard[] = [
159144 section: 'Non-English'
160145 },
161146 {
162 id: 'nonen-balkan',
163 icon: ':lucide-map:',
164 title: 'Balkan',
165 details: 'Anime, cartoons & manga',
166 link: '/nonen/balkan',
167 section: 'Non-English'
168 },
169 {
170 id: 'nonen-catalan',
147 id: 'catalan',
171148 icon: ':lucide-map:',
172149 title: 'Catalan',
173150 details: 'Anime & manga',
@@ -175,7 +152,7 @@ export const homeCards: HomeCard[] = [
175152 section: 'Non-English'
176153 },
177154 {
178 id: 'nonen-french',
155 id: 'french',
179156 icon: ':lucide-map:',
180157 title: 'French',
181158 details: 'Anime & manga',
@@ -183,7 +160,7 @@ export const homeCards: HomeCard[] = [
183160 section: 'Non-English'
184161 },
185162 {
186 id: 'nonen-german',
163 id: 'german',
187164 icon: ':lucide-map:',
188165 title: 'German',
189166 details: 'Anime, manga & communities',
@@ -191,7 +168,7 @@ export const homeCards: HomeCard[] = [
191168 section: 'Non-English'
192169 },
193170 {
194 id: 'nonen-greek',
171 id: 'greek',
195172 icon: ':lucide-map:',
196173 title: 'Greek',
197174 details: 'Anime',
@@ -199,7 +176,7 @@ export const homeCards: HomeCard[] = [
199176 section: 'Non-English'
200177 },
201178 {
202 id: 'nonen-hungarian',
179 id: 'hungarian',
203180 icon: ':lucide-map:',
204181 title: 'Hungarian',
205182 details: 'Anime',
@@ -207,7 +184,7 @@ export const homeCards: HomeCard[] = [
207184 section: 'Non-English'
208185 },
209186 {
210 id: 'nonen-italian',
187 id: 'italian',
211188 icon: ':lucide-map:',
212189 title: 'Italian',
213190 details: 'Anime, manga & info',
@@ -215,7 +192,7 @@ export const homeCards: HomeCard[] = [
215192 section: 'Non-English'
216193 },
217194 {
218 id: 'nonen-lithuanian',
195 id: 'lithuanian',
219196 icon: ':lucide-map:',
220197 title: 'Lithuanian',
221198 details: 'Anime',
@@ -223,7 +200,7 @@ export const homeCards: HomeCard[] = [
223200 section: 'Non-English'
224201 },
225202 {
226 id: 'nonen-polish',
203 id: 'polish',
227204 icon: ':lucide-map:',
228205 title: 'Polish',
229206 details: 'Anime & apps',
@@ -231,7 +208,7 @@ export const homeCards: HomeCard[] = [
231208 section: 'Non-English'
232209 },
233210 {
234 id: 'nonen-portuguese',
211 id: 'portuguese',
235212 icon: ':lucide-map:',
236213 title: 'Portuguese',
237214 details: 'Anime, manga & tokusatsu',
@@ -239,7 +216,7 @@ export const homeCards: HomeCard[] = [
239216 section: 'Non-English'
240217 },
241218 {
242 id: 'nonen-romanian',
219 id: 'romanian',
243220 icon: ':lucide-map:',
244221 title: 'Romanian',
245222 details: 'Anime',
@@ -247,7 +224,7 @@ export const homeCards: HomeCard[] = [
247224 section: 'Non-English'
248225 },
249226 {
250 id: 'nonen-russian',
227 id: 'russian',
251228 icon: ':lucide-map:',
252229 title: 'Russian',
253230 details: 'Anime, manga & trackers',
@@ -255,7 +232,15 @@ export const homeCards: HomeCard[] = [
255232 section: 'Non-English'
256233 },
257234 {
258 id: 'nonen-spanish',
235 id: 'serbian',
236 icon: ':lucide-map:',
237 title: 'Serbian',
238 details: 'Anime, cartoons & manga',
239 link: '/nonen/serbian',
240 section: 'Non-English'
241 },
242 {
243 id: 'spanish',
259244 icon: ':lucide-map:',
260245 title: 'Spanish',
261246 details: 'Anime, manga & light novels',
@@ -263,7 +248,7 @@ export const homeCards: HomeCard[] = [
263248 section: 'Non-English'
264249 },
265250 {
266 id: 'nonen-ukrainian',
251 id: 'ukrainian',
267252 icon: ':lucide-map:',
268253 title: 'Ukrainian',
269254 details: 'Anime & manga',
@@ -300,6 +285,14 @@ export const homeCards: HomeCard[] = [
300285 link: '/ext',
301286 featured: true
302287 },
288 {
289 id: 'nonen',
290 icon: ':lucide-map:',
291 title: 'Non-English',
292 details: 'Otaku resources for other regions',
293 link: '/nonen',
294 featured: true
295 },
303296 {
304297 id: 'guides',
305298 icon: ':lucide-book-key:',
@@ -321,8 +314,7 @@ export const homeCards: HomeCard[] = [
321314 icon: ':lucide-magnet:',
322315 title: 'Torrenting',
323316 details: 'All the basic how-tos about torrenting',
324 link: '/torrenting',
325 featured: true
317 link: '/torrenting'
326318 },
327319 {
328320 id: 'japan',
@@ -774,7 +766,6 @@ export const sidebar: DefaultTheme.Sidebar = [
774766 items: [
775767 { text: 'Arabic', link: '/nonen/arabic' },
776768 { text: 'Chinese', link: '/nonen/chinese' },
777 { text: 'Hebrew', link: '/nonen/hebrew' },
778769 { text: 'Indian', link: '/nonen/indian' },
779770 { text: 'Indonesian', link: '/nonen/indonesian' },
780771 { text: 'Japanese', link: '/nonen/japanese' },
@@ -787,7 +778,6 @@ export const sidebar: DefaultTheme.Sidebar = [
787778 text: 'Europe',
788779 collapsed: true,
789780 items: [
790 { text: 'Balkan', link: '/nonen/balkan' },
791781 { text: 'Catalan', link: '/nonen/catalan' },
792782 { text: 'French', link: '/nonen/french' },
793783 { text: 'German', link: '/nonen/german' },
@@ -799,6 +789,7 @@ export const sidebar: DefaultTheme.Sidebar = [
799789 { text: 'Portuguese', link: '/nonen/portuguese' },
800790 { text: 'Romanian', link: '/nonen/romanian' },
801791 { text: 'Russian', link: '/nonen/russian' },
792 { text: 'Serbian', link: '/nonen/serbian' },
802793 { text: 'Spanish', link: '/nonen/spanish' },
803794 { text: 'Ukrainian', link: '/nonen/ukrainian' }
804795 ]
docs/.vitepress/theme/components/HomeFeatures.vue +6 −14
@@ -1,11 +1,12 @@
11<script setup lang="ts">
22import { ArrowLeft } from 'lucide-vue-next'
3import { renderCardIcon } from './link-card/iconMarkup'
34import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
45import type { HomeCard } from '../../configs/constants'
56
67const props = defineProps<{ cards: HomeCard[] }>()
78
8const STORAGE_KEY = 'wotaku-home-cards-v2'
9const STORAGE_KEY = 'wotaku-home-cards-v3'
910const PREFS_KEY = 'wotaku-home-prefs-v1'
1011
1112interface CardState {
@@ -73,15 +74,6 @@ const panelGrid = computed(() => {
7374 return undefined
7475})
7576
76const KNOWN_PREFIXES = /^(lucide|mdi|ic|mingcute|material-symbols|simple-icons|uil|octicon|logos|akar-icons|map|bi|streamline-logos|streamline-ultimate|streamline-sharp|iconoir)-/
77
78function cardIcon(card: HomeCard) {
79 return card.icon.replace(/:([A-Za-z0-9_+-]+):/g, (_, markup) => {
80 const cls = KNOWN_PREFIXES.test(markup) ? markup : `twemoji-${markup}`
81 return `<span class="i-${cls}"></span>`
82 })
83}
84
8577/* ── Manager panel ── */
8678const panelOpen = ref(false)
8779const dropdownOpen = ref(false)
@@ -318,7 +310,7 @@ function onHandlePointerUp() {
318310 >
319311 <a class="card" :href="card.link">
320312 <article class="box">
321 <div class="icon" v-html="cardIcon(card)" />
313 <div class="icon" v-html="renderCardIcon(card.icon)" />
322314 <h2 class="title">{{ card.title }}</h2>
323315 <p class="details">{{ card.details }}</p>
324316 </article>
@@ -372,7 +364,7 @@ function onHandlePointerUp() {
372364 >
373365 <span class="i-lucide-grip-vertical" />
374366 </span>
375 <span class="row-icon" v-html="cardIcon(card)" />
367 <span class="row-icon" v-html="renderCardIcon(card.icon)" />
376368 <span class="row-name">{{ card.title }}</span>
377369 <button
378370 class="row-toggle active"
@@ -399,7 +391,7 @@ function onHandlePointerUp() {
399391 @mouseleave="hideCardTooltip"
400392 >
401393 <span class="row-handle-spacer" aria-hidden="true" />
402 <span class="row-icon" v-html="cardIcon(card)" />
394 <span class="row-icon" v-html="renderCardIcon(card.icon)" />
403395 <span class="row-name">{{ card.title }}</span>
404396 <button
405397 class="row-toggle"
@@ -544,7 +536,7 @@ function onHandlePointerUp() {
544536 class="drag-ghost"
545537 :style="{ left: ghostPos.x + 'px', top: ghostPos.y + 'px' }"
546538 >
547 <span class="row-icon" v-html="cardIcon(cardMap.get(dragging)!)" />
539 <span class="row-icon" v-html="renderCardIcon(cardMap.get(dragging)!.icon)" />
548540 <span class="drag-ghost-name">{{ cardMap.get(dragging)?.title }}</span>
549541 </div>
550542 </Transition>
docs/.vitepress/theme/components/link-card/Card.vue +21
@@ -1,7 +1,10 @@
11<script setup lang="ts">
2import { renderCardIcon } from './iconMarkup'
3
24const props = defineProps<{
35 href: string
46 title: string
7 icon?: string
58 download?: boolean
69}>()
710</script>
@@ -17,6 +20,11 @@ const props = defineProps<{
1720 class="vp-card-container"
1821 :class="{ 'vp-card-container--no-details': !$slots.default }"
1922 >
23 <div
24 v-if="props.icon"
25 class="vp-card-icon"
26 v-html="renderCardIcon(props.icon)"
27 />
2028 <h3 class="vp-card-title">{{ props.title }}</h3>
2129 <p v-if="$slots.default" class="vp-card-details"><slot /></p>
2230 </article>
@@ -57,6 +65,19 @@ const props = defineProps<{
5765 margin-bottom: 0;
5866}
5967
68.vp-card-icon {
69 display: flex;
70 justify-content: center;
71 align-items: center;
72 margin-bottom: 12px;
73 border-radius: 6px;
74 background-color: var(--vp-c-default-soft);
75 width: 40px;
76 height: 40px;
77 font-size: 22px;
78 transition: background-color 0.25s;
79}
80
6081.vp-card-title {
6182 margin: 0 0 8px;
6283 padding: 0;
docs/.vitepress/theme/components/link-card/iconMarkup.ts added +18
@@ -0,0 +1,18 @@
1/**
2 * All Rights Reserved
3 *
4 * Copyright (c) 2025 taskylizard
5 *
6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7 */
8const KNOWN_PREFIXES =
9 /^(lucide|mdi|ic|mingcute|material-symbols|simple-icons|uil|octicon|logos|akar-icons|map|bi|streamline-logos|streamline-ultimate|streamline-sharp|iconoir|twemoji)-/
10
11export function renderCardIcon(icon: string) {
12 if (!icon.includes(':')) return `<span class="${icon}"></span>`
13
14 return icon.replace(/:([A-Za-z0-9_+-]+):/g, (_, markup) => {
15 const cls = KNOWN_PREFIXES.test(markup) ? markup : `twemoji-${markup}`
16 return `<span class="i-${cls}"></span>`
17 })
18}
docs/nonen/hebrew.md deleted −15
@@ -1,15 +0,0 @@
1---
2title: Hebrew
3description: Anime, manga & light novel resources for Hebrew
4outline: 2
5og:
6 image: /embed/nonen.png
7---
8
9## Anime
10
11- [AnimeIL-TV](https://www.animeil-tv.com/)
12
13## Manga
14
15- [Mangashelf](https://mangashelf.co.il/)
docs/nonen/index.md +23 −24
@@ -18,38 +18,37 @@ og:
1818## Global
1919
2020<Deck>
21 <Card title="Multilingual" href="/nonen/multilingual" />
21 <Card title="Multilingual" href="/nonen/multilingual" icon=":twemoji-globe-showing-asia-australia:" />
2222</Deck>
2323
2424## Asia
2525
2626<Deck>
27 <Card title="Arabic" href="/nonen/arabic" />
28 <Card title="Chinese" href="/nonen/chinese" />
29 <Card title="Hebrew" href="/nonen/hebrew" />
30 <Card title="Indian" href="/nonen/indian" />
31 <Card title="Indonesian" href="/nonen/indonesian" />
32 <Card title="Japanese" href="/nonen/japanese" />
33 <Card title="Korean" href="/nonen/korean" />
34 <Card title="Turkish" href="/nonen/turkish" />
35 <Card title="Vietnamese" href="/nonen/vietnamese" />
27 <Card title="Arabic" href="/nonen/arabic" icon=":twemoji-flag-united-arab-emirates:" />
28 <Card title="Chinese" href="/nonen/chinese" icon=":twemoji-flag-china:" />
29 <Card title="Indian" href="/nonen/indian" icon=":twemoji-flag-india:" />
30 <Card title="Indonesian" href="/nonen/indonesian" icon=":twemoji-flag-indonesia:" />
31 <Card title="Japanese" href="/nonen/japanese" icon=":twemoji-flag-japan:" />
32 <Card title="Korean" href="/nonen/korean" icon=":twemoji-flag-south-korea:" />
33 <Card title="Turkish" href="/nonen/turkish" icon=":twemoji-flag-turkiye:" />
34 <Card title="Vietnamese" href="/nonen/vietnamese" icon=":twemoji-flag-vietnam:" />
3635</Deck>
3736
3837## Europe
3938
4039<Deck>
41 <Card title="Balkan" href="/nonen/balkan" />
42 <Card title="Catalan" href="/nonen/catalan" />
43 <Card title="French" href="/nonen/french" />
44 <Card title="German" href="/nonen/german" />
45 <Card title="Greek" href="/nonen/greek" />
46 <Card title="Hungarian" href="/nonen/hungarian" />
47 <Card title="Italian" href="/nonen/italian" />
48 <Card title="Lithuanian" href="/nonen/lithuanian" />
49 <Card title="Polish" href="/nonen/polish" />
50 <Card title="Portuguese" href="/nonen/portuguese" />
51 <Card title="Romanian" href="/nonen/romanian" />
52 <Card title="Russian" href="/nonen/russian" />
53 <Card title="Spanish" href="/nonen/spanish" />
54 <Card title="Ukrainian" href="/nonen/ukrainian" />
40 <Card title="Catalan" href="/nonen/catalan" icon=":twemoji-flag-spain:" />
41 <Card title="French" href="/nonen/french" icon=":twemoji-flag-france:" />
42 <Card title="German" href="/nonen/german" icon=":twemoji-flag-germany:" />
43 <Card title="Greek" href="/nonen/greek" icon=":twemoji-flag-greece:" />
44 <Card title="Hungarian" href="/nonen/hungarian" icon=":twemoji-flag-hungary:" />
45 <Card title="Italian" href="/nonen/italian" icon=":twemoji-flag-italy:" />
46 <Card title="Lithuanian" href="/nonen/lithuanian" icon=":twemoji-flag-lithuania:" />
47 <Card title="Polish" href="/nonen/polish" icon=":twemoji-flag-poland:" />
48 <Card title="Portuguese" href="/nonen/portuguese" icon=":twemoji-flag-portugal:" />
49 <Card title="Romanian" href="/nonen/romanian" icon=":twemoji-flag-romania:" />
50 <Card title="Russian" href="/nonen/russian" icon=":twemoji-flag-russia:" />
51 <Card title="Serbian" href="/nonen/serbian" icon=":twemoji-flag-serbia:" />
52 <Card title="Spanish" href="/nonen/spanish" icon=":twemoji-flag-spain:" />
53 <Card title="Ukrainian" href="/nonen/ukrainian" icon=":twemoji-flag-ukraine:" />
5554</Deck>
docs/nonen/balkan.md → docs/nonen/serbian.md renamed +2 −3
@@ -1,6 +1,6 @@
11---
2title: Balkan
3description: Anime, manga & light novel resources for Balkan
2title: Serbian
3description: Anime, manga & light novel resources for Serbian
44outline: 2
55og:
66 image: /embed/nonen.png
@@ -12,7 +12,6 @@ og:
1212- [AnimeOverdose](https://www.anime-overdose.com/)
1313- [Anime Srbija](https://www.animesrbija.com/)
1414- [AniPiece](https://anipiece.net/pocetna)
15- [Ranime](https://ranime.net/)
1615
1716## Cartoon
1817
unocss.config.ts +1
@@ -120,6 +120,7 @@ const safelist = [
120120 'i-twemoji-growing-heart',
121121 'i-twemoji-folded-hands',
122122 'i-twemoji-glowing-star',
123 'i-twemoji-flag-united-arab-emirates',
123124 ...Array.from(
124125 new Set([...Object.values(LANG_FLAG_ICONS), LANG_FLAG_FALLBACK])
125126 ).map(