OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 | |
3 <polymer-element name="library-view"> | |
4 <template> | |
5 <link rel="stylesheet" href="css/shared.css"> | |
6 | |
7 <nav-bar> | |
8 <top-nav-menu></top-nav-menu> | |
9 <vm-nav-menu vm="{{ library.isolate.vm }}"></vm-nav-menu> | |
10 <isolate-nav-menu isolate="{{ library.isolate }}"></isolate-nav-menu> | |
11 <library-nav-menu library="{{ library }}" last="{{ true }}"></library-nav-
menu> | |
12 <nav-refresh callback="{{ refresh }}"></nav-refresh> | |
13 <nav-notify notifications="{{ app.notifications }}"></nav-notify> | |
14 </nav-bar> | |
15 | |
16 <div class="content"> | |
17 <h1> | |
18 <!-- TODO(turnidge): Handle unnamed libraries --> | |
19 library {{ library.name }} | |
20 </h1> | |
21 | |
22 <object-common object="{{ library }}"></object-common> | |
23 <br> | |
24 | |
25 <div class="memberList"> | |
26 <div class="memberItem"> | |
27 <div class="memberName">uri</div> | |
28 <div class="memberValue">{{ library.uri }}</div> | |
29 </div> | |
30 <template if="{{ library.name != library.vmName }}"> | |
31 <div class="memberItem"> | |
32 <div class="memberName">vm name</div> | |
33 <div class="memberValue">{{ library.vmName }}</div> | |
34 </div> | |
35 </template> | |
36 </div> | |
37 </div> | |
38 | |
39 <hr> | |
40 | |
41 <div class="content"> | |
42 <eval-box context="{{ library }}"></eval-box> | |
43 </div> | |
44 | |
45 <hr> | |
46 | |
47 <div class="content"> | |
48 <template if="{{ library.dependencies.isNotEmpty }}"> | |
49 dependencies ({{ library.dependencies.length }}) | |
50 <curly-block expand="{{ false }}"> | |
51 <div class="memberList"> | |
52 <template repeat="{{ dep in library.dependencies }}"> | |
53 <div class="memberItem"> | |
54 <div class="memberValue"> | |
55 <template if="{{ dep.isImport }}"> | |
56 import <library-ref ref="{{ dep.target }}"></library-ref> | |
57 <template if="{{ dep.prefix != null }}"> | |
58 as {{ dep.prefix.toString() }} | |
59 </template> | |
60 <template if="{{ dep.isDeferred }}"> | |
61 deferred | |
62 </template> | |
63 </template> | |
64 <template if="{{ !dep.isImport }}"> | |
65 export <library-ref ref="{{ dep.target }}"></library-ref> | |
66 </template> | |
67 </div> | |
68 </div> | |
69 </template> | |
70 </div> | |
71 </curly-block><br> | |
72 <br> | |
73 </template> | |
74 | |
75 <template if="{{ library.scripts.isNotEmpty }}"> | |
76 scripts ({{ library.scripts.length }}) | |
77 <curly-block expand="{{ false }}"> | |
78 <div class="memberList"> | |
79 <template repeat="{{ script in library.scripts }}"> | |
80 <div class="memberItem"> | |
81 <div class="memberValue"> | |
82 <script-ref ref="{{ script }}"></script-ref> | |
83 </div> | |
84 </div> | |
85 </template> | |
86 </div> | |
87 </curly-block><br> | |
88 <br> | |
89 </template> | |
90 | |
91 <template if="{{ library.classes.isNotEmpty }}"> | |
92 classes ({{ library.classes.length }}) | |
93 <curly-block expand="{{ false }}"> | |
94 <div class="memberList"> | |
95 <template repeat="{{ cls in library.classes }}"> | |
96 <div class="memberItem"> | |
97 <div class="memberValue"> | |
98 <class-ref ref="{{ cls }}"></class-ref> | |
99 </div> | |
100 </div> | |
101 </template> | |
102 </div> | |
103 </curly-block><br> | |
104 <br> | |
105 </template> | |
106 | |
107 <template if="{{ library.variables.isNotEmpty }}"> | |
108 variables ({{ library.variables.length }}) | |
109 <curly-block expand="{{ library.variables.length <= 8 }}"> | |
110 <div class="memberList"> | |
111 <template repeat="{{ field in library.variables }}"> | |
112 <div class="memberItem"> | |
113 <div class="memberName"> | |
114 <field-ref ref="{{ field }}"></field-ref> | |
115 </div> | |
116 <div class="memberValue"> | |
117 <template if="{{ field.staticValue != null }}"> | |
118 <any-service-ref ref="{{ field.staticValue }}"></any-service
-ref> | |
119 </template> | |
120 </div> | |
121 </div> | |
122 </template> | |
123 </div> | |
124 </curly-block><br> | |
125 <br> | |
126 </template> | |
127 | |
128 <template if="{{ library.functions.isNotEmpty }}"> | |
129 functions ({{ library.functions.length }}) | |
130 <curly-block expand="{{ false }}"> | |
131 <div class="memberList"> | |
132 <template repeat="{{ function in library.functions }}"> | |
133 <div class="memberItem"> | |
134 <div class="memberValue"> | |
135 <function-ref ref="{{ function }}"></function-ref> | |
136 </div> | |
137 </div> | |
138 </template> | |
139 </div> | |
140 </curly-block><br> | |
141 <br> | |
142 </template> | |
143 </div> | |
144 | |
145 <div class="content-centered-big"> | |
146 <hr> | |
147 <script-inset script="{{ library.rootScript }}"> | |
148 </script-inset> | |
149 </div> | |
150 | |
151 <view-footer></view-footer> | |
152 </template> | |
153 </polymer-element> | |
154 | |
155 <script type="application/dart" src="library_view.dart"></script> | |
OLD | NEW |