mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
21 lines
587 B
TypeScript
21 lines
587 B
TypeScript
import { PluginSetupParameters } from '@/plugins/plugin'
|
|
import { ComponentAction } from '@/components/settings-panel/component-actions/component-actions'
|
|
import { isIframe } from '@/core/utils'
|
|
|
|
export const setupPlugin = async ({ addData }: PluginSetupParameters) => {
|
|
if (isIframe()) {
|
|
return
|
|
}
|
|
addData('settingsPanel.componentActions', (actions: ComponentAction[]) => {
|
|
actions.push(
|
|
() => {
|
|
const ActionModule = () => import('./Action.vue')
|
|
return {
|
|
name: 'devClient',
|
|
component: ActionModule,
|
|
}
|
|
},
|
|
)
|
|
})
|
|
}
|