forked from tastejs/todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the ember example (tastejs#1948)
Update ember to the 3.4 LTS Update to the latest TodoMVC template to make the info sidebar appear
- Loading branch information
1 parent
1a4941c
commit 94ff67e
Showing
22 changed files
with
3,571 additions
and
2,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ | |
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'recommended' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ before_install: | |
- npm config set spin false | ||
|
||
script: | ||
- npm run lint:hbs | ||
- npm run lint:js | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 15 additions & 4 deletions
19
examples/emberjs/todomvc/app/templates/components/todo-item.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
<div class="view"> | ||
<input type="checkbox" class="toggle" checked={{todo.completed}} onchange={{action 'toggleCompleted'}}> | ||
<label ondblclick={{action 'startEditing'}}>{{todo.title}}</label> | ||
<button onclick={{action 'removeTodo'}} class="destroy"></button> | ||
<input | ||
class="toggle" | ||
type="checkbox" | ||
checked={{todo.completed}} | ||
onchange={{action "toggleCompleted"}} | ||
> | ||
<label ondblclick={{action "startEditing"}}>{{todo.title}}</label> | ||
<button class="destroy" onclick={{action "removeTodo"}}></button> | ||
</div> | ||
<input type="text" class="edit" value={{todo.title}} onblur={{action 'doneEditing' value='target.value'}} onkeydown={{action 'handleKeydown'}} autofocus> | ||
<input | ||
class="edit" | ||
value={{todo.title}} | ||
onblur={{action "doneEditing" value="target.value"}} | ||
onkeydown={{action "handleKeydown"}} | ||
autofocus | ||
> |
17 changes: 14 additions & 3 deletions
17
examples/emberjs/todomvc/app/templates/components/todo-list.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
{{#if todos.length}} | ||
{{#if canToggle}} | ||
<input type="checkbox" id="toggle-all" checked={{allCompleted}} onchange={{action 'toggleAll'}}> | ||
<input | ||
id="toggle-all" | ||
class="toggle-all" | ||
type="checkbox" | ||
checked={{allCompleted}} | ||
onchange={{action "toggleAll"}} | ||
> | ||
<label for="toggle-all">Mark all as complete</label> | ||
{{/if}} | ||
<ul id="todo-list" class="todo-list"> | ||
<ul class="todo-list"> | ||
{{#each todos as |todo|}} | ||
{{todo-item todo=todo onStartEdit=(action 'disableToggle') onEndEdit=(action 'enableToggle')}} | ||
{{todo-item | ||
todo=todo | ||
onStartEdit=(action "disableToggle") | ||
onEndEdit=(action "enableToggle") | ||
}} | ||
{{/each}} | ||
</ul> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"jquery-integration": true | ||
} |
6 changes: 3 additions & 3 deletions
6
...domvc-8144cc5f479447dfbcfb6cea22b40476.js → ...domvc-3fe090b4fc6a4e94b886378993e1e388.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
examples/emberjs/todomvc/dist/assets/vendor-50b76499fe0b46b3444173854527334b.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.