mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
20 lines
614 B
TypeScript
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'],
|
|
})
|