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/5] 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/5] 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 bac43174bb7e34b04dfeb71231a8ccfee921ef2e Mon Sep 17 00:00:00 2001 From: anbcodes Date: Wed, 24 Jul 2019 12:14:23 -0400 Subject: [PATCH 3/5] refactored App.vue --- src/App.vue | 374 +++++++++++++----------------- src/components/AppSlider.vue | 42 ++++ src/components/FieldBox.vue | 17 ++ src/components/UnderOneSlider.vue | 39 ++++ src/components/Upload.vue | 15 ++ 5 files changed, 274 insertions(+), 213 deletions(-) create mode 100644 src/components/AppSlider.vue create mode 100644 src/components/FieldBox.vue create mode 100644 src/components/UnderOneSlider.vue create mode 100644 src/components/Upload.vue diff --git a/src/App.vue b/src/App.vue index 829b1c8..ec3ec20 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,115 +1,25 @@