mirror of
https://github.com/sstent/node.git
synced 2026-01-26 23:22:28 +00:00
updated app
This commit is contained in:
16
node_modules/derby-examples/todos/views/404.html
generated
vendored
Normal file
16
node_modules/derby-examples/todos/views/404.html
generated
vendored
Normal 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>.
|
||||
50
node_modules/derby-examples/todos/views/todos/index.html
generated
vendored
Normal file
50
node_modules/derby-examples/todos/views/todos/index.html
generated
vendored
Normal 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}– <a x-bind=click:connect>Reconnect</a>{/}
|
||||
{else}
|
||||
Unable to reconnect – <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>
|
||||
Reference in New Issue
Block a user