Add todoapp benchmark
This commit is contained in:
parent
479db8c2cc
commit
02e7b40c07
218 changed files with 63168 additions and 0 deletions
6
bench/implementations/ember-2.6.3/app/templates/components/todo-item.hbs
Executable file
6
bench/implementations/ember-2.6.3/app/templates/components/todo-item.hbs
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
<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>
|
||||
</div>
|
||||
<input type="text" class="edit" value={{todo.title}} onblur={{action 'doneEditing' value='target.value'}} onkeydown={{action 'handleKeydown'}} autofocus>
|
||||
10
bench/implementations/ember-2.6.3/app/templates/components/todo-list.hbs
Executable file
10
bench/implementations/ember-2.6.3/app/templates/components/todo-list.hbs
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
{{#if todos.length}}
|
||||
{{#if canToggle}}
|
||||
<input type="checkbox" id="toggle-all" checked={{allCompleted}} onchange={{action 'toggleAll'}}>
|
||||
{{/if}}
|
||||
<ul id="todo-list" class="todo-list">
|
||||
{{#each todos as |todo|}}
|
||||
{{todo-item todo=todo onStartEdit=(action 'disableToggle') onEndEdit=(action 'enableToggle')}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue