-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.html
43 lines (41 loc) · 1.05 KB
/
vue.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<body>
<div id="app"></div>
</body>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
<script>
// Babel generates calls to React.createElement by default
const React={createElement:Vue.h}
</script>
<script src="js/mak-from.js"></script>
<script type="text/jsx">
Vue.render(
<Vue.Fragment>
<dl>{
from("ProductionLine line").orderBy("line.name desc").map(
data =>
<span>
<dt>{data("line.name")}</dt>
<dd><ul>{from("Task t").where("t.line=line").map(
data =>
<li>
{data("t.customer")}: {data("t.days")}
</li>
)}</ul>
</dd>
</span>
)
}</dl>
<dl><dt>Park:</dt>
<dd><ul>{from("Task t").where("t.line=nil").map(
data =>
<li>
{data("t.customer")}:{data("t.days")}
</li>
)}
</ul>
</dd>
</dl>
</Vue.Fragment>
, document.body.querySelector("#app"));
</script>