updated app

This commit is contained in:
2012-05-30 23:00:06 -04:00
parent 6a753904b7
commit da6ad88d48
5545 changed files with 1101709 additions and 60 deletions

16
node_modules/derby-examples/todos/views/404.html generated vendored Normal file
View File

@@ -0,0 +1,16 @@
<!--
This is a static template file, so it doesn't have an associated app.
It is rendered by the server via a staticPages renderer.
Since static pages don't include the Derby client library, they can't have
bound variables that automatically update. However, they do support initial
template tag rendering from a context object and/or model.
-->
<Title:>
Not found
<Body:>
<h1>404</h1>
<p>Sorry, we can't find anything at <b>{{url}}</b>.
<p>Try heading back to the <a href="/">home page</a>.

View File

@@ -0,0 +1,50 @@
<Title:>
Todos
<Header:>
<app:alert>
<Body:>
<div id=overlay></div>
<form id=head x-bind=submit:add>
<h1>Todos <span>{_remaining} remaining</span></h1>
<div id=add>
<div id=add-input><input id=new-todo value={_newTodo}></div>
<input id=add-button type=submit value=Add>
</div>
</form>
<div id=dragbox></div>
<div id=content><ul id=todos>{#each _todoList}<app:todo>{/}</ul></div>
<todo:>
<li data-id={{id}} class="{#if .completed}completed{/}">
<table width=100%>
<tr>
<td class=handle width=0></td>
<td width=100%>
<div class=todo>
<label><input type=checkbox checked={.completed}><i></i></label>
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div>
</div>
</td>
<td width=0><button class=delete x-bind=click:del>Delete</button></td>
</tr>
</table>
</li>
<alert:>
<div id=alert>
{#unless connected}
<p>
{#if canConnect}
Offline {#if _showReconnect}&ndash; <a x-bind=click:connect>Reconnect</a>{/}
{else}
Unable to reconnect &ndash; <a x-bind=click:reload>Reload</a>
{/}
</p>
{/}
</div>
<Scripts:>
<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js></script>
<script src=https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js></script>