-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheval.view.tree
88 lines (88 loc) · 2.12 KB
/
eval.view.tree
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
$hyoo_js_eval $mol_book2
Placeholder null
plugins /
<= Theme $mol_theme_auto
<= Submit $mol_hotkey
key * enter? <=> submit? null
mod_ctrl true
bookmark_list? /string
\
\// Example Notebook
\
\// load external script
\const {
\ $mol_compare_deep: compare
\} = $mol_import.module(
\ 'https://esm.sh/mol_compare_deep'
\).default
\
\// local vars
\const one = [1]
\one.push( one )
\const left = { a: [1,one], b: one }
\const right = { a: one, b: [1,one] }
\
\// result
\compare( left, right )
pages /
<= Menu_page $mol_page
title @ \Bookmarks
tools /
<= Clear $mol_link
arg * code null
sub /
<= Clear_icon $mol_icon_plus
<= Source $mol_link_source
uri \https://github.com/hyoo-ru/eval.js.hyoo.ru
<= Lights $mol_lights_toggle
body /
<= Menu $mol_list
rows <= menu /
<= Menu_link*default $mol_link
title <= menu_link_title* \
arg * code <= menu_link_code* \
<= Code_page $mol_page
title @ \Code
bring <= bring
tools /
<= Perf $mol_link_iconed
title \
hint @ \Measure Performance
uri <= perf \
<= Bookmark $mol_check_icon
Icon <= Bookmark_icon $mol_icon_bookmark_outline
checked?val <=> bookmark?val false
hint @ \Bookmark
<= Run $mol_check_icon
Icon <= Run_icon $mol_icon_play
checked?val <=> run?val true
hint <= result_label
body /
<= Code $mol_textarea
bring => bring
hint \javascript..
sidebar_showed true
spellcheck false
value?val <=> code?val \
<= Error_mark $mol_follower
Anchor <= error_anchor null
offset <= error_offset /
0
0
Sub <= Error_view $mol_view
attr * title <= error_message \
sub / <= Error_icon $mol_icon_flash
<= Result_page $mol_page
title <= result_label @ \Result
tools /
<= Results_close $mol_link
arg * run \false
sub /
<= Results_close_icon $mol_icon_close
body /
<= UI $mol_list sub_visible null
<= Result $mol_list
rows <= logs /
<= Log*0 $mol_dump_list
values <= log* /
prototypes true