Bilibili-Evolved/registry/lib/components/live/badge-helper/index.ts
the1812 5451586360 Update getTitleList API (#4403)
Refactor BadgeHelper codes
2023-09-02 21:19:50 +08:00

20 lines
614 B
TypeScript

import { defineComponentMetadata } from '@/components/define'
import { getUID, none } from '@/core/utils'
import { autoMatchMedal } from './auto-match'
import { badgeHelperOptions } from './options'
export const component = defineComponentMetadata({
name: 'badgeHelper',
displayName: '直播勋章快速更换',
entry: () => autoMatchMedal(),
reload: none,
unload: none,
tags: [componentsTags.live],
widget: {
component: () => import('./BadgeHelper.vue').then(m => m.default),
condition: () => Boolean(getUID()),
},
options: badgeHelperOptions,
urlInclude: ['//live.bilibili.com'],
})