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 { LifeCycleEventTypes } from '@/core/life-cycle'
|
||||
import { componentsTags } from '@/components/types'
|
||||
import * as bisector from './api'
|
||||
import { useScopedConsole } from '@/core/utils/log'
|
||||
import type { LaunchBarActionProvider } from '../launch-bar/launch-bar-action'
|
||||
|
||||
@ -13,6 +12,7 @@ export const component = defineComponentMetadata({
|
||||
hidden: true,
|
||||
configurable: false,
|
||||
entry: async ({ settings: { options } }) => {
|
||||
const bisector = await import('./api')
|
||||
bisector.setOptions(options)
|
||||
bisector.setConsole(useScopedConsole('组件二等分'))
|
||||
unsafeWindow.addEventListener(LifeCycleEventTypes.ComponentsLoaded, () => {
|
||||
@ -34,6 +34,7 @@ export const component = defineComponentMetadata({
|
||||
description: 'Start/Continue component bisection',
|
||||
icon: 'mdi-view-split-horizontal',
|
||||
action: async () => {
|
||||
const bisector = await import('./api')
|
||||
await bisector.start()
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user