From a09b0602164450ec049c2dbb90c9c2811f6ade7e Mon Sep 17 00:00:00 2001 From: Iwasaki Yudai Date: Mon, 17 Aug 2015 21:41:41 -0700 Subject: [PATCH] Show "Connection Closed" message as overlay Closes #7. --- app/resource.go | 6 +++--- resources/gotty.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/resource.go b/app/resource.go index 48e61454..f0cb2424 100644 --- a/app/resource.go +++ b/app/resource.go @@ -70,7 +70,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _bindataGottyJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x53\x4d\x8f\xd3\x30\x10\xbd\xf7\x57\x58\xbe\x34\x11\x95\x97\xbd\x70\x48\x55\x71\x40\x70\x00\x04\x12\x2d\x70\x40\x08\xb9\xf1\xb4\xb5\x36\xf5\x44\xf6\x64\xa3\x82\xf2\xdf\x19\xa7\x49\x9b\x7e\xc2\x1c\xaa\x74\xe6\xbd\xe7\x37\xe3\x71\xb2\xaa\x5c\x4e\x16\x5d\x92\x8a\x3f\x23\xc1\xf1\xac\xbd\xd8\x10\x95\xe1\xad\xd3\xcb\x02\x8c\x98\x89\xda\x3a\x83\xb5\x2a\x30\xd7\x11\xaa\x4a\x8f\x84\x39\x16\x62\x36\x13\xb2\xc5\x66\x72\x7a\x20\x57\x9e\x0b\x22\x39\xd1\x78\x2d\xc6\x75\x08\xd9\xc3\xc3\x58\x64\xf1\x33\x7e\xa5\xe2\xc5\x85\xf2\x06\x03\x5d\x49\x97\x9a\x36\x4e\x6f\x81\x4b\x4c\x1e\x1f\xcf\xea\x9d\x04\x3e\xf1\x87\x5c\x23\xd1\x4e\xfe\x3c\x96\xeb\x98\x77\x50\x8b\xef\xb0\x9c\x63\xfe\x04\x94\xb0\xbb\xc9\x91\x96\x4e\x47\x07\x30\x81\xdf\x76\x7f\xeb\xa0\xd0\x61\x09\x8e\xe9\x87\x01\xc1\x33\x38\xea\xa7\x14\x63\x13\x19\xca\xc0\x4a\x57\x05\xcd\x09\xbd\x5e\x43\x77\x5e\x61\x97\xaa\xcb\xa8\x8f\xdc\x45\x91\xa4\xa3\x03\x2f\xd2\x3a\xdc\x5e\x62\xc1\x3f\xd6\x45\xd0\xf4\x14\xc5\x2e\xfa\xda\x17\xd0\x66\x37\xb4\x33\x74\xd2\xb7\x60\x91\x11\x2d\xd1\xa2\x2a\xab\xb0\x39\x51\x8c\xc1\x79\x74\xdf\x16\x1f\x60\x17\xc8\xe3\x13\x0c\x15\x39\x73\x2e\xda\x0d\x23\x80\x33\x89\x7c\x29\x79\xfe\x11\x34\x3d\xc1\x34\x97\x47\x44\xfc\x9c\xbc\x75\x6b\xd6\x3f\x3f\xf2\x9a\xa3\x63\x97\xc1\xfe\x3e\x31\xc5\xb7\x54\x6d\x5d\x98\x08\x8f\x75\xb8\x67\xef\xa2\x10\x43\x3e\x46\xcf\xef\xe7\x9f\x3f\xa9\xd0\xfa\xb1\xab\xdd\x75\x64\x8c\x4b\xf1\x61\xc4\x05\xcc\x84\xf4\xad\xc5\x5f\xd4\x39\x96\x93\xbb\x24\xed\xd7\xd5\x96\xf7\x26\x64\xff\x50\x8f\xd1\xf5\x9a\xf5\x1f\xf7\xa5\x63\xc4\xa1\x64\xed\xef\x7d\x6c\x73\xbb\xdc\x5c\xad\xa4\x17\xd9\xf4\xee\xa5\xef\x97\xce\x05\xd2\x45\xc1\x37\xbd\x44\xed\x4d\x32\x58\x94\xe6\x7c\xb3\x0d\xe4\xfc\x3c\x08\x12\x83\x79\x3b\x21\xb5\x44\xb3\xeb\x18\xcd\xf0\x1d\x6e\x21\x84\xfd\xcb\xba\xfd\x14\xfb\x9d\xaf\xbd\x25\xf8\xba\x78\xf7\xf8\x6a\x8f\x51\x46\x93\xee\x45\x07\x9a\x79\x81\xe1\xff\x14\x4b\xde\x1a\x4a\xe4\x1b\x74\x0e\x5a\xa8\x68\xb9\x46\xc9\x41\x77\x2d\xb8\x72\x37\xfa\x6f\x46\x4d\xca\xef\xff\x6f\x00\x00\x00\xff\xff\xc6\xb5\x6c\xaa\x6b\x05\x00\x00") +var _bindataGottyJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x54\x4d\x8f\xd3\x30\x10\xbd\xf7\x57\x58\xbe\x34\x11\x55\x96\xbd\x70\x48\x55\x71\x58\xc1\x01\x10\x2b\xd1\x02\x07\x84\x90\x1b\x4f\x9b\x68\x5d\x4f\x65\x4f\x1a\x05\x94\xff\xce\x38\x4d\xda\xf4\x13\xe6\x10\xb9\x33\xef\x3d\x3f\x8f\xc7\x8d\x56\xa5\xcd\xa8\x40\x1b\xc5\xe2\xcf\x48\x70\xec\x94\x13\x39\xd1\xd6\xbf\xb3\x6a\x69\x40\x8b\x99\xa8\x0a\xab\xb1\x4a\x0c\x66\x2a\x40\x93\xad\x43\xc2\x0c\x8d\x98\xcd\x84\x6c\xb1\xa9\x9c\x1e\xc8\xa5\xe3\x82\x88\x4e\x34\xde\x8a\x71\xe5\x7d\xfa\xf0\x30\x16\x69\x58\x86\x55\x2c\x5e\x5d\x28\xe7\xe8\xe9\x4a\x7a\xab\x28\xb7\x6a\x03\x5c\x62\xf2\xf8\xb8\x57\xef\xc4\xf3\x8e\x3f\xe4\x1a\x89\x6a\xf9\xf3\x58\xae\x42\xde\x42\x25\xbe\xc3\x72\x8e\xd9\x0b\x50\xc4\xee\x26\x47\x5a\x3c\x1d\x1d\xc0\x04\x6e\xd3\xfd\xac\x7c\x82\x16\xb7\x60\x99\x7e\x68\x10\xec\xc0\x52\xdf\xa5\x10\x79\x60\x24\x1a\x56\xaa\x34\x34\x27\x74\x6a\x0d\xdd\x7e\xa6\x58\x26\x5d\x26\xf9\xc4\xa7\x30\x51\x3c\x3a\xf0\x02\xad\xc3\xed\x25\x16\xfc\x29\x6c\x00\x4d\x4f\x51\xec\xa2\xaf\x7d\x01\xa5\xeb\xa1\x9d\xa1\x93\xfe\x08\x05\x32\xa2\x25\x16\x98\x6c\x4b\x9f\x9f\x28\x86\xe0\x3c\xda\x6f\x8b\x8f\x50\x7b\x72\xf8\x02\x43\x45\xce\x9c\x8b\x76\xcd\xf0\x60\x75\x24\x5f\x4b\xee\x7f\x00\x4d\x4f\x30\xcd\xe5\x16\x01\x3f\x27\x57\xd8\x35\xeb\x9f\x6f\x79\xcd\xd1\xf1\x94\xbe\xf8\x7d\x62\x8a\x6f\xa9\xdc\x58\x3f\x11\x0e\x2b\x7f\xcf\xde\x45\x21\x84\x7c\x0c\x9e\x3f\xcc\x9f\x3f\x27\xbe\xf5\x53\xac\xea\xeb\xc8\x10\x97\xe2\xc3\x08\x03\x98\x0a\xe9\x5a\x8b\xbf\xa8\x73\x2c\x27\x77\x49\xca\xad\xcb\x0d\xcf\x8d\x4f\xff\xa1\x1e\xa2\x3b\x6b\xda\x2f\xee\x4b\x87\x08\x4d\x49\xdb\xef\x7d\x6c\x73\xbb\xdc\x5c\xad\xc4\x17\xd9\xf8\xee\xa5\xef\x87\xce\x7a\x52\xc6\xf0\x4d\x2f\x51\x39\x1d\x0d\x06\xa5\x39\x9f\x6c\x0d\x19\x3f\x0f\x82\x48\x63\xd6\x76\x28\x59\xa2\xae\x3b\x46\x33\x7c\x87\x1b\xf0\x7e\xff\xb2\x6e\x3f\xc5\x7e\xe6\x2b\x57\x10\x7c\x5d\xbc\x7f\x7c\xb3\xc7\x24\x5a\x91\xea\x45\x07\x9a\x99\x41\xff\x7f\x8a\x3e\xc7\xea\x79\x07\xce\xa8\x3a\x92\x4f\x68\x2d\xb4\x04\xf1\x14\x14\xb4\x9c\x08\x5b\x1a\x33\x38\x68\xcb\x2b\xed\x8d\x56\x34\xa3\x26\xe6\xbf\x82\xbf\x01\x00\x00\xff\xff\x69\xd0\xf2\xd8\x76\x05\x00\x00") func bindataGottyJsBytes() ([]byte, error) { return bindataRead( @@ -85,7 +85,7 @@ func bindataGottyJs() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "bindata/gotty.js", size: 1387, mode: os.FileMode(436), modTime: time.Unix(1439776040, 0)} + info := bindataFileInfo{name: "bindata/gotty.js", size: 1398, mode: os.FileMode(436), modTime: time.Unix(1439873108, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -125,7 +125,7 @@ func bindataIndexHtml() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "bindata/index.html", size: 254, mode: os.FileMode(436), modTime: time.Unix(1439776040, 0)} + info := bindataFileInfo{name: "bindata/index.html", size: 254, mode: os.FileMode(436), modTime: time.Unix(1439872871, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/resources/gotty.js b/resources/gotty.js index aa4d40cd..377b2b09 100644 --- a/resources/gotty.js +++ b/resources/gotty.js @@ -45,7 +45,7 @@ } ws.onclose = function(event) { - term.io.print("Connection closed."); + term.io.showOverlay("Connection Closed", null); term.uninstallKeyboard(); } })()