Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
65ef22f5
Commit
65ef22f5
authored
Nov 03, 2014
by
Stephen Sawchuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update todomvc-common to 0.3.0
parent
b785628e
Changes
189
Hide whitespace changes
Inline
Side-by-side
Showing
189 changed files
with
1788 additions
and
1931 deletions
+1788
-1931
examples/agilityjs/bower.json
examples/agilityjs/bower.json
+1
-1
examples/agilityjs/bower_components/todomvc-common/base.js
examples/agilityjs/bower_components/todomvc-common/base.js
+26
-9
examples/agilityjs/bower_components/todomvc-common/bower.json
...ples/agilityjs/bower_components/todomvc-common/bower.json
+0
-22
examples/ampersand/todomvc-common/base.js
examples/ampersand/todomvc-common/base.js
+26
-9
examples/angular-dart/bower.json
examples/angular-dart/bower.json
+1
-1
examples/angular-dart/bower_components/todomvc-common/base.js
...ples/angular-dart/bower_components/todomvc-common/base.js
+26
-9
examples/angular-dart/bower_components/todomvc-common/bower.json
...s/angular-dart/bower_components/todomvc-common/bower.json
+0
-22
examples/angularjs-perf/bower.json
examples/angularjs-perf/bower.json
+1
-1
examples/angularjs/bower_components/todomvc-common/bower.json
...ples/angularjs/bower_components/todomvc-common/bower.json
+0
-22
examples/angularjs_require/bower.json
examples/angularjs_require/bower.json
+1
-1
examples/ariatemplates/bower.json
examples/ariatemplates/bower.json
+1
-1
examples/ariatemplates/bower_components/todomvc-common/base.js
...les/ariatemplates/bower_components/todomvc-common/base.js
+26
-9
examples/ariatemplates/bower_components/todomvc-common/bower.json
.../ariatemplates/bower_components/todomvc-common/bower.json
+0
-22
examples/atmajs/bower.json
examples/atmajs/bower.json
+1
-1
examples/atmajs/bower_components/todomvc-common/base.js
examples/atmajs/bower_components/todomvc-common/base.js
+26
-9
examples/atmajs/bower_components/todomvc-common/bower.json
examples/atmajs/bower_components/todomvc-common/bower.json
+0
-22
examples/backbone/bower.json
examples/backbone/bower.json
+1
-1
examples/backbone/bower_components/todomvc-common/base.js
examples/backbone/bower_components/todomvc-common/base.js
+26
-9
examples/backbone/bower_components/todomvc-common/bower.json
examples/backbone/bower_components/todomvc-common/bower.json
+0
-22
examples/backbone_marionette/bower.json
examples/backbone_marionette/bower.json
+1
-1
examples/backbone_marionette/bower_components/todomvc-common/base.js
...ckbone_marionette/bower_components/todomvc-common/base.js
+26
-9
examples/backbone_marionette/bower_components/todomvc-common/bower.json
...one_marionette/bower_components/todomvc-common/bower.json
+0
-22
examples/backbone_marionette_require/bower.json
examples/backbone_marionette_require/bower.json
+1
-1
examples/backbone_marionette_require/bower_components/todomvc-common/base.js
...arionette_require/bower_components/todomvc-common/base.js
+26
-9
examples/backbone_marionette_require/bower_components/todomvc-common/bower.json
...onette_require/bower_components/todomvc-common/bower.json
+0
-22
examples/backbone_require/bower.json
examples/backbone_require/bower.json
+1
-1
examples/backbone_require/bower_components/todomvc-common/base.js
.../backbone_require/bower_components/todomvc-common/base.js
+26
-9
examples/backbone_require/bower_components/todomvc-common/bower.json
...ckbone_require/bower_components/todomvc-common/bower.json
+0
-22
examples/batman/bower.json
examples/batman/bower.json
+1
-1
examples/batman/bower_components/todomvc-common/base.js
examples/batman/bower_components/todomvc-common/base.js
+26
-9
examples/batman/bower_components/todomvc-common/bower.json
examples/batman/bower_components/todomvc-common/bower.json
+0
-22
examples/canjs/bower.json
examples/canjs/bower.json
+1
-1
examples/canjs/bower_components/todomvc-common/base.js
examples/canjs/bower_components/todomvc-common/base.js
+26
-9
examples/canjs/bower_components/todomvc-common/bower.json
examples/canjs/bower_components/todomvc-common/bower.json
+0
-22
examples/canjs_require/bower.json
examples/canjs_require/bower.json
+1
-1
examples/canjs_require/bower_components/todomvc-common/base.js
...les/canjs_require/bower_components/todomvc-common/base.js
+26
-9
examples/canjs_require/bower_components/todomvc-common/bower.json
.../canjs_require/bower_components/todomvc-common/bower.json
+0
-22
examples/chaplin-brunch/bower.json
examples/chaplin-brunch/bower.json
+1
-1
examples/chaplin-brunch/bower_components/todomvc-common/base.js
...es/chaplin-brunch/bower_components/todomvc-common/base.js
+26
-9
examples/closure/bower.json
examples/closure/bower.json
+1
-1
examples/closure/bower_components/todomvc-common/base.js
examples/closure/bower_components/todomvc-common/base.js
+26
-9
examples/closure/bower_components/todomvc-common/bower.json
examples/closure/bower_components/todomvc-common/bower.json
+0
-22
examples/componentjs/bower_components/todomvc-common/base.js
examples/componentjs/bower_components/todomvc-common/base.js
+26
-9
examples/componentjs/bower_components/todomvc-common/bower.json
...es/componentjs/bower_components/todomvc-common/bower.json
+0
-22
examples/cujo/bower.json
examples/cujo/bower.json
+1
-1
examples/cujo/bower_components/todomvc-common/base.js
examples/cujo/bower_components/todomvc-common/base.js
+26
-9
examples/cujo/bower_components/todomvc-common/bower.json
examples/cujo/bower_components/todomvc-common/bower.json
+0
-22
examples/derby/bower.json
examples/derby/bower.json
+1
-1
examples/derby/public/components/todomvc-common/base.js
examples/derby/public/components/todomvc-common/base.js
+26
-9
examples/dijon/bower.json
examples/dijon/bower.json
+1
-1
examples/dijon/bower_components/todomvc-common/base.js
examples/dijon/bower_components/todomvc-common/base.js
+26
-9
examples/dijon/bower_components/todomvc-common/bower.json
examples/dijon/bower_components/todomvc-common/bower.json
+0
-22
examples/dojo/bower.json
examples/dojo/bower.json
+1
-1
examples/dojo/bower_components/todomvc-common/base.js
examples/dojo/bower_components/todomvc-common/base.js
+26
-9
examples/dojo/bower_components/todomvc-common/bower.json
examples/dojo/bower_components/todomvc-common/bower.json
+0
-22
examples/duel/bower.json
examples/duel/bower.json
+1
-1
examples/duel/src/main/webapp/bower_components/todomvc-common/base.js
...l/src/main/webapp/bower_components/todomvc-common/base.js
+26
-9
examples/durandal/bower.json
examples/durandal/bower.json
+1
-1
examples/durandal/bower_components/todomvc-common/base.js
examples/durandal/bower_components/todomvc-common/base.js
+26
-9
examples/durandal/bower_components/todomvc-common/bower.json
examples/durandal/bower_components/todomvc-common/bower.json
+0
-22
examples/emberjs/bower.json
examples/emberjs/bower.json
+1
-1
examples/emberjs/bower_components/todomvc-common/base.js
examples/emberjs/bower_components/todomvc-common/base.js
+26
-9
examples/emberjs/bower_components/todomvc-common/bower.json
examples/emberjs/bower_components/todomvc-common/bower.json
+0
-22
examples/enyo_backbone/bower.json
examples/enyo_backbone/bower.json
+2
-2
examples/enyo_backbone/bower_components/todomvc-common/base.js
...les/enyo_backbone/bower_components/todomvc-common/base.js
+26
-9
examples/enyo_backbone/bower_components/todomvc-common/bower.json
.../enyo_backbone/bower_components/todomvc-common/bower.json
+0
-22
examples/epitome/bower.json
examples/epitome/bower.json
+1
-1
examples/epitome/bower_components/todomvc-common/base.js
examples/epitome/bower_components/todomvc-common/base.js
+26
-9
examples/epitome/bower_components/todomvc-common/bower.json
examples/epitome/bower_components/todomvc-common/bower.json
+0
-22
examples/exoskeleton/bower.json
examples/exoskeleton/bower.json
+1
-1
examples/exoskeleton/bower_components/todomvc-common/base.js
examples/exoskeleton/bower_components/todomvc-common/base.js
+26
-9
examples/exoskeleton/bower_components/todomvc-common/bower.json
...es/exoskeleton/bower_components/todomvc-common/bower.json
+0
-22
examples/extjs_deftjs/bower.json
examples/extjs_deftjs/bower.json
+1
-1
examples/extjs_deftjs/bower_components/todomvc-common/base.js
...ples/extjs_deftjs/bower_components/todomvc-common/base.js
+26
-9
examples/extjs_deftjs/bower_components/todomvc-common/bower.json
...s/extjs_deftjs/bower_components/todomvc-common/bower.json
+0
-22
examples/firebase-angular/bower.json
examples/firebase-angular/bower.json
+1
-1
examples/firebase-angular/bower_components/todomvc-common/base.js
.../firebase-angular/bower_components/todomvc-common/base.js
+26
-9
examples/firebase-angular/bower_components/todomvc-common/bower.json
...rebase-angular/bower_components/todomvc-common/bower.json
+0
-22
examples/flight/bower.json
examples/flight/bower.json
+1
-1
examples/flight/bower_components/todomvc-common/base.js
examples/flight/bower_components/todomvc-common/base.js
+26
-9
examples/flight/bower_components/todomvc-common/bower.json
examples/flight/bower_components/todomvc-common/bower.json
+0
-22
examples/gwt/bower.json
examples/gwt/bower.json
+2
-2
examples/gwt/bower_components/todomvc-common/base.js
examples/gwt/bower_components/todomvc-common/base.js
+26
-9
examples/gwt/bower_components/todomvc-common/bower.json
examples/gwt/bower_components/todomvc-common/bower.json
+0
-22
examples/jquery/bower.json
examples/jquery/bower.json
+1
-1
examples/jquery/bower_components/todomvc-common/base.js
examples/jquery/bower_components/todomvc-common/base.js
+26
-9
examples/kendo/bower.json
examples/kendo/bower.json
+1
-1
examples/kendo/bower_components/todomvc-common/base.js
examples/kendo/bower_components/todomvc-common/base.js
+26
-9
examples/kendo/bower_components/todomvc-common/bower.json
examples/kendo/bower_components/todomvc-common/bower.json
+0
-22
examples/knockback/bower.json
examples/knockback/bower.json
+1
-1
examples/knockback/bower_components/todomvc-common/base.js
examples/knockback/bower_components/todomvc-common/base.js
+26
-9
examples/knockback/bower_components/todomvc-common/bower.json
...ples/knockback/bower_components/todomvc-common/bower.json
+0
-22
examples/knockoutjs/bower.json
examples/knockoutjs/bower.json
+1
-1
examples/knockoutjs/bower_components/todomvc-common/base.js
examples/knockoutjs/bower_components/todomvc-common/base.js
+26
-9
examples/knockoutjs/bower_components/todomvc-common/bower.json
...les/knockoutjs/bower_components/todomvc-common/bower.json
+0
-22
examples/knockoutjs_require/bower.json
examples/knockoutjs_require/bower.json
+1
-1
examples/knockoutjs_require/bower_components/todomvc-common/base.js
...nockoutjs_require/bower_components/todomvc-common/base.js
+26
-9
examples/knockoutjs_require/bower_components/todomvc-common/bower.json
...koutjs_require/bower_components/todomvc-common/bower.json
+0
-22
examples/lavaca_require/bower.json
examples/lavaca_require/bower.json
+1
-1
examples/lavaca_require/bower_components/todomvc-common/base.js
...es/lavaca_require/bower_components/todomvc-common/base.js
+26
-9
examples/lavaca_require/bower_components/todomvc-common/bower.json
...lavaca_require/bower_components/todomvc-common/bower.json
+0
-22
examples/maria/bower.json
examples/maria/bower.json
+1
-1
examples/maria/bower_components/todomvc-common/base.js
examples/maria/bower_components/todomvc-common/base.js
+26
-9
examples/maria/bower_components/todomvc-common/bower.json
examples/maria/bower_components/todomvc-common/bower.json
+0
-22
examples/meteor/bower.json
examples/meteor/bower.json
+1
-1
examples/meteor/client/bower_components/todomvc-common/base.js
...les/meteor/client/bower_components/todomvc-common/base.js
+26
-9
examples/mithril/bower.json
examples/mithril/bower.json
+1
-1
examples/mithril/bower_components/todomvc-common/base.js
examples/mithril/bower_components/todomvc-common/base.js
+26
-9
examples/mithril/bower_components/todomvc-common/bower.json
examples/mithril/bower_components/todomvc-common/bower.json
+0
-22
examples/montage/bower.json
examples/montage/bower.json
+1
-1
examples/montage/bower_components/todomvc-common/base.js
examples/montage/bower_components/todomvc-common/base.js
+26
-9
examples/montage/bower_components/todomvc-common/bower.json
examples/montage/bower_components/todomvc-common/bower.json
+0
-22
examples/olives/bower.json
examples/olives/bower.json
+1
-1
examples/olives/bower_components/todomvc-common/base.js
examples/olives/bower_components/todomvc-common/base.js
+26
-9
examples/olives/bower_components/todomvc-common/bower.json
examples/olives/bower_components/todomvc-common/bower.json
+0
-22
examples/plastronjs/bower.json
examples/plastronjs/bower.json
+1
-1
examples/plastronjs/bower_components/todomvc-common/base.js
examples/plastronjs/bower_components/todomvc-common/base.js
+26
-9
examples/plastronjs/bower_components/todomvc-common/bower.json
...les/plastronjs/bower_components/todomvc-common/bower.json
+0
-22
examples/polymer/bower.json
examples/polymer/bower.json
+1
-1
examples/polymer/bower_components/todomvc-common/base.js
examples/polymer/bower_components/todomvc-common/base.js
+26
-9
examples/polymer/bower_components/todomvc-common/bower.json
examples/polymer/bower_components/todomvc-common/bower.json
+0
-22
examples/puremvc/bower.json
examples/puremvc/bower.json
+1
-1
examples/puremvc/bower_components/todomvc-common/base.js
examples/puremvc/bower_components/todomvc-common/base.js
+26
-9
examples/puremvc/bower_components/todomvc-common/bower.json
examples/puremvc/bower_components/todomvc-common/bower.json
+0
-22
examples/ractive/bower.json
examples/ractive/bower.json
+1
-1
examples/ractive/bower_components/todomvc-common/base.js
examples/ractive/bower_components/todomvc-common/base.js
+26
-9
examples/ractive/bower_components/todomvc-common/bower.json
examples/ractive/bower_components/todomvc-common/bower.json
+0
-22
examples/rappidjs/bower.json
examples/rappidjs/bower.json
+1
-1
examples/rappidjs/bower_components/todomvc-common/base.js
examples/rappidjs/bower_components/todomvc-common/base.js
+26
-9
examples/rappidjs/bower_components/todomvc-common/bower.json
examples/rappidjs/bower_components/todomvc-common/bower.json
+0
-22
examples/react-backbone/bower.json
examples/react-backbone/bower.json
+1
-1
examples/react-backbone/bower_components/todomvc-common/base.js
...es/react-backbone/bower_components/todomvc-common/base.js
+26
-9
examples/react-backbone/bower_components/todomvc-common/bower.json
...react-backbone/bower_components/todomvc-common/bower.json
+0
-22
examples/react/bower.json
examples/react/bower.json
+1
-1
examples/react/bower_components/todomvc-common/base.js
examples/react/bower_components/todomvc-common/base.js
+26
-9
examples/react/bower_components/todomvc-common/bower.json
examples/react/bower_components/todomvc-common/bower.json
+0
-22
examples/sammyjs/bower.json
examples/sammyjs/bower.json
+1
-1
examples/sammyjs/bower_components/todomvc-common/base.js
examples/sammyjs/bower_components/todomvc-common/base.js
+26
-9
examples/sammyjs/bower_components/todomvc-common/bower.json
examples/sammyjs/bower_components/todomvc-common/bower.json
+0
-22
examples/sapui5/bower.json
examples/sapui5/bower.json
+1
-1
examples/sapui5/bower_components/todomvc-common/base.js
examples/sapui5/bower_components/todomvc-common/base.js
+26
-9
examples/sapui5/bower_components/todomvc-common/bower.json
examples/sapui5/bower_components/todomvc-common/bower.json
+0
-22
examples/serenadejs/bower.json
examples/serenadejs/bower.json
+1
-1
examples/serenadejs/bower_components/todomvc-common/base.js
examples/serenadejs/bower_components/todomvc-common/base.js
+26
-9
examples/serenadejs/bower_components/todomvc-common/bower.json
...les/serenadejs/bower_components/todomvc-common/bower.json
+0
-22
examples/socketstream/bower.json
examples/socketstream/bower.json
+1
-1
examples/somajs/bower.json
examples/somajs/bower.json
+1
-1
examples/somajs/bower_components/todomvc-common/base.js
examples/somajs/bower_components/todomvc-common/base.js
+26
-9
examples/somajs/bower_components/todomvc-common/bower.json
examples/somajs/bower_components/todomvc-common/bower.json
+0
-22
examples/somajs_require/bower.json
examples/somajs_require/bower.json
+1
-1
examples/somajs_require/bower_components/todomvc-common/base.js
...es/somajs_require/bower_components/todomvc-common/base.js
+26
-9
examples/somajs_require/bower_components/todomvc-common/bower.json
...somajs_require/bower_components/todomvc-common/bower.json
+0
-22
examples/spine/bower.json
examples/spine/bower.json
+1
-1
examples/spine/bower_components/todomvc-common/base.js
examples/spine/bower_components/todomvc-common/base.js
+26
-9
examples/spine/bower_components/todomvc-common/bower.json
examples/spine/bower_components/todomvc-common/bower.json
+0
-22
examples/stapes/bower.json
examples/stapes/bower.json
+1
-1
examples/stapes/bower_components/todomvc-common/base.js
examples/stapes/bower_components/todomvc-common/base.js
+26
-9
examples/stapes/bower_components/todomvc-common/bower.json
examples/stapes/bower_components/todomvc-common/bower.json
+0
-22
examples/stapes_require/bower.json
examples/stapes_require/bower.json
+1
-1
examples/stapes_require/bower_components/todomvc-common/base.js
...es/stapes_require/bower_components/todomvc-common/base.js
+26
-9
examples/stapes_require/bower_components/todomvc-common/bower.json
...stapes_require/bower_components/todomvc-common/bower.json
+0
-22
examples/thorax/bower.json
examples/thorax/bower.json
+1
-1
examples/thorax/bower_components/todomvc-common/base.js
examples/thorax/bower_components/todomvc-common/base.js
+26
-9
examples/thorax/bower_components/todomvc-common/bower.json
examples/thorax/bower_components/todomvc-common/bower.json
+0
-22
examples/thorax_lumbar/bower.json
examples/thorax_lumbar/bower.json
+1
-1
examples/thorax_lumbar/bower_components/todomvc-common/base.js
...les/thorax_lumbar/bower_components/todomvc-common/base.js
+26
-9
examples/thorax_lumbar/bower_components/todomvc-common/bower.json
.../thorax_lumbar/bower_components/todomvc-common/bower.json
+0
-22
examples/troopjs_require/bower_components/todomvc-common/base.js
...s/troopjs_require/bower_components/todomvc-common/base.js
+26
-9
examples/troopjs_require/bower_components/todomvc-common/bower.json
...roopjs_require/bower_components/todomvc-common/bower.json
+0
-22
examples/typescript-angular/bower.json
examples/typescript-angular/bower.json
+1
-1
examples/typescript-angular/bower_components/todomvc-common/base.js
...ypescript-angular/bower_components/todomvc-common/base.js
+26
-9
examples/typescript-angular/bower_components/todomvc-common/bower.json
...script-angular/bower_components/todomvc-common/bower.json
+0
-22
examples/typescript-backbone/bower.json
examples/typescript-backbone/bower.json
+1
-1
examples/typescript-backbone/bower_components/todomvc-common/base.js
...pescript-backbone/bower_components/todomvc-common/base.js
+26
-9
examples/typescript-backbone/bower_components/todomvc-common/bower.json
...cript-backbone/bower_components/todomvc-common/bower.json
+0
-22
examples/vanilladart/bower.json
examples/vanilladart/bower.json
+2
-2
examples/vanilladart/build/web/bower_components/todomvc-common/base.js
...lladart/build/web/bower_components/todomvc-common/base.js
+26
-9
examples/vanilladart/web/bower_components/todomvc-common/base.js
...s/vanilladart/web/bower_components/todomvc-common/base.js
+26
-9
examples/vanillajs/bower.json
examples/vanillajs/bower.json
+1
-1
examples/vanillajs/bower_components/todomvc-common/base.js
examples/vanillajs/bower_components/todomvc-common/base.js
+26
-9
examples/vue/bower.json
examples/vue/bower.json
+2
-2
examples/vue/bower_components/todomvc-common/base.js
examples/vue/bower_components/todomvc-common/base.js
+26
-9
examples/vue/bower_components/todomvc-common/bower.json
examples/vue/bower_components/todomvc-common/bower.json
+0
-22
examples/yui/bower.json
examples/yui/bower.json
+1
-1
examples/yui/bower_components/todomvc-common/base.js
examples/yui/bower_components/todomvc-common/base.js
+26
-9
examples/yui/bower_components/todomvc-common/bower.json
examples/yui/bower_components/todomvc-common/bower.json
+0
-22
tasks/Gruntfile.js
tasks/Gruntfile.js
+2
-2
template/bower_components/todomvc-common/base.css
template/bower_components/todomvc-common/base.css
+0
-2
template/bower_components/todomvc-common/base.js
template/bower_components/todomvc-common/base.js
+28
-20
No files found.
examples/agilityjs/bower.json
View file @
65ef22f5
...
...
@@ -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"
}
...
...
examples/agilityjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/agilityjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/ampersand/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/angular-dart/bower.json
View file @
65ef22f5
...
...
@@ -15,6 +15,6 @@
"tests"
],
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.9
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/angular-dart/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/angular-dart/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/angularjs-perf/bower.json
View file @
65ef22f5
...
...
@@ -3,6 +3,6 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"angular"
:
"1.2.9"
,
"todomvc-common"
:
"~0.
1.9
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/angularjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/angularjs_require/bower.json
View file @
65ef22f5
...
...
@@ -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"
}
}
examples/ariatemplates/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-ariatemplates"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/ariatemplates/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/ariatemplates/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/atmajs/bower.json
View file @
65ef22f5
...
...
@@ -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"
,
...
...
examples/atmajs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/atmajs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/backbone/bower.json
View file @
65ef22f5
...
...
@@ -5,7 +5,7 @@
"backbone"
:
"~1.1.1"
,
"underscore"
:
"~1.6.0"
,
"jquery"
:
"~2.0.0"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"backbone.localStorage"
:
"~1.1.0"
}
}
examples/backbone/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/backbone/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/backbone_marionette/bower.json
View file @
65ef22f5
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"jquery"
:
"~1.10.2"
,
"todomvc-common"
:
"~0.
1.7
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"underscore"
:
"~1.4.4"
,
"backbone.localStorage"
:
"~1.1.6"
,
"backbone.marionette"
:
"~2.1.0"
...
...
examples/backbone_marionette/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/backbone_marionette/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/backbone_marionette_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-backbone_marionette_require"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"requirejs"
:
"~2.1.6"
,
"underscore"
:
"~1.4.4"
,
"backbone.marionette"
:
"~1.0.3"
,
...
...
examples/backbone_marionette_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/backbone_marionette_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/backbone_require/bower.json
View file @
65ef22f5
...
...
@@ -5,7 +5,7 @@
"backbone"
:
"~1.1.0"
,
"underscore"
:
"~1.5.0"
,
"jquery"
:
"~2.0.0"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"backbone.localStorage"
:
"~1.1.0"
,
"requirejs"
:
"~2.1.5"
,
"requirejs-text"
:
"~2.0.5"
...
...
examples/backbone_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/backbone_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/batman/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-batman"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"batman"
:
"~0.14.1"
}
}
examples/batman/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/batman/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/canjs/bower.json
View file @
65ef22f5
...
...
@@ -5,6 +5,6 @@
"jquery"
:
"~2.0.0"
,
"canjs"
:
"~2.0.0"
,
"canjs-localstorage"
:
"~0.2.0"
,
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/canjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/canjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/canjs_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-canjs-require"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"requirejs"
:
"~2.1.6"
,
"canjs"
:
"~2.0.0"
,
"canjs-localstorage"
:
"~0.2.0"
,
...
...
examples/canjs_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/canjs_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/chaplin-brunch/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-chaplin-brunch"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.11
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"chaplin"
:
"~1.0.0"
,
"exoskeleton"
:
"~0.6.3"
,
"backbone.localStorage"
:
"git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b"
...
...
examples/chaplin-brunch/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/closure/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-closure"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/closure/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/closure/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/componentjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/componentjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/cujo/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-cujoJS"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.7
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"curl"
:
"~0.7.4"
,
"cola"
:
"latest"
,
"poly"
:
"~0.5.1"
,
...
...
examples/cujo/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/cujo/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/derby/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-derby"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.3
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/derby/public/components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/dijon/bower.json
View file @
65ef22f5
...
...
@@ -4,6 +4,6 @@
"dependencies"
:
{
"jquery"
:
"~2.0.0"
,
"handlebars.js"
:
"~1.0.0-rc.3"
,
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/dijon/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/dijon/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/dojo/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todmvc-dojo"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/dojo/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/dojo/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/duel/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-duel"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/duel/src/main/webapp/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/durandal/bower.json
View file @
65ef22f5
...
...
@@ -6,7 +6,7 @@
"sammy"
:
"~0.7.4"
,
"jquery"
:
"~1.9.1"
,
"knockout"
:
"~2.2.1"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"requirejs"
:
"~2.1.6"
}
}
examples/durandal/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/durandal/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/emberjs/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-emberjs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.1.0"
,
"handlebars"
:
"~1.3.0"
,
"ember"
:
"~1.6.0"
,
...
...
examples/emberjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/emberjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/enyo_backbone/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-enyo-backbone"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
\ No newline at end of file
}
examples/enyo_backbone/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/enyo_backbone/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/epitome/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-epitome"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"Epitome"
:
"~0.3.1"
}
}
examples/epitome/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/epitome/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/exoskeleton/bower.json
View file @
65ef22f5
...
...
@@ -4,7 +4,7 @@
"dependencies"
:
{
"exoskeleton"
:
"~0.3.0"
,
"microtemplates"
:
"~0.1.0"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"backbone.localStorage"
:
"git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b"
}
}
examples/exoskeleton/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/exoskeleton/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/extjs_deftjs/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-extjs_deftjs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/extjs_deftjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/extjs_deftjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/firebase-angular/bower.json
View file @
65ef22f5
...
...
@@ -4,7 +4,7 @@
"dependencies"
:
{
"angular"
:
"1.2.8"
,
"angularfire"
:
"~0.5.0"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
},
"devDependencies"
:
{
"angular-mocks"
:
"1.2.8"
...
...
examples/firebase-angular/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/firebase-angular/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/flight/bower.json
View file @
65ef22f5
...
...
@@ -6,7 +6,7 @@
"flight"
:
"~1.1.0"
,
"jquery"
:
"1.8.3"
,
"requirejs"
:
"~2.1.5"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"requirejs-text"
:
"~2.0.10"
},
"devDependencies"
:
{
...
...
examples/flight/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/flight/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/gwt/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"gwt"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
\ No newline at end of file
}
examples/gwt/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/gwt/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/jquery/bower.json
View file @
65ef22f5
{
"name"
:
"todomvc-jquery"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.11
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.1.1"
,
"handlebars"
:
"~2.0.0"
,
"director"
:
"~1.2.2"
...
...
examples/jquery/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/kendo/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-kendo"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.1.0"
,
"kendo-ui"
:
"~2013.3.1119"
}
...
...
examples/kendo/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/kendo/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/knockback/bower.json
View file @
65ef22f5
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"jquery"
:
"~2.0.0"
,
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"Backbone.localStorage"
:
"~1.1.3"
}
}
examples/knockback/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/knockback/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/knockoutjs/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-knockoutjs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"component-knockout-passy"
:
"~3.1.0"
,
"director"
:
"~1.2.0"
}
...
...
examples/knockoutjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/knockoutjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/knockoutjs_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-knockoutjs_require"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"knockout.js"
:
"~3.0.0"
,
"requirejs"
:
"~2.1.6"
}
...
...
examples/knockoutjs_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/knockoutjs_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/lavaca_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-lavaca_require"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"requirejs"
:
"~2.1.6"
,
"dustjs-linkedin"
:
"~1.1.1"
,
"dustjs-linkedin-helpers"
:
"~1.1.1"
,
...
...
examples/lavaca_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/lavaca_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/maria/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-maria"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"director"
:
"~1.2.0"
,
"maria-bower"
:
"~1.0.0"
,
"aristocrat-bower"
:
"~1.0.1"
...
...
examples/maria/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/maria/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/meteor/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-meteor"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"director"
:
"~1.2.0"
}
}
examples/meteor/client/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/mithril/bower.json
View file @
65ef22f5
...
...
@@ -3,6 +3,6 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"mithril"
:
"0.1.20"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/mithril/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/mithril/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/montage/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-montage"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/montage/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/montage/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/olives/bower.json
View file @
65ef22f5
...
...
@@ -5,6 +5,6 @@
"olives"
:
"~1.4.0"
,
"emily"
:
"~1.3.5"
,
"requirejs"
:
"~2.1.5"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/olives/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/olives/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/plastronjs/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-plastronjs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/plastronjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/plastronjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/polymer/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-polymer"
,
"version"
:
"0.0.1"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"core-selector"
:
"Polymer/core-selector"
,
"flatiron-director"
:
"Polymer/flatiron-director"
,
"core-localstorage"
:
"Polymer/core-localstorage"
...
...
examples/polymer/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/polymer/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/puremvc/bower.json
View file @
65ef22f5
...
...
@@ -4,6 +4,6 @@
"dependencies"
:
{
"puremvc"
:
"~1.0.1"
,
"director"
:
"~1.2.0"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/puremvc/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/puremvc/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/ractive/bower.json
View file @
65ef22f5
{
"name"
:
"todomvc-ractive"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"ractive"
:
"~0.3.5"
,
"director"
:
"~1.2.0"
}
...
...
examples/ractive/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/ractive/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/rappidjs/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-rappidjs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/rappidjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/rappidjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/react-backbone/bower.json
View file @
65ef22f5
...
...
@@ -6,7 +6,7 @@
"backbone"
:
"~1.1.2"
,
"backbone.localstorage"
:
"~1.1.7"
,
"jquery"
:
"~2.1.0"
,
"todomvc-common"
:
"~0.
1.9
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"underscore"
:
"~1.6.0"
}
}
examples/react-backbone/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/react-backbone/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/react/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-react"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.7
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"director"
:
"~1.2.0"
,
"react"
:
"~0.11.0"
}
...
...
examples/react/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/react/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/sammyjs/bower.json
View file @
65ef22f5
...
...
@@ -4,6 +4,6 @@
"dependencies"
:
{
"sammy"
:
"~0.7.4"
,
"jquery"
:
"~1.9.1"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/sammyjs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/sammyjs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/sapui5/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-sapui5"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.7
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/sapui5/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/sapui5/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/serenadejs/bower.json
View file @
65ef22f5
...
...
@@ -3,6 +3,6 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"director"
:
"~1.2.0"
,
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/serenadejs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/serenadejs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/socketstream/bower.json
View file @
65ef22f5
{
"name"
:
"todomvc-socketstream"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.9
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.1.0"
,
"director"
:
"~1.2.2"
}
...
...
examples/somajs/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-somajs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"director"
:
"~1.2.0"
,
"soma.js"
:
"~2.1.0"
,
"soma-template"
:
"~0.2.8"
...
...
examples/somajs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/somajs/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/somajs_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-somajs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"director"
:
"~1.2.0"
,
"requirejs"
:
"~2.1.5"
,
"soma.js"
:
"~2.1.0"
,
...
...
examples/somajs_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/somajs_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/spine/bower.json
View file @
65ef22f5
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"spine"
:
"~1.0.9"
,
"todomvc-common"
:
"~0.
1.4
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"handlebars"
:
"~1.0.0-rc.3"
,
"jquery"
:
"~1.8.3"
}
...
...
examples/spine/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/spine/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/stapes/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-stapes"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.0.0"
,
"handlebars.js"
:
"~1.0.0-rc.3"
,
"stapes"
:
"0.2.1"
...
...
examples/stapes/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/stapes/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/stapes_require/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-stapes_require"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"stapes"
:
"0.2.1"
,
"handlebars.js"
:
"~1.0.0-rc.3"
,
"zepto"
:
"~1.0.0"
,
...
...
examples/stapes_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/stapes_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/thorax/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-thorax"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"thorax"
:
"~2.0.0"
}
}
examples/thorax/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/thorax/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/thorax_lumbar/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"thorax_lumbar"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"lumbar-loader"
:
"~1.1.0"
,
"script.js"
:
"latest"
,
"thorax"
:
"~2.0.0"
...
...
examples/thorax_lumbar/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/thorax_lumbar/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/troopjs_require/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/troopjs_require/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/typescript-angular/bower.json
View file @
65ef22f5
...
...
@@ -3,6 +3,6 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"angular"
:
"1.2.8"
,
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/typescript-angular/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/typescript-angular/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/typescript-backbone/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-typescript-backbone"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
,
"todomvc-common"
:
"~0.
3.0
"
,
"jquery"
:
"~2.0.0"
,
"lodash"
:
"~1.2.1"
}
...
...
examples/typescript-backbone/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/typescript-backbone/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/vanilladart/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"dart"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
\ No newline at end of file
}
examples/vanilladart/build/web/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/vanilladart/web/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/vanillajs/bower.json
View file @
65ef22f5
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-vanillajs"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.4
"
"todomvc-common"
:
"~0.
3.0
"
},
"devDependencies"
:
{
"jasmine"
:
"~1.3.1"
...
...
examples/vanillajs/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/vue/bower.json
View file @
65ef22f5
...
...
@@ -2,6 +2,6 @@
"name"
:
"todomvc-vue"
,
"dependencies"
:
{
"vue"
:
"~0.10.0"
,
"todomvc-common"
:
"~0.
1.9
"
"todomvc-common"
:
"~0.
3.0
"
}
}
\ No newline at end of file
}
examples/vue/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/vue/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
examples/yui/bower.json
View file @
65ef22f5
{
"name"
:
"todomvc-yui"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.
1.6
"
"todomvc-common"
:
"~0.
3.0
"
}
}
examples/yui/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -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
);
...
...
examples/yui/bower_components/todomvc-common/bower.json
deleted
100644 → 0
View file @
b785628e
{
"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"
]
}
tasks/Gruntfile.js
View file @
65ef22f5
...
...
@@ -15,8 +15,8 @@ module.exports = function (grunt) {
// I also added Bower up top for in the future, as that might come in handy
// to correctly fetch and install the latest todomvc-common, without relying
// on this weird Batman system.
var
sourceTodoMvcCommon
=
'
examples/
batman
/bower_components/todomvc-common
'
;
var
sourceIdentifierRegex
=
/
batman
/
;
var
sourceTodoMvcCommon
=
'
examples/
angularjs
/bower_components/todomvc-common
'
;
var
sourceIdentifierRegex
=
/
angularjs
/
;
grunt
.
file
.
setBase
(
'
../
'
);
...
...
template/bower_components/todomvc-common/base.css
View file @
65ef22f5
...
...
@@ -274,7 +274,6 @@ label[for='toggle-all'] {
text-shadow
:
0
0
1px
#000
,
0
0
10px
rgba
(
199
,
107
,
107
,
0.8
);
-webkit-transform
:
scale
(
1.3
);
-ms-transform
:
scale
(
1.3
);
transform
:
scale
(
1.3
);
}
...
...
@@ -399,7 +398,6 @@ label[for='toggle-all'] {
width
:
65px
;
height
:
41px
;
-webkit-transform
:
rotate
(
90deg
);
-ms-transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
-webkit-appearance
:
none
;
appearance
:
none
;
...
...
template/bower_components/todomvc-common/base.js
View file @
65ef22f5
...
...
@@ -122,16 +122,7 @@
}
function
findRoot
()
{
var
base
;
[
/labs/
,
/
\w
*-examples/
].
forEach
(
function
(
href
)
{
var
match
=
location
.
href
.
match
(
href
);
if
(
!
base
&&
match
)
{
base
=
location
.
href
.
indexOf
(
match
);
}
});
var
base
=
location
.
href
.
indexOf
(
'
examples/
'
);
return
location
.
href
.
substr
(
0
,
base
);
}
...
...
@@ -177,28 +168,45 @@
}
if
(
!
framework
&&
document
.
querySelector
(
'
[data-framework]
'
))
{
framework
=
document
.
querySelector
(
'
[data-framework]
'
).
getAttribute
(
'
data-framework
'
)
;
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment