From 427ea184f2875ffeb49b3e90a5c83e4632c6aa09 Mon Sep 17 00:00:00 2001 From: Vasek Sraier Date: Sun, 27 Sep 2020 13:39:35 +0200 Subject: [PATCH] graf: i hrany uz jsou ciste Svelte --- frontend/public/grafik.html | 2 +- frontend/src/Graph.svelte | 37 +++++----------------------- frontend/src/GraphEdge.svelte | 17 +++++++++++++ frontend/src/GraphNode.svelte | 46 +++++++++++++++++++++++++++-------- 4 files changed, 60 insertions(+), 42 deletions(-) create mode 100644 frontend/src/GraphEdge.svelte diff --git a/frontend/public/grafik.html b/frontend/public/grafik.html index 33954f8..5a61ab5 100644 --- a/frontend/public/grafik.html +++ b/frontend/public/grafik.html @@ -4,7 +4,7 @@ - Svelte app + Graulohík diff --git a/frontend/src/Graph.svelte b/frontend/src/Graph.svelte index b3fae06..6876804 100644 --- a/frontend/src/Graph.svelte +++ b/frontend/src/Graph.svelte @@ -1,5 +1,6 @@ + + + \ No newline at end of file diff --git a/frontend/src/GraphNode.svelte b/frontend/src/GraphNode.svelte index 2f205cb..2939407 100644 --- a/frontend/src/GraphNode.svelte +++ b/frontend/src/GraphNode.svelte @@ -1,18 +1,44 @@ - - {#if !focused} - + + {#if !hovering} + {:else} - - {/if} --> - {task.id} - + + {/if} + + {task.id} + +