mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
21 lines
554 B
TypeScript
21 lines
554 B
TypeScript
import { defineAsyncComponent } from 'vue'
|
|
import { getUID } from '@/core/utils'
|
|
|
|
import type { CustomNavbarItemInit } from '../custom-navbar-item'
|
|
|
|
const href = `https://space.bilibili.com/${getUID()}/favlist`
|
|
export const favorites: CustomNavbarItemInit = {
|
|
name: 'favorites',
|
|
displayName: '收藏',
|
|
content: '收藏',
|
|
|
|
href,
|
|
touch: true,
|
|
active: document.URL.replace(/\?.*$/, '') === href,
|
|
loginRequired: true,
|
|
|
|
boundingWidth: 380,
|
|
noPopupPadding: true,
|
|
popupContent: defineAsyncComponent(() => import('./NavbarFavorites.vue')),
|
|
}
|