From 5717bda8a4ed0560e35aac2b4b724a33d6a66f24 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 26 May 2020 10:38:43 +0200 Subject: [PATCH] refactor home page to use _layout --- .../src/components/common/ModalDialog.svelte | 51 ++++ .../{_layout.svelte => _reset.svelte} | 0 packages/builder/src/pages/_layout.svelte | 214 ++++++++++++++ packages/builder/src/pages/index.svelte | 269 +++--------------- 4 files changed, 306 insertions(+), 228 deletions(-) create mode 100644 packages/builder/src/components/common/ModalDialog.svelte rename packages/builder/src/pages/[application]/{_layout.svelte => _reset.svelte} (100%) create mode 100644 packages/builder/src/pages/_layout.svelte diff --git a/packages/builder/src/components/common/ModalDialog.svelte b/packages/builder/src/components/common/ModalDialog.svelte new file mode 100644 index 0000000000..121714cd85 --- /dev/null +++ b/packages/builder/src/components/common/ModalDialog.svelte @@ -0,0 +1,51 @@ + + +

{message}

+ +{#if hasForm} + e.which === 13 && _onOkay()} /> +{/if} + +
+ + +
+ + diff --git a/packages/builder/src/pages/[application]/_layout.svelte b/packages/builder/src/pages/[application]/_reset.svelte similarity index 100% rename from packages/builder/src/pages/[application]/_layout.svelte rename to packages/builder/src/pages/[application]/_reset.svelte diff --git a/packages/builder/src/pages/_layout.svelte b/packages/builder/src/pages/_layout.svelte new file mode 100644 index 0000000000..b807c1737b --- /dev/null +++ b/packages/builder/src/pages/_layout.svelte @@ -0,0 +1,214 @@ + + +
+ + +
+ +
+
+ + diff --git a/packages/builder/src/pages/index.svelte b/packages/builder/src/pages/index.svelte index cf9aa87bb3..6c77059739 100644 --- a/packages/builder/src/pages/index.svelte +++ b/packages/builder/src/pages/index.svelte @@ -1,22 +1,11 @@ -
-
- - - - - - -