{"action":"created","comment":{"url":"https://api.github.com/repos/lbryio/spee.ch/pulls/comments/218138626","pull_request_review_id":156006251,"id":218138626,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODEzODYyNg==","diff_hunk":"@@ -0,0 +1,74 @@\n+import React, { Component } from 'react';\n+import * as THREE from 'three';\n+const STLLoader = require('three-stl-loader')(THREE);\n+\n+class ThreeScene extends Component {\n+  componentDidMount () {\n+    const width = this.mount.clientWidth;\n+    const height = this.mount.clientHeight;\n+\n+    // ADD CAMERA\n+    this.camera = new THREE.PerspectiveCamera(\n+      35,\n+      width / height,\n+      0.1,\n+      1000\n+    );\n+    this.camera = new THREE.PerspectiveCamera(35, width / height, 1, 15);\n+    this.camera.position.set(3, 0.15, 3);\n+\n+    // ADD SCENE\n+    this.scene = new THREE.Scene();\n+    this.scene.background = new THREE.Color('#ff0000');\n+\n+    // ADD RENDERER\n+    this.renderer = new THREE.WebGLRenderer({ antialias: true });\n+    this.renderer.setPixelRatio(window.devicePixelRatio);\n+    this.renderer.setSize(width, height);\n+\n+    this.mount.appendChild(this.renderer.domElement);","path":"client/src/components/ThreeScene/index.jsx","position":29,"original_position":29,"commit_id":"1cef475b8cccca48086e8760ec5e3166bec2f84e","original_commit_id":"1cef475b8cccca48086e8760ec5e3166bec2f84e","user":{"login":"skhameneh","id":1191370,"node_id":"MDQ6VXNlcjExOTEzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1191370?v=4","gravatar_id":"","url":"https://api.github.com/users/skhameneh","html_url":"https://github.com/skhameneh","followers_url":"https://api.github.com/users/skhameneh/followers","following_url":"https://api.github.com/users/skhameneh/following{/other_user}","gists_url":"https://api.github.com/users/skhameneh/gists{/gist_id}","starred_url":"https://api.github.com/users/skhameneh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skhameneh/subscriptions","organizations_url":"https://api.github.com/users/skhameneh/orgs","repos_url":"https://api.github.com/users/skhameneh/repos","events_url":"https://api.github.com/users/skhameneh/events{/privacy}","received_events_url":"https://api.github.com/users/skhameneh/received_events","type":"User","site_admin":false},"body":"You might want to check the PR's from @btzr-io here https://github.com/lbryio/lbry-desktop/pull/1558 and get his feedback as well; he's created some reusable components for 3D viewing that might give some inspiration.","created_at":"2018-09-17T16:29:31Z","updated_at":"2018-09-17T16:34:45Z","html_url":"https://github.com/lbryio/spee.ch/pull/600#discussion_r218138626","pull_request_url":"https://api.github.com/repos/lbryio/spee.ch/pulls/600","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/comments/218138626"},"html":{"href":"https://github.com/lbryio/spee.ch/pull/600#discussion_r218138626"},"pull_request":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/600"}}},"pull_request":{"url":"https://api.github.com/repos/lbryio/spee.ch/pulls/600","id":216005147,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MDA1MTQ3","html_url":"https://github.com/lbryio/spee.ch/pull/600","diff_url":"https://github.com/lbryio/spee.ch/pull/600.diff","patch_url":"https://github.com/lbryio/spee.ch/pull/600.patch","issue_url":"https://api.github.com/repos/lbryio/spee.ch/issues/600","number":600,"state":"open","locked":false,"title":"WIP: Add 3D (STL) file support","user":{"login":"tschwemley","id":5926430,"node_id":"MDQ6VXNlcjU5MjY0MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/5926430?v=4","gravatar_id":"","url":"https://api.github.com/users/tschwemley","html_url":"https://github.com/tschwemley","followers_url":"https://api.github.com/users/tschwemley/followers","following_url":"https://api.github.com/users/tschwemley/following{/other_user}","gists_url":"https://api.github.com/users/tschwemley/gists{/gist_id}","starred_url":"https://api.github.com/users/tschwemley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschwemley/subscriptions","organizations_url":"https://api.github.com/users/tschwemley/orgs","repos_url":"https://api.github.com/users/tschwemley/repos","events_url":"https://api.github.com/users/tschwemley/events{/privacy}","received_events_url":"https://api.github.com/users/tschwemley/received_events","type":"User","site_admin":false},"body":"This ticket is currently a work in progress.\r\n- [ ] Update file validation on client side\r\n- [ ] Update file validation on server side\r\n- [ ] Get STL preview showing in pre-publish view\r\n- [ ] Validate that upload works and isn't showing a false-positive message\r\n\r\nThis adds support for STL file uploads (and preview) to the Spee.ch platform.","created_at":"2018-09-17T14:37:59Z","updated_at":"2018-09-17T16:34:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f9f1d6d16fd0c2dcb9dd2bd0669592392e7ff49","assignee":{"login":"skhameneh","id":1191370,"node_id":"MDQ6VXNlcjExOTEzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1191370?v=4","gravatar_id":"","url":"https://api.github.com/users/skhameneh","html_url":"https://github.com/skhameneh","followers_url":"https://api.github.com/users/skhameneh/followers","following_url":"https://api.github.com/users/skhameneh/following{/other_user}","gists_url":"https://api.github.com/users/skhameneh/gists{/gist_id}","starred_url":"https://api.github.com/users/skhameneh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skhameneh/subscriptions","organizations_url":"https://api.github.com/users/skhameneh/orgs","repos_url":"https://api.github.com/users/skhameneh/repos","events_url":"https://api.github.com/users/skhameneh/events{/privacy}","received_events_url":"https://api.github.com/users/skhameneh/received_events","type":"User","site_admin":false},"assignees":[{"login":"skhameneh","id":1191370,"node_id":"MDQ6VXNlcjExOTEzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1191370?v=4","gravatar_id":"","url":"https://api.github.com/users/skhameneh","html_url":"https://github.com/skhameneh","followers_url":"https://api.github.com/users/skhameneh/followers","following_url":"https://api.github.com/users/skhameneh/following{/other_user}","gists_url":"https://api.github.com/users/skhameneh/gists{/gist_id}","starred_url":"https://api.github.com/users/skhameneh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skhameneh/subscriptions","organizations_url":"https://api.github.com/users/skhameneh/orgs","repos_url":"https://api.github.com/users/skhameneh/repos","events_url":"https://api.github.com/users/skhameneh/events{/privacy}","received_events_url":"https://api.github.com/users/skhameneh/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lbryio/spee.ch/pulls/600/commits","review_comments_url":"https://api.github.com/repos/lbryio/spee.ch/pulls/600/comments","review_comment_url":"https://api.github.com/repos/lbryio/spee.ch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lbryio/spee.ch/issues/600/comments","statuses_url":"https://api.github.com/repos/lbryio/spee.ch/statuses/1cef475b8cccca48086e8760ec5e3166bec2f84e","head":{"label":"tschwemley:add-3d-file-support","ref":"add-3d-file-support","sha":"1cef475b8cccca48086e8760ec5e3166bec2f84e","user":{"login":"tschwemley","id":5926430,"node_id":"MDQ6VXNlcjU5MjY0MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/5926430?v=4","gravatar_id":"","url":"https://api.github.com/users/tschwemley","html_url":"https://github.com/tschwemley","followers_url":"https://api.github.com/users/tschwemley/followers","following_url":"https://api.github.com/users/tschwemley/following{/other_user}","gists_url":"https://api.github.com/users/tschwemley/gists{/gist_id}","starred_url":"https://api.github.com/users/tschwemley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschwemley/subscriptions","organizations_url":"https://api.github.com/users/tschwemley/orgs","repos_url":"https://api.github.com/users/tschwemley/repos","events_url":"https://api.github.com/users/tschwemley/events{/privacy}","received_events_url":"https://api.github.com/users/tschwemley/received_events","type":"User","site_admin":false},"repo":{"id":149138959,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxMzg5NTk=","name":"spee.ch","full_name":"tschwemley/spee.ch","private":false,"owner":{"login":"tschwemley","id":5926430,"node_id":"MDQ6VXNlcjU5MjY0MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/5926430?v=4","gravatar_id":"","url":"https://api.github.com/users/tschwemley","html_url":"https://github.com/tschwemley","followers_url":"https://api.github.com/users/tschwemley/followers","following_url":"https://api.github.com/users/tschwemley/following{/other_user}","gists_url":"https://api.github.com/users/tschwemley/gists{/gist_id}","starred_url":"https://api.github.com/users/tschwemley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschwemley/subscriptions","organizations_url":"https://api.github.com/users/tschwemley/orgs","repos_url":"https://api.github.com/users/tschwemley/repos","events_url":"https://api.github.com/users/tschwemley/events{/privacy}","received_events_url":"https://api.github.com/users/tschwemley/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tschwemley/spee.ch","description":"An image hosting service on top of the LBRY protocol.","fork":true,"url":"https://api.github.com/repos/tschwemley/spee.ch","forks_url":"https://api.github.com/repos/tschwemley/spee.ch/forks","keys_url":"https://api.github.com/repos/tschwemley/spee.ch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tschwemley/spee.ch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tschwemley/spee.ch/teams","hooks_url":"https://api.github.com/repos/tschwemley/spee.ch/hooks","issue_events_url":"https://api.github.com/repos/tschwemley/spee.ch/issues/events{/number}","events_url":"https://api.github.com/repos/tschwemley/spee.ch/events","assignees_url":"https://api.github.com/repos/tschwemley/spee.ch/assignees{/user}","branches_url":"https://api.github.com/repos/tschwemley/spee.ch/branches{/branch}","tags_url":"https://api.github.com/repos/tschwemley/spee.ch/tags","blobs_url":"https://api.github.com/repos/tschwemley/spee.ch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tschwemley/spee.ch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tschwemley/spee.ch/git/refs{/sha}","trees_url":"https://api.github.com/repos/tschwemley/spee.ch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tschwemley/spee.ch/statuses/{sha}","languages_url":"https://api.github.com/repos/tschwemley/spee.ch/languages","stargazers_url":"https://api.github.com/repos/tschwemley/spee.ch/stargazers","contributors_url":"https://api.github.com/repos/tschwemley/spee.ch/contributors","subscribers_url":"https://api.github.com/repos/tschwemley/spee.ch/subscribers","subscription_url":"https://api.github.com/repos/tschwemley/spee.ch/subscription","commits_url":"https://api.github.com/repos/tschwemley/spee.ch/commits{/sha}","git_commits_url":"https://api.github.com/repos/tschwemley/spee.ch/git/commits{/sha}","comments_url":"https://api.github.com/repos/tschwemley/spee.ch/comments{/number}","issue_comment_url":"https://api.github.com/repos/tschwemley/spee.ch/issues/comments{/number}","contents_url":"https://api.github.com/repos/tschwemley/spee.ch/contents/{+path}","compare_url":"https://api.github.com/repos/tschwemley/spee.ch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tschwemley/spee.ch/merges","archive_url":"https://api.github.com/repos/tschwemley/spee.ch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tschwemley/spee.ch/downloads","issues_url":"https://api.github.com/repos/tschwemley/spee.ch/issues{/number}","pulls_url":"https://api.github.com/repos/tschwemley/spee.ch/pulls{/number}","milestones_url":"https://api.github.com/repos/tschwemley/spee.ch/milestones{/number}","notifications_url":"https://api.github.com/repos/tschwemley/spee.ch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tschwemley/spee.ch/labels{/name}","releases_url":"https://api.github.com/repos/tschwemley/spee.ch/releases{/id}","deployments_url":"https://api.github.com/repos/tschwemley/spee.ch/deployments","created_at":"2018-09-17T14:34:44Z","updated_at":"2018-09-17T14:34:46Z","pushed_at":"2018-09-17T14:35:42Z","git_url":"git://github.com/tschwemley/spee.ch.git","ssh_url":"git@github.com:tschwemley/spee.ch.git","clone_url":"https://github.com/tschwemley/spee.ch.git","svn_url":"https://github.com/tschwemley/spee.ch","homepage":"https://spee.ch","size":20677,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lbryio:master","ref":"master","sha":"02b82240ddea0f1b6e6e15551e234dcbfb44c0a6","user":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"repo":{"id":86486688,"node_id":"MDEwOlJlcG9zaXRvcnk4NjQ4NjY4OA==","name":"spee.ch","full_name":"lbryio/spee.ch","private":false,"owner":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lbryio/spee.ch","description":"An image hosting service on top of the LBRY protocol.","fork":false,"url":"https://api.github.com/repos/lbryio/spee.ch","forks_url":"https://api.github.com/repos/lbryio/spee.ch/forks","keys_url":"https://api.github.com/repos/lbryio/spee.ch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbryio/spee.ch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbryio/spee.ch/teams","hooks_url":"https://api.github.com/repos/lbryio/spee.ch/hooks","issue_events_url":"https://api.github.com/repos/lbryio/spee.ch/issues/events{/number}","events_url":"https://api.github.com/repos/lbryio/spee.ch/events","assignees_url":"https://api.github.com/repos/lbryio/spee.ch/assignees{/user}","branches_url":"https://api.github.com/repos/lbryio/spee.ch/branches{/branch}","tags_url":"https://api.github.com/repos/lbryio/spee.ch/tags","blobs_url":"https://api.github.com/repos/lbryio/spee.ch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbryio/spee.ch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbryio/spee.ch/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbryio/spee.ch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbryio/spee.ch/statuses/{sha}","languages_url":"https://api.github.com/repos/lbryio/spee.ch/languages","stargazers_url":"https://api.github.com/repos/lbryio/spee.ch/stargazers","contributors_url":"https://api.github.com/repos/lbryio/spee.ch/contributors","subscribers_url":"https://api.github.com/repos/lbryio/spee.ch/subscribers","subscription_url":"https://api.github.com/repos/lbryio/spee.ch/subscription","commits_url":"https://api.github.com/repos/lbryio/spee.ch/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbryio/spee.ch/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbryio/spee.ch/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbryio/spee.ch/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbryio/spee.ch/contents/{+path}","compare_url":"https://api.github.com/repos/lbryio/spee.ch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbryio/spee.ch/merges","archive_url":"https://api.github.com/repos/lbryio/spee.ch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbryio/spee.ch/downloads","issues_url":"https://api.github.com/repos/lbryio/spee.ch/issues{/number}","pulls_url":"https://api.github.com/repos/lbryio/spee.ch/pulls{/number}","milestones_url":"https://api.github.com/repos/lbryio/spee.ch/milestones{/number}","notifications_url":"https://api.github.com/repos/lbryio/spee.ch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbryio/spee.ch/labels{/name}","releases_url":"https://api.github.com/repos/lbryio/spee.ch/releases{/id}","deployments_url":"https://api.github.com/repos/lbryio/spee.ch/deployments","created_at":"2017-03-28T17:12:49Z","updated_at":"2018-09-17T13:16:03Z","pushed_at":"2018-09-17T14:38:00Z","git_url":"git://github.com/lbryio/spee.ch.git","ssh_url":"git@github.com:lbryio/spee.ch.git","clone_url":"https://github.com/lbryio/spee.ch.git","svn_url":"https://github.com/lbryio/spee.ch","homepage":"https://spee.ch","size":20645,"stargazers_count":84,"watchers_count":84,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":116,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":38,"open_issues":116,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/600"},"html":{"href":"https://github.com/lbryio/spee.ch/pull/600"},"issue":{"href":"https://api.github.com/repos/lbryio/spee.ch/issues/600"},"comments":{"href":"https://api.github.com/repos/lbryio/spee.ch/issues/600/comments"},"review_comments":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/600/comments"},"review_comment":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lbryio/spee.ch/pulls/600/commits"},"statuses":{"href":"https://api.github.com/repos/lbryio/spee.ch/statuses/1cef475b8cccca48086e8760ec5e3166bec2f84e"}},"author_association":"NONE"}}
{"actor":{"display_login":"skhameneh"}}