Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1045
24 lines
523 B
TypeScript
24 lines
523 B
TypeScript
import { Plugin } from '@tachybase/client';
|
|
|
|
import { lang } from './locale';
|
|
import { LogsDownloader } from './LogsDownloader';
|
|
|
|
export class PluginLoggerClient extends Plugin {
|
|
async afterAdd() {
|
|
// await this.app.pm.add()
|
|
}
|
|
|
|
async beforeLoad() {}
|
|
|
|
// You can get and modify the app instance here
|
|
async load() {
|
|
this.app.pluginSettingsManager.add('logger', {
|
|
title: lang('Logger'),
|
|
icon: 'FileTextOutlined',
|
|
Component: LogsDownloader,
|
|
});
|
|
}
|
|
}
|
|
|
|
export default PluginLoggerClient;
|