* feat: add settingsCenter * fix: style bug * chore: optimized code * refactor: settingCenter Auth * feat: add aclSnippet option * refactor: all plugin's setting center api * feat: add plugin with name * docs: add settings-center doc * fix: settings center menu sort by name * fix: change setting center layout * fix: change hello sort * test: add SettingsCenter.ts test case * fix: bug * fix: acl bug * fix: bug * fix: bug and 404 page * fix: test bug * fix: test bug * fix: bug * fix: locale * fix: styling * fix: rename settingsCenter to pluginSettingsManager * fix: styling * fix: e2e bug * fix: e2e bug * fix: locale * feat: update docs * fix: update --------- Co-authored-by: chenos <chenlinxh@gmail.com>
21 lines
683 B
TypeScript
21 lines
683 B
TypeScript
import { Plugin } from '@nocobase/client';
|
|
import { MultiAppManagerProvider } from './MultiAppManagerProvider';
|
|
import { AppManager } from './AppManager';
|
|
import { NAMESPACE } from '../locale';
|
|
|
|
export class MultiAppManagerPlugin extends Plugin {
|
|
async load() {
|
|
this.app.use(MultiAppManagerProvider);
|
|
|
|
this.app.pluginSettingsManager.add(NAMESPACE, {
|
|
title: `{{t("Multi-app manager", { ns: "${NAMESPACE}" })}}`,
|
|
icon: 'AppstoreOutlined',
|
|
Component: AppManager,
|
|
aclSnippet: 'pm.multi-app-manager.applications',
|
|
});
|
|
}
|
|
}
|
|
|
|
export default MultiAppManagerPlugin;
|
|
export { formSchema, tableActionColumnSchema } from './settings/schemas/applications';
|