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 +