From cdb14dd478266a234156062354df4f401f039677 Mon Sep 17 00:00:00 2001 From: anbcodes <31807975+anbcodes@users.noreply.github.com> Date: Mon, 22 Jul 2019 16:13:12 -0400 Subject: [PATCH 1/3] Updated README.md Updated README.md to include documentation for JSON format --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df121c8..1143485 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm run serve ## Usage -* Click "Upload Edge List CSV" to upload a file of the form: +* Click "UPLOAD CVS OR JSON" to upload a file of the form: ``` source,target a,b @@ -20,5 +20,30 @@ b,c c,d d,a ``` +for CSV and +``` +{ + "edges": [ + { + "source": "a", + "target": "b" + }, + { + "source": "b", + "target": "c" + }, + { + "source": "c", + "target": "d" + }, + { + "source": "d", + "target": "a" + } + ] +} +``` +for JSON + * Click "Start Layout". * Play with the controls! From c9aaea399ba4246d63a0c27a18c042a8b2da84c6 Mon Sep 17 00:00:00 2001 From: anbcodes <31807975+anbcodes@users.noreply.github.com> Date: Tue, 23 Jul 2019 11:34:09 -0400 Subject: [PATCH 2/3] Added a Node List to README I added a node list to README.md and fixed some indentation. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1143485..6e7085b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm run serve ## Usage -* Click "UPLOAD CVS OR JSON" to upload a file of the form: +* Click "UPLOAD CSV OR JSON" to upload a file of the form: ``` source,target a,b @@ -23,11 +23,17 @@ d,a for CSV and ``` { + "nodes": [ + { "id": "a" }, + { "id": "b" }, + { "id": "c" }, + { "id": "d" } + ], "edges": [ { "source": "a", "target": "b" - }, + }, { "source": "b", "target": "c" From 55c57dec1fd9eafe4255d6fbc31448ef2328673a Mon Sep 17 00:00:00 2001 From: anbcodes Date: Wed, 24 Jul 2019 12:49:38 -0400 Subject: [PATCH 3/3] disable start layout button until layout loaded --- README.md | 35 +----- src/App.vue | 326 ++++++++++++++++++++++++++++------------------------ 2 files changed, 178 insertions(+), 183 deletions(-) diff --git a/README.md b/README.md index 6e7085b..752bb47 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm run serve ## Usage -* Click "UPLOAD CSV OR JSON" to upload a file of the form: +* Click "Upload Edge List CSV" to upload a file of the form: ``` source,target a,b @@ -20,36 +20,5 @@ b,c c,d d,a ``` -for CSV and -``` -{ - "nodes": [ - { "id": "a" }, - { "id": "b" }, - { "id": "c" }, - { "id": "d" } - ], - "edges": [ - { - "source": "a", - "target": "b" - }, - { - "source": "b", - "target": "c" - }, - { - "source": "c", - "target": "d" - }, - { - "source": "d", - "target": "a" - } - ] -} -``` -for JSON - * Click "Start Layout". -* Play with the controls! +* Play with the controls! \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 829b1c8..959e324 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,37 +2,38 @@ Upload CSV or JSON - +
{{ nodeCount }} nodes, {{ edgeCount }} edges
- + - - {{ layoutRunning ? 'Stop' : 'Start' }} layout + + {{ layoutRunning ? 'Stop' : 'Start' }} layout - + - + - + - + Download JSON
@@ -120,10 +116,10 @@