{"action":"created","comment":{"url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/comments/240054353","pull_request_review_id":182995789,"id":240054353,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDA1NDM1Mw==","diff_hunk":"@@ -0,0 +1,73 @@\n+class MapUtils {\n+    backendURL = 'http://127.0.0.1:5000';\n+    lovooThumbURL = (picture: string, size: string) => `https://img.lovoo.com/users/pictures/${picture}/thumb${size ? '_' + size : ''}.jpg`;\n+    lovooPictureURL = (picture: string, size: string) => `https://img.lovoo.com/users/pictures/${picture}/image${size ? '_' + size : ''}.jpg`;\n+    lovooMomentURL = (moment: string, size: string) => `https://img.lovoo.com/moments/${moment}/image${size ? '_' + size : ''}.jpg`;\n+    imageSize = 160;\n+    mdash = '\\u2014';\n+    iconGenerator = (days: number) => {\n+        let icon;\n+        if (days < 1) icon = 'red-dot';\n+        else if (days < 3) icon = 'purple-dot';\n+        else if (days < 5) icon = 'pink-dot';\n+        else if (days < 10) icon = 'orange-dot';\n+        else if (days < 20) icon = 'ltblue-dot';\n+        else if (days < 30) icon = 'green-dot';\n+        else if (days < 60) icon = 'blue-dot';\n+        else icon = 'yellow-dot';\n+        return icon;\n+    }\n+    flirtInterestsToStr = {\n+        'date': 'Dates',\n+        'frie': 'Friends',\n+        'chat': 'Chats'\n+    };\n+    clickRestEndpoints = (userId: string) => [\n+        `${this.backendURL}/pictures/${userId}`,\n+        `${this.backendURL}/db_user_details/${userId}`,\n+        `${this.backendURL}/lovoo_user_details/${userId}`\n+    ];\n+    hoverRestEndpoint = (userId: string) => `${this.backendURL}/profile_picture/${userId}`;\n+    locationHistoryRestEndpoint = (userId: string) => `${this.backendURL}/location_history/${userId}`;\n+    styles = (theme: any) => ({\n+        gridListRoot: {\n+            display: 'flex',\n+            width: this.imageSize + 15, // takes scroll-bar into account\n+            height: this.imageSize * 2 + 5, // takes padding into account\n+            paddingTop: 7\n+        },\n+        typography: {\n+            lineHeight: 1.68\n+        },\n+        image: {\n+            width: this.imageSize,\n+            height: this.imageSize,\n+            objectFit: 'scale-down',\n+            borderRadius: '5%'\n+        },\n+        imageBlur: {\n+            filter: 'blur(10px)'\n+        },\n+        textBlur: {\n+            color: 'transparent',\n+            textShadow: '0 0 8px rgba(0,0,0,0.5)'\n+        }\n+    });\n+    toastrMsgs = {\n+        loadingUserData: '❤️ Loading user data ...',\n+        userNotFoundLovoo: '💀 User no longer exists!',\n+        userNotFoundDB: '💀 User not found in DB!',\n+        noProfilePicture: '📸 User has no profile picture!',\n+        profilePictureNotFound: '📸 Profile Picture was not found!',\n+        unknownServerError: '😳 Unknown Server Error!',\n+    };\n+    respCodes = {\n+        LOVOO: 520,","path":"src/components/Map/MapUtils.ts","position":65,"original_position":65,"commit_id":"2b99aa794a9a1510c09ce6049b17ba4afa1cb23c","original_commit_id":"2b99aa794a9a1510c09ce6049b17ba4afa1cb23c","user":{"login":"muellerjonas","id":32962165,"node_id":"MDQ6VXNlcjMyOTYyMTY1","avatar_url":"https://avatars1.githubusercontent.com/u/32962165?v=4","gravatar_id":"","url":"https://api.github.com/users/muellerjonas","html_url":"https://github.com/muellerjonas","followers_url":"https://api.github.com/users/muellerjonas/followers","following_url":"https://api.github.com/users/muellerjonas/following{/other_user}","gists_url":"https://api.github.com/users/muellerjonas/gists{/gist_id}","starred_url":"https://api.github.com/users/muellerjonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muellerjonas/subscriptions","organizations_url":"https://api.github.com/users/muellerjonas/orgs","repos_url":"https://api.github.com/users/muellerjonas/repos","events_url":"https://api.github.com/users/muellerjonas/events{/privacy}","received_events_url":"https://api.github.com/users/muellerjonas/received_events","type":"User","site_admin":false},"body":"Should maybe be called LOVOO_ERROR and DB_ERROR to avoid ambiguity. However, 5xx means an error so it's fine -> just do it if you get the chance to","created_at":"2018-12-09T21:34:31Z","updated_at":"2018-12-09T21:55:27Z","html_url":"https://github.com/we-loview/loview-frontend/pull/29#discussion_r240054353","pull_request_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/comments/240054353"},"html":{"href":"https://github.com/we-loview/loview-frontend/pull/29#discussion_r240054353"},"pull_request":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29","id":237158105,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTU4MTA1","html_url":"https://github.com/we-loview/loview-frontend/pull/29","diff_url":"https://github.com/we-loview/loview-frontend/pull/29.diff","patch_url":"https://github.com/we-loview/loview-frontend/pull/29.patch","issue_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/29","number":29,"state":"open","locked":false,"title":"Major map updates","user":{"login":"FelixSchwarzmeier","id":23665008,"node_id":"MDQ6VXNlcjIzNjY1MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/23665008?v=4","gravatar_id":"","url":"https://api.github.com/users/FelixSchwarzmeier","html_url":"https://github.com/FelixSchwarzmeier","followers_url":"https://api.github.com/users/FelixSchwarzmeier/followers","following_url":"https://api.github.com/users/FelixSchwarzmeier/following{/other_user}","gists_url":"https://api.github.com/users/FelixSchwarzmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixSchwarzmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixSchwarzmeier/subscriptions","organizations_url":"https://api.github.com/users/FelixSchwarzmeier/orgs","repos_url":"https://api.github.com/users/FelixSchwarzmeier/repos","events_url":"https://api.github.com/users/FelixSchwarzmeier/events{/privacy}","received_events_url":"https://api.github.com/users/FelixSchwarzmeier/received_events","type":"User","site_admin":false},"body":"Major Map Updates:\r\n- Update WS- & REST-Endpoints according to the latest BE master version\r\n- Add Hover Event for Markers => Displays profile picture preview\r\n- Add Sensitive Data Switch => Blurs images & Infotext (closes #26)\r\n- Add Location History\r\n    - Different markers depending on timestamp (closes #28)\r\n    - Connect markers using Polyline\r\n    - Update NavBar for markers legend\r\n     - Add Btn to DetailsView\r\n     - Close-Btn to leave location history view\r\n- Add toastr-support for loading user data and displaying errors\r\n- REST-Requests can be aborted when closing the respective toastr (automatic abortion also takes place for performance improvements, e.g. for hover-event)","created_at":"2018-12-09T21:22:27Z","updated_at":"2018-12-09T21:55:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64e009586a8af09922f16c61602ea7a8b9d9c1fa","assignee":null,"assignees":[],"requested_reviewers":[{"login":"li1","id":9516121,"node_id":"MDQ6VXNlcjk1MTYxMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/9516121?v=4","gravatar_id":"","url":"https://api.github.com/users/li1","html_url":"https://github.com/li1","followers_url":"https://api.github.com/users/li1/followers","following_url":"https://api.github.com/users/li1/following{/other_user}","gists_url":"https://api.github.com/users/li1/gists{/gist_id}","starred_url":"https://api.github.com/users/li1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/li1/subscriptions","organizations_url":"https://api.github.com/users/li1/orgs","repos_url":"https://api.github.com/users/li1/repos","events_url":"https://api.github.com/users/li1/events{/privacy}","received_events_url":"https://api.github.com/users/li1/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29/commits","review_comments_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29/comments","review_comment_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/29/comments","statuses_url":"https://api.github.com/repos/we-loview/loview-frontend/statuses/2b99aa794a9a1510c09ce6049b17ba4afa1cb23c","head":{"label":"we-loview:Major-Map-Updates","ref":"Major-Map-Updates","sha":"2b99aa794a9a1510c09ce6049b17ba4afa1cb23c","user":{"login":"we-loview","id":45595940,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTk1OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/45595940?v=4","gravatar_id":"","url":"https://api.github.com/users/we-loview","html_url":"https://github.com/we-loview","followers_url":"https://api.github.com/users/we-loview/followers","following_url":"https://api.github.com/users/we-loview/following{/other_user}","gists_url":"https://api.github.com/users/we-loview/gists{/gist_id}","starred_url":"https://api.github.com/users/we-loview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/we-loview/subscriptions","organizations_url":"https://api.github.com/users/we-loview/orgs","repos_url":"https://api.github.com/users/we-loview/repos","events_url":"https://api.github.com/users/we-loview/events{/privacy}","received_events_url":"https://api.github.com/users/we-loview/received_events","type":"Organization","site_admin":false},"repo":{"id":156997529,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5OTc1Mjk=","name":"loview-frontend","full_name":"we-loview/loview-frontend","private":false,"owner":{"login":"we-loview","id":45595940,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTk1OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/45595940?v=4","gravatar_id":"","url":"https://api.github.com/users/we-loview","html_url":"https://github.com/we-loview","followers_url":"https://api.github.com/users/we-loview/followers","following_url":"https://api.github.com/users/we-loview/following{/other_user}","gists_url":"https://api.github.com/users/we-loview/gists{/gist_id}","starred_url":"https://api.github.com/users/we-loview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/we-loview/subscriptions","organizations_url":"https://api.github.com/users/we-loview/orgs","repos_url":"https://api.github.com/users/we-loview/repos","events_url":"https://api.github.com/users/we-loview/events{/privacy}","received_events_url":"https://api.github.com/users/we-loview/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/we-loview/loview-frontend","description":"Client for LoView","fork":false,"url":"https://api.github.com/repos/we-loview/loview-frontend","forks_url":"https://api.github.com/repos/we-loview/loview-frontend/forks","keys_url":"https://api.github.com/repos/we-loview/loview-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/we-loview/loview-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/we-loview/loview-frontend/teams","hooks_url":"https://api.github.com/repos/we-loview/loview-frontend/hooks","issue_events_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/we-loview/loview-frontend/events","assignees_url":"https://api.github.com/repos/we-loview/loview-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/we-loview/loview-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/we-loview/loview-frontend/tags","blobs_url":"https://api.github.com/repos/we-loview/loview-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/we-loview/loview-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/we-loview/loview-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/we-loview/loview-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/we-loview/loview-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/we-loview/loview-frontend/languages","stargazers_url":"https://api.github.com/repos/we-loview/loview-frontend/stargazers","contributors_url":"https://api.github.com/repos/we-loview/loview-frontend/contributors","subscribers_url":"https://api.github.com/repos/we-loview/loview-frontend/subscribers","subscription_url":"https://api.github.com/repos/we-loview/loview-frontend/subscription","commits_url":"https://api.github.com/repos/we-loview/loview-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/we-loview/loview-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/we-loview/loview-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/we-loview/loview-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/we-loview/loview-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/we-loview/loview-frontend/merges","archive_url":"https://api.github.com/repos/we-loview/loview-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/we-loview/loview-frontend/downloads","issues_url":"https://api.github.com/repos/we-loview/loview-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/we-loview/loview-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/we-loview/loview-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/we-loview/loview-frontend/labels{/name}","releases_url":"https://api.github.com/repos/we-loview/loview-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/we-loview/loview-frontend/deployments","created_at":"2018-11-10T16:08:55Z","updated_at":"2018-12-09T21:10:37Z","pushed_at":"2018-12-09T21:22:28Z","git_url":"git://github.com/we-loview/loview-frontend.git","ssh_url":"git@github.com:we-loview/loview-frontend.git","clone_url":"https://github.com/we-loview/loview-frontend.git","svn_url":"https://github.com/we-loview/loview-frontend","homepage":null,"size":544,"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":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"we-loview:master","ref":"master","sha":"2a1633cc5d6cba59e17240d15053c2af8645ca8d","user":{"login":"we-loview","id":45595940,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTk1OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/45595940?v=4","gravatar_id":"","url":"https://api.github.com/users/we-loview","html_url":"https://github.com/we-loview","followers_url":"https://api.github.com/users/we-loview/followers","following_url":"https://api.github.com/users/we-loview/following{/other_user}","gists_url":"https://api.github.com/users/we-loview/gists{/gist_id}","starred_url":"https://api.github.com/users/we-loview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/we-loview/subscriptions","organizations_url":"https://api.github.com/users/we-loview/orgs","repos_url":"https://api.github.com/users/we-loview/repos","events_url":"https://api.github.com/users/we-loview/events{/privacy}","received_events_url":"https://api.github.com/users/we-loview/received_events","type":"Organization","site_admin":false},"repo":{"id":156997529,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5OTc1Mjk=","name":"loview-frontend","full_name":"we-loview/loview-frontend","private":false,"owner":{"login":"we-loview","id":45595940,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTk1OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/45595940?v=4","gravatar_id":"","url":"https://api.github.com/users/we-loview","html_url":"https://github.com/we-loview","followers_url":"https://api.github.com/users/we-loview/followers","following_url":"https://api.github.com/users/we-loview/following{/other_user}","gists_url":"https://api.github.com/users/we-loview/gists{/gist_id}","starred_url":"https://api.github.com/users/we-loview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/we-loview/subscriptions","organizations_url":"https://api.github.com/users/we-loview/orgs","repos_url":"https://api.github.com/users/we-loview/repos","events_url":"https://api.github.com/users/we-loview/events{/privacy}","received_events_url":"https://api.github.com/users/we-loview/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/we-loview/loview-frontend","description":"Client for LoView","fork":false,"url":"https://api.github.com/repos/we-loview/loview-frontend","forks_url":"https://api.github.com/repos/we-loview/loview-frontend/forks","keys_url":"https://api.github.com/repos/we-loview/loview-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/we-loview/loview-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/we-loview/loview-frontend/teams","hooks_url":"https://api.github.com/repos/we-loview/loview-frontend/hooks","issue_events_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/we-loview/loview-frontend/events","assignees_url":"https://api.github.com/repos/we-loview/loview-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/we-loview/loview-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/we-loview/loview-frontend/tags","blobs_url":"https://api.github.com/repos/we-loview/loview-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/we-loview/loview-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/we-loview/loview-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/we-loview/loview-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/we-loview/loview-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/we-loview/loview-frontend/languages","stargazers_url":"https://api.github.com/repos/we-loview/loview-frontend/stargazers","contributors_url":"https://api.github.com/repos/we-loview/loview-frontend/contributors","subscribers_url":"https://api.github.com/repos/we-loview/loview-frontend/subscribers","subscription_url":"https://api.github.com/repos/we-loview/loview-frontend/subscription","commits_url":"https://api.github.com/repos/we-loview/loview-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/we-loview/loview-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/we-loview/loview-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/we-loview/loview-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/we-loview/loview-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/we-loview/loview-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/we-loview/loview-frontend/merges","archive_url":"https://api.github.com/repos/we-loview/loview-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/we-loview/loview-frontend/downloads","issues_url":"https://api.github.com/repos/we-loview/loview-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/we-loview/loview-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/we-loview/loview-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/we-loview/loview-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/we-loview/loview-frontend/labels{/name}","releases_url":"https://api.github.com/repos/we-loview/loview-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/we-loview/loview-frontend/deployments","created_at":"2018-11-10T16:08:55Z","updated_at":"2018-12-09T21:10:37Z","pushed_at":"2018-12-09T21:22:28Z","git_url":"git://github.com/we-loview/loview-frontend.git","ssh_url":"git@github.com:we-loview/loview-frontend.git","clone_url":"https://github.com/we-loview/loview-frontend.git","svn_url":"https://github.com/we-loview/loview-frontend","homepage":null,"size":544,"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":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29"},"html":{"href":"https://github.com/we-loview/loview-frontend/pull/29"},"issue":{"href":"https://api.github.com/repos/we-loview/loview-frontend/issues/29"},"comments":{"href":"https://api.github.com/repos/we-loview/loview-frontend/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/we-loview/loview-frontend/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/we-loview/loview-frontend/statuses/2b99aa794a9a1510c09ce6049b17ba4afa1cb23c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"muellerjonas"}}