mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge branch 'preview-features' into preview
This commit is contained in:
commit
59547d2166
@ -2,7 +2,6 @@ import { defineComponentMetadata } from '@/components/define'
|
|||||||
import { bisectorOptionsMetadata } from './options'
|
import { bisectorOptionsMetadata } from './options'
|
||||||
import { LifeCycleEventTypes } from '@/core/life-cycle'
|
import { LifeCycleEventTypes } from '@/core/life-cycle'
|
||||||
import { componentsTags } from '@/components/types'
|
import { componentsTags } from '@/components/types'
|
||||||
import * as bisector from './api'
|
|
||||||
import { useScopedConsole } from '@/core/utils/log'
|
import { useScopedConsole } from '@/core/utils/log'
|
||||||
import type { LaunchBarActionProvider } from '../launch-bar/launch-bar-action'
|
import type { LaunchBarActionProvider } from '../launch-bar/launch-bar-action'
|
||||||
|
|
||||||
@ -13,6 +12,7 @@ export const component = defineComponentMetadata({
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
configurable: false,
|
configurable: false,
|
||||||
entry: async ({ settings: { options } }) => {
|
entry: async ({ settings: { options } }) => {
|
||||||
|
const bisector = await import('./api')
|
||||||
bisector.setOptions(options)
|
bisector.setOptions(options)
|
||||||
bisector.setConsole(useScopedConsole('组件二等分'))
|
bisector.setConsole(useScopedConsole('组件二等分'))
|
||||||
unsafeWindow.addEventListener(LifeCycleEventTypes.ComponentsLoaded, () => {
|
unsafeWindow.addEventListener(LifeCycleEventTypes.ComponentsLoaded, () => {
|
||||||
@ -34,6 +34,7 @@ export const component = defineComponentMetadata({
|
|||||||
description: 'Start/Continue component bisection',
|
description: 'Start/Continue component bisection',
|
||||||
icon: 'mdi-view-split-horizontal',
|
icon: 'mdi-view-split-horizontal',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
|
const bisector = await import('./api')
|
||||||
await bisector.start()
|
await bisector.start()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user