Skip to content

Commit 3a7e956

Browse files
author
Pavlo Kulyk
committed
Merge branch 'next' of https://github.com/devforth/adminforth into feature/AdminForth/1183/need-to-rename-images-not-imge
2 parents 3766209 + 1a0ea14 commit 3a7e956

File tree

93 files changed

+2510
-7667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2510
-7667
lines changed

adminforth/basePlugin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class AdminForthPlugin implements IAdminForthPlugin {
2020
resourceConfig: AdminForthResource;
2121
className: string;
2222
activationOrder: number = 0;
23+
shouldHaveSingleInstancePerWholeApp?: () => boolean;
2324

2425
constructor(pluginOptions: any, metaUrl: string) {
2526
// set up plugin here
@@ -28,6 +29,7 @@ export default class AdminForthPlugin implements IAdminForthPlugin {
2829
this.pluginOptions = pluginOptions;
2930
afLogger.trace(`🪲 🪲 AdminForthPlugin.constructor ${this.constructor.name}`);
3031
this.className = this.constructor.name;
32+
this.shouldHaveSingleInstancePerWholeApp = () => false;
3133
}
3234

3335
setupEndpoints(server: any) {
@@ -38,9 +40,6 @@ export default class AdminForthPlugin implements IAdminForthPlugin {
3840
return 'non-uniquely-identified';
3941
}
4042

41-
shouldHaveSingleInstancePerWholeApp(): boolean {
42-
return false;
43-
}
4443

4544
modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource, allPluginInstances?: {pi: AdminForthPlugin, resource: AdminForthResource}[]) {
4645
this.resourceConfig = resourceConfig;

adminforth/documentation/blog/2024-08-05-chatgpt/index.md

Lines changed: 1 addition & 1 deletion

adminforth/documentation/docs/tutorial/01-helloWorld.md

Lines changed: 1 addition & 1 deletion

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 24 additions & 0 deletions

adminforth/documentation/docs/tutorial/05-ListOfAdapters.md

Lines changed: 3 additions & 3 deletions
Lines changed: 60 additions & 0 deletions

adminforth/documentation/docs/tutorial/07-Plugins/01-AuditLog.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/01-AuditLog.md

Lines changed: 0 additions & 1 deletion

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/02-TwoFactorsAuth.md

adminforth/documentation/docs/tutorial/07-Plugins/03-ForeignInlineList.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/03-ForeignInlineList.md

adminforth/documentation/docs/tutorial/07-Plugins/04-RichEditor.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/04-RichEditor.md

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)