Index: runtime/observatory/lib/src/elements/nav_bar.html |
diff --git a/runtime/observatory/lib/src/elements/nav_bar.html b/runtime/observatory/lib/src/elements/nav_bar.html |
index d8c5c13a5dcbd167d8b1b9f161ed8621182c2e28..bf338840dce60df4db9f34dcac480f4f4b2dc72f 100644 |
--- a/runtime/observatory/lib/src/elements/nav_bar.html |
+++ b/runtime/observatory/lib/src/elements/nav_bar.html |
@@ -1,8 +1,8 @@ |
<link rel="import" href="../../../../packages/polymer/polymer.html"> |
<link rel="import" href="action_link.html"> |
-<link rel="import" href="observatory_element.html"> |
-<polymer-element name="library-nav-menu" extends="observatory-element"> |
+ |
+<polymer-element name="library-nav-menu"> |
<template> |
<nav-menu link="{{ makeLink('/inspect', library) }}" |
anchor="{{ library.name }}" last="{{ last }}"> |
@@ -11,251 +11,4 @@ |
</template> |
</polymer-element> |
-<polymer-element name="nav-notify" extends="observatory-element"> |
- <template> |
- <style> |
- .menu { |
- float: right; |
- } |
- .menu .list { |
- display: block; |
- position: absolute; |
- top: 98%; |
- right: 0; |
- margin: 0; |
- padding: 0; |
- width: auto; |
- z-index: 1000; |
- font: 400 12px 'Montserrat', sans-serif; |
- color: white; |
- background: none; |
- } |
- </style> |
- |
- <div class="menu"> |
- <div class="list"> |
- <template repeat="{{ notification in notifications }}"> |
- <template if="{{ notification.event != null }}"> |
- <nav-notify-event notifications="{{ notifications }}" |
- notification="{{ notification }}" |
- event="{{ notification.event }}" |
- notifyOnPause="{{ notifyOnPause }}"> |
- </nav-notify-event> |
- </template> |
- <template if="{{ notification.exception != null }}"> |
- <nav-notify-exception notifications="{{ notifications }}" |
- notification="{{ notification }}" |
- exception="{{ notification.exception }}" |
- stacktrace="{{ notification.stacktrace }}"> |
- </nav-notify-exception> |
- </template> |
- </template> |
- </div> |
- </div> |
- </template> |
-</polymer-element> |
- |
-<polymer-element name="nav-notify-event" extends="observatory-element"> |
- <template> |
- <style> |
- .item { |
- position: relative; |
- padding: 16px; |
- margin-top: 10px; |
- margin-right: 10px; |
- padding-right: 25px; |
- width: 250px; |
- color: #ddd; |
- background: rgba(0,0,0,.6); |
- border: solid 2px white; |
- box-shadow: 0 0 5px black; |
- border-radius: 5px; |
- animation: fadein 1s; |
- } |
- |
- .wide-item { |
- width: 50vw; |
- } |
- |
- @keyframes fadein { |
- from { opacity: 0; } |
- to { opacity: 1; } |
- } |
- |
- a.link { |
- color: white; |
- text-decoration: none; |
- } |
- a.link:hover { |
- text-decoration: underline; |
- } |
- |
- a.boxclose { |
- position: absolute; |
- display: block; |
- top: 4px; |
- right: 4px; |
- height: 18px; |
- width: 18px; |
- line-height: 16px; |
- border-radius: 9px; |
- color: white; |
- font-size: 18px; |
- cursor: pointer; |
- text-align: center; |
- } |
- a.boxclose:hover { |
- background: rgba(255,255,255,0.5); |
- } |
- .error { |
- white-space: pre; |
- } |
- </style> |
- <template if="{{ event != null }}"> |
- <template if="{{ notifyOnPause && event.isPauseEvent }}"> |
- <div class="item"> |
- Isolate |
- <a class="link" on-click="{{ goto }}" |
- _href="{{ gotoLink('/inspect', event.isolate) }}">{{ event.isolate.name }}</a> |
- is paused |
- <template if="{{ event.kind == 'PauseStart' }}"> |
- at isolate start |
- </template> |
- <template if="{{ event.kind == 'PauseExit' }}"> |
- at isolate exit |
- </template> |
- <template if="{{ event.breakpoint != null }}"> |
- at breakpoint {{ event.breakpoint.number }} |
- </template> |
- <template if="{{ event.kind == 'PauseException' }}"> |
- due to exception |
- </template> |
- |
- <br><br> |
- [<a class="link" on-click="{{ goto }}" |
- _href="{{ gotoLink('/debugger', event.isolate) }}">debug</a>] |
- |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- <template if="{{ event.kind == 'ConnectionClosed' }}"> |
- <div class="item"> |
- Disconnected from VM: {{ event.reason }} |
- <br><br> |
- [<a class="link" on-click="{{ goto }}" |
- _href="{{ gotoLink('/vm-connect') }}">Connect to a VM</a>] |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- <template if="{{ event.kind == 'Inspect' }}"> |
- <div class="item"> |
- Inspect <any-service-ref ref="{{ event.inspectee }}"></any-service-ref> |
- <br><br> |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- <template if="{{ event.kind == 'IsolateReload' }}"> |
- <div class="wide-item item"> |
- Isolate reload |
- <template if="{{ event.reloadError != null }}"> |
- failed: |
- <br> |
- <br> |
- <div class="indent error">{{ event.reloadError.message.toString() }}</div><br> |
- </template> |
- <template if="{{ event.reloadError == null }}"> |
- succeeded |
- </template> |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- </template> |
- </template> |
-</polymer-element> |
- |
- |
-<polymer-element name="nav-notify-exception" extends="observatory-element"> |
- <template> |
- <style> |
- .item { |
- position: relative; |
- padding: 16px; |
- margin-top: 10px; |
- margin-right: 10px; |
- padding-right: 25px; |
- width: 500px; |
- color: #ddd; |
- background: rgba(0,0,0,.6); |
- border: solid 2px white; |
- box-shadow: 0 0 5px black; |
- border-radius: 5px; |
- animation: fadein 1s; |
- } |
- |
- @keyframes fadein { |
- from { opacity: 0; } |
- to { opacity: 1; } |
- } |
- |
- a.link { |
- color: white; |
- text-decoration: none; |
- } |
- a.link:hover { |
- text-decoration: underline; |
- } |
- .indent { |
- margin-left:20px; |
- } |
- |
- a.boxclose { |
- position: absolute; |
- display: block; |
- top: 4px; |
- right: 4px; |
- height: 18px; |
- width: 18px; |
- line-height: 16px; |
- border-radius: 9px; |
- color: white; |
- font-size: 18px; |
- cursor: pointer; |
- text-align: center; |
- } |
- a.boxclose:hover { |
- background: rgba(255,255,255,0.5); |
- } |
- .stacktrace { |
- white-space: pre |
- } |
- </style> |
- <template if="{{ isUnexpectedError }}"> |
- <!-- TODO(turnidge): Add a file-a-bug link to this notification --> |
- <div class="item"> |
- Unexpected exception:<br><br> |
- <div class="indent">{{ exception.toString() }}</div><br> |
- <template if="{{ stacktrace != null }}"> |
- Stacktrace:<br><br> |
- <div class="indent stacktrace">{{ stacktrace.toString() }}</div> |
- <br> |
- </template> |
- [<a class="link" on-click="{{ goto }}" |
- _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- <template if="{{ isNetworkError }}"> |
- <div class="item"> |
- The request cannot be completed because the VM is currently |
- disconnected. |
- <br><br> |
- [<a class="link" on-click="{{ goto }}" |
- _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] |
- <a class="boxclose" on-click="{{ closeItem }}">×</a> |
- </div> |
- </template> |
- </template> |
-</polymer-element> |
- |
- |
<script type="application/dart" src="nav_bar.dart"></script> |