mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
25 lines
620 B
TypeScript
25 lines
620 B
TypeScript
import { defineComponentMetadata } from '@/components/define'
|
|
import { isIframe } from '@/core/utils'
|
|
import { devClientOptionsMetadata } from './options'
|
|
import { setupPlugin } from './plugin'
|
|
|
|
export const component = defineComponentMetadata({
|
|
name: 'devClient',
|
|
displayName: 'DevClient',
|
|
tags: [componentsTags.utils],
|
|
description: '本地开发工具',
|
|
entry: async () => {
|
|
if (isIframe()) {
|
|
return
|
|
}
|
|
import('./client')
|
|
},
|
|
options: devClientOptionsMetadata,
|
|
widget: {
|
|
component: () => import('./Widget.vue').then(m => m.default),
|
|
},
|
|
plugin: {
|
|
setup: setupPlugin,
|
|
},
|
|
})
|