From bf3c5d550a6598b4421f3ab37a8a2ec1f82271d9 Mon Sep 17 00:00:00 2001 From: ido Date: Tue, 30 Dec 2014 10:42:31 +0200 Subject: [PATCH] improved UI, better samples --- Gruntfile.js | 2 +- fiddle.html | 9 +- index.html | 45 ++----- playground/CMLint.js | 124 +++++++++++++++++++ playground/CodeMirrorEditor.js | 30 +++-- playground/css/fiddle.css | 138 +++++++++++++++++---- playground/css/home.css | 71 ++++++++--- playground/css/playground.css | 86 +++++++------ playground/dist/fiddle.min.js | 4 + playground/dist/rt-main.browser.js | 9 ++ playground/dist/rt-main.browser.min.js | 2 +- playground/examples.js | 2 +- playground/examples.rt | 3 +- playground/examples.rt.js | 3 +- playground/fiddle-main.js | 57 ++------- playground/fiddle.rt | 16 +-- playground/fiddle.rt.js | 10 +- playground/home-main.js | 2 +- playground/playground-fiddle.rt | 31 +++-- playground/playground-fiddle.rt.js | 35 ++++-- playground/playground.js | 163 +++++++++++++++++++++---- playground/playground.rt | 18 ++- playground/playground.rt.js | 12 +- playground/samples/hello.code | 6 +- playground/samples/rt-if.code | 7 +- playground/samples/rt-props.code | 21 +++- playground/samples/rt-props.rt | 19 ++- playground/samples/rt-repeat.code | 14 +-- playground/samples/rt-repeat.rt | 4 +- playground/samples/todo.code | 13 +- playground/samples/todo.rt | 18 ++- playground/samples/weather.code | 10 +- playground/samples/weather.rt | 3 +- src/api.js | 2 +- src/reactTemplates.js | 9 ++ 35 files changed, 706 insertions(+), 292 deletions(-) create mode 100644 playground/CMLint.js create mode 100644 playground/dist/fiddle.min.js diff --git a/Gruntfile.js b/Gruntfile.js index 9872141..2095031 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -61,7 +61,7 @@ module.exports = function (grunt) { watch: { rt: { files: [ - 'playground/**/*.rt' + 'playground/*.rt' ], tasks: ['rt'], options: { diff --git a/fiddle.html b/fiddle.html index facca18..b734201 100644 --- a/fiddle.html +++ b/fiddle.html @@ -9,6 +9,8 @@ + + @@ -19,6 +21,7 @@ + @@ -29,8 +32,12 @@ - + + + + + diff --git a/index.html b/index.html index 4194b58..1866ce0 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ + @@ -42,6 +43,7 @@ + @@ -52,9 +54,10 @@
- React Templates + React Templates