From 438d07aac63d086b20807a1e74610431599e9516 Mon Sep 17 00:00:00 2001 From: Ariel Jakobovits Date: Sat, 7 Jul 2012 20:19:08 -0700 Subject: [PATCH 1/9] package.json editor --- .gitignore | 2 + client/css/package-json.css | 29 +++ client/css/style.css | 11 + client/index.html | 23 +- client/js/EditorPool.js | 3 + client/js/FormBuilder.js | 299 ++++++++++++++++++++++ client/js/PackageJSONEditor.js | 354 +++++++++++++++++++++++++++ client/js/UserInterfaceController.js | 9 + client/js/external/underscore-min.js | 32 +++ package.json | 4 +- 10 files changed, 758 insertions(+), 8 deletions(-) create mode 100644 client/css/package-json.css create mode 100644 client/js/FormBuilder.js create mode 100644 client/js/PackageJSONEditor.js create mode 100644 client/js/external/underscore-min.js diff --git a/.gitignore b/.gitignore index c951b29..8d6e055 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules .DS_Store .nide +.idea +*~ \ No newline at end of file diff --git a/client/css/package-json.css b/client/css/package-json.css new file mode 100644 index 0000000..dbfea91 --- /dev/null +++ b/client/css/package-json.css @@ -0,0 +1,29 @@ + + +form#packageJSON { + padding: 5px; + width: 55%; +} + +form#packageJSON fieldset { + border: solid 1px #000000; + margin-bottom: 10px; +} + +form#packageJSON div.formRow { + display: table-row; +} + +form#packageJSON label.formCell { + display: table-cell; + padding: 0 1em; + font-size: 13px; + line-height: 20px; +} + +#hint-container { + position: absolute; + top: 50px; + right: 10px; + width: 40%; +} \ No newline at end of file diff --git a/client/css/style.css b/client/css/style.css index d60ac5a..e502dc9 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -317,6 +317,17 @@ body { color: rgb(180,0,0) } +#content .package-json-editor { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: url('../img/noise.png') no-repeat 90% 90% #eee; + padding: 8px; + overflow: auto; + + #content .documentation-viewer { width: 100%; height: 100%; diff --git a/client/index.html b/client/index.html index 63a8b54..6c5c78e 100644 --- a/client/index.html +++ b/client/index.html @@ -4,20 +4,22 @@ nide - + + - + + - - + + @@ -30,8 +32,11 @@ - - + + + + + @@ -41,6 +46,7 @@ +