Bilibili-Evolved/registry/lib/components/video/bvid-convert/index.ts
2021-12-05 20:52:01 +08:00

22 lines
579 B
TypeScript

import { ComponentMetadata } from '@/components/types'
import { hasVideo } from '@/core/spin-query'
import { videoAndBangumiUrls } from '@/core/utils/urls'
export const component: ComponentMetadata = {
name: 'bvidConvert',
displayName: 'BV 号转换',
entry: none,
description: {
'zh-CN': '在功能面板中显示视频的 AV 号和 BV 号.',
},
tags: [
componentsTags.video,
componentsTags.utils,
],
widget: {
component: () => import('./BvidConvert.vue').then(m => m.default),
condition: hasVideo,
},
urlInclude: videoAndBangumiUrls,
}