From be2cfc85033209edc63fc5825f81e5d04b331531 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Wed, 22 Apr 2015 15:09:12 -0700 Subject: [PATCH] website: use new step oriented system for interactive demo --- website/source/_ember_steps.html.erb | 28 ++++ website/source/_ember_templates.html.erb | 14 +- .../source/assets/javascripts/application.js | 1 + .../demo.js => controllers/application.js} | 14 +- .../javascripts/demo/controllers/demo.js | 30 ---- .../javascripts/demo/controllers/step.js | 70 +++++++++ .../demo/initializer/load-steps.js | 18 +++ .../assets/javascripts/demo/model/step.js | 6 + .../source/assets/javascripts/demo/router.js | 4 +- .../assets/javascripts/demo/routes/crud.js | 2 - .../assets/javascripts/demo/routes/step.js | 18 +++ .../assets/javascripts/demo/views/demo.js | 141 +----------------- .../assets/javascripts/demo/views/step.js | 140 +++++++++++++++++ .../javascripts/lib/ember-data-1-0.min.js | 4 + website/source/assets/stylesheets/_demo.scss | 18 ++- website/source/layouts/layout.erb | 1 + 16 files changed, 319 insertions(+), 190 deletions(-) create mode 100644 website/source/_ember_steps.html.erb rename website/source/assets/javascripts/demo/{routes/demo.js => controllers/application.js} (64%) create mode 100644 website/source/assets/javascripts/demo/controllers/step.js create mode 100644 website/source/assets/javascripts/demo/initializer/load-steps.js create mode 100644 website/source/assets/javascripts/demo/model/step.js delete mode 100644 website/source/assets/javascripts/demo/routes/crud.js create mode 100644 website/source/assets/javascripts/demo/routes/step.js create mode 100644 website/source/assets/javascripts/demo/views/step.js create mode 100644 website/source/assets/javascripts/lib/ember-data-1-0.min.js diff --git a/website/source/_ember_steps.html.erb b/website/source/_ember_steps.html.erb new file mode 100644 index 000000000..1eed770f2 --- /dev/null +++ b/website/source/_ember_steps.html.erb @@ -0,0 +1,28 @@ + diff --git a/website/source/_ember_templates.html.erb b/website/source/_ember_templates.html.erb index 37c2b60b1..223d9ef2f 100644 --- a/website/source/_ember_templates.html.erb +++ b/website/source/_ember_templates.html.erb @@ -1,25 +1,21 @@ - - -