瀏覽代碼

Add a special line color for Window Performances

Gaël Métais 11 年之前
父節點
當前提交
d86b93e646
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 5 1
      app/node_views/results.html
  2. 3 0
      app/public/styles/results.css

+ 5 - 1
app/node_views/results.html

@@ -145,7 +145,11 @@
                                 || node.data.callDetails.arguments[1].indexOf(textFilter) >= 0
                                 || node.data.callDetails.arguments[2].indexOf(textFilter) >= 0
                                 || node.data.callDetails.arguments[3].indexOf(textFilter) >= 0)"
-                     ng-class="{showingDetails: node.data.showDetails, jsError: node.data.type == 'error' || node.data.type == 'jQuery version change'}">
+                     ng-class="{
+                                    showingDetails: node.data.showDetails,
+                                    jsError: node.data.type == 'error' || node.data.type == 'jQuery version change',
+                                    windowPerformance: node.data.type == 'domInteractive' || node.data.type == 'domContentLoaded' || node.data.type == 'domContentLoadedEnd' || node.data.type == 'domComplete'
+                                }">
                     <div class="index">{{$index}}</div>
                     <div class="type">{{node.data.type}}</div>
 

+ 3 - 0
app/public/styles/results.css

@@ -179,6 +179,9 @@ input.textFilter {
     color: #e74c3c;
     font-weight: bold;
 }
+.table > div.windowPerformance > div {
+    background: #EBD8E2;
+}
 .table > div.showingDetails > div {
     background: #f1c40f;
 }