{"action":"created","comment":{"url":"https://api.github.com/repos/WFCD/tennotv/pulls/comments/214415751","pull_request_review_id":151475407,"id":214415751,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDQxNTc1MQ==","diff_hunk":"@@ -0,0 +1,118 @@\n+/*\n+ globals $, serviceAPI\n+*/\n+\n+const requestInfo = {\n+  method: 'GET',\n+  header: {\n+    'content-type': 'application/json',\n+    'user-agent': navigator.userAgent,\n+  },\n+  credentials: 'omit',\n+  referrer: 'no-referrer',\n+};\n+const url = `${serviceAPI}/dashboard`;\n+const request = new Request(url, requestInfo);\n+\n+const construct = async () => {\n+  const jsonResponse = await getRequest();\n+  jsonResponse.forEach(account => {\n+    /* break everything down into easier to read variable names */\n+    const name = account.account_name;\n+    const id = name.replace(/ /g, '_').toLowerCase();\n+    const accountPlaylist = account.playlist;\n+\n+    /* create the initial object */\n+    $('#dashboard_results').append(`<div id=\"${id}\" class=\"content_creator_playlist\"></div>`);\n+\n+    /* create title element */\n+    $(`#${id}`).append(`\n+        <div class=\"title\">\n+            <a href=\"/${name}\">\n+                ${name} <i class=\"fas fa-play\"></i>\n+            </a>\n+        </div>\n+        <div class=\"bottom\"></div>`);\n+    $(`#${id} .bottom`).append(`\n+      <div class=\"previous\">\n+        <i class=\"fas fa-angle-left\"></i>\n+      </div>\n+      <div class=\"scroll\">\n+        <div class=\"playlist\"></div>\n+      </div>\n+      <div class=\"next text-right\">\n+        <i class=\"fas fa-angle-right\"></i>\n+      </div>`);\n+\n+    accountPlaylist.forEach(video => {\n+      $(`#${id} .playlist`).append(`\n+        <span class=\"video\" id='${video.video_id}-video'>\n+          <a href=\"/v/${video.video_id}\">\n+            <i class=\"fas fa-play faded\" id=\"${video.video_id}-button\"></i>\n+            <img src=\"https://img.youtube.com/vi/${video.video_id}/mqdefault.jpg\" />\n+            <div class='shade hide text-center'>\n+              <div class='shade-author hide'>${video.account_name}</div>\n+              <div class='shade-title'>${video.video_title}</div>\n+            </div>\n+          </a>\n+        </span>`);\n+      $(`#${video.video_id}-video`).hover(() => {\n+        $(`#${video.video_id}-button`).toggleClass('faded');\n+        $(`#${video.video_id}-video`).find('.shade').toggleClass('hide');\n+      });\n+    });\n+  });\n+\n+  let videoWidth = null;\n+\n+  $('.next').click(event => {\n+    if (!videoWidth) {\n+      videoWidth = $('.video').width()\n+            + Number($('.video').css('margin-left').replace('px', ''))\n+            + Number($('.video').css('margin-right').replace('px', ''));\n+    }\n+\n+    const target = $(event.currentTarget);\n+    const scroll = target.parent().find('.scroll');\n+    const offset = $(scroll).scrollLeft();\n+    const width = $(scroll).width();\n+    const scrollLeft = offset + ((width / videoWidth).toFixed(0) * videoWidth) - videoWidth;","path":"assets/js/dashControl.js","position":79,"original_position":79,"commit_id":"77d1c2f4a78dbb7def484c5d1a21fd868631e142","original_commit_id":"77d1c2f4a78dbb7def484c5d1a21fd868631e142","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Unexpected mix of '+' and '-'. (no-mixed-operators)](https://app.codacy.com/app/WFCD/tennotv/pullRequest?prid=2124711)","created_at":"2018-08-31T16:58:13Z","updated_at":"2018-08-31T16:58:13Z","html_url":"https://github.com/WFCD/tennotv/pull/24#discussion_r214415751","pull_request_url":"https://api.github.com/repos/WFCD/tennotv/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/comments/214415751"},"html":{"href":"https://github.com/WFCD/tennotv/pull/24#discussion_r214415751"},"pull_request":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/WFCD/tennotv/pulls/24","id":212439909,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNDM5OTA5","html_url":"https://github.com/WFCD/tennotv/pull/24","diff_url":"https://github.com/WFCD/tennotv/pull/24.diff","patch_url":"https://github.com/WFCD/tennotv/pull/24.patch","issue_url":"https://api.github.com/repos/WFCD/tennotv/issues/24","number":24,"state":"open","locked":false,"title":"Dsashboard","user":{"login":"TobiTenno","id":7128721,"node_id":"MDQ6VXNlcjcxMjg3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7128721?v=4","gravatar_id":"","url":"https://api.github.com/users/TobiTenno","html_url":"https://github.com/TobiTenno","followers_url":"https://api.github.com/users/TobiTenno/followers","following_url":"https://api.github.com/users/TobiTenno/following{/other_user}","gists_url":"https://api.github.com/users/TobiTenno/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiTenno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiTenno/subscriptions","organizations_url":"https://api.github.com/users/TobiTenno/orgs","repos_url":"https://api.github.com/users/TobiTenno/repos","events_url":"https://api.github.com/users/TobiTenno/events{/privacy}","received_events_url":"https://api.github.com/users/TobiTenno/received_events","type":"User","site_admin":false},"body":"### Tenno.tv Pull Request\r\n\r\n---\r\n\r\n**What I did:**\r\nDashboard front page\r\n\r\n---\r\n**Why I did it:**\r\nTo organize a better front page for showing creators videos\r\n\r\n---\r\n**Fixes issue (include link):**\r\nRequested by armaina and xenogelion\r\n\r\n---\r\n**Mockups, screenshots, evidence:**\r\nsee deployment\r\n\r\n---\r\n\r\n**Was this an issue fix or a suggestion fulfillment?**\r\nSuggestion","created_at":"2018-08-31T16:50:53Z","updated_at":"2018-08-31T16:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c04bd811e8d48b74e299a3b5d7d8d011960a2b8","assignee":{"login":"TobiTenno","id":7128721,"node_id":"MDQ6VXNlcjcxMjg3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7128721?v=4","gravatar_id":"","url":"https://api.github.com/users/TobiTenno","html_url":"https://github.com/TobiTenno","followers_url":"https://api.github.com/users/TobiTenno/followers","following_url":"https://api.github.com/users/TobiTenno/following{/other_user}","gists_url":"https://api.github.com/users/TobiTenno/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiTenno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiTenno/subscriptions","organizations_url":"https://api.github.com/users/TobiTenno/orgs","repos_url":"https://api.github.com/users/TobiTenno/repos","events_url":"https://api.github.com/users/TobiTenno/events{/privacy}","received_events_url":"https://api.github.com/users/TobiTenno/received_events","type":"User","site_admin":false},"assignees":[{"login":"TobiTenno","id":7128721,"node_id":"MDQ6VXNlcjcxMjg3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7128721?v=4","gravatar_id":"","url":"https://api.github.com/users/TobiTenno","html_url":"https://github.com/TobiTenno","followers_url":"https://api.github.com/users/TobiTenno/followers","following_url":"https://api.github.com/users/TobiTenno/following{/other_user}","gists_url":"https://api.github.com/users/TobiTenno/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiTenno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiTenno/subscriptions","organizations_url":"https://api.github.com/users/TobiTenno/orgs","repos_url":"https://api.github.com/users/TobiTenno/repos","events_url":"https://api.github.com/users/TobiTenno/events{/privacy}","received_events_url":"https://api.github.com/users/TobiTenno/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WFCD/tennotv/pulls/24/commits","review_comments_url":"https://api.github.com/repos/WFCD/tennotv/pulls/24/comments","review_comment_url":"https://api.github.com/repos/WFCD/tennotv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WFCD/tennotv/issues/24/comments","statuses_url":"https://api.github.com/repos/WFCD/tennotv/statuses/77d1c2f4a78dbb7def484c5d1a21fd868631e142","head":{"label":"WFCD:dsashboard","ref":"dsashboard","sha":"77d1c2f4a78dbb7def484c5d1a21fd868631e142","user":{"login":"WFCD","id":24436369,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDM2MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/24436369?v=4","gravatar_id":"","url":"https://api.github.com/users/WFCD","html_url":"https://github.com/WFCD","followers_url":"https://api.github.com/users/WFCD/followers","following_url":"https://api.github.com/users/WFCD/following{/other_user}","gists_url":"https://api.github.com/users/WFCD/gists{/gist_id}","starred_url":"https://api.github.com/users/WFCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFCD/subscriptions","organizations_url":"https://api.github.com/users/WFCD/orgs","repos_url":"https://api.github.com/users/WFCD/repos","events_url":"https://api.github.com/users/WFCD/events{/privacy}","received_events_url":"https://api.github.com/users/WFCD/received_events","type":"Organization","site_admin":false},"repo":{"id":135632354,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU2MzIzNTQ=","name":"tennotv","full_name":"WFCD/tennotv","owner":{"login":"WFCD","id":24436369,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDM2MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/24436369?v=4","gravatar_id":"","url":"https://api.github.com/users/WFCD","html_url":"https://github.com/WFCD","followers_url":"https://api.github.com/users/WFCD/followers","following_url":"https://api.github.com/users/WFCD/following{/other_user}","gists_url":"https://api.github.com/users/WFCD/gists{/gist_id}","starred_url":"https://api.github.com/users/WFCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFCD/subscriptions","organizations_url":"https://api.github.com/users/WFCD/orgs","repos_url":"https://api.github.com/users/WFCD/repos","events_url":"https://api.github.com/users/WFCD/events{/privacy}","received_events_url":"https://api.github.com/users/WFCD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WFCD/tennotv","description":"Location for contribution and Issue management","fork":false,"url":"https://api.github.com/repos/WFCD/tennotv","forks_url":"https://api.github.com/repos/WFCD/tennotv/forks","keys_url":"https://api.github.com/repos/WFCD/tennotv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WFCD/tennotv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WFCD/tennotv/teams","hooks_url":"https://api.github.com/repos/WFCD/tennotv/hooks","issue_events_url":"https://api.github.com/repos/WFCD/tennotv/issues/events{/number}","events_url":"https://api.github.com/repos/WFCD/tennotv/events","assignees_url":"https://api.github.com/repos/WFCD/tennotv/assignees{/user}","branches_url":"https://api.github.com/repos/WFCD/tennotv/branches{/branch}","tags_url":"https://api.github.com/repos/WFCD/tennotv/tags","blobs_url":"https://api.github.com/repos/WFCD/tennotv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WFCD/tennotv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WFCD/tennotv/git/refs{/sha}","trees_url":"https://api.github.com/repos/WFCD/tennotv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WFCD/tennotv/statuses/{sha}","languages_url":"https://api.github.com/repos/WFCD/tennotv/languages","stargazers_url":"https://api.github.com/repos/WFCD/tennotv/stargazers","contributors_url":"https://api.github.com/repos/WFCD/tennotv/contributors","subscribers_url":"https://api.github.com/repos/WFCD/tennotv/subscribers","subscription_url":"https://api.github.com/repos/WFCD/tennotv/subscription","commits_url":"https://api.github.com/repos/WFCD/tennotv/commits{/sha}","git_commits_url":"https://api.github.com/repos/WFCD/tennotv/git/commits{/sha}","comments_url":"https://api.github.com/repos/WFCD/tennotv/comments{/number}","issue_comment_url":"https://api.github.com/repos/WFCD/tennotv/issues/comments{/number}","contents_url":"https://api.github.com/repos/WFCD/tennotv/contents/{+path}","compare_url":"https://api.github.com/repos/WFCD/tennotv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WFCD/tennotv/merges","archive_url":"https://api.github.com/repos/WFCD/tennotv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WFCD/tennotv/downloads","issues_url":"https://api.github.com/repos/WFCD/tennotv/issues{/number}","pulls_url":"https://api.github.com/repos/WFCD/tennotv/pulls{/number}","milestones_url":"https://api.github.com/repos/WFCD/tennotv/milestones{/number}","notifications_url":"https://api.github.com/repos/WFCD/tennotv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WFCD/tennotv/labels{/name}","releases_url":"https://api.github.com/repos/WFCD/tennotv/releases{/id}","deployments_url":"https://api.github.com/repos/WFCD/tennotv/deployments","created_at":"2018-05-31T20:30:28Z","updated_at":"2018-08-29T22:04:02Z","pushed_at":"2018-08-31T16:55:12Z","git_url":"git://github.com/WFCD/tennotv.git","ssh_url":"git@github.com:WFCD/tennotv.git","clone_url":"https://github.com/WFCD/tennotv.git","svn_url":"https://github.com/WFCD/tennotv","homepage":null,"size":1113,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"WFCD:master","ref":"master","sha":"1580139bfcd367b474b81bd19096236d8e20b73e","user":{"login":"WFCD","id":24436369,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDM2MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/24436369?v=4","gravatar_id":"","url":"https://api.github.com/users/WFCD","html_url":"https://github.com/WFCD","followers_url":"https://api.github.com/users/WFCD/followers","following_url":"https://api.github.com/users/WFCD/following{/other_user}","gists_url":"https://api.github.com/users/WFCD/gists{/gist_id}","starred_url":"https://api.github.com/users/WFCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFCD/subscriptions","organizations_url":"https://api.github.com/users/WFCD/orgs","repos_url":"https://api.github.com/users/WFCD/repos","events_url":"https://api.github.com/users/WFCD/events{/privacy}","received_events_url":"https://api.github.com/users/WFCD/received_events","type":"Organization","site_admin":false},"repo":{"id":135632354,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU2MzIzNTQ=","name":"tennotv","full_name":"WFCD/tennotv","owner":{"login":"WFCD","id":24436369,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDM2MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/24436369?v=4","gravatar_id":"","url":"https://api.github.com/users/WFCD","html_url":"https://github.com/WFCD","followers_url":"https://api.github.com/users/WFCD/followers","following_url":"https://api.github.com/users/WFCD/following{/other_user}","gists_url":"https://api.github.com/users/WFCD/gists{/gist_id}","starred_url":"https://api.github.com/users/WFCD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFCD/subscriptions","organizations_url":"https://api.github.com/users/WFCD/orgs","repos_url":"https://api.github.com/users/WFCD/repos","events_url":"https://api.github.com/users/WFCD/events{/privacy}","received_events_url":"https://api.github.com/users/WFCD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WFCD/tennotv","description":"Location for contribution and Issue management","fork":false,"url":"https://api.github.com/repos/WFCD/tennotv","forks_url":"https://api.github.com/repos/WFCD/tennotv/forks","keys_url":"https://api.github.com/repos/WFCD/tennotv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WFCD/tennotv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WFCD/tennotv/teams","hooks_url":"https://api.github.com/repos/WFCD/tennotv/hooks","issue_events_url":"https://api.github.com/repos/WFCD/tennotv/issues/events{/number}","events_url":"https://api.github.com/repos/WFCD/tennotv/events","assignees_url":"https://api.github.com/repos/WFCD/tennotv/assignees{/user}","branches_url":"https://api.github.com/repos/WFCD/tennotv/branches{/branch}","tags_url":"https://api.github.com/repos/WFCD/tennotv/tags","blobs_url":"https://api.github.com/repos/WFCD/tennotv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WFCD/tennotv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WFCD/tennotv/git/refs{/sha}","trees_url":"https://api.github.com/repos/WFCD/tennotv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WFCD/tennotv/statuses/{sha}","languages_url":"https://api.github.com/repos/WFCD/tennotv/languages","stargazers_url":"https://api.github.com/repos/WFCD/tennotv/stargazers","contributors_url":"https://api.github.com/repos/WFCD/tennotv/contributors","subscribers_url":"https://api.github.com/repos/WFCD/tennotv/subscribers","subscription_url":"https://api.github.com/repos/WFCD/tennotv/subscription","commits_url":"https://api.github.com/repos/WFCD/tennotv/commits{/sha}","git_commits_url":"https://api.github.com/repos/WFCD/tennotv/git/commits{/sha}","comments_url":"https://api.github.com/repos/WFCD/tennotv/comments{/number}","issue_comment_url":"https://api.github.com/repos/WFCD/tennotv/issues/comments{/number}","contents_url":"https://api.github.com/repos/WFCD/tennotv/contents/{+path}","compare_url":"https://api.github.com/repos/WFCD/tennotv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WFCD/tennotv/merges","archive_url":"https://api.github.com/repos/WFCD/tennotv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WFCD/tennotv/downloads","issues_url":"https://api.github.com/repos/WFCD/tennotv/issues{/number}","pulls_url":"https://api.github.com/repos/WFCD/tennotv/pulls{/number}","milestones_url":"https://api.github.com/repos/WFCD/tennotv/milestones{/number}","notifications_url":"https://api.github.com/repos/WFCD/tennotv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WFCD/tennotv/labels{/name}","releases_url":"https://api.github.com/repos/WFCD/tennotv/releases{/id}","deployments_url":"https://api.github.com/repos/WFCD/tennotv/deployments","created_at":"2018-05-31T20:30:28Z","updated_at":"2018-08-29T22:04:02Z","pushed_at":"2018-08-31T16:55:12Z","git_url":"git://github.com/WFCD/tennotv.git","ssh_url":"git@github.com:WFCD/tennotv.git","clone_url":"https://github.com/WFCD/tennotv.git","svn_url":"https://github.com/WFCD/tennotv","homepage":null,"size":1113,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/24"},"html":{"href":"https://github.com/WFCD/tennotv/pull/24"},"issue":{"href":"https://api.github.com/repos/WFCD/tennotv/issues/24"},"comments":{"href":"https://api.github.com/repos/WFCD/tennotv/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WFCD/tennotv/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/WFCD/tennotv/statuses/77d1c2f4a78dbb7def484c5d1a21fd868631e142"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}