Permalink
Browse files

update todomvc-common to 0.3.0

  • Loading branch information...
1 parent b785628 commit 65ef22f57c5122dbc982cdf6b29b6b5d06c6f0b5 @stephenplusplus stephenplusplus committed Nov 3, 2014
Showing with 1,788 additions and 1,931 deletions.
  1. +1 −1 examples/agilityjs/bower.json
  2. +26 −9 examples/agilityjs/bower_components/todomvc-common/base.js
  3. +0 −22 examples/agilityjs/bower_components/todomvc-common/bower.json
  4. +26 −9 examples/ampersand/todomvc-common/base.js
  5. +1 −1 examples/angular-dart/bower.json
  6. +26 −9 examples/angular-dart/bower_components/todomvc-common/base.js
  7. +0 −22 examples/angular-dart/bower_components/todomvc-common/bower.json
  8. +1 −1 examples/angularjs-perf/bower.json
  9. +0 −22 examples/angularjs/bower_components/todomvc-common/bower.json
  10. +1 −1 examples/angularjs_require/bower.json
  11. +1 −1 examples/ariatemplates/bower.json
  12. +26 −9 examples/ariatemplates/bower_components/todomvc-common/base.js
  13. +0 −22 examples/ariatemplates/bower_components/todomvc-common/bower.json
  14. +1 −1 examples/atmajs/bower.json
  15. +26 −9 examples/atmajs/bower_components/todomvc-common/base.js
  16. +0 −22 examples/atmajs/bower_components/todomvc-common/bower.json
  17. +1 −1 examples/backbone/bower.json
  18. +26 −9 examples/backbone/bower_components/todomvc-common/base.js
  19. +0 −22 examples/backbone/bower_components/todomvc-common/bower.json
  20. +1 −1 examples/backbone_marionette/bower.json
  21. +26 −9 examples/backbone_marionette/bower_components/todomvc-common/base.js
  22. +0 −22 examples/backbone_marionette/bower_components/todomvc-common/bower.json
  23. +1 −1 examples/backbone_marionette_require/bower.json
  24. +26 −9 examples/backbone_marionette_require/bower_components/todomvc-common/base.js
  25. +0 −22 examples/backbone_marionette_require/bower_components/todomvc-common/bower.json
  26. +1 −1 examples/backbone_require/bower.json
  27. +26 −9 examples/backbone_require/bower_components/todomvc-common/base.js
  28. +0 −22 examples/backbone_require/bower_components/todomvc-common/bower.json
  29. +1 −1 examples/batman/bower.json
  30. +26 −9 examples/batman/bower_components/todomvc-common/base.js
  31. +0 −22 examples/batman/bower_components/todomvc-common/bower.json
  32. +1 −1 examples/canjs/bower.json
  33. +26 −9 examples/canjs/bower_components/todomvc-common/base.js
  34. +0 −22 examples/canjs/bower_components/todomvc-common/bower.json
  35. +1 −1 examples/canjs_require/bower.json
  36. +26 −9 examples/canjs_require/bower_components/todomvc-common/base.js
  37. +0 −22 examples/canjs_require/bower_components/todomvc-common/bower.json
  38. +1 −1 examples/chaplin-brunch/bower.json
  39. +26 −9 examples/chaplin-brunch/bower_components/todomvc-common/base.js
  40. +1 −1 examples/closure/bower.json
  41. +26 −9 examples/closure/bower_components/todomvc-common/base.js
  42. +0 −22 examples/closure/bower_components/todomvc-common/bower.json
  43. +26 −9 examples/componentjs/bower_components/todomvc-common/base.js
  44. +0 −22 examples/componentjs/bower_components/todomvc-common/bower.json
  45. +1 −1 examples/cujo/bower.json
  46. +26 −9 examples/cujo/bower_components/todomvc-common/base.js
  47. +0 −22 examples/cujo/bower_components/todomvc-common/bower.json
  48. +1 −1 examples/derby/bower.json
  49. +26 −9 examples/derby/public/components/todomvc-common/base.js
  50. +1 −1 examples/dijon/bower.json
  51. +26 −9 examples/dijon/bower_components/todomvc-common/base.js
  52. +0 −22 examples/dijon/bower_components/todomvc-common/bower.json
  53. +1 −1 examples/dojo/bower.json
  54. +26 −9 examples/dojo/bower_components/todomvc-common/base.js
  55. +0 −22 examples/dojo/bower_components/todomvc-common/bower.json
  56. +1 −1 examples/duel/bower.json
  57. +26 −9 examples/duel/src/main/webapp/bower_components/todomvc-common/base.js
  58. +1 −1 examples/durandal/bower.json
  59. +26 −9 examples/durandal/bower_components/todomvc-common/base.js
  60. +0 −22 examples/durandal/bower_components/todomvc-common/bower.json
  61. +1 −1 examples/emberjs/bower.json
  62. +26 −9 examples/emberjs/bower_components/todomvc-common/base.js
  63. +0 −22 examples/emberjs/bower_components/todomvc-common/bower.json
  64. +2 −2 examples/enyo_backbone/bower.json
  65. +26 −9 examples/enyo_backbone/bower_components/todomvc-common/base.js
  66. +0 −22 examples/enyo_backbone/bower_components/todomvc-common/bower.json
  67. +1 −1 examples/epitome/bower.json
  68. +26 −9 examples/epitome/bower_components/todomvc-common/base.js
  69. +0 −22 examples/epitome/bower_components/todomvc-common/bower.json
  70. +1 −1 examples/exoskeleton/bower.json
  71. +26 −9 examples/exoskeleton/bower_components/todomvc-common/base.js
  72. +0 −22 examples/exoskeleton/bower_components/todomvc-common/bower.json
  73. +1 −1 examples/extjs_deftjs/bower.json
  74. +26 −9 examples/extjs_deftjs/bower_components/todomvc-common/base.js
  75. +0 −22 examples/extjs_deftjs/bower_components/todomvc-common/bower.json
  76. +1 −1 examples/firebase-angular/bower.json
  77. +26 −9 examples/firebase-angular/bower_components/todomvc-common/base.js
  78. +0 −22 examples/firebase-angular/bower_components/todomvc-common/bower.json
  79. +1 −1 examples/flight/bower.json
  80. +26 −9 examples/flight/bower_components/todomvc-common/base.js
  81. +0 −22 examples/flight/bower_components/todomvc-common/bower.json
  82. +2 −2 examples/gwt/bower.json
  83. +26 −9 examples/gwt/bower_components/todomvc-common/base.js
  84. +0 −22 examples/gwt/bower_components/todomvc-common/bower.json
  85. +1 −1 examples/jquery/bower.json
  86. +26 −9 examples/jquery/bower_components/todomvc-common/base.js
  87. +1 −1 examples/kendo/bower.json
  88. +26 −9 examples/kendo/bower_components/todomvc-common/base.js
  89. +0 −22 examples/kendo/bower_components/todomvc-common/bower.json
  90. +1 −1 examples/knockback/bower.json
  91. +26 −9 examples/knockback/bower_components/todomvc-common/base.js
  92. +0 −22 examples/knockback/bower_components/todomvc-common/bower.json
  93. +1 −1 examples/knockoutjs/bower.json
  94. +26 −9 examples/knockoutjs/bower_components/todomvc-common/base.js
  95. +0 −22 examples/knockoutjs/bower_components/todomvc-common/bower.json
  96. +1 −1 examples/knockoutjs_require/bower.json
  97. +26 −9 examples/knockoutjs_require/bower_components/todomvc-common/base.js
  98. +0 −22 examples/knockoutjs_require/bower_components/todomvc-common/bower.json
  99. +1 −1 examples/lavaca_require/bower.json
  100. +26 −9 examples/lavaca_require/bower_components/todomvc-common/base.js
  101. +0 −22 examples/lavaca_require/bower_components/todomvc-common/bower.json
  102. +1 −1 examples/maria/bower.json
  103. +26 −9 examples/maria/bower_components/todomvc-common/base.js
  104. +0 −22 examples/maria/bower_components/todomvc-common/bower.json
  105. +1 −1 examples/meteor/bower.json
  106. +26 −9 examples/meteor/client/bower_components/todomvc-common/base.js
  107. +1 −1 examples/mithril/bower.json
  108. +26 −9 examples/mithril/bower_components/todomvc-common/base.js
  109. +0 −22 examples/mithril/bower_components/todomvc-common/bower.json
  110. +1 −1 examples/montage/bower.json
  111. +26 −9 examples/montage/bower_components/todomvc-common/base.js
  112. +0 −22 examples/montage/bower_components/todomvc-common/bower.json
  113. +1 −1 examples/olives/bower.json
  114. +26 −9 examples/olives/bower_components/todomvc-common/base.js
  115. +0 −22 examples/olives/bower_components/todomvc-common/bower.json
  116. +1 −1 examples/plastronjs/bower.json
  117. +26 −9 examples/plastronjs/bower_components/todomvc-common/base.js
  118. +0 −22 examples/plastronjs/bower_components/todomvc-common/bower.json
  119. +1 −1 examples/polymer/bower.json
  120. +26 −9 examples/polymer/bower_components/todomvc-common/base.js
  121. +0 −22 examples/polymer/bower_components/todomvc-common/bower.json
  122. +1 −1 examples/puremvc/bower.json
  123. +26 −9 examples/puremvc/bower_components/todomvc-common/base.js
  124. +0 −22 examples/puremvc/bower_components/todomvc-common/bower.json
  125. +1 −1 examples/ractive/bower.json
  126. +26 −9 examples/ractive/bower_components/todomvc-common/base.js
  127. +0 −22 examples/ractive/bower_components/todomvc-common/bower.json
  128. +1 −1 examples/rappidjs/bower.json
  129. +26 −9 examples/rappidjs/bower_components/todomvc-common/base.js
  130. +0 −22 examples/rappidjs/bower_components/todomvc-common/bower.json
  131. +1 −1 examples/react-backbone/bower.json
  132. +26 −9 examples/react-backbone/bower_components/todomvc-common/base.js
  133. +0 −22 examples/react-backbone/bower_components/todomvc-common/bower.json
  134. +1 −1 examples/react/bower.json
  135. +26 −9 examples/react/bower_components/todomvc-common/base.js
  136. +0 −22 examples/react/bower_components/todomvc-common/bower.json
  137. +1 −1 examples/sammyjs/bower.json
  138. +26 −9 examples/sammyjs/bower_components/todomvc-common/base.js
  139. +0 −22 examples/sammyjs/bower_components/todomvc-common/bower.json
  140. +1 −1 examples/sapui5/bower.json
  141. +26 −9 examples/sapui5/bower_components/todomvc-common/base.js
  142. +0 −22 examples/sapui5/bower_components/todomvc-common/bower.json
  143. +1 −1 examples/serenadejs/bower.json
  144. +26 −9 examples/serenadejs/bower_components/todomvc-common/base.js
  145. +0 −22 examples/serenadejs/bower_components/todomvc-common/bower.json
  146. +1 −1 examples/socketstream/bower.json
  147. +1 −1 examples/somajs/bower.json
  148. +26 −9 examples/somajs/bower_components/todomvc-common/base.js
  149. +0 −22 examples/somajs/bower_components/todomvc-common/bower.json
  150. +1 −1 examples/somajs_require/bower.json
  151. +26 −9 examples/somajs_require/bower_components/todomvc-common/base.js
  152. +0 −22 examples/somajs_require/bower_components/todomvc-common/bower.json
  153. +1 −1 examples/spine/bower.json
  154. +26 −9 examples/spine/bower_components/todomvc-common/base.js
  155. +0 −22 examples/spine/bower_components/todomvc-common/bower.json
  156. +1 −1 examples/stapes/bower.json
  157. +26 −9 examples/stapes/bower_components/todomvc-common/base.js
  158. +0 −22 examples/stapes/bower_components/todomvc-common/bower.json
  159. +1 −1 examples/stapes_require/bower.json
  160. +26 −9 examples/stapes_require/bower_components/todomvc-common/base.js
  161. +0 −22 examples/stapes_require/bower_components/todomvc-common/bower.json
  162. +1 −1 examples/thorax/bower.json
  163. +26 −9 examples/thorax/bower_components/todomvc-common/base.js
  164. +0 −22 examples/thorax/bower_components/todomvc-common/bower.json
  165. +1 −1 examples/thorax_lumbar/bower.json
  166. +26 −9 examples/thorax_lumbar/bower_components/todomvc-common/base.js
  167. +0 −22 examples/thorax_lumbar/bower_components/todomvc-common/bower.json
  168. +26 −9 examples/troopjs_require/bower_components/todomvc-common/base.js
  169. +0 −22 examples/troopjs_require/bower_components/todomvc-common/bower.json
  170. +1 −1 examples/typescript-angular/bower.json
  171. +26 −9 examples/typescript-angular/bower_components/todomvc-common/base.js
  172. +0 −22 examples/typescript-angular/bower_components/todomvc-common/bower.json
  173. +1 −1 examples/typescript-backbone/bower.json
  174. +26 −9 examples/typescript-backbone/bower_components/todomvc-common/base.js
  175. +0 −22 examples/typescript-backbone/bower_components/todomvc-common/bower.json
  176. +2 −2 examples/vanilladart/bower.json
  177. +26 −9 examples/vanilladart/build/web/bower_components/todomvc-common/base.js
  178. +26 −9 examples/vanilladart/web/bower_components/todomvc-common/base.js
  179. +1 −1 examples/vanillajs/bower.json
  180. +26 −9 examples/vanillajs/bower_components/todomvc-common/base.js
  181. +2 −2 examples/vue/bower.json
  182. +26 −9 examples/vue/bower_components/todomvc-common/base.js
  183. +0 −22 examples/vue/bower_components/todomvc-common/bower.json
  184. +1 −1 examples/yui/bower.json
  185. +26 −9 examples/yui/bower_components/todomvc-common/base.js
  186. +0 −22 examples/yui/bower_components/todomvc-common/bower.json
  187. +2 −2 tasks/Gruntfile.js
  188. +0 −2 template/bower_components/todomvc-common/base.css
  189. +28 −20 template/bower_components/todomvc-common/base.js
@@ -2,7 +2,7 @@
"name": "agilityjs",
"version": "0.0.0",
"dependencies": {
- "todomvc-common": "~0.1.4",
+ "todomvc-common": "~0.3.0",
"agility": "~0.1.3",
"jquery": "~1.9.1"
}
@@ -171,25 +171,42 @@
framework = document.querySelector('[data-framework]').dataset.framework;
}
+ this.template = template;
- if (template && learnJSON[framework]) {
+ if (learnJSON.backend) {
+ this.frameworkJSON = learnJSON.backend;
+ this.append({
+ backend: true
+ });
+ } else if (learnJSON[framework]) {
this.frameworkJSON = learnJSON[framework];
- this.template = template;
-
this.append();
}
}
- Learn.prototype.append = function () {
+ Learn.prototype.append = function (opts) {
var aside = document.createElement('aside');
aside.innerHTML = _.template(this.template, this.frameworkJSON);
aside.className = 'learn';
- // Localize demo links
- var demoLinks = aside.querySelectorAll('.demo-link');
- Array.prototype.forEach.call(demoLinks, function (demoLink) {
- demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
- });
+ if (opts && opts.backend) {
+ // Remove demo link
+ var sourceLinks = aside.querySelector('.source-links');
+ var heading = sourceLinks.firstElementChild;
+ var sourceLink = sourceLinks.lastElementChild;
+ // Correct link path
+ var href = sourceLink.getAttribute('href');
+ sourceLink.setAttribute('href', href.substr(href.lastIndexOf('http')));
+ sourceLinks.innerHTML = heading.outerHTML + sourceLink.outerHTML;
+ } else {
+ // Localize demo links
+ var demoLinks = aside.querySelectorAll('.demo-link');
+ Array.prototype.forEach.call(demoLinks, function (demoLink) {
+ if (demoLink.getAttribute('href').substr(0, 4) !== 'http') {
+ demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
+ }
+ });
+ }
document.body.className = (document.body.className + ' learn-bar').trim();
document.body.insertAdjacentHTML('afterBegin', aside.outerHTML);
@@ -1,22 +0,0 @@
-{
- "name": "todomvc-common",
- "description": "Common TodoMVC utilities used by our apps",
- "license": "MIT",
- "authors": [
- "TasteJS team"
- ],
- "main": [
- "base.js",
- "base.css"
- ],
- "keywords": [
- "todomvc",
- "tastejs",
- "util",
- "utilities"
- ],
- "ignore": [
- "package.json",
- "readme.md"
- ]
-}
@@ -171,25 +171,42 @@
framework = document.querySelector('[data-framework]').dataset.framework;
}
+ this.template = template;
- if (template && learnJSON[framework]) {
+ if (learnJSON.backend) {
+ this.frameworkJSON = learnJSON.backend;
+ this.append({
+ backend: true
+ });
+ } else if (learnJSON[framework]) {
this.frameworkJSON = learnJSON[framework];
- this.template = template;
-
this.append();
}
}
- Learn.prototype.append = function () {
+ Learn.prototype.append = function (opts) {
var aside = document.createElement('aside');
aside.innerHTML = _.template(this.template, this.frameworkJSON);
aside.className = 'learn';
- // Localize demo links
- var demoLinks = aside.querySelectorAll('.demo-link');
- Array.prototype.forEach.call(demoLinks, function (demoLink) {
- demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
- });
+ if (opts && opts.backend) {
+ // Remove demo link
+ var sourceLinks = aside.querySelector('.source-links');
+ var heading = sourceLinks.firstElementChild;
+ var sourceLink = sourceLinks.lastElementChild;
+ // Correct link path
+ var href = sourceLink.getAttribute('href');
+ sourceLink.setAttribute('href', href.substr(href.lastIndexOf('http')));
+ sourceLinks.innerHTML = heading.outerHTML + sourceLink.outerHTML;
+ } else {
+ // Localize demo links
+ var demoLinks = aside.querySelectorAll('.demo-link');
+ Array.prototype.forEach.call(demoLinks, function (demoLink) {
+ if (demoLink.getAttribute('href').substr(0, 4) !== 'http') {
+ demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
+ }
+ });
+ }
document.body.className = (document.body.className + ' learn-bar').trim();
document.body.insertAdjacentHTML('afterBegin', aside.outerHTML);
@@ -15,6 +15,6 @@
"tests"
],
"dependencies": {
- "todomvc-common": "~0.1.9"
+ "todomvc-common": "~0.3.0"
}
}
@@ -171,25 +171,42 @@
framework = document.querySelector('[data-framework]').dataset.framework;
}
+ this.template = template;
- if (template && learnJSON[framework]) {
+ if (learnJSON.backend) {
+ this.frameworkJSON = learnJSON.backend;
+ this.append({
+ backend: true
+ });
+ } else if (learnJSON[framework]) {
this.frameworkJSON = learnJSON[framework];
- this.template = template;
-
this.append();
}
}
- Learn.prototype.append = function () {
+ Learn.prototype.append = function (opts) {
var aside = document.createElement('aside');
aside.innerHTML = _.template(this.template, this.frameworkJSON);
aside.className = 'learn';
- // Localize demo links
- var demoLinks = aside.querySelectorAll('.demo-link');
- Array.prototype.forEach.call(demoLinks, function (demoLink) {
- demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
- });
+ if (opts && opts.backend) {
+ // Remove demo link
+ var sourceLinks = aside.querySelector('.source-links');
+ var heading = sourceLinks.firstElementChild;
+ var sourceLink = sourceLinks.lastElementChild;
+ // Correct link path
+ var href = sourceLink.getAttribute('href');
+ sourceLink.setAttribute('href', href.substr(href.lastIndexOf('http')));
+ sourceLinks.innerHTML = heading.outerHTML + sourceLink.outerHTML;
+ } else {
+ // Localize demo links
+ var demoLinks = aside.querySelectorAll('.demo-link');
+ Array.prototype.forEach.call(demoLinks, function (demoLink) {
+ if (demoLink.getAttribute('href').substr(0, 4) !== 'http') {
+ demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
+ }
+ });
+ }
document.body.className = (document.body.className + ' learn-bar').trim();
document.body.insertAdjacentHTML('afterBegin', aside.outerHTML);
@@ -1,22 +0,0 @@
-{
- "name": "todomvc-common",
- "description": "Common TodoMVC utilities used by our apps",
- "license": "MIT",
- "authors": [
- "TasteJS team"
- ],
- "main": [
- "base.js",
- "base.css"
- ],
- "keywords": [
- "todomvc",
- "tastejs",
- "util",
- "utilities"
- ],
- "ignore": [
- "package.json",
- "readme.md"
- ]
-}
@@ -3,6 +3,6 @@
"version": "0.0.0",
"dependencies": {
"angular": "1.2.9",
- "todomvc-common": "~0.1.9"
+ "todomvc-common": "~0.3.0"
}
}
@@ -1,22 +0,0 @@
-{
- "name": "todomvc-common",
- "description": "Common TodoMVC utilities used by our apps",
- "license": "MIT",
- "authors": [
- "TasteJS team"
- ],
- "main": [
- "base.js",
- "base.css"
- ],
- "keywords": [
- "todomvc",
- "tastejs",
- "util",
- "utilities"
- ],
- "ignore": [
- "package.json",
- "readme.md"
- ]
-}
@@ -3,7 +3,7 @@
"version": "0.0.0",
"dependencies": {
"angular": "1.2.8",
- "todomvc-common": "~0.1.9",
+ "todomvc-common": "~0.3.0",
"requirejs": "~2.1.9"
}
}
@@ -2,6 +2,6 @@
"name": "todomvc-ariatemplates",
"version": "0.0.0",
"dependencies": {
- "todomvc-common": "~0.1.6"
+ "todomvc-common": "~0.3.0"
}
}
@@ -171,25 +171,42 @@
framework = document.querySelector('[data-framework]').dataset.framework;
}
+ this.template = template;
- if (template && learnJSON[framework]) {
+ if (learnJSON.backend) {
+ this.frameworkJSON = learnJSON.backend;
+ this.append({
+ backend: true
+ });
+ } else if (learnJSON[framework]) {
this.frameworkJSON = learnJSON[framework];
- this.template = template;
-
this.append();
}
}
- Learn.prototype.append = function () {
+ Learn.prototype.append = function (opts) {
var aside = document.createElement('aside');
aside.innerHTML = _.template(this.template, this.frameworkJSON);
aside.className = 'learn';
- // Localize demo links
- var demoLinks = aside.querySelectorAll('.demo-link');
- Array.prototype.forEach.call(demoLinks, function (demoLink) {
- demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
- });
+ if (opts && opts.backend) {
+ // Remove demo link
+ var sourceLinks = aside.querySelector('.source-links');
+ var heading = sourceLinks.firstElementChild;
+ var sourceLink = sourceLinks.lastElementChild;
+ // Correct link path
+ var href = sourceLink.getAttribute('href');
+ sourceLink.setAttribute('href', href.substr(href.lastIndexOf('http')));
+ sourceLinks.innerHTML = heading.outerHTML + sourceLink.outerHTML;
+ } else {
+ // Localize demo links
+ var demoLinks = aside.querySelectorAll('.demo-link');
+ Array.prototype.forEach.call(demoLinks, function (demoLink) {
+ if (demoLink.getAttribute('href').substr(0, 4) !== 'http') {
+ demoLink.setAttribute('href', findRoot() + demoLink.getAttribute('href'));
+ }
+ });
+ }
document.body.className = (document.body.className + ' learn-bar').trim();
document.body.insertAdjacentHTML('afterBegin', aside.outerHTML);
@@ -1,22 +0,0 @@
-{
- "name": "todomvc-common",
- "description": "Common TodoMVC utilities used by our apps",
- "license": "MIT",
- "authors": [
- "TasteJS team"
- ],
- "main": [
- "base.js",
- "base.css"
- ],
- "keywords": [
- "todomvc",
- "tastejs",
- "util",
- "utilities"
- ],
- "ignore": [
- "package.json",
- "readme.md"
- ]
-}
@@ -2,7 +2,7 @@
"name": "todomvc-atmajs",
"version": "0.1.0",
"dependencies": {
- "todomvc-common": "~0.1.4",
+ "todomvc-common": "~0.3.0",
"jquery": "~2.0.2",
"maskjs": "~0.10.1",
"includejs": "~0.9.10",
Oops, something went wrong.

0 comments on commit 65ef22f

Please sign in to comment.