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/Components/LEDConfig/LEDConfig.svelte | 204 +++++++++++++++++++++ .../Components/LEDConfig/MatrixSegment.svelte | 57 ++++++ src_frontend/Components/LEDConfig/Segment.svelte | 38 ++++ 3 files changed, 299 insertions(+) create mode 100644 src_frontend/Components/LEDConfig/LEDConfig.svelte create mode 100644 src_frontend/Components/LEDConfig/MatrixSegment.svelte create mode 100644 src_frontend/Components/LEDConfig/Segment.svelte (limited to 'src_frontend/Components/LEDConfig') diff --git a/src_frontend/Components/LEDConfig/LEDConfig.svelte b/src_frontend/Components/LEDConfig/LEDConfig.svelte new file mode 100644 index 0000000..2cf9aa2 --- /dev/null +++ b/src_frontend/Components/LEDConfig/LEDConfig.svelte @@ -0,0 +1,204 @@ + + + + +
+

Segments

+

Here you are defining the "segments" of your light-display. Use this to split the strip in stairs, blocks or any other configuration. Normally you would define a segment, for each cut you have made in the strip. But you could do other things to get fancy results. Each segment will be represented in the "matrix", by the number just below the number. Each segment should have it's own box below.

+ +
+ {#each segments as segment, i} +
+ +
+ {/each} + + +
+ +

Matrix

+

Here you are defining your matrix. A matrix is really nothing more than a 2-dimentional array, or a list of lists. This is not a mathematical array, meaning each "row" can have different lengths. Use this to stitch your segments together. Each "box" should contain the number of the segment it is representing. By pressing the double-arrows on the box, you can "invert" a segment. This means counting from the other end. Use this if you have the segments in a snake-layout.

+ +
+ {#each matrix as row, i} +
+ {#each row as cell} +
+ +
+ {/each} + + +
+ {/each} + + +
+ +

Advanced

+
+ + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/src_frontend/Components/LEDConfig/MatrixSegment.svelte b/src_frontend/Components/LEDConfig/MatrixSegment.svelte new file mode 100644 index 0000000..c2c1934 --- /dev/null +++ b/src_frontend/Components/LEDConfig/MatrixSegment.svelte @@ -0,0 +1,57 @@ + + + + +
+ + +
\ No newline at end of file diff --git a/src_frontend/Components/LEDConfig/Segment.svelte b/src_frontend/Components/LEDConfig/Segment.svelte new file mode 100644 index 0000000..3b71451 --- /dev/null +++ b/src_frontend/Components/LEDConfig/Segment.svelte @@ -0,0 +1,38 @@ + + + + +
+ + {id} +
\ No newline at end of file -- cgit v1.2.3