web: cleanup entrypoints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
869f18483f
commit
c8608db4ee
|
@ -65,7 +65,7 @@ export default [
|
|||
},
|
||||
// Main Application
|
||||
{
|
||||
input: "./src/main.ts",
|
||||
input: "./src/interfaces/AdminInterface.ts",
|
||||
output: [
|
||||
{
|
||||
format: "es",
|
||||
|
@ -92,7 +92,7 @@ export default [
|
|||
},
|
||||
// Flow executor
|
||||
{
|
||||
input: "./src/flow.ts",
|
||||
input: "./src/interfaces/FlowInterface.ts",
|
||||
output: [
|
||||
{
|
||||
format: "es",
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
import "construct-style-sheets-polyfill";
|
||||
|
||||
import "./elements/messages/MessageContainer";
|
||||
import "./flows/FlowExecutor";
|
|
@ -1,3 +1,9 @@
|
|||
import "construct-style-sheets-polyfill";
|
||||
|
||||
// Elements that are used by SiteShell pages
|
||||
// And can't dynamically be imported
|
||||
import "../elements/CodeMirror";
|
||||
import "../elements/messages/MessageContainer";
|
||||
import { customElement } from "lit-element";
|
||||
import { me } from "../api/Users";
|
||||
import { SidebarItem } from "../elements/sidebar/Sidebar";
|
||||
|
|
4
web/src/interfaces/FlowInterface.ts
Normal file
4
web/src/interfaces/FlowInterface.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import "construct-style-sheets-polyfill";
|
||||
|
||||
import "../elements/messages/MessageContainer";
|
||||
import "../flows/FlowExecutor";
|
|
@ -1,14 +0,0 @@
|
|||
import "construct-style-sheets-polyfill";
|
||||
|
||||
// Elements that are used by SiteShell pages
|
||||
// And can't dynamically be imported
|
||||
import "./elements/buttons/ActionButton";
|
||||
import "./elements/buttons/Dropdown";
|
||||
import "./elements/buttons/ModalButton";
|
||||
import "./elements/buttons/SpinnerButton";
|
||||
import "./elements/CodeMirror";
|
||||
|
||||
import "./pages/tokens/UserTokenList";
|
||||
import "./pages/generic/SiteShell";
|
||||
import "./interfaces/AdminInterface";
|
||||
import "./elements/messages/MessageContainer";
|
|
@ -48,13 +48,7 @@ export class UserSettingsPage extends LitElement {
|
|||
return html`<ak-user-settings-authenticator-static objectId=${stage.objectUid}>
|
||||
</ak-user-settings-authenticator-static>`;
|
||||
default:
|
||||
return html`<div class="pf-u-display-flex pf-u-justify-content-center">
|
||||
<div class="pf-u-w-75">
|
||||
<ak-site-shell url="${ifDefined(stage.component)}">
|
||||
<div slot="body"></div>
|
||||
</ak-site-shell>
|
||||
</div>
|
||||
</div>`;
|
||||
return html`<p>unsupported component ${stage.component}</p>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,13 +58,7 @@ export class UserSettingsPage extends LitElement {
|
|||
return html`<ak-user-settings-source-oauth objectId=${source.objectUid}>
|
||||
</ak-user-settings-source-oauth>`;
|
||||
default:
|
||||
return html`<div class="pf-u-display-flex pf-u-justify-content-center">
|
||||
<div class="pf-u-w-75">
|
||||
<ak-site-shell url="${ifDefined(source.component)}">
|
||||
<div slot="body"></div>
|
||||
</ak-site-shell>
|
||||
</div>
|
||||
</div>`;
|
||||
return html`<p>unsupported component ${source.component}</p>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue