mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
16 lines
453 B
TypeScript
16 lines
453 B
TypeScript
import { defineAsyncComponent } from 'vue'
|
|
import type { CustomNavbarItemInit } from '../custom-navbar-item'
|
|
|
|
const rankingUrl = 'https://www.bilibili.com/v/popular/rank/'
|
|
export const ranking: CustomNavbarItemInit = {
|
|
name: 'ranking',
|
|
displayName: '排行',
|
|
content: '排行',
|
|
|
|
href: `${rankingUrl}all`,
|
|
active: document.URL.startsWith(rankingUrl),
|
|
touch: true,
|
|
|
|
popupContent: defineAsyncComponent(() => import('./NavbarRanking.vue')),
|
|
}
|