forked from latentflip/loupe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates.js
73 lines (62 loc) · 1.31 KB
/
templates.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
var multiline = require('multiline');
exports.timeoutItem = multiline(function () {/*
<li>
<span data-hook=state></span>
<span data-hook=id></span>
</li>
*/});
exports.timeoutList = multiline(function () {/*
<ul></ul>
*/});
exports.stackFrame = multiline(function () {/*
<li>
<span data-hook=source></span>
</li>
*/});
exports.stackFrameList = multiline(function () {/*
<ul></ul>
*/});
exports.mainView = multiline(function () {/*
<div>
<div data-hook=stack></div>
<div data-hook=code></div>
<div data-hook=timeouts></div>
<div data-hook=callbacks></div>
</div>
*/});
exports.code = multiline(function () {/*
<div>
<div data-hook='editor' class='editor' contenteditable='true'>
console.log(console.log('hi' + 2));
var a = console.log('hi');
[1,2,3].map(function (a) {
console.log(a * 2);
});
console.log(a + a + a);
var b = 2 + 2 + 2;
</div>
</div>
*/});
exports.code = multiline(function () {/*
<div>
<div data-hook='editor' class='editor' contenteditable='true'>function baz () {
console.log('bar');
}
function bar () {
baz();
}
function foo () {
bar();
}
setTimeout(function () {
foo();
}, 2000);
setTimeout(function () {
foo();
}, 1000);
setTimeout(function () {
foo();
}, 3000);
</div>
</div>
*/});