From 07e2ea701e861485ba683ba44d708e2669f032e6 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 25 May 2021 08:26:43 +0100 Subject: [PATCH] Remove login form component --- .../design/AppPreview/componentStructure.json | 3 +- packages/standard-components/manifest.json | 23 --- packages/standard-components/src/Login.svelte | 194 ------------------ packages/standard-components/src/index.js | 1 - 4 files changed, 1 insertion(+), 220 deletions(-) delete mode 100644 packages/standard-components/src/Login.svelte diff --git a/packages/builder/src/components/design/AppPreview/componentStructure.json b/packages/builder/src/components/design/AppPreview/componentStructure.json index 9bc6be093e..5bd2e01d25 100644 --- a/packages/builder/src/components/design/AppPreview/componentStructure.json +++ b/packages/builder/src/components/design/AppPreview/componentStructure.json @@ -61,8 +61,7 @@ "icon": "More", "children": [ "screenslot", - "navigation", - "login" + "navigation" ] } ] diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index 050f1fe254..9f67af6489 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -304,29 +304,6 @@ } ] }, - "login": { - "name": "Login Form", - "description": "A component that automatically generates a login screen for your app.", - "icon": "Login", - "styleable": true, - "settings": [ - { - "type": "text", - "label": "Logo", - "key": "logo" - }, - { - "type": "text", - "label": "Title", - "key": "title" - }, - { - "type": "text", - "label": "Button Text", - "key": "buttonText" - } - ] - }, "navigation": { "name": "Nav Bar", "description": "A component for handling the navigation within your app.", diff --git a/packages/standard-components/src/Login.svelte b/packages/standard-components/src/Login.svelte deleted file mode 100644 index 4d52cccd46..0000000000 --- a/packages/standard-components/src/Login.svelte +++ /dev/null @@ -1,194 +0,0 @@ - - - -
-
- {#if logo} -
logo
- {/if} - - {#if title} -

{title}

- {/if} - -
-
- -
- -
- -
- - -
- - {#if error} -
Incorrect email or password
- {/if} -
-
- - diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js index 7b4d492fa9..1c176f3645 100644 --- a/packages/standard-components/src/index.js +++ b/packages/standard-components/src/index.js @@ -18,7 +18,6 @@ export { default as repeater } from "./Repeater.svelte" export { default as stackedlist } from "./StackedList.svelte" export { default as card } from "./Card.svelte" export { default as text } from "./Text.svelte" -export { default as login } from "./Login.svelte" export { default as navigation } from "./Navigation.svelte" export { default as link } from "./Link.svelte" export { default as heading } from "./Heading.svelte"