From ee6d2f388597c1aec825e49656b75f04ad535970 Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:05:19 +0500 Subject: [PATCH 01/10] Initial 2.0 Contributors Page index.html --- Contributors_Page/index.html | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Contributors_Page/index.html diff --git a/Contributors_Page/index.html b/Contributors_Page/index.html new file mode 100644 index 0000000..5501b0b --- /dev/null +++ b/Contributors_Page/index.html @@ -0,0 +1,41 @@ + + + + + + Contributors + + + + + + + + + + + + +
+
+ +

Trebleshot

+
+

App Contributors

+
+
+
+
+ +
+
+

Web Contributors

+
+
+
+
+
+ +
+ + From 74f92b0be738e30cce59e7c304e060b41127f0c3 Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:15:01 +0500 Subject: [PATCH 02/10] typo update --- Contributors_Page/index.html | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Contributors_Page/index.html b/Contributors_Page/index.html index 5501b0b..6b8842d 100644 --- a/Contributors_Page/index.html +++ b/Contributors_Page/index.html @@ -21,19 +21,28 @@

Trebleshot

-

App Contributors

+

Android App Contributors

-
+
- +
-

Web Contributors

-
-
+

Desktop App Contributors

+
+
+
+ + +
+

Website Contributors

+
+
+
+
From f2bef71aba82b0d6f4c478746cae29b498079fa3 Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:15:49 +0500 Subject: [PATCH 03/10] Create android-contributors.js --- Contributors_Page/android-contributors.js | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Contributors_Page/android-contributors.js diff --git a/Contributors_Page/android-contributors.js b/Contributors_Page/android-contributors.js new file mode 100644 index 0000000..76eb5a4 --- /dev/null +++ b/Contributors_Page/android-contributors.js @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/android/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#app-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) From d4fda3c8cbe2d224e9872e0d55d4f08ce66c069d Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:18:18 +0500 Subject: [PATCH 04/10] Initial desktop contributions --- Contributors_Page/desktop-contributors | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Contributors_Page/desktop-contributors diff --git a/Contributors_Page/desktop-contributors b/Contributors_Page/desktop-contributors new file mode 100644 index 0000000..57c4f06 --- /dev/null +++ b/Contributors_Page/desktop-contributors @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/desktop/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#desktop-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) From 06042f0bddf19050b2957c133685e92c5c6ab4d1 Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:18:48 +0500 Subject: [PATCH 05/10] Rename desktop-contributors to desktop-contributors.js --- .../{desktop-contributors => desktop-contributors.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Contributors_Page/{desktop-contributors => desktop-contributors.js} (100%) diff --git a/Contributors_Page/desktop-contributors b/Contributors_Page/desktop-contributors.js similarity index 100% rename from Contributors_Page/desktop-contributors rename to Contributors_Page/desktop-contributors.js From 3e27acf9545042261a2936652d835a41d407095f Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:19:58 +0500 Subject: [PATCH 06/10] Initial web contributors --- Contributors_Page/web-contributors.js | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Contributors_Page/web-contributors.js diff --git a/Contributors_Page/web-contributors.js b/Contributors_Page/web-contributors.js new file mode 100644 index 0000000..622f3cd --- /dev/null +++ b/Contributors_Page/web-contributors.js @@ -0,0 +1,30 @@ +var users = [] +var i = 0 + +var getData = (function ($) { + var URL = 'https://api.github.com/repos/trebleshot/trebleshot.github.io/contributors' + + $.get(URL, function (data, status) { + data.forEach(function (d) { + if (d.login == null) { + return true + } + + if (users.indexOf(d.url) == -1) { + var template = + "
" + + "" + + "" + + '' + + "
" + + '' + d.login + '' + + '

Contributions: ' + d.contributions + '

' + + '
' + + $('#web-contributors').append(template) + users[i] = d.url + i = i + 1 + } + }) + }) +})($) From 5185fc388a3414f1c8d33c28709d965abd70fd2e Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:21:03 +0500 Subject: [PATCH 07/10] create index.css --- Contributors_Page/index.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Contributors_Page/index.css diff --git a/Contributors_Page/index.css b/Contributors_Page/index.css new file mode 100644 index 0000000..cf34285 --- /dev/null +++ b/Contributors_Page/index.css @@ -0,0 +1,31 @@ +body { + background-color: #303030; + padding: 0px; + margin: 0px; + color: #E8E8E8; +} + +h1,h3 { + text-align: center; + margin-top: 0px; +} + +h1 { + margin-bottom: 15px; +} + +h3 { + margin-bottom: 25px; +} +.template { + display: none; +} + +#author { + padding :2%; + min-height: 55vh; + max-height: 55vh; +} +#wrap { + min-height: 55vh; +} From 87f7945b4f39677248f5f3a5168910f21b5134bc Mon Sep 17 00:00:00 2001 From: Mubashir Rehman Date: Wed, 7 Oct 2020 21:26:49 +0500 Subject: [PATCH 08/10] Update html to add link to contributors page --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 83c7a76..d196c4b 100644 --- a/index.html +++ b/index.html @@ -95,6 +95,9 @@ +
' - $('#app-contributors').append(template) + $('#android-contributors').append(template) users[i] = d.url i = i + 1 }