From c8608db4ee31bb99b7c79471a94bd9fbb3518ec0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 27 Mar 2021 22:06:42 +0100 Subject: [PATCH] web: cleanup entrypoints Signed-off-by: Jens Langhammer --- web/rollup.config.js | 4 ++-- web/src/flow.ts | 4 ---- web/src/interfaces/AdminInterface.ts | 6 ++++++ web/src/interfaces/FlowInterface.ts | 4 ++++ web/src/main.ts | 14 -------------- web/src/pages/users/UserSettingsPage.ts | 16 ++-------------- 6 files changed, 14 insertions(+), 34 deletions(-) delete mode 100644 web/src/flow.ts create mode 100644 web/src/interfaces/FlowInterface.ts delete mode 100644 web/src/main.ts diff --git a/web/rollup.config.js b/web/rollup.config.js index e86f10842..84045077d 100644 --- a/web/rollup.config.js +++ b/web/rollup.config.js @@ -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", diff --git a/web/src/flow.ts b/web/src/flow.ts deleted file mode 100644 index 9fe22476c..000000000 --- a/web/src/flow.ts +++ /dev/null @@ -1,4 +0,0 @@ -import "construct-style-sheets-polyfill"; - -import "./elements/messages/MessageContainer"; -import "./flows/FlowExecutor"; diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index a31b5b48a..0418c459e 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -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"; diff --git a/web/src/interfaces/FlowInterface.ts b/web/src/interfaces/FlowInterface.ts new file mode 100644 index 000000000..9ba725a8c --- /dev/null +++ b/web/src/interfaces/FlowInterface.ts @@ -0,0 +1,4 @@ +import "construct-style-sheets-polyfill"; + +import "../elements/messages/MessageContainer"; +import "../flows/FlowExecutor"; diff --git a/web/src/main.ts b/web/src/main.ts deleted file mode 100644 index f57e82208..000000000 --- a/web/src/main.ts +++ /dev/null @@ -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"; diff --git a/web/src/pages/users/UserSettingsPage.ts b/web/src/pages/users/UserSettingsPage.ts index eefdae207..d6590324e 100644 --- a/web/src/pages/users/UserSettingsPage.ts +++ b/web/src/pages/users/UserSettingsPage.ts @@ -48,13 +48,7 @@ export class UserSettingsPage extends LitElement { return html` `; default: - return html`
-
- -
-
-
-
`; + return html`

unsupported component ${stage.component}

`; } } @@ -64,13 +58,7 @@ export class UserSettingsPage extends LitElement { return html` `; default: - return html`
-
- -
-
-
-
`; + return html`

unsupported component ${source.component}

`; } }