new plugin structure

This commit is contained in:
peter
2019-08-04 14:51:44 +02:00
parent c03f6c0f76
commit ea5b1ea2ad
3 changed files with 14 additions and 2 deletions
+12 -1
View File
@@ -73,4 +73,15 @@ export class FrontblockConfigLib{
}
window['fb'] = new FrontblockConfigLib()
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")
}
@@ -4,6 +4,7 @@
<a class="nav-link">
<span class="title">Dashboard and Widgets</span>
</a>
<button onclick="setup()">setup!</button>
</div>
</header>