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
Sven Franck
todomvc
Commits
5d273d99
Commit
5d273d99
authored
Aug 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
846dd50d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
15 deletions
+15
-15
architecture-examples/angularjs-perf/index.html
architecture-examples/angularjs-perf/index.html
+2
-2
architecture-examples/angularjs/index.html
architecture-examples/angularjs/index.html
+2
-2
architecture-examples/emberjs/js/app.js
architecture-examples/emberjs/js/app.js
+1
-1
architecture-examples/emberjs/js/views/application.js
architecture-examples/emberjs/js/views/application.js
+3
-3
architecture-examples/yui/js/views/todoview.js
architecture-examples/yui/js/views/todoview.js
+1
-1
dependency-examples/emberjs_require/js/app.js
dependency-examples/emberjs_require/js/app.js
+4
-4
labs/dependency-examples/angularjs_require/index.html
labs/dependency-examples/angularjs_require/index.html
+2
-2
No files found.
architecture-examples/angularjs-perf/index.html
View file @
5d273d99
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
<ul
id=
"todo-list"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
ng-change=
"todoCompleted(todo)"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
ng-change=
"todoCompleted(todo)"
>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
</div>
</div>
<form
ng-submit=
"doneEditing(todo)"
>
<form
ng-submit=
"doneEditing(todo)"
>
...
...
architecture-examples/angularjs/index.html
View file @
5d273d99
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
<ul
id=
"todo-list"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
</div>
</div>
<form
ng-submit=
"doneEditing(todo)"
>
<form
ng-submit=
"doneEditing(todo)"
>
...
...
architecture-examples/emberjs/js/app.js
View file @
5d273d99
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
'
use strict
'
;
'
use strict
'
;
win
.
Todos
=
Ember
.
Application
.
create
({
win
.
Todos
=
Ember
.
Application
.
create
({
VERSION
:
'
0.2
'
,
VERSION
:
'
1.0
'
,
rootElement
:
'
#todoapp
'
,
rootElement
:
'
#todoapp
'
,
storeNamespace
:
'
todos-emberjs
'
,
storeNamespace
:
'
todos-emberjs
'
,
// Extend to inherit outlet support
// Extend to inherit outlet support
...
...
architecture-examples/emberjs/js/views/application.js
View file @
5d273d99
...
@@ -60,13 +60,13 @@
...
@@ -60,13 +60,13 @@
templateName
:
'
filtersTemplate
'
,
templateName
:
'
filtersTemplate
'
,
filterBinding
:
'
controller.namespace.entriesController.filterBy
'
,
filterBinding
:
'
controller.namespace.entriesController.filterBy
'
,
isAll
:
function
()
{
isAll
:
function
()
{
return
!!
Ember
.
empty
(
this
.
get
(
'
filter
'
)
);
return
Ember
.
empty
(
this
.
get
(
'
filter
'
)
);
}.
property
(
'
filter
'
),
}.
property
(
'
filter
'
),
isActive
:
function
()
{
isActive
:
function
()
{
return
!!
(
this
.
get
(
'
filter
'
)
===
'
active
'
)
;
return
this
.
get
(
'
filter
'
)
===
'
active
'
;
}.
property
(
'
filter
'
),
}.
property
(
'
filter
'
),
isCompleted
:
function
()
{
isCompleted
:
function
()
{
return
!!
(
this
.
get
(
'
filter
'
)
===
'
completed
'
)
;
return
this
.
get
(
'
filter
'
)
===
'
completed
'
;
}.
property
(
'
filter
'
)
}.
property
(
'
filter
'
)
}),
}),
clearBtnView
:
Ember
.
View
.
create
({
clearBtnView
:
Ember
.
View
.
create
({
...
...
architecture-examples/yui/js/views/todoview.js
View file @
5d273d99
...
@@ -16,7 +16,7 @@ YUI.add('todo-view', function (Y) {
...
@@ -16,7 +16,7 @@ YUI.add('todo-view', function (Y) {
'
.toggle
'
:
{
'
.toggle
'
:
{
click
:
'
toggleComplete
'
click
:
'
toggleComplete
'
},
},
'
label
'
:
{
'
label
'
:
{
dblclick
:
'
edit
'
dblclick
:
'
edit
'
},
},
'
.edit
'
:
{
'
.edit
'
:
{
...
...
dependency-examples/emberjs_require/js/app.js
View file @
5d273d99
...
@@ -22,16 +22,16 @@ define( 'app', [
...
@@ -22,16 +22,16 @@ define( 'app', [
'
ember
'
'
ember
'
],
function
(
Router
,
Store
,
EntriesController
,
ApplicationView
)
{
],
function
(
Router
,
Store
,
EntriesController
,
ApplicationView
)
{
var
App
=
Ember
.
Application
.
create
({
var
App
=
Ember
.
Application
.
create
({
VERSION
:
'
0.2
'
,
VERSION
:
'
1.0
'
,
rootElement
:
'
#todoapp
'
,
rootElement
:
'
#todoapp
'
,
// Load routes
// Load routes
Router
:
Router
,
Router
:
Router
,
// Extend to inherit outlet support
// Extend to inherit outlet support
ApplicationController
:
Ember
.
Controller
.
extend
(),
ApplicationController
:
Ember
.
Controller
.
extend
(),
ApplicationView
:
ApplicationView
,
ApplicationView
:
ApplicationView
,
entriesController
:
EntriesController
.
create
(
entriesController
:
EntriesController
.
create
(
{
{
store
:
new
Store
(
'
todos-emberjs
'
)
}
store
:
new
Store
(
'
todos-emberjs
'
)
),
}
),
ready
:
function
()
{
ready
:
function
()
{
this
.
initialize
();
this
.
initialize
();
}
}
...
...
labs/dependency-examples/angularjs_require/index.html
View file @
5d273d99
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<input
id=
"toggle-all"
type=
"checkbox"
ng-model=
"allChecked"
ng-click=
"markAll(allChecked)"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
<ul
id=
"todo-list"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<li
ng-repeat=
"todo in todos | filter:statusFilter"
ng-class=
"{completed: todo.completed, editing: todo == editedTodo}"
>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
>
<input
class=
"toggle"
type=
"checkbox"
ng-model=
"todo.completed"
>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<label
ng-dblclick=
"editTodo(todo)"
>
{{todo.title}}
</label>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
<button
class=
"destroy"
ng-click=
"removeTodo(todo)"
></button>
</div>
</div>
<form
ng-submit=
"doneEditing(todo)"
>
<form
ng-submit=
"doneEditing(todo)"
>
...
...
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