[MediaWiki-commits] [Gerrit] mediawiki...PerformanceInspector[master]: Show detailed list of unused CSS selectors

2016-10-04 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Show detailed list of unused CSS selectors
..


Show detailed list of unused CSS selectors

Make it possible to show unused CSS selectors from CSS loaded
from the ResourceLoader and link href.

Bug: T140669
Change-Id: I1ff8e2a3938c7674a382ded60c8cb3de2a394894
---
M extension.json
M i18n/de.json
M i18n/en.json
M i18n/fr.json
M i18n/gl.json
M i18n/qqq.json
M i18n/zh-hans.json
M modules/collectors/ext.PerformanceInspector.modulescss.js
M modules/css/ext.PerformanceInspector.css
M modules/templates/modulescss.mustache
10 files changed, 164 insertions(+), 48 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index 9c4ed95..5fa6b6f 100644
--- a/extension.json
+++ b/extension.json
@@ -58,9 +58,10 @@
"performanceinspector-modules-css-name",
"performanceinspector-modules-css-label",

"performanceinspector-modules-css-column-module",
-   
"performanceinspector-modules-css-column-allselectors",
-   
"performanceinspector-modules-css-column-matchedselectors",
-   
"performanceinspector-modules-css-column-percentmatched",
+   
"performanceinspector-modules-css-column-used-selectors",
+   
"performanceinspector-modules-css-used-selectors-values",
+   "performanceinspector-modules-css-column-url",
+   "performanceinspector-modules-css-show-details",

"performanceinspector-modules-localstorage-name",

"performanceinspector-modules-localstorage-label",

"performanceinspector-modules-localstorage-disabled",
@@ -106,6 +107,7 @@
"performanceinspector-newpp-value-and-limit",

"performanceinspector-modules-localstorage-description",
"performanceinspector-modules-css-description",
+   
"performanceinspector-modules-css-url-description",

"performanceinspector-modules-module-description",
"performanceinspector-newpp-description",

"performanceinspector-newpp-timingprofile-description",
diff --git a/i18n/de.json b/i18n/de.json
index 1eefe87..bb978b9 100644
--- a/i18n/de.json
+++ b/i18n/de.json
@@ -14,9 +14,6 @@
"performanceinspector-modules-label": "Modulinformationen",
"performanceinspector-modules-css-title": "CSS",
"performanceinspector-modules-css-column-module": "Modul",
-   "performanceinspector-modules-css-column-allselectors": "allSelectors",
-   "performanceinspector-modules-css-column-matchedselectors": 
"matchedselectors",
-   "performanceinspector-modules-css-column-percentmatched": 
"percentMatched",
"performanceinspector-modules-localstorage-title": "Lokaler Speicher",
"performanceinspector-modules-localstorage-disabled": "Der lokale 
Speicher ist deaktiviert.",
"performanceinspector-modules-localstorage-hits": "Treffer",
diff --git a/i18n/en.json b/i18n/en.json
index 8f6115d..43df336 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -17,9 +17,11 @@
"performanceinspector-modules-css-name": "CSS",
"performanceinspector-modules-css-label": "CSS",
"performanceinspector-modules-css-column-module": "Module",
-   "performanceinspector-modules-css-column-allselectors": "allSelectors",
-   "performanceinspector-modules-css-column-matchedselectors": 
"matchedselectors",
-   "performanceinspector-modules-css-column-percentmatched": 
"percentMatched",
+   "performanceinspector-modules-css-column-used-selectors": "Used 
selectors",
+   "performanceinspector-modules-css-column-url": "URL",
+   "performanceinspector-modules-css-used-selectors-values": "$1 ($2 of 
$3)",
+   "performanceinspector-modules-css-url-description": "For each CSS URL 
with styles, count the number of selectors, and count how many match against 
some element currently in the DOM.",
+   "performanceinspector-modules-css-show-details": "Toggle details",
 
"performanceinspector-modules-localstorage-name": "Local storage",
"performanceinspector-modules-localstorage-label": "Local storage",
@@ -64,7 +66,7 @@
"performanceinspector-newpp-dynamic-content": "Dynamic content",
"performanceinspector-newpp-cachereport": "Parser cache",
"performanceinspector-modules-localstorage-description": "How many 
ResourceLoader modules were loaded from local storage.",
-   "performanceinspector-modules-css-

[MediaWiki-commits] [Gerrit] mediawiki...PerformanceInspector[master]: Show detailed list of unused CSS selectors

2016-09-15 Thread Phedenskog (Code Review)
Phedenskog has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311037

Change subject: Show detailed list of unused CSS selectors
..

Show detailed list of unused CSS selectors

Work in progress.

Bug: T140669

Change-Id: I1ff8e2a3938c7674a382ded60c8cb3de2a394894
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M modules/collectors/ext.PerformanceInspector.modulescss.js
M modules/css/ext.PerformanceInspector.css
M modules/templates/modulescss.mustache
6 files changed, 168 insertions(+), 14 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PerformanceInspector 
refs/changes/37/311037/1

diff --git a/extension.json b/extension.json
index fae312e..b5ca4c7 100644
--- a/extension.json
+++ b/extension.json
@@ -61,6 +61,8 @@

"performanceinspector-modules-css-column-allselectors",

"performanceinspector-modules-css-column-matchedselectors",

"performanceinspector-modules-css-column-percentmatched",
+   "performanceinspector-modules-css-column-url",
+   "performanceinspector-modules-css-show-details",

"performanceinspector-modules-localstorage-name",

"performanceinspector-modules-localstorage-label",

"performanceinspector-modules-localstorage-disabled",
@@ -106,6 +108,7 @@
"performanceinspector-newpp-value-and-limit",

"performanceinspector-modules-localstorage-description",
"performanceinspector-modules-css-description",
+   
"performanceinspector-modules-css-url-description",

"performanceinspector-modules-module-description",
"performanceinspector-newpp-description",

"performanceinspector-newpp-timingprofile-description",
diff --git a/i18n/en.json b/i18n/en.json
index e4b1d74..cfed325 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -20,6 +20,9 @@
"performanceinspector-modules-css-column-allselectors": "allSelectors",
"performanceinspector-modules-css-column-matchedselectors": 
"matchedselectors",
"performanceinspector-modules-css-column-percentmatched": 
"percentMatched",
+   "performanceinspector-modules-css-column-url": "URL",
+   "performanceinspector-modules-css-url-description": "For each CSS URL 
with styles, count the number of selectors, and count how many match against 
some element currently in the DOM.",
+   "performanceinspector-modules-css-show-details": "Show details",
 
"performanceinspector-modules-localstorage-name": "Local storage",
"performanceinspector-modules-localstorage-label": "Local storage",
@@ -64,7 +67,7 @@
"performanceinspector-newpp-dynamic-content": "Dynamic content",
"performanceinspector-newpp-cachereport": "Parser cache",
"performanceinspector-modules-localstorage-description": "How many 
ResourceLoader modules were loaded from local storage.",
-   "performanceinspector-modules-css-description": "For each 
ResourceLoader module with styles, count the number of selectors, and count how 
many match against some element currently in the DOM",
+   "performanceinspector-modules-css-description": "For each 
ResourceLoader module with styles, count the number of selectors, and count how 
many match against some element currently in the DOM.",
"performanceinspector-modules-module-description": "The ResourceLoader 
modules used by this page.",
"performanceinspector-newpp-description": "Information collected when 
the page was parsed in the backend. Most users will get a cached copy where the 
page is already parsed.",
"performanceinspector-newpp-timingprofile-description": "Time spent 
parsing the templates for this page.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index b72f099..10b52ad 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -19,6 +19,8 @@
"performanceinspector-modules-css-column-allselectors": "The column 
name for allSelectors in the CSS section",
"performanceinspector-modules-css-column-matchedselectors": "The column 
name for matchedselectors in the CSS section",
"performanceinspector-modules-css-column-percentmatched": "The column 
name for percentMatched in the CSS section",
+   "performanceinspector-modules-css-column-url": "The column name for a 
CSS fetched from a URL in the CSS section",
+   "performanceinspector-modules-css-show-details": "The name of the link 
to show more details about unnused CSS",
"performanceinspector-modules-localstorage-name": "The heading for the 
Local storage section",
"performanceinspector-modules-lo