Slightly better UI error handling

This commit is contained in:
Ian Kent 2014-04-27 18:19:30 +01:00
parent e5e6f4389d
commit fe1c3f8cb4
5 changed files with 386 additions and 157 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

View file

@ -1,14 +1,80 @@
var mailhogApp = angular.module('mailhogApp', []);
mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
$scope.cache = {};
$scope.previewAllHeaders = false;
$scope.eventsPending = [];
$scope.eventsPending = {};
$scope.eventCount = 0;
$scope.eventDone = 0;
$scope.eventFailed = 0;
$scope.startEvent = function(name, args) {
var eID = guid();
console.log("Starting event '" + name + "' with id '" + eID + "'")
var e = {
id: eID,
name: name,
started: new Date(),
complete: false,
failed: false,
args: args,
getClass: function() {
// FIXME bit nasty
if(this.failed) {
return "bg-danger"
}
if(this.complete) {
return "bg-success"
}
return "bg-warning"; // pending
},
done: function() {
//delete $scope.eventsPending[eID]
var e = this;
e.complete = true;
$scope.eventDone++;
if(this.failed) {
console.log("Failed event '" + e.name + "' with id '" + eID + "'")
} else {
console.log("Completed event '" + e.name + "' with id '" + eID + "'")
}
$timeout(function() {
console.log("Deleted event '" + e.name + "' with id '" + eID + "'")
if(e.failed) {
$scope.eventFailed--;
}
delete $scope.eventsPending[eID];
$scope.eventDone--;
$scope.eventCount--;
}, 30000);
},
fail: function() {
$scope.eventFailed++;
this.failed = true;
this.done();
}
};
$scope.eventsPending[eID] = e;
$scope.eventCount++;
return e;
}
$scope.refresh = function() {
var e = $scope.startEvent("Loading messages");
$http.get('/api/v1/messages').success(function(data) {
$scope.messages = data;
e.done();
});
}
$scope.refresh();
@ -19,12 +85,14 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
reflow();
} else {
$scope.preview = message;
var e = $scope.startEvent("Loading message", message.Id);
$http.get('/api/v1/messages/' + message.Id).success(function(data) {
$scope.cache[message.Id] = data;
data.previewHTML = $sce.trustAsHtml($scope.getMessageHTML(data));
$scope.preview = data;
preview = $scope.cache[message.Id];
reflow();
e.done();
});
}
}
@ -104,14 +172,17 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
var message = $scope.releasing;
$scope.releasing = null;
var e = $scope.startEvent("Releasing message", message.Id);
$http.post('/api/v1/messages/' + message.Id + '/release', {
email: $('#release-message-email').val(),
host: $('#release-message-smtp-host').val(),
port: $('#release-message-smtp-port').val(),
}).success(function() {
alert("Message released")
}).error(function(e) {
alert("Failed to release message: " + e)
e.done();
}).error(function(err) {
e.fail();
e.error = err;
});
}
@ -127,16 +198,20 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce) {
$scope.deleteAllConfirm = function() {
$('#confirm-delete-all').modal('hide');
var e = $scope.startEvent("Deleting all messages");
$http.post('/api/v1/messages/delete').success(function() {
$scope.refresh();
$scope.preview = null;
e.done()
});
}
$scope.deleteOne = function(message) {
var e = $scope.startEvent("Deleting message", message.Id);
$http.post('/api/v1/messages/' + message.Id + '/delete').success(function() {
if($scope.preview._id == message._id) $scope.preview = null;
$scope.refresh();
e.done();
});
}
});

View file

@ -26,6 +26,25 @@
.navbar-nav.navbar-right:last-child {
margin-right: 0; /* bootstrap fix?! */
}
.ajax-loader {
background: url('/images/ajax-loader.gif');
width: 16px;
height: 16px;
display: inline-block;
}
.ajax-event {
padding: 5px;
}
.ajax-event h1 {
font-size: 1em;
padding: 2px;
margin: 0;
}
.ajax-event h2 {
font-size: 0.8em;
padding: 2px;
margin: 0;
}
</style>
</head>
<body ng-controller="MailCtrl">
@ -35,6 +54,18 @@
<a class="navbar-brand" href="#">MailHog</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li ng-if="eventCount > 0" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span ng-if="eventCount > eventDone" class="ajax-loader"></span>
{{ eventCount - eventDone }} pending <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li ng-class="e.getClass()" ng-repeat="(id, e) in eventsPending" class="ajax-event">
<h1>{{ e.name }}</h1>
<h2 ng-if="e.args">{{ e.args }}</h2>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Options <b class="caret"></b></a>
<ul class="dropdown-menu">

View file

@ -24,6 +24,60 @@ func bindata_read(data []byte, name string) ([]byte, error) {
return buf.Bytes(), nil
}
func assets_images_ajax_loader_gif() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0x72, 0xf7,
0x74, 0xb3, 0xb0, 0x4c, 0x14, 0x60, 0x10, 0x60, 0xf8, 0xc4, 0xc0, 0xf0,
0xff, 0xff, 0x7f, 0x06, 0x06, 0x86, 0x43, 0x87, 0x0e, 0x39, 0x39, 0x39,
0x01, 0x19, 0x49, 0x49, 0x49, 0x4d, 0x4d, 0x4d, 0x93, 0x26, 0x4d, 0x52,
0xfc, 0xcf, 0xed, 0xe7, 0x1a, 0x12, 0xec, 0xec, 0x18, 0xe0, 0x6a, 0xa4,
0x67, 0xc0, 0xcc, 0x08, 0x94, 0x53, 0xfc, 0x27, 0xe5, 0x5c, 0x94, 0x9a,
0x58, 0x92, 0x9a, 0xa2, 0x50, 0x9e, 0x59, 0x92, 0xa1, 0x90, 0x98, 0x95,
0x58, 0x91, 0x93, 0x9f, 0x98, 0xa2, 0x97, 0x99, 0x97, 0x96, 0xcf, 0xa0,
0xf8, 0x93, 0x85, 0x93, 0x0b, 0xa8, 0x4a, 0x07, 0x88, 0x19, 0x40, 0x86,
0x33, 0x30, 0x1b, 0x73, 0xec, 0xba, 0xf3, 0xcf, 0xe0, 0x94, 0x67, 0xb6,
0x70, 0x32, 0x87, 0x15, 0x87, 0xe4, 0x1c, 0x76, 0xb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, 0x73, 0x34, 0xaf, 0xcb, 0x71,
0x70, 0x1c, 0x56, 0xe8, 0x3b, 0x5e, 0xc8, 0xc7, 0x62, 0x68, 0xb0, 0xf2,
0xd4, 0x86, 0x75, 0x01, 0x12, 0x87, 0x80, 0xd1, 0x15, 0x76, 0x6b, 0x29,
0x93, 0x42, 0x69, 0x92, 0x44, 0xd3, 0xbc, 0x68, 0xc1, 0x09, 0x0c, 0x0c,
0xd6, 0x0c, 0x30, 0x00, 0x08, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x47, 0x25,
0x03, 0xa1, 0x02, 0x00, 0x00,
},
"assets/images/ajax-loader.gif",
)
}
func assets_images_hog_png() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0x8c, 0x96,
@ -268,93 +322,134 @@ func assets_images_hog_png() ([]byte, error) {
func assets_js_controllers_js() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xec, 0x57,
0x5f, 0x8b, 0xe3, 0x36, 0x10, 0x7f, 0x76, 0x3e, 0x85, 0x9a, 0x2e, 0xd8,
0xee, 0x25, 0xce, 0xde, 0xeb, 0x85, 0x6d, 0xd9, 0x6e, 0x5b, 0x76, 0xa1,
0xa1, 0x4b, 0xef, 0xde, 0x72, 0xa1, 0xa8, 0xf6, 0x24, 0x36, 0xab, 0xd8,
0x46, 0x52, 0x92, 0x1e, 0x87, 0xbf, 0x7b, 0x47, 0x96, 0x64, 0xc9, 0x8e,
0x93, 0x5d, 0x0a, 0x7d, 0x28, 0x74, 0x59, 0x48, 0xec, 0xf9, 0xcd, 0xcc,
0x4f, 0xf3, 0x4f, 0x93, 0x23, 0xe5, 0x64, 0x4f, 0x0b, 0x96, 0x57, 0xbb,
0xfb, 0xba, 0x26, 0x77, 0x84, 0x96, 0xbb, 0x03, 0xa3, 0x3c, 0xd9,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x66, 0xaf, 0x94, 0x39, 0xf6, 0xcc, 0x71, 0x1e, 0x11, 0xd6,
0x53, 0x65, 0xf4, 0x3d, 0x20, 0xeb, 0xad, 0x9f, 0x3b, 0xda, 0xaf, 0x63,
0x5e, 0x39, 0xdd, 0x90, 0x9e, 0x63, 0xea, 0x44, 0xc5, 0x3e, 0x65, 0xf1,
0x48, 0xbd, 0x3e, 0xed, 0x04, 0xf3, 0xd8, 0x52, 0x16, 0x47, 0x7f, 0xe5,
0xf0, 0x14, 0x36, 0x69, 0x01, 0xc7, 0x70, 0xf8, 0x16, 0xd0, 0x4e, 0x19,
0xf7, 0xa2, 0x5b, 0x66, 0x9d, 0xaf, 0xe0, 0xfb, 0x77, 0x00, 0x00, 0x00,
0xff, 0xff, 0x3b, 0x15, 0x10, 0xe7, 0x6c, 0x16, 0x00, 0x00,
},
"assets/js/controllers.js",
)
@ -551,71 +646,91 @@ func assets_templates_index_html() ([]byte, error) {
func assets_templates_layout_html() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xb4, 0x55,
0x4d, 0x8f, 0xdb, 0x36, 0x10, 0xbd, 0xe7, 0x57, 0x4c, 0x18, 0x2c, 0xd0,
0x06, 0x95, 0x68, 0x37, 0x08, 0x50, 0x78, 0x65, 0x17, 0x41, 0x52, 0x24,
0x97, 0x22, 0x45, 0xd1, 0x4b, 0x4f, 0x05, 0x45, 0x8e, 0x25, 0x7a, 0x29,
0x52, 0x25, 0x47, 0xfb, 0x81, 0xa0, 0xff, 0xbd, 0xa4, 0xbe, 0x2c, 0x2b,
0xde, 0xa2, 0x97, 0xc0, 0x07, 0x0f, 0x87, 0xc3, 0xf7, 0x86, 0xf3, 0x66,
0xa8, 0xe2, 0xe5, 0x87, 0xcf, 0xef, 0xff, 0xf8, 0xf3, 0xb7, 0x5f, 0xa0,
0xa6, 0xc6, 0x1c, 0x5e, 0x14, 0xe9, 0x0f, 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, 0xce, 0xa9, 0x0f, 0xb4, 0x6b, 0x46, 0x8d,
0xa2, 0x1b, 0x9e, 0x6c, 0x20, 0x34, 0xd0, 0xd0, 0xba, 0x4f, 0xda, 0x06,
0x1b, 0xfa, 0x2a, 0x3d, 0x79, 0x59, 0xfb, 0xf4, 0xfd, 0x2f, 0x00, 0x00,
0xff, 0xff, 0x7c, 0xdc, 0x1c, 0xb6, 0x0b, 0x0b, 0x00, 0x00,
},
"assets/templates/layout.html",
)
@ -634,6 +749,7 @@ func Asset(name string) ([]byte, error) {
// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string] func() ([]byte, error) {
"assets/images/ajax-loader.gif": assets_images_ajax_loader_gif,
"assets/images/hog.png": assets_images_hog_png,
"assets/js/controllers.js": assets_js_controllers_js,
"assets/templates/index.html": assets_templates_index_html,

View file

@ -36,6 +36,12 @@ func web_imgcontroller(w http.ResponseWriter, r *http.Request, route *handler.Ro
w.Write(data)
}
func web_img_ajaxloader(w http.ResponseWriter, r *http.Request, route *handler.Route) {
w.Header().Set("Content-Type", "image/gif")
data, _ := cfg.Assets("assets/images/ajax-loader.gif")
w.Write(data)
}
func web_render(content string) string {
data, _ := cfg.Assets("assets/templates/layout.html")
layout := string(data)
@ -59,6 +65,7 @@ func Start(exitCh chan int, conf *config.Config) {
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/exit/?$"), web_exit)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/js/controllers.js$"), web_jscontroller)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/images/hog.png$"), web_imgcontroller)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/images/ajax-loader.gif$"), web_img_ajaxloader)
server.Handler.(*handler.RegexpHandler).HandleFunc(regexp.MustCompile("^/$"), web_index)
api.CreateAPIv1(exitCh, conf, server)