mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
20 lines
636 B
TypeScript
20 lines
636 B
TypeScript
import { ComponentMetadata } from './types'
|
|
import { component as SettingsPanel } from './settings-panel'
|
|
import { component as LaunchBar } from './launch-bar'
|
|
import { component as I18n } from './i18n'
|
|
import { component as AutoUpdate } from './auto-update'
|
|
import { component as NotifyNewVersion } from './notify-new-version'
|
|
import { component as Bisector } from './bisector'
|
|
|
|
export const getBuiltInComponents = (): ComponentMetadata[] => [
|
|
SettingsPanel,
|
|
LaunchBar,
|
|
I18n,
|
|
AutoUpdate,
|
|
NotifyNewVersion,
|
|
Bisector,
|
|
]
|
|
|
|
export const isBuiltInComponent = (name: string) =>
|
|
getBuiltInComponents().some(c => c.name === name)
|