!38 增加功能:增加 dotnet --info 运行时检查

Merge pull request !38 from Argo/dev-runtime
This commit is contained in:
Argo 2019-10-01 15:11:31 +08:00 committed by Gitee
commit da77552b14
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@
return healthStatus[value]; return healthStatus[value];
}; };
var cate = { "db": "数据库", "file": "组件文件", "mem": "内存", "Gitee": "Gitee 接口", "gc": "垃圾回收器" }; var cate = { "db": "数据库", "file": "组件文件", "mem": "内存", "Gitee": "Gitee 接口", "gc": "垃圾回收器", "dotnet-runtime": "运行时" };
var CategoryFormatter = function (value) { var CategoryFormatter = function (value) {
return cate[value]; return cate[value];
}; };
@ -70,6 +70,10 @@
{ {
title: "值", field: "value", formatter: function (value, row) { title: "值", field: "value", formatter: function (value, row) {
if (row.name === "Exception") value = $.format("<span class='text-danger'>{0}</span>", value); if (row.name === "Exception") value = $.format("<span class='text-danger'>{0}</span>", value);
if (row.name === "dotnet --info") {
value = value.replace(/\r\n/g, "<br>");
value = value.replace(/\n/g, "<br>");
}
return value; return value;
} }
} }