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 cb52f237c4c35b3bd487784134a82407f572ecd6..1251a2c5fe4c64a02a8e9d6552eebf35d0695708 100644 |
--- a/runtime/observatory/lib/src/elements/nav_bar.html |
+++ b/runtime/observatory/lib/src/elements/nav_bar.html |
@@ -20,251 +20,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> |