| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <link rel="import" href="class_ref.html"> | 2 <link rel="import" href="class_ref.html"> |
| 3 <link rel="import" href="field_ref.html"> | 3 <link rel="import" href="field_ref.html"> |
| 4 <link rel="import" href="function_ref.html"> | 4 <link rel="import" href="function_ref.html"> |
| 5 <link rel="import" href="instance_ref.html"> | 5 <link rel="import" href="instance_ref.html"> |
| 6 <link rel="import" href="isolate_element.html"> | 6 <link rel="import" href="observatory_element.html"> |
| 7 <link rel="import" href="library_ref.html"> | 7 <link rel="import" href="library_ref.html"> |
| 8 <link rel="import" href="nav_bar.html"> | 8 <link rel="import" href="nav_bar.html"> |
| 9 <link rel="import" href="script_ref.html"> | 9 <link rel="import" href="script_ref.html"> |
| 10 </head> | 10 </head> |
| 11 <polymer-element name="library-view" extends="isolate-element"> | 11 <polymer-element name="library-view" extends="observatory-element"> |
| 12 <template> | 12 <template> |
| 13 <nav-bar> | 13 <nav-bar> |
| 14 <top-nav-menu></top-nav-menu> | 14 <top-nav-menu></top-nav-menu> |
| 15 <isolate-nav-menu isolate="{{ isolate }}"></isolate-nav-menu> | 15 <isolate-nav-menu isolate="{{ library.isolate }}"></isolate-nav-menu> |
| 16 <library-nav-menu isolate="{{ isolate }}" library="{{ library }}" last="{{
true }}"></library-nav-menu> | 16 <library-nav-menu library="{{ library }}" last="{{ true }}"></library-nav-
menu> |
| 17 <nav-refresh callback="{{ refresh }}"></nav-refresh> | 17 <nav-refresh callback="{{ refresh }}"></nav-refresh> |
| 18 </nav-bar> | 18 </nav-bar> |
| 19 | 19 |
| 20 <div class="alert alert-info">Scripts</div> | 20 <div class="alert alert-info">Scripts</div> |
| 21 <table class="table table-hover"> | 21 <table class="table table-hover"> |
| 22 <tbody> | 22 <tbody> |
| 23 <tr template repeat="{{ script in library['scripts']}}"> | 23 <tr template repeat="{{ script in library['scripts']}}"> |
| 24 <td> | 24 <td> |
| 25 {{ script['kind'] }} | 25 {{ script.kind }} |
| 26 </td> | 26 </td> |
| 27 <td> | 27 <td> |
| 28 <script-ref isolate="{{ isolate }}" ref="{{ script }}"></script-ref> | 28 <script-ref ref="{{ script }}"></script-ref> |
| 29 </td> | 29 </td> |
| 30 </tr> | 30 </tr> |
| 31 </tbody> | 31 </tbody> |
| 32 </table> | 32 </table> |
| 33 <div class="alert alert-info">Imported Libraries</div> | 33 <div class="alert alert-info">Imported Libraries</div> |
| 34 <table class="table table-hover"> | 34 <table class="table table-hover"> |
| 35 <tbody> | 35 <tbody> |
| 36 <tr template repeat="{{ lib in library['libraries'] }}"> | 36 <tr template repeat="{{ lib in library['libraries'] }}"> |
| 37 <td> | 37 <td> |
| 38 <library-ref isolate="{{ isolate }}" ref="{{ lib }}"></library-ref> | 38 <library-ref ref="{{ lib }}"></library-ref> |
| 39 </td> | 39 </td> |
| 40 </tr> | 40 </tr> |
| 41 </tbody> | 41 </tbody> |
| 42 </table> | 42 </table> |
| 43 <div class="alert alert-info">Variables</div> | 43 <div class="alert alert-info">Variables</div> |
| 44 <table class="table table-hover"> | 44 <table class="table table-hover"> |
| 45 <tbody> | 45 <tbody> |
| 46 <tr template repeat="{{ variable in library['variables'] }}"> | 46 <tr template repeat="{{ variable in library['variables'] }}"> |
| 47 <td><field-ref isolate="{{ isolate }}" ref="{{ variable }}"></field-ref>
</td> | 47 <td><field-ref ref="{{ variable }}"></field-ref></td> |
| 48 <td><instance-ref isolate="{{ isolate }}" ref="{{ variable['value'] }}">
</instance-ref></td> | 48 <td><instance-ref ref="{{ variable['value'] }}"></instance-ref></td> |
| 49 </tr> | 49 </tr> |
| 50 </tbody> | 50 </tbody> |
| 51 </table> | 51 </table> |
| 52 <div class="alert alert-info">Functions</div> | 52 <div class="alert alert-info">Functions</div> |
| 53 <table class="table table-hover"> | 53 <table class="table table-hover"> |
| 54 <tbody> | 54 <tbody> |
| 55 <tr template repeat="{{ func in library['functions'] }}"> | 55 <tr template repeat="{{ func in library['functions'] }}"> |
| 56 <td> | 56 <td> |
| 57 <function-ref isolate="{{ isolate }}" ref="{{ func }}"></function-ref> | 57 <function-ref ref="{{ func }}"></function-ref> |
| 58 </td> | 58 </td> |
| 59 </tr> | 59 </tr> |
| 60 </tbody> | 60 </tbody> |
| 61 </table> | 61 </table> |
| 62 <div class="alert alert-info">Classes</div> | 62 <div class="alert alert-info">Classes</div> |
| 63 <table class="table table-hover"> | 63 <table class="table table-hover"> |
| 64 <thead> | 64 <thead> |
| 65 <tr> | 65 <tr> |
| 66 <th>Name</th> | 66 <th>Name</th> |
| 67 <th>Internal Name</th> | 67 <th>Internal Name</th> |
| 68 </tr> | 68 </tr> |
| 69 </thead> | 69 </thead> |
| 70 <tbody> | 70 <tbody> |
| 71 <tr template repeat="{{ cls in library['classes'] }}"> | 71 <tr template repeat="{{ cls in library['classes'] }}"> |
| 72 <td> | 72 <td> |
| 73 <class-ref isolate="{{ isolate }}" ref="{{ cls }}"></class-ref> | 73 <class-ref ref="{{ cls }}"></class-ref> |
| 74 </td> | 74 </td> |
| 75 <td> | 75 <td> |
| 76 <class-ref isolate="{{ isolate }}" ref="{{ cls }}" internal></class-re
f> | 76 <class-ref ref="{{ cls }}" internal></class-ref> |
| 77 </td> | 77 </td> |
| 78 </tr> | 78 </tr> |
| 79 </tbody> | 79 </tbody> |
| 80 </table> | 80 </table> |
| 81 | 81 |
| 82 </template> | 82 </template> |
| 83 <script type="application/dart" src="library_view.dart"></script> | 83 <script type="application/dart" src="library_view.dart"></script> |
| 84 </polymer-element> | 84 </polymer-element> |
| OLD | NEW |