OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="class_ref.html"> | 2 <link rel="import" href="class_ref.html"> |
3 <link rel="import" href="error_view.html"> | 3 <link rel="import" href="error_view.html"> |
4 <link rel="import" href="eval_box.html"> | 4 <link rel="import" href="eval_box.html"> |
5 <link rel="import" href="eval_link.html"> | 5 <link rel="import" href="eval_link.html"> |
6 <link rel="import" href="field_ref.html"> | 6 <link rel="import" href="field_ref.html"> |
7 <link rel="import" href="function_ref.html"> | 7 <link rel="import" href="function_ref.html"> |
| 8 <link rel="import" href="inbound_reference.html"> |
8 <link rel="import" href="instance_ref.html"> | 9 <link rel="import" href="instance_ref.html"> |
9 <link rel="import" href="observatory_element.html"> | 10 <link rel="import" href="observatory_element.html"> |
10 <link rel="import" href="nav_bar.html"> | 11 <link rel="import" href="nav_bar.html"> |
11 | 12 |
12 <polymer-element name="instance-view" extends="observatory-element"> | 13 <polymer-element name="instance-view" extends="observatory-element"> |
13 <template> | 14 <template> |
14 <link rel="stylesheet" href="css/shared.css"> | 15 <link rel="stylesheet" href="css/shared.css"> |
15 <nav-bar> | 16 <nav-bar> |
16 <top-nav-menu></top-nav-menu> | 17 <top-nav-menu></top-nav-menu> |
17 <isolate-nav-menu isolate="{{ instance.isolate }}"></isolate-nav-menu> | 18 <isolate-nav-menu isolate="{{ instance.isolate }}"></isolate-nav-menu> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 <eval-link callback="{{ retainingPath }}" | 74 <eval-link callback="{{ retainingPath }}" |
74 label="[find]" | 75 label="[find]" |
75 expr="10"> | 76 expr="10"> |
76 </eval-link> | 77 </eval-link> |
77 </template> | 78 </template> |
78 <template if="{{ path != null }}"> | 79 <template if="{{ path != null }}"> |
79 <template repeat="{{ element in path['elements'] }}"> | 80 <template repeat="{{ element in path['elements'] }}"> |
80 <div class="memberItem"> | 81 <div class="memberItem"> |
81 <div class="memberName">[{{ element['index']}}]</div> | 82 <div class="memberName">[{{ element['index']}}]</div> |
82 <div class="memberValue"> | 83 <div class="memberValue"> |
83 <instance-ref ref="{{ element['value'] }}"></instance-ref> | 84 <any-service-ref ref="{{ element['value'] }}"></any-service-
ref> |
84 <template if="{{ element['parentField'] != null }}"> | 85 <template if="{{ element['parentField'] != null }}"> |
85 in <field-ref ref="{{ element['parentField'] }}"></field-r
ef> | 86 in <field-ref ref="{{ element['parentField'] }}"></field-r
ef> of |
86 </template> | 87 </template> |
87 <template if="{{ element['parentListIndex'] != null }}"> | 88 <template if="{{ element['parentListIndex'] != null }}"> |
88 at list index {{ element['parentListIndex'] }} of | 89 in [{{ element['parentListIndex'] }}] of |
89 </template> | 90 </template> |
90 </div> | 91 </div> |
91 </div> | 92 </div> |
92 </template> | 93 </template> |
93 <template if="{{ path['length'] > path['elements'].length }}"> | 94 <template if="{{ path['length'] > path['elements'].length }}"> |
94 showing {{ path['elements'].length }} of {{ path['length'] }} | 95 showing {{ path['elements'].length }} of {{ path['length'] }} |
95 <eval-link | 96 <eval-link |
96 callback="{{ retainingPath }}" | 97 callback="{{ retainingPath }}" |
97 label="[find more]" | 98 label="[find more]" |
98 expr="{{ path['elements'].length * 2 }}"> | 99 expr="{{ path['elements'].length * 2 }}"> |
99 </eval-link> | 100 </eval-link> |
100 </template> | 101 </template> |
101 </template> | 102 </template> |
102 </div> | 103 </div> |
103 </div> | 104 </div> |
| 105 <div class="memberItem"> |
| 106 <div class="memberName">inbound references</div> |
| 107 <div class="memberValue"> |
| 108 <template if="{{ inboundReferences == null }}"> |
| 109 <eval-link callback="{{ fetchInboundReferences }}" |
| 110 label="[find]" |
| 111 expr="100"> |
| 112 </eval-link> |
| 113 </template> |
| 114 <template if="{{ inboundReferences != null }}"> |
| 115 <template repeat="{{ reference in inboundReferences['references'
] }}"> |
| 116 <inbound-reference ref="{{ reference }}"></inbound-reference> |
| 117 </template> |
| 118 </template> |
| 119 </div> |
| 120 </div> |
104 <template if="{{ instance['type_class'] != null }}"> | 121 <template if="{{ instance['type_class'] != null }}"> |
105 <div class="memberItem"> | 122 <div class="memberItem"> |
106 <div class="memberName">type class</div> | 123 <div class="memberName">type class</div> |
107 <div class="memberValue"> | 124 <div class="memberValue"> |
108 <class-ref ref="{{ instance['type_class'] }}"> | 125 <class-ref ref="{{ instance['type_class'] }}"> |
109 </class-ref> | 126 </class-ref> |
110 </div> | 127 </div> |
111 </div> | 128 </div> |
112 </template> | 129 </template> |
113 <template if="{{ instance['closureFunc'] != null }}"> | 130 <template if="{{ instance['closureFunc'] != null }}"> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 <eval-box callback="{{ eval }}"></eval-box> | 207 <eval-box callback="{{ eval }}"></eval-box> |
191 </div> | 208 </div> |
192 <br><br><br><br> | 209 <br><br><br><br> |
193 <br><br><br><br> | 210 <br><br><br><br> |
194 | 211 |
195 </template> | 212 </template> |
196 </template> | 213 </template> |
197 </polymer-element> | 214 </polymer-element> |
198 | 215 |
199 <script type="application/dart" src="instance_view.dart"></script> | 216 <script type="application/dart" src="instance_view.dart"></script> |
OLD | NEW |