From 055aad9426b6bbb86790f6fe19303a845f08757a Mon Sep 17 00:00:00 2001 From: bajran Date: Tue, 15 Oct 2019 12:37:27 +0530 Subject: [PATCH 1/8] Change in css for code mirror and added comment --- frontend/index.html | 116 +++++++++++++++++++++++--------------------- frontend/style.css | 4 ++ 2 files changed, 65 insertions(+), 55 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 618e711..cf9d51f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,61 +1,67 @@ + - yaml2go - - - - - - - + yaml2go + + + + + + + - - - -
- -
- -
-

- yaml2go -

-

- Convert YAML specs to Go type definitions -

-
-
-
- -
-
- - - delete -
-
- -
- -
- - - delete -
-
-
-
-
- - - - - + + + + + + + + +
+ +
+ +
+

+ yaml2go +

+

+ Convert YAML specs to Go type definitions +

+
+
+
+ +
+
+ + + delete +
+
+ +
+ +
+ + + delete +
+
+
+
+
+ + + + + - + + \ No newline at end of file diff --git a/frontend/style.css b/frontend/style.css index f722617..f7bc184 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -93,3 +93,7 @@ button:focus{ cursor: pointer; } + +.CodeMirror { + border: 1px solid lavender !important; +} \ No newline at end of file From 93e7a066f40b4de0aca3c6a423972e4f3afde213 Mon Sep 17 00:00:00 2001 From: bajran Date: Tue, 15 Oct 2019 17:53:25 +0530 Subject: [PATCH 2/8] Increase the height of yaml and go editor --- frontend/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/style.css b/frontend/style.css index f7bc184..1d124f4 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -96,4 +96,5 @@ button:focus{ .CodeMirror { border: 1px solid lavender !important; + width: 500px; } \ No newline at end of file From 1b6f5818255494fd6f9716b8281009384f7c8883 Mon Sep 17 00:00:00 2001 From: bajran Date: Tue, 15 Oct 2019 18:08:06 +0530 Subject: [PATCH 3/8] Increase Size of Yaml and Go Editor --- frontend/index.js | 6 ++++-- frontend/style.css | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/index.js b/frontend/index.js index ad7d920..9c933d8 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -50,12 +50,14 @@ $(document).ready(function(){ var input = $(".codemirror-textarea")[0]; var output = $(".codemirror-textarea")[1]; editor = CodeMirror.fromTextArea(input, { - mode: "text/x-yaml", + mode: "text/x-yaml", lineNumbers : true }); - + editor.setSize(600, 400) + go = CodeMirror.fromTextArea(output, { lineNumbers : true, mode: "text/x-go" }); + go.setSize(600,400) }); diff --git a/frontend/style.css b/frontend/style.css index 1d124f4..af56384 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -95,6 +95,5 @@ button:focus{ .CodeMirror { - border: 1px solid lavender !important; - width: 500px; + border: 1px solid lavender !important; } \ No newline at end of file From 963915f04d54e2f4b94e0d6f43fc070192e2c2dc Mon Sep 17 00:00:00 2001 From: bajran Date: Thu, 17 Oct 2019 10:17:04 +0530 Subject: [PATCH 4/8] Console Statement --- frontend/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/index.js b/frontend/index.js index 9c933d8..6a99796 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -31,6 +31,7 @@ window.generatorCall=function (){ //Convert document.getElementById("convert").addEventListener('click', ()=>{ + console.log('Temp Data') generatorCall() }) From b783a8cf06ab14a7e25edb5680c3e106ec5f45bf Mon Sep 17 00:00:00 2001 From: bajran Date: Fri, 18 Oct 2019 10:47:03 +0530 Subject: [PATCH 5/8] Modifed Code Structure --- frontend/index.html | 64 +++++++++++++------- frontend/style.css | 142 +++++++++++++++++++++++++++++--------------- 2 files changed, 136 insertions(+), 70 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index cf9d51f..f5938b3 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,58 +2,80 @@ - yaml2go + yaml2go: Convert YAML to Go Lang type definitions - - - - - - - - + + + + + + + + + + + -
-

- yaml2go -

-

- Convert YAML specs to Go type definitions -

+
+

+ yaml2go +

+

+ Convert YAML specs to Go type definitions +

+
+ +
+
+
-
-
+
+
- + delete
-
+
delete

+

+ We would love your input. Please feel free to send PRs and open issues on the Github repo
+ The Go Gopher is originally by Renee French
+ This artwork is borrowed from an awesome artwork collection by Egon Elbre