web: cleanup entrypoints

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-27 22:06:42 +01:00
parent 869f18483f
commit c8608db4ee
6 changed files with 14 additions and 34 deletions

View file

@ -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",

View file

@ -1,4 +0,0 @@
import "construct-style-sheets-polyfill";
import "./elements/messages/MessageContainer";
import "./flows/FlowExecutor";

View file

@ -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";

View file

@ -0,0 +1,4 @@
import "construct-style-sheets-polyfill";
import "../elements/messages/MessageContainer";
import "../flows/FlowExecutor";

View file

@ -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";

View file

@ -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>`;
}
}