From ea5b1ea2ad91da35f6323e9f2260de69393eca50 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 4 Aug 2019 14:51:44 +0200 Subject: [PATCH] new plugin structure --- Dockerfile | 2 +- src/backend/FrontblockLib.ts | 13 ++++++++++++- src/frontend/dashboard/src/app/app.component.html | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f096b7..ce08152 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,5 @@ COPY plugins /service/plugins COPY static /service/static COPY node_modules /service/node_modules -EXPOSE 8080 +EXPOSE 8080 20000 ENTRYPOINT ["node", "lib/FrontblockAdmin.js"] \ No newline at end of file diff --git a/src/backend/FrontblockLib.ts b/src/backend/FrontblockLib.ts index 6ed58fa..05ab414 100644 --- a/src/backend/FrontblockLib.ts +++ b/src/backend/FrontblockLib.ts @@ -73,4 +73,15 @@ export class FrontblockConfigLib{ } -window['fb'] = new FrontblockConfigLib() \ No newline at end of file +window['fb'] = new FrontblockConfigLib() +declare const fb +window['setup'] = async() => { + await Promise.all([ + fb.PluginManager.installPlugin("ApiClient"), + fb.PluginManager.installPlugin("HtmlSupplier"), + fb.PluginManager.installPlugin("PluginManager"), + fb.PluginManager.installPlugin("PaymentManager") + ]) + location.reload(); + console.log("done") +} \ No newline at end of file diff --git a/src/frontend/dashboard/src/app/app.component.html b/src/frontend/dashboard/src/app/app.component.html index e9d9a4f..43181de 100644 --- a/src/frontend/dashboard/src/app/app.component.html +++ b/src/frontend/dashboard/src/app/app.component.html @@ -4,6 +4,7 @@ Dashboard and Widgets +