Commit bf63a29611
Unsigned
Layout: unified · split
docs/.vitepress/configs/constants.ts +40 −49
| @@ -72,14 +72,7 @@ export const homeCards: HomeCard[] = [ | |||
| 72 | link: '/games' | 72 | link: '/games' |
| 73 | }, | 73 | }, |
| 74 | { | 74 | { |
| 75 | id: 'nonen', | 75 | id: 'multilingual', |
| 76 | icon: ':lucide-map:', | ||
| 77 | title: 'Non-English', | ||
| 78 | details: 'Otaku resources for other regions', | ||
| 79 | link: '/nonen' | ||
| 80 | }, | ||
| 81 | { | ||
| 82 | id: 'nonen-multilingual', | ||
| 83 | icon: ':lucide-map:', | 76 | icon: ':lucide-map:', |
| 84 | title: 'Multilingual', | 77 | title: 'Multilingual', |
| 85 | details: 'Anime & manga with multi-language support', | 78 | details: 'Anime & manga with multi-language support', |
| @@ -87,7 +80,7 @@ export const homeCards: HomeCard[] = [ | |||
| 87 | section: 'Non-English' | 80 | section: 'Non-English' |
| 88 | }, | 81 | }, |
| 89 | { | 82 | { |
| 90 | id: 'nonen-arabic', | 83 | id: 'arabic', |
| 91 | icon: ':lucide-map:', | 84 | icon: ':lucide-map:', |
| 92 | title: 'Arabic', | 85 | title: 'Arabic', |
| 93 | details: 'Anime, manga & novels', | 86 | details: 'Anime, manga & novels', |
| @@ -95,7 +88,7 @@ export const homeCards: HomeCard[] = [ | |||
| 95 | section: 'Non-English' | 88 | section: 'Non-English' |
| 96 | }, | 89 | }, |
| 97 | { | 90 | { |
| 98 | id: 'nonen-chinese', | 91 | id: 'chinese', |
| 99 | icon: ':lucide-map:', | 92 | icon: ':lucide-map:', |
| 100 | title: 'Chinese', | 93 | title: 'Chinese', |
| 101 | details: 'Anime, manhua & novels', | 94 | details: 'Anime, manhua & novels', |
| @@ -103,15 +96,7 @@ export const homeCards: HomeCard[] = [ | |||
| 103 | section: 'Non-English' | 96 | section: 'Non-English' |
| 104 | }, | 97 | }, |
| 105 | { | 98 | { |
| 106 | id: 'nonen-hebrew', | 99 | id: 'indian', |
| 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', | ||
| 115 | icon: ':lucide-map:', | 100 | icon: ':lucide-map:', |
| 116 | title: 'Indian', | 101 | title: 'Indian', |
| 117 | details: 'Anime & cartoons', | 102 | details: 'Anime & cartoons', |
| @@ -119,7 +104,7 @@ export const homeCards: HomeCard[] = [ | |||
| 119 | section: 'Non-English' | 104 | section: 'Non-English' |
| 120 | }, | 105 | }, |
| 121 | { | 106 | { |
| 122 | id: 'nonen-indonesian', | 107 | id: 'indonesian', |
| 123 | icon: ':lucide-map:', | 108 | icon: ':lucide-map:', |
| 124 | title: 'Indonesian', | 109 | title: 'Indonesian', |
| 125 | details: 'Anime, manga & light novels', | 110 | details: 'Anime, manga & light novels', |
| @@ -127,7 +112,7 @@ export const homeCards: HomeCard[] = [ | |||
| 127 | section: 'Non-English' | 112 | section: 'Non-English' |
| 128 | }, | 113 | }, |
| 129 | { | 114 | { |
| 130 | id: 'nonen-japanese', | 115 | id: 'japanese', |
| 131 | icon: ':lucide-map:', | 116 | icon: ':lucide-map:', |
| 132 | title: 'Japanese', | 117 | title: 'Japanese', |
| 133 | details: 'Raw manga & direct downloads', | 118 | details: 'Raw manga & direct downloads', |
| @@ -135,7 +120,7 @@ export const homeCards: HomeCard[] = [ | |||
| 135 | section: 'Non-English' | 120 | section: 'Non-English' |
| 136 | }, | 121 | }, |
| 137 | { | 122 | { |
| 138 | id: 'nonen-korean', | 123 | id: 'korean', |
| 139 | icon: ':lucide-map:', | 124 | icon: ':lucide-map:', |
| 140 | title: 'Korean', | 125 | title: 'Korean', |
| 141 | details: 'Manhwa & anime', | 126 | details: 'Manhwa & anime', |
| @@ -143,7 +128,7 @@ export const homeCards: HomeCard[] = [ | |||
| 143 | section: 'Non-English' | 128 | section: 'Non-English' |
| 144 | }, | 129 | }, |
| 145 | { | 130 | { |
| 146 | id: 'nonen-turkish', | 131 | id: 'turkish', |
| 147 | icon: ':lucide-map:', | 132 | icon: ':lucide-map:', |
| 148 | title: 'Turkish', | 133 | title: 'Turkish', |
| 149 | details: 'Anime & manga', | 134 | details: 'Anime & manga', |
| @@ -151,7 +136,7 @@ export const homeCards: HomeCard[] = [ | |||
| 151 | section: 'Non-English' | 136 | section: 'Non-English' |
| 152 | }, | 137 | }, |
| 153 | { | 138 | { |
| 154 | id: 'nonen-vietnamese', | 139 | id: 'vietnamese', |
| 155 | icon: ':lucide-map:', | 140 | icon: ':lucide-map:', |
| 156 | title: 'Vietnamese', | 141 | title: 'Vietnamese', |
| 157 | details: 'Anime, comics & novels', | 142 | details: 'Anime, comics & novels', |
| @@ -159,15 +144,7 @@ export const homeCards: HomeCard[] = [ | |||
| 159 | section: 'Non-English' | 144 | section: 'Non-English' |
| 160 | }, | 145 | }, |
| 161 | { | 146 | { |
| 162 | id: 'nonen-balkan', | 147 | id: 'catalan', |
| 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', | ||
| 171 | icon: ':lucide-map:', | 148 | icon: ':lucide-map:', |
| 172 | title: 'Catalan', | 149 | title: 'Catalan', |
| 173 | details: 'Anime & manga', | 150 | details: 'Anime & manga', |
| @@ -175,7 +152,7 @@ export const homeCards: HomeCard[] = [ | |||
| 175 | section: 'Non-English' | 152 | section: 'Non-English' |
| 176 | }, | 153 | }, |
| 177 | { | 154 | { |
| 178 | id: 'nonen-french', | 155 | id: 'french', |
| 179 | icon: ':lucide-map:', | 156 | icon: ':lucide-map:', |
| 180 | title: 'French', | 157 | title: 'French', |
| 181 | details: 'Anime & manga', | 158 | details: 'Anime & manga', |
| @@ -183,7 +160,7 @@ export const homeCards: HomeCard[] = [ | |||
| 183 | section: 'Non-English' | 160 | section: 'Non-English' |
| 184 | }, | 161 | }, |
| 185 | { | 162 | { |
| 186 | id: 'nonen-german', | 163 | id: 'german', |
| 187 | icon: ':lucide-map:', | 164 | icon: ':lucide-map:', |
| 188 | title: 'German', | 165 | title: 'German', |
| 189 | details: 'Anime, manga & communities', | 166 | details: 'Anime, manga & communities', |
| @@ -191,7 +168,7 @@ export const homeCards: HomeCard[] = [ | |||
| 191 | section: 'Non-English' | 168 | section: 'Non-English' |
| 192 | }, | 169 | }, |
| 193 | { | 170 | { |
| 194 | id: 'nonen-greek', | 171 | id: 'greek', |
| 195 | icon: ':lucide-map:', | 172 | icon: ':lucide-map:', |
| 196 | title: 'Greek', | 173 | title: 'Greek', |
| 197 | details: 'Anime', | 174 | details: 'Anime', |
| @@ -199,7 +176,7 @@ export const homeCards: HomeCard[] = [ | |||
| 199 | section: 'Non-English' | 176 | section: 'Non-English' |
| 200 | }, | 177 | }, |
| 201 | { | 178 | { |
| 202 | id: 'nonen-hungarian', | 179 | id: 'hungarian', |
| 203 | icon: ':lucide-map:', | 180 | icon: ':lucide-map:', |
| 204 | title: 'Hungarian', | 181 | title: 'Hungarian', |
| 205 | details: 'Anime', | 182 | details: 'Anime', |
| @@ -207,7 +184,7 @@ export const homeCards: HomeCard[] = [ | |||
| 207 | section: 'Non-English' | 184 | section: 'Non-English' |
| 208 | }, | 185 | }, |
| 209 | { | 186 | { |
| 210 | id: 'nonen-italian', | 187 | id: 'italian', |
| 211 | icon: ':lucide-map:', | 188 | icon: ':lucide-map:', |
| 212 | title: 'Italian', | 189 | title: 'Italian', |
| 213 | details: 'Anime, manga & info', | 190 | details: 'Anime, manga & info', |
| @@ -215,7 +192,7 @@ export const homeCards: HomeCard[] = [ | |||
| 215 | section: 'Non-English' | 192 | section: 'Non-English' |
| 216 | }, | 193 | }, |
| 217 | { | 194 | { |
| 218 | id: 'nonen-lithuanian', | 195 | id: 'lithuanian', |
| 219 | icon: ':lucide-map:', | 196 | icon: ':lucide-map:', |
| 220 | title: 'Lithuanian', | 197 | title: 'Lithuanian', |
| 221 | details: 'Anime', | 198 | details: 'Anime', |
| @@ -223,7 +200,7 @@ export const homeCards: HomeCard[] = [ | |||
| 223 | section: 'Non-English' | 200 | section: 'Non-English' |
| 224 | }, | 201 | }, |
| 225 | { | 202 | { |
| 226 | id: 'nonen-polish', | 203 | id: 'polish', |
| 227 | icon: ':lucide-map:', | 204 | icon: ':lucide-map:', |
| 228 | title: 'Polish', | 205 | title: 'Polish', |
| 229 | details: 'Anime & apps', | 206 | details: 'Anime & apps', |
| @@ -231,7 +208,7 @@ export const homeCards: HomeCard[] = [ | |||
| 231 | section: 'Non-English' | 208 | section: 'Non-English' |
| 232 | }, | 209 | }, |
| 233 | { | 210 | { |
| 234 | id: 'nonen-portuguese', | 211 | id: 'portuguese', |
| 235 | icon: ':lucide-map:', | 212 | icon: ':lucide-map:', |
| 236 | title: 'Portuguese', | 213 | title: 'Portuguese', |
| 237 | details: 'Anime, manga & tokusatsu', | 214 | details: 'Anime, manga & tokusatsu', |
| @@ -239,7 +216,7 @@ export const homeCards: HomeCard[] = [ | |||
| 239 | section: 'Non-English' | 216 | section: 'Non-English' |
| 240 | }, | 217 | }, |
| 241 | { | 218 | { |
| 242 | id: 'nonen-romanian', | 219 | id: 'romanian', |
| 243 | icon: ':lucide-map:', | 220 | icon: ':lucide-map:', |
| 244 | title: 'Romanian', | 221 | title: 'Romanian', |
| 245 | details: 'Anime', | 222 | details: 'Anime', |
| @@ -247,7 +224,7 @@ export const homeCards: HomeCard[] = [ | |||
| 247 | section: 'Non-English' | 224 | section: 'Non-English' |
| 248 | }, | 225 | }, |
| 249 | { | 226 | { |
| 250 | id: 'nonen-russian', | 227 | id: 'russian', |
| 251 | icon: ':lucide-map:', | 228 | icon: ':lucide-map:', |
| 252 | title: 'Russian', | 229 | title: 'Russian', |
| 253 | details: 'Anime, manga & trackers', | 230 | details: 'Anime, manga & trackers', |
| @@ -255,7 +232,15 @@ export const homeCards: HomeCard[] = [ | |||
| 255 | section: 'Non-English' | 232 | section: 'Non-English' |
| 256 | }, | 233 | }, |
| 257 | { | 234 | { |
| 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', | ||
| 259 | icon: ':lucide-map:', | 244 | icon: ':lucide-map:', |
| 260 | title: 'Spanish', | 245 | title: 'Spanish', |
| 261 | details: 'Anime, manga & light novels', | 246 | details: 'Anime, manga & light novels', |
| @@ -263,7 +248,7 @@ export const homeCards: HomeCard[] = [ | |||
| 263 | section: 'Non-English' | 248 | section: 'Non-English' |
| 264 | }, | 249 | }, |
| 265 | { | 250 | { |
| 266 | id: 'nonen-ukrainian', | 251 | id: 'ukrainian', |
| 267 | icon: ':lucide-map:', | 252 | icon: ':lucide-map:', |
| 268 | title: 'Ukrainian', | 253 | title: 'Ukrainian', |
| 269 | details: 'Anime & manga', | 254 | details: 'Anime & manga', |
| @@ -300,6 +285,14 @@ export const homeCards: HomeCard[] = [ | |||
| 300 | link: '/ext', | 285 | link: '/ext', |
| 301 | featured: true | 286 | featured: true |
| 302 | }, | 287 | }, |
| 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 | }, | ||
| 303 | { | 296 | { |
| 304 | id: 'guides', | 297 | id: 'guides', |
| 305 | icon: ':lucide-book-key:', | 298 | icon: ':lucide-book-key:', |
| @@ -321,8 +314,7 @@ export const homeCards: HomeCard[] = [ | |||
| 321 | icon: ':lucide-magnet:', | 314 | icon: ':lucide-magnet:', |
| 322 | title: 'Torrenting', | 315 | title: 'Torrenting', |
| 323 | details: 'All the basic how-tos about torrenting', | 316 | details: 'All the basic how-tos about torrenting', |
| 324 | link: '/torrenting', | 317 | link: '/torrenting' |
| 325 | featured: true | ||
| 326 | }, | 318 | }, |
| 327 | { | 319 | { |
| 328 | id: 'japan', | 320 | id: 'japan', |
| @@ -774,7 +766,6 @@ export const sidebar: DefaultTheme.Sidebar = [ | |||
| 774 | items: [ | 766 | items: [ |
| 775 | { text: 'Arabic', link: '/nonen/arabic' }, | 767 | { text: 'Arabic', link: '/nonen/arabic' }, |
| 776 | { text: 'Chinese', link: '/nonen/chinese' }, | 768 | { text: 'Chinese', link: '/nonen/chinese' }, |
| 777 | { text: 'Hebrew', link: '/nonen/hebrew' }, | ||
| 778 | { text: 'Indian', link: '/nonen/indian' }, | 769 | { text: 'Indian', link: '/nonen/indian' }, |
| 779 | { text: 'Indonesian', link: '/nonen/indonesian' }, | 770 | { text: 'Indonesian', link: '/nonen/indonesian' }, |
| 780 | { text: 'Japanese', link: '/nonen/japanese' }, | 771 | { text: 'Japanese', link: '/nonen/japanese' }, |
| @@ -787,7 +778,6 @@ export const sidebar: DefaultTheme.Sidebar = [ | |||
| 787 | text: 'Europe', | 778 | text: 'Europe', |
| 788 | collapsed: true, | 779 | collapsed: true, |
| 789 | items: [ | 780 | items: [ |
| 790 | { text: 'Balkan', link: '/nonen/balkan' }, | ||
| 791 | { text: 'Catalan', link: '/nonen/catalan' }, | 781 | { text: 'Catalan', link: '/nonen/catalan' }, |
| 792 | { text: 'French', link: '/nonen/french' }, | 782 | { text: 'French', link: '/nonen/french' }, |
| 793 | { text: 'German', link: '/nonen/german' }, | 783 | { text: 'German', link: '/nonen/german' }, |
| @@ -799,6 +789,7 @@ export const sidebar: DefaultTheme.Sidebar = [ | |||
| 799 | { text: 'Portuguese', link: '/nonen/portuguese' }, | 789 | { text: 'Portuguese', link: '/nonen/portuguese' }, |
| 800 | { text: 'Romanian', link: '/nonen/romanian' }, | 790 | { text: 'Romanian', link: '/nonen/romanian' }, |
| 801 | { text: 'Russian', link: '/nonen/russian' }, | 791 | { text: 'Russian', link: '/nonen/russian' }, |
| 792 | { text: 'Serbian', link: '/nonen/serbian' }, | ||
| 802 | { text: 'Spanish', link: '/nonen/spanish' }, | 793 | { text: 'Spanish', link: '/nonen/spanish' }, |
| 803 | { text: 'Ukrainian', link: '/nonen/ukrainian' } | 794 | { text: 'Ukrainian', link: '/nonen/ukrainian' } |
| 804 | ] | 795 | ] |
docs/.vitepress/theme/components/HomeFeatures.vue +6 −14
| @@ -1,11 +1,12 @@ | |||
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { ArrowLeft } from 'lucide-vue-next' | 2 | import { ArrowLeft } from 'lucide-vue-next' |
| 3 | import { renderCardIcon } from './link-card/iconMarkup' | ||
| 3 | import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue' | 4 | import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue' |
| 4 | import type { HomeCard } from '../../configs/constants' | 5 | import type { HomeCard } from '../../configs/constants' |
| 5 | 6 | ||
| 6 | const props = defineProps<{ cards: HomeCard[] }>() | 7 | const props = defineProps<{ cards: HomeCard[] }>() |
| 7 | 8 | ||
| 8 | const STORAGE_KEY = 'wotaku-home-cards-v2' | 9 | const STORAGE_KEY = 'wotaku-home-cards-v3' |
| 9 | const PREFS_KEY = 'wotaku-home-prefs-v1' | 10 | const PREFS_KEY = 'wotaku-home-prefs-v1' |
| 10 | 11 | ||
| 11 | interface CardState { | 12 | interface CardState { |
| @@ -73,15 +74,6 @@ const panelGrid = computed(() => { | |||
| 73 | return undefined | 74 | return undefined |
| 74 | }) | 75 | }) |
| 75 | 76 | ||
| 76 | const 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 | |||
| 78 | function 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 | |||
| 85 | /* ── Manager panel ── */ | 77 | /* ── Manager panel ── */ |
| 86 | const panelOpen = ref(false) | 78 | const panelOpen = ref(false) |
| 87 | const dropdownOpen = ref(false) | 79 | const dropdownOpen = ref(false) |
| @@ -318,7 +310,7 @@ function onHandlePointerUp() { | |||
| 318 | > | 310 | > |
| 319 | <a class="card" :href="card.link"> | 311 | <a class="card" :href="card.link"> |
| 320 | <article class="box"> | 312 | <article class="box"> |
| 321 | <div class="icon" v-html="cardIcon(card)" /> | 313 | <div class="icon" v-html="renderCardIcon(card.icon)" /> |
| 322 | <h2 class="title">{{ card.title }}</h2> | 314 | <h2 class="title">{{ card.title }}</h2> |
| 323 | <p class="details">{{ card.details }}</p> | 315 | <p class="details">{{ card.details }}</p> |
| 324 | </article> | 316 | </article> |
| @@ -372,7 +364,7 @@ function onHandlePointerUp() { | |||
| 372 | > | 364 | > |
| 373 | <span class="i-lucide-grip-vertical" /> | 365 | <span class="i-lucide-grip-vertical" /> |
| 374 | </span> | 366 | </span> |
| 375 | <span class="row-icon" v-html="cardIcon(card)" /> | 367 | <span class="row-icon" v-html="renderCardIcon(card.icon)" /> |
| 376 | <span class="row-name">{{ card.title }}</span> | 368 | <span class="row-name">{{ card.title }}</span> |
| 377 | <button | 369 | <button |
| 378 | class="row-toggle active" | 370 | class="row-toggle active" |
| @@ -399,7 +391,7 @@ function onHandlePointerUp() { | |||
| 399 | @mouseleave="hideCardTooltip" | 391 | @mouseleave="hideCardTooltip" |
| 400 | > | 392 | > |
| 401 | <span class="row-handle-spacer" aria-hidden="true" /> | 393 | <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)" /> |
| 403 | <span class="row-name">{{ card.title }}</span> | 395 | <span class="row-name">{{ card.title }}</span> |
| 404 | <button | 396 | <button |
| 405 | class="row-toggle" | 397 | class="row-toggle" |
| @@ -544,7 +536,7 @@ function onHandlePointerUp() { | |||
| 544 | class="drag-ghost" | 536 | class="drag-ghost" |
| 545 | :style="{ left: ghostPos.x + 'px', top: ghostPos.y + 'px' }" | 537 | :style="{ left: ghostPos.x + 'px', top: ghostPos.y + 'px' }" |
| 546 | > | 538 | > |
| 547 | <span class="row-icon" v-html="cardIcon(cardMap.get(dragging)!)" /> | 539 | <span class="row-icon" v-html="renderCardIcon(cardMap.get(dragging)!.icon)" /> |
| 548 | <span class="drag-ghost-name">{{ cardMap.get(dragging)?.title }}</span> | 540 | <span class="drag-ghost-name">{{ cardMap.get(dragging)?.title }}</span> |
| 549 | </div> | 541 | </div> |
| 550 | </Transition> | 542 | </Transition> |
docs/.vitepress/theme/components/link-card/Card.vue +21
| @@ -1,7 +1,10 @@ | |||
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { renderCardIcon } from './iconMarkup' | ||
| 3 | |||
| 2 | const props = defineProps<{ | 4 | const props = defineProps<{ |
| 3 | href: string | 5 | href: string |
| 4 | title: string | 6 | title: string |
| 7 | icon?: string | ||
| 5 | download?: boolean | 8 | download?: boolean |
| 6 | }>() | 9 | }>() |
| 7 | </script> | 10 | </script> |
| @@ -17,6 +20,11 @@ const props = defineProps<{ | |||
| 17 | class="vp-card-container" | 20 | class="vp-card-container" |
| 18 | :class="{ 'vp-card-container--no-details': !$slots.default }" | 21 | :class="{ 'vp-card-container--no-details': !$slots.default }" |
| 19 | > | 22 | > |
| 23 | <div | ||
| 24 | v-if="props.icon" | ||
| 25 | class="vp-card-icon" | ||
| 26 | v-html="renderCardIcon(props.icon)" | ||
| 27 | /> | ||
| 20 | <h3 class="vp-card-title">{{ props.title }}</h3> | 28 | <h3 class="vp-card-title">{{ props.title }}</h3> |
| 21 | <p v-if="$slots.default" class="vp-card-details"><slot /></p> | 29 | <p v-if="$slots.default" class="vp-card-details"><slot /></p> |
| 22 | </article> | 30 | </article> |
| @@ -57,6 +65,19 @@ const props = defineProps<{ | |||
| 57 | margin-bottom: 0; | 65 | margin-bottom: 0; |
| 58 | } | 66 | } |
| 59 | 67 | ||
| 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 | |||
| 60 | .vp-card-title { | 81 | .vp-card-title { |
| 61 | margin: 0 0 8px; | 82 | margin: 0 0 8px; |
| 62 | padding: 0; | 83 | 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 | */ | ||
| 8 | const 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 | |||
| 11 | export 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 | --- | ||
| 2 | title: Hebrew | ||
| 3 | description: Anime, manga & light novel resources for Hebrew | ||
| 4 | outline: 2 | ||
| 5 | og: | ||
| 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: | |||
| 18 | ## Global | 18 | ## Global |
| 19 | 19 | ||
| 20 | <Deck> | 20 | <Deck> |
| 21 | <Card title="Multilingual" href="/nonen/multilingual" /> | 21 | <Card title="Multilingual" href="/nonen/multilingual" icon=":twemoji-globe-showing-asia-australia:" /> |
| 22 | </Deck> | 22 | </Deck> |
| 23 | 23 | ||
| 24 | ## Asia | 24 | ## Asia |
| 25 | 25 | ||
| 26 | <Deck> | 26 | <Deck> |
| 27 | <Card title="Arabic" href="/nonen/arabic" /> | 27 | <Card title="Arabic" href="/nonen/arabic" icon=":twemoji-flag-united-arab-emirates:" /> |
| 28 | <Card title="Chinese" href="/nonen/chinese" /> | 28 | <Card title="Chinese" href="/nonen/chinese" icon=":twemoji-flag-china:" /> |
| 29 | <Card title="Hebrew" href="/nonen/hebrew" /> | 29 | <Card title="Indian" href="/nonen/indian" icon=":twemoji-flag-india:" /> |
| 30 | <Card title="Indian" href="/nonen/indian" /> | 30 | <Card title="Indonesian" href="/nonen/indonesian" icon=":twemoji-flag-indonesia:" /> |
| 31 | <Card title="Indonesian" href="/nonen/indonesian" /> | 31 | <Card title="Japanese" href="/nonen/japanese" icon=":twemoji-flag-japan:" /> |
| 32 | <Card title="Japanese" href="/nonen/japanese" /> | 32 | <Card title="Korean" href="/nonen/korean" icon=":twemoji-flag-south-korea:" /> |
| 33 | <Card title="Korean" href="/nonen/korean" /> | 33 | <Card title="Turkish" href="/nonen/turkish" icon=":twemoji-flag-turkiye:" /> |
| 34 | <Card title="Turkish" href="/nonen/turkish" /> | 34 | <Card title="Vietnamese" href="/nonen/vietnamese" icon=":twemoji-flag-vietnam:" /> |
| 35 | <Card title="Vietnamese" href="/nonen/vietnamese" /> | ||
| 36 | </Deck> | 35 | </Deck> |
| 37 | 36 | ||
| 38 | ## Europe | 37 | ## Europe |
| 39 | 38 | ||
| 40 | <Deck> | 39 | <Deck> |
| 41 | <Card title="Balkan" href="/nonen/balkan" /> | 40 | <Card title="Catalan" href="/nonen/catalan" icon=":twemoji-flag-spain:" /> |
| 42 | <Card title="Catalan" href="/nonen/catalan" /> | 41 | <Card title="French" href="/nonen/french" icon=":twemoji-flag-france:" /> |
| 43 | <Card title="French" href="/nonen/french" /> | 42 | <Card title="German" href="/nonen/german" icon=":twemoji-flag-germany:" /> |
| 44 | <Card title="German" href="/nonen/german" /> | 43 | <Card title="Greek" href="/nonen/greek" icon=":twemoji-flag-greece:" /> |
| 45 | <Card title="Greek" href="/nonen/greek" /> | 44 | <Card title="Hungarian" href="/nonen/hungarian" icon=":twemoji-flag-hungary:" /> |
| 46 | <Card title="Hungarian" href="/nonen/hungarian" /> | 45 | <Card title="Italian" href="/nonen/italian" icon=":twemoji-flag-italy:" /> |
| 47 | <Card title="Italian" href="/nonen/italian" /> | 46 | <Card title="Lithuanian" href="/nonen/lithuanian" icon=":twemoji-flag-lithuania:" /> |
| 48 | <Card title="Lithuanian" href="/nonen/lithuanian" /> | 47 | <Card title="Polish" href="/nonen/polish" icon=":twemoji-flag-poland:" /> |
| 49 | <Card title="Polish" href="/nonen/polish" /> | 48 | <Card title="Portuguese" href="/nonen/portuguese" icon=":twemoji-flag-portugal:" /> |
| 50 | <Card title="Portuguese" href="/nonen/portuguese" /> | 49 | <Card title="Romanian" href="/nonen/romanian" icon=":twemoji-flag-romania:" /> |
| 51 | <Card title="Romanian" href="/nonen/romanian" /> | 50 | <Card title="Russian" href="/nonen/russian" icon=":twemoji-flag-russia:" /> |
| 52 | <Card title="Russian" href="/nonen/russian" /> | 51 | <Card title="Serbian" href="/nonen/serbian" icon=":twemoji-flag-serbia:" /> |
| 53 | <Card title="Spanish" href="/nonen/spanish" /> | 52 | <Card title="Spanish" href="/nonen/spanish" icon=":twemoji-flag-spain:" /> |
| 54 | <Card title="Ukrainian" href="/nonen/ukrainian" /> | 53 | <Card title="Ukrainian" href="/nonen/ukrainian" icon=":twemoji-flag-ukraine:" /> |
| 55 | </Deck> | 54 | </Deck> |
docs/nonen/balkan.md → docs/nonen/serbian.md renamed +2 −3
| @@ -1,6 +1,6 @@ | |||
| 1 | --- | 1 | --- |
| 2 | title: Balkan | 2 | title: Serbian |
| 3 | description: Anime, manga & light novel resources for Balkan | 3 | description: Anime, manga & light novel resources for Serbian |
| 4 | outline: 2 | 4 | outline: 2 |
| 5 | og: | 5 | og: |
| 6 | image: /embed/nonen.png | 6 | image: /embed/nonen.png |
| @@ -12,7 +12,6 @@ og: | |||
| 12 | - [AnimeOverdose](https://www.anime-overdose.com/) | 12 | - [AnimeOverdose](https://www.anime-overdose.com/) |
| 13 | - [Anime Srbija](https://www.animesrbija.com/) | 13 | - [Anime Srbija](https://www.animesrbija.com/) |
| 14 | - [AniPiece](https://anipiece.net/pocetna) | 14 | - [AniPiece](https://anipiece.net/pocetna) |
| 15 | - [Ranime](https://ranime.net/) | ||
| 16 | 15 | ||
| 17 | ## Cartoon | 16 | ## Cartoon |
| 18 | 17 | ||
unocss.config.ts +1
| @@ -120,6 +120,7 @@ const safelist = [ | |||
| 120 | 'i-twemoji-growing-heart', | 120 | 'i-twemoji-growing-heart', |
| 121 | 'i-twemoji-folded-hands', | 121 | 'i-twemoji-folded-hands', |
| 122 | 'i-twemoji-glowing-star', | 122 | 'i-twemoji-glowing-star', |
| 123 | 'i-twemoji-flag-united-arab-emirates', | ||
| 123 | ...Array.from( | 124 | ...Array.from( |
| 124 | new Set([...Object.values(LANG_FLAG_ICONS), LANG_FLAG_FALLBACK]) | 125 | new Set([...Object.values(LANG_FLAG_ICONS), LANG_FLAG_FALLBACK]) |
| 125 | ).map( | 126 | ).map( |