From f7ae51b149ed1a2b0b3e6b363511255220586e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 10 Apr 2018 13:53:55 +0200 Subject: [PATCH] Make table chart type explicit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds an explicit chart type declaration to all tables. The benefit of this is that this enables users to implement custom table types (with a distinct chart type) in extensions without clashing with Hubble’s own table type. --- docs/assets/js/charts.js | 7 ++++++- docs/housekeeping-abandoned-orgs.html | 2 +- docs/housekeeping-api-requests.html | 2 +- docs/housekeeping-forks.html | 2 +- docs/housekeeping-git-requests.html | 2 +- docs/housekeeping-git-traffic.html | 2 +- docs/housekeeping-repo-location.html | 2 +- docs/org-owners.html | 2 +- docs/recommendations-legacy-teams.html | 2 +- docs/recommendations-tokenless-auth.html | 2 +- docs/repos-activity.html | 1 + 11 files changed, 16 insertions(+), 10 deletions(-) diff --git a/docs/assets/js/charts.js b/docs/assets/js/charts.js index 1599fe2a..317153bf 100644 --- a/docs/assets/js/charts.js +++ b/docs/assets/js/charts.js @@ -1070,6 +1070,11 @@ $(window).bind('load', function() } }); - tables.each((index, table) => createTable(table)); + tables.each( + function(index, table) + { + if ($(table).attr('data-type') == 'table') + createTable(table); + }); }); }); diff --git a/docs/housekeeping-abandoned-orgs.html b/docs/housekeeping-abandoned-orgs.html index 61d9f228..979f0de3 100644 --- a/docs/housekeeping-abandoned-orgs.html +++ b/docs/housekeeping-abandoned-orgs.html @@ -52,5 +52,5 @@

Abandoned Organizations

-
+
diff --git a/docs/housekeeping-api-requests.html b/docs/housekeeping-api-requests.html index 2c273327..120e2b58 100644 --- a/docs/housekeeping-api-requests.html +++ b/docs/housekeeping-api-requests.html @@ -51,7 +51,7 @@

API Requests

-
+

This table lists the resources requested via the API that accounted for the majority of API requests yesterday. diff --git a/docs/housekeeping-forks.html b/docs/housekeeping-forks.html index f24047cc..85fae778 100644 --- a/docs/housekeeping-forks.html +++ b/docs/housekeeping-forks.html @@ -59,5 +59,5 @@

Forks to Organizations

-
+
diff --git a/docs/housekeeping-git-requests.html b/docs/housekeeping-git-requests.html index d3f46354..b232fd7c 100644 --- a/docs/housekeeping-git-requests.html +++ b/docs/housekeeping-git-requests.html @@ -51,7 +51,7 @@

Git Requests

-
+

This table lists the repositories that accounted for the majority of Git requests yesterday. diff --git a/docs/housekeeping-git-traffic.html b/docs/housekeeping-git-traffic.html index 420e195e..3d5c6b7c 100644 --- a/docs/housekeeping-git-traffic.html +++ b/docs/housekeeping-git-traffic.html @@ -129,7 +129,7 @@

Transferred Data

-
+

This table lists the repositories that accounted for the majority of the traffic yesterday. diff --git a/docs/housekeeping-repo-location.html b/docs/housekeeping-repo-location.html index e08b197d..ab5165cb 100644 --- a/docs/housekeeping-repo-location.html +++ b/docs/housekeeping-repo-location.html @@ -51,5 +51,5 @@

Personal Repositories with Nonowner Pushes (Last 4 Weeks)

-
+
diff --git a/docs/org-owners.html b/docs/org-owners.html index f8f1bb05..965bee70 100644 --- a/docs/org-owners.html +++ b/docs/org-owners.html @@ -6,7 +6,7 @@

Organization Owners

-
+

Owners for each GitHub organization.

diff --git a/docs/recommendations-legacy-teams.html b/docs/recommendations-legacy-teams.html index 72a97ef4..05f6d0e1 100644 --- a/docs/recommendations-legacy-teams.html +++ b/docs/recommendations-legacy-teams.html @@ -50,5 +50,5 @@

Legacy Admin Teams

-
+
diff --git a/docs/recommendations-tokenless-auth.html b/docs/recommendations-tokenless-auth.html index e515a7c8..683ac451 100644 --- a/docs/recommendations-tokenless-auth.html +++ b/docs/recommendations-tokenless-auth.html @@ -58,5 +58,5 @@

Tokenless Authentication Requests

-
+
diff --git a/docs/repos-activity.html b/docs/repos-activity.html index a01968b6..b51a4921 100644 --- a/docs/repos-activity.html +++ b/docs/repos-activity.html @@ -88,6 +88,7 @@

Most Active Repositories

The top 50 most active repositories by number of pushes.