From 5b4132a8e6ef91b05b1b57fe2ff6ce6e6a458dc0 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Wed, 24 Jun 2020 15:41:33 +0100 Subject: [PATCH] formatting and linting --- .../Colorpicker/ButtonGroup.svelte | 26 +- .../Colorpicker/CheckedBackground.svelte | 21 +- .../Colorpicker/Colorpicker.svelte | 141 ++++----- .../Colorpicker/Colorpreview.svelte | 271 ++++++++++-------- .../Colorpicker/FlatButton.svelte | 8 +- .../userInterface/Colorpicker/Input.svelte | 10 +- .../userInterface/Colorpicker/Palette.svelte | 59 ++-- .../userInterface/Colorpicker/Slider.svelte | 61 ++-- .../userInterface/DesignView.svelte | 38 +-- .../userInterface/FlatButton.svelte | 5 +- .../userInterface/FlatButtonGroup.svelte | 2 +- .../userInterface/FrontendNavigatePane.svelte | 4 +- .../userInterface/PropertyControl.svelte | 2 +- .../userInterface/propertyCategories.js | 107 ++++--- .../database/[selectedDatabase]/index.svelte | 4 +- packages/standard-components/src/Login.svelte | 22 +- 16 files changed, 420 insertions(+), 361 deletions(-) diff --git a/packages/builder/src/components/userInterface/Colorpicker/ButtonGroup.svelte b/packages/builder/src/components/userInterface/Colorpicker/ButtonGroup.svelte index 134dac772d..a187b4689b 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/ButtonGroup.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/ButtonGroup.svelte @@ -1,12 +1,21 @@ +
+ {#each colorFormats as text} + onclick(text)} /> + {/each} +
+ - -
- {#each colorFormats as text} - onclick(text)} /> - {/each} -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte b/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte index c6acd8f18a..11561a98c8 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/CheckedBackground.svelte @@ -1,15 +1,18 @@ +
+ +
+ - -
- -
\ No newline at end of file diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte index 16f17ccc98..53988715f3 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte @@ -1,82 +1,116 @@ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ setHue(hue.detail)} /> + + + setAlpha(alpha.detail)} /> + + +
+
+ +
+ + handleColorInput(event.target.value)} /> +
+
+ +
+ - -
- -
- -
- -
-
-
- -
- -
-
- setHue(hue.detail)} /> - - - setAlpha(alpha.detail)} /> - - -
-
- -
- - handleColorInput(event.target.value)} /> -
-
- -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte index 8f5bf64f70..31d0c3234e 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte @@ -1,146 +1,173 @@
- {#if !errorMsg} - -
- + {#if !errorMsg} + +
+ - {#if open} -
- -
-
open = false} class="overlay">
- {/if} - {:else} -
- × -
+ {#if open} +
+ +
+
(open = false)} class="overlay" /> {/if} + {:else} +
+ × +
+ {/if}
- - diff --git a/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte b/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte index 881f73d134..15bc72fe3c 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/FlatButton.svelte @@ -1,8 +1,10 @@ +
{text}
+ - -
{text}
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Input.svelte b/packages/builder/src/components/userInterface/Colorpicker/Input.svelte index 483fcd450d..47d43bed2e 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Input.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Input.svelte @@ -1,7 +1,11 @@ +
+ +
+ - -
- -
diff --git a/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte b/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte index 4763ee86cc..e31400e98a 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Palette.svelte @@ -1,42 +1,57 @@ + +
+
+
+ + - - -
-
-
- diff --git a/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte b/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte index 47736d7b69..c22565cf81 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte +++ b/packages/builder/src/components/userInterface/Colorpicker/Slider.svelte @@ -1,36 +1,47 @@ +
handleClick(event.clientX)} + class="color-format-slider" + class:hue={type === 'hue'} + class:alpha={type === 'alpha'}> +
handleClick(e.detail)} + class="slider-thumb" + {style} /> +
+ - -
handleClick(event.clientX)} - class="color-format-slider" - class:hue={type === 'hue'} - class:alpha={type === 'alpha'}> -
handleClick(e.detail)} - class="slider-thumb" - {style} /> -
diff --git a/packages/builder/src/components/userInterface/DesignView.svelte b/packages/builder/src/components/userInterface/DesignView.svelte index 2de24864a1..7bca352bd1 100644 --- a/packages/builder/src/components/userInterface/DesignView.svelte +++ b/packages/builder/src/components/userInterface/DesignView.svelte @@ -30,26 +30,26 @@
-
-
- {#if propertyGroupNames.length > 0} - {#each propertyGroupNames as groupName} - - {/each} - {:else} -
- This component does not have any design properties -
- {/if} +
+
+ {#if propertyGroupNames.length > 0} + {#each propertyGroupNames as groupName} + + {/each} + {:else} +
+ This component does not have any design properties +
+ {/if} +
-