add big loaded animation to panels that need it. Switched up color scheme, made text panel support plain text, markdown and sanitized html

This commit is contained in:
Rashid Khan
2013-03-08 10:04:38 -07:00
parent 34d0c0838f
commit e206040f94
27 changed files with 224005 additions and 264 deletions
+5 -1
View File
@@ -4,6 +4,7 @@ angular.module('kibana.text', [])
// Set and populate defaults
var _d = {
group : "default",
mode : "markdown",
content : "",
style: {},
}
@@ -12,7 +13,7 @@ angular.module('kibana.text', [])
$scope.init = function() {
$scope.ready = false;
}
}).directive('markdown', function() {
return {
restrict: 'E',
@@ -31,6 +32,9 @@ angular.module('kibana.text', [])
.replace(/</g, '&lt;');
var htmlText = converter.makeHtml(text);
element.html(htmlText);
// For whatever reason, this fixes chrome. I don't like it, I think
// it makes things slow?
scope.$apply()
});
}