tachybase_todo/packages/plugins/@tachybase/plugin-logger/src/client/index.tsx
sealday ede7ead8b1 chore(version): release v0.21.34 (#1045)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1045
2024-05-24 01:06:06 +08:00

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;