From 8e3d823401c68e71cb5438392c44e5633f6b8f4d Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Wed, 3 Jun 2020 15:13:39 +0100 Subject: [PATCH 01/21] login component UI update Input styles updates Labels removed Button redesigned Title/name added to ui and settings *Logo and preview broke for login component and page - Another issue --- .../userInterface/temporaryPanelStructure.js | 16 ++- packages/standard-components/components.json | 1 + packages/standard-components/src/Login.svelte | 121 +++++++++++------- 3 files changed, 91 insertions(+), 47 deletions(-) diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 55036b2da5..f95937a927 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -267,7 +267,21 @@ export default { "A component that automatically generates a login screen for your app.", icon: "ri-login-box-fill", children: [], - properties: { design: { ...all } }, + properties: { + design: { ...all }, + settings: [ + { + label: "Name", + key: "name", + control: Input, + }, + { + label: "Logo", + key: "logo", + control: Input, + }, + ], + }, }, { name: "Table", diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index f9c800489e..c069a2fe01 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -59,6 +59,7 @@ "props": { "logo": "asset", "loginRedirect": "string", + "name": "string", "usernameLabel": { "type": "string", "default": "Username" diff --git a/packages/standard-components/src/Login.svelte b/packages/standard-components/src/Login.svelte index 65aa5302eb..bced8ae866 100644 --- a/packages/standard-components/src/Login.svelte +++ b/packages/standard-components/src/Login.svelte @@ -1,10 +1,9 @@