| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
| 2 | |
| 3 <polymer-element name="vm-connect"> | |
| 4 <template> | |
| 5 <link rel="stylesheet" href="css/shared.css"> | |
| 6 <style> | |
| 7 .textbox { | |
| 8 width: 20em; | |
| 9 font: 400 16px 'Montserrat', sans-serif; | |
| 10 } | |
| 11 </style> | |
| 12 | |
| 13 <nav-bar> | |
| 14 <top-nav-menu last="{{ true }}"></top-nav-menu> | |
| 15 <nav-notify notifications="{{ app.notifications }}"></nav-notify> | |
| 16 </nav-bar> | |
| 17 | |
| 18 <div class="content-centered"> | |
| 19 <h1>Connect to a Dart VM</h1> | |
| 20 <br> | |
| 21 <hr> | |
| 22 <div class="flex-row"> | |
| 23 <div class="flex-item-40-percent"> | |
| 24 <h2>WebSocket</h2> | |
| 25 <br> | |
| 26 <ul> | |
| 27 <template repeat="{{ target in app.targets.history }}"> | |
| 28 <template if="{{ target.standalone }}"> | |
| 29 <li><vm-connect-target target="{{ target }}"></vm-connect-target
></li> | |
| 30 </template> | |
| 31 </template> | |
| 32 </ul> | |
| 33 <hr> | |
| 34 <form autocomplete="on"> | |
| 35 <input class="textbox" placeholder="localhost:8181" type="text" valu
e="{{ standaloneVmAddress }}"> | |
| 36 <input class="button" type="submit" value="Connect" on-click="{{ con
nectStandalone }}"> | |
| 37 </form> | |
| 38 <br> | |
| 39 <pre class="well">Run Standalone with: '--observe'</pre> | |
| 40 <hr> | |
| 41 </div> | |
| 42 | |
| 43 <div class="flex-item-20-percent"></div> | |
| 44 <div class="flex-item-40-percent"> | |
| 45 <h2>Crash dump</h2> | |
| 46 <br> | |
| 47 <input type="file" id="crashDumpFile"> | |
| 48 <br> | |
| 49 <br> | |
| 50 <pre class="well">Request a crash dump with: | |
| 51 'curl localhost:8181/_getCrashDump > dump.json'</pre> | |
| 52 <hr> | |
| 53 </div> | |
| 54 </div> | |
| 55 </div> | |
| 56 <view-footer></view-footer> | |
| 57 </template> | |
| 58 </polymer-element> | |
| 59 | |
| 60 <script type="application/dart" src="vm_connect.dart"></script> | |
| OLD | NEW |