优化
This commit is contained in:
20
client/web/plugins/com.msgbyte.music/src/index.tsx
Normal file
20
client/web/plugins/com.msgbyte.music/src/index.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { regCustomPanel } from '@capital/common';
|
||||
import { Loadable } from '@capital/component';
|
||||
import { Translate } from './translate';
|
||||
|
||||
const PLUGIN_ID = 'com.msgbyte.music';
|
||||
|
||||
console.log(`Plugin ${PLUGIN_ID} is loaded`);
|
||||
|
||||
regCustomPanel({
|
||||
position: 'navbar-more',
|
||||
icon: 'mdi:disc-player',
|
||||
name: `${PLUGIN_ID}/musicpanel`,
|
||||
label: Translate.musicpanel,
|
||||
render: Loadable(
|
||||
() => import('./panels/MusicPanel').then((module) => module.MusicPanel),
|
||||
{
|
||||
componentName: `${PLUGIN_ID}:CustomMusicPanelRender`,
|
||||
}
|
||||
),
|
||||
});
|
||||
Reference in New Issue
Block a user