You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/web/plugins/com.msgbyte.mdpanel/src/index.tsx

18 lines
507 B
TypeScript

import { regGroupPanel } from '@capital/common';
import { Loadable } from '@capital/component';
import { Translate } from './translate';
const PLUGIN_ID = 'com.msgbyte.mdpanel';
const PLUGIN_NAME = 'Markdown Panel';
console.log(`Plugin ${PLUGIN_NAME}(${PLUGIN_ID}) is loaded`);
regGroupPanel({
name: `${PLUGIN_NAME}/customwebpanel`,
label: Translate.name,
provider: PLUGIN_NAME,
render: Loadable(() => import('./group/MarkdownPanel'), {
componentName: `${PLUGIN_ID}:MarkdownPanel`,
}),
});