From 7bdce37fd3f18e2712e18c4e2c64cac69af0aca1 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sun, 19 Sep 2021 19:43:11 +0200 Subject: :boom: Introduce new UI based on svelte, and rewrite a lot of the node app and the NeoRuntime --- src_frontend/ComponentLib/Button/Button.svelte | 80 ++++++++++ .../ComponentLib/Button/FloatingButton.svelte | 104 +++++++++++++ src_frontend/ComponentLib/FloatingSelect.svelte | 45 ++++++ src_frontend/ComponentLib/Input.svelte | 14 ++ src_frontend/ComponentLib/PrettyVar.svelte | 16 ++ src_frontend/ComponentLib/RoundRange.svelte | 169 +++++++++++++++++++++ 6 files changed, 428 insertions(+) create mode 100644 src_frontend/ComponentLib/Button/Button.svelte create mode 100644 src_frontend/ComponentLib/Button/FloatingButton.svelte create mode 100644 src_frontend/ComponentLib/FloatingSelect.svelte create mode 100644 src_frontend/ComponentLib/Input.svelte create mode 100644 src_frontend/ComponentLib/PrettyVar.svelte create mode 100644 src_frontend/ComponentLib/RoundRange.svelte (limited to 'src_frontend/ComponentLib') diff --git a/src_frontend/ComponentLib/Button/Button.svelte b/src_frontend/ComponentLib/Button/Button.svelte new file mode 100644 index 0000000..3943ecf --- /dev/null +++ b/src_frontend/ComponentLib/Button/Button.svelte @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/src_frontend/ComponentLib/Button/FloatingButton.svelte b/src_frontend/ComponentLib/Button/FloatingButton.svelte new file mode 100644 index 0000000..123debc --- /dev/null +++ b/src_frontend/ComponentLib/Button/FloatingButton.svelte @@ -0,0 +1,104 @@ + + + + +
+ + {#if label != null} + {label} + {/if} +
\ No newline at end of file diff --git a/src_frontend/ComponentLib/FloatingSelect.svelte b/src_frontend/ComponentLib/FloatingSelect.svelte new file mode 100644 index 0000000..0d71ca7 --- /dev/null +++ b/src_frontend/ComponentLib/FloatingSelect.svelte @@ -0,0 +1,45 @@ + + + + + + \ No newline at end of file diff --git a/src_frontend/ComponentLib/Input.svelte b/src_frontend/ComponentLib/Input.svelte new file mode 100644 index 0000000..ecbaefb --- /dev/null +++ b/src_frontend/ComponentLib/Input.svelte @@ -0,0 +1,14 @@ + + + + +
+ +
\ No newline at end of file diff --git a/src_frontend/ComponentLib/PrettyVar.svelte b/src_frontend/ComponentLib/PrettyVar.svelte new file mode 100644 index 0000000..68f082f --- /dev/null +++ b/src_frontend/ComponentLib/PrettyVar.svelte @@ -0,0 +1,16 @@ + + +{prettyVarText} diff --git a/src_frontend/ComponentLib/RoundRange.svelte b/src_frontend/ComponentLib/RoundRange.svelte new file mode 100644 index 0000000..42c4d57 --- /dev/null +++ b/src_frontend/ComponentLib/RoundRange.svelte @@ -0,0 +1,169 @@ + + + + + + + + + + + + {value}% + \ No newline at end of file -- cgit v1.2.3