{"action":"created","comment":{"url":"https://api.github.com/repos/google/openhtf/pulls/comments/63117971","id":63117971,"diff_hunk":"@@ -0,0 +1,56 @@\n+// Copyright 2016 Google Inc.All Rights Reserved.\n+\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+\n+declare var $: any;  // Global provided by the jquery package.\n+\n+import {Component, Input}    from 'angular2/core';\n+import {Router, RouteParams} from 'angular2/router';\n+\n+import {Observable} from 'rxjs/Observable';\n+\n+import {StationService} from './station.service';\n+\n+import 'file?name=/templates/station.prompt.html!./station.prompt.html';\n+import 'file?name=/styles/station.prompt.css!./station.prompt.css';\n+\n+\n+/** Prompt view component. **/\n+@Component({\n+  selector: 'prompt',\n+  templateUrl: 'templates/station.prompt.html',\n+  styleUrls: ['styles/station.prompt.css'],\n+  directives: [],\n+  providers: [StationService]\n+})\n+export class Prompt {\n+  @Input() framework: any;\n+\n+  /**\n+   * Create a Station view component.\n+   */\n+  constructor(private routeParams: RouteParams,\n+              private stationService: StationService) {\n+  }\n+\n+  /**\n+   * Send the response to the given prompt through the StationService.\n+   */\n+  sendResponse(response, id) {\n+    let ip = this.routeParams.get('ip');\n+    let port = this.routeParams.get('port');\n+    this.stationService.respondToPrompt(ip, port, id, response);\n+    $('#response_field').val('');","path":"openhtf/io/frontend/src/app/station.prompt.ts","position":54,"original_position":54,"commit_id":"a5b1e980a6930485938aa3586d49d4741cf20976","original_commit_id":"a5b1e980a6930485938aa3586d49d4741cf20976","user":{"login":"fahhem","id":306100,"avatar_url":"https://avatars.githubusercontent.com/u/306100?v=3","gravatar_id":"","url":"https://api.github.com/users/fahhem","html_url":"https://github.com/fahhem","followers_url":"https://api.github.com/users/fahhem/followers","following_url":"https://api.github.com/users/fahhem/following{/other_user}","gists_url":"https://api.github.com/users/fahhem/gists{/gist_id}","starred_url":"https://api.github.com/users/fahhem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fahhem/subscriptions","organizations_url":"https://api.github.com/users/fahhem/orgs","repos_url":"https://api.github.com/users/fahhem/repos","events_url":"https://api.github.com/users/fahhem/events{/privacy}","received_events_url":"https://api.github.com/users/fahhem/received_events","type":"User","site_admin":false},"body":"Why suddenly leave angular2 space here? This is the controller for this template after all","created_at":"2016-05-13T00:19:36Z","updated_at":"2016-05-13T00:19:36Z","html_url":"https://github.com/google/openhtf/pull/246#discussion_r63117971","pull_request_url":"https://api.github.com/repos/google/openhtf/pulls/246","_links":{"self":{"href":"https://api.github.com/repos/google/openhtf/pulls/comments/63117971"},"html":{"href":"https://github.com/google/openhtf/pull/246#discussion_r63117971"},"pull_request":{"href":"https://api.github.com/repos/google/openhtf/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/google/openhtf/pulls/246","id":69921442,"html_url":"https://github.com/google/openhtf/pull/246","diff_url":"https://github.com/google/openhtf/pull/246.diff","patch_url":"https://github.com/google/openhtf/pull/246.patch","issue_url":"https://api.github.com/repos/google/openhtf/issues/246","number":246,"state":"open","locked":false,"title":"Overhaul the included web frontend.","user":{"login":"jettisonjoe","id":8150422,"avatar_url":"https://avatars.githubusercontent.com/u/8150422?v=3","gravatar_id":"","url":"https://api.github.com/users/jettisonjoe","html_url":"https://github.com/jettisonjoe","followers_url":"https://api.github.com/users/jettisonjoe/followers","following_url":"https://api.github.com/users/jettisonjoe/following{/other_user}","gists_url":"https://api.github.com/users/jettisonjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/jettisonjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jettisonjoe/subscriptions","organizations_url":"https://api.github.com/users/jettisonjoe/orgs","repos_url":"https://api.github.com/users/jettisonjoe/repos","events_url":"https://api.github.com/users/jettisonjoe/events{/privacy}","received_events_url":"https://api.github.com/users/jettisonjoe/received_events","type":"User","site_admin":false},"body":"This change is a total re-write of the built-in web frontend using Angular2,\r\nTypescript, npm, and webpack.","created_at":"2016-05-12T23:11:09Z","updated_at":"2016-05-13T00:19:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f3eb86fa9ab1adc7f0275ee249cd453e7b9f83f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/openhtf/pulls/246/commits","review_comments_url":"https://api.github.com/repos/google/openhtf/pulls/246/comments","review_comment_url":"https://api.github.com/repos/google/openhtf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/openhtf/issues/246/comments","statuses_url":"https://api.github.com/repos/google/openhtf/statuses/a5b1e980a6930485938aa3586d49d4741cf20976","head":{"label":"jettisonjoe:frontend","ref":"frontend","sha":"a5b1e980a6930485938aa3586d49d4741cf20976","user":{"login":"jettisonjoe","id":8150422,"avatar_url":"https://avatars.githubusercontent.com/u/8150422?v=3","gravatar_id":"","url":"https://api.github.com/users/jettisonjoe","html_url":"https://github.com/jettisonjoe","followers_url":"https://api.github.com/users/jettisonjoe/followers","following_url":"https://api.github.com/users/jettisonjoe/following{/other_user}","gists_url":"https://api.github.com/users/jettisonjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/jettisonjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jettisonjoe/subscriptions","organizations_url":"https://api.github.com/users/jettisonjoe/orgs","repos_url":"https://api.github.com/users/jettisonjoe/repos","events_url":"https://api.github.com/users/jettisonjoe/events{/privacy}","received_events_url":"https://api.github.com/users/jettisonjoe/received_events","type":"User","site_admin":false},"repo":{"id":41824189,"name":"openhtf","full_name":"jettisonjoe/openhtf","owner":{"login":"jettisonjoe","id":8150422,"avatar_url":"https://avatars.githubusercontent.com/u/8150422?v=3","gravatar_id":"","url":"https://api.github.com/users/jettisonjoe","html_url":"https://github.com/jettisonjoe","followers_url":"https://api.github.com/users/jettisonjoe/followers","following_url":"https://api.github.com/users/jettisonjoe/following{/other_user}","gists_url":"https://api.github.com/users/jettisonjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/jettisonjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jettisonjoe/subscriptions","organizations_url":"https://api.github.com/users/jettisonjoe/orgs","repos_url":"https://api.github.com/users/jettisonjoe/repos","events_url":"https://api.github.com/users/jettisonjoe/events{/privacy}","received_events_url":"https://api.github.com/users/jettisonjoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jettisonjoe/openhtf","description":null,"fork":true,"url":"https://api.github.com/repos/jettisonjoe/openhtf","forks_url":"https://api.github.com/repos/jettisonjoe/openhtf/forks","keys_url":"https://api.github.com/repos/jettisonjoe/openhtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jettisonjoe/openhtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jettisonjoe/openhtf/teams","hooks_url":"https://api.github.com/repos/jettisonjoe/openhtf/hooks","issue_events_url":"https://api.github.com/repos/jettisonjoe/openhtf/issues/events{/number}","events_url":"https://api.github.com/repos/jettisonjoe/openhtf/events","assignees_url":"https://api.github.com/repos/jettisonjoe/openhtf/assignees{/user}","branches_url":"https://api.github.com/repos/jettisonjoe/openhtf/branches{/branch}","tags_url":"https://api.github.com/repos/jettisonjoe/openhtf/tags","blobs_url":"https://api.github.com/repos/jettisonjoe/openhtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jettisonjoe/openhtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jettisonjoe/openhtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/jettisonjoe/openhtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jettisonjoe/openhtf/statuses/{sha}","languages_url":"https://api.github.com/repos/jettisonjoe/openhtf/languages","stargazers_url":"https://api.github.com/repos/jettisonjoe/openhtf/stargazers","contributors_url":"https://api.github.com/repos/jettisonjoe/openhtf/contributors","subscribers_url":"https://api.github.com/repos/jettisonjoe/openhtf/subscribers","subscription_url":"https://api.github.com/repos/jettisonjoe/openhtf/subscription","commits_url":"https://api.github.com/repos/jettisonjoe/openhtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/jettisonjoe/openhtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/jettisonjoe/openhtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/jettisonjoe/openhtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/jettisonjoe/openhtf/contents/{+path}","compare_url":"https://api.github.com/repos/jettisonjoe/openhtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jettisonjoe/openhtf/merges","archive_url":"https://api.github.com/repos/jettisonjoe/openhtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jettisonjoe/openhtf/downloads","issues_url":"https://api.github.com/repos/jettisonjoe/openhtf/issues{/number}","pulls_url":"https://api.github.com/repos/jettisonjoe/openhtf/pulls{/number}","milestones_url":"https://api.github.com/repos/jettisonjoe/openhtf/milestones{/number}","notifications_url":"https://api.github.com/repos/jettisonjoe/openhtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jettisonjoe/openhtf/labels{/name}","releases_url":"https://api.github.com/repos/jettisonjoe/openhtf/releases{/id}","deployments_url":"https://api.github.com/repos/jettisonjoe/openhtf/deployments","created_at":"2015-09-02T19:50:25Z","updated_at":"2016-01-12T23:54:07Z","pushed_at":"2016-05-12T23:05:38Z","git_url":"git://github.com/jettisonjoe/openhtf.git","ssh_url":"git@github.com:jettisonjoe/openhtf.git","clone_url":"https://github.com/jettisonjoe/openhtf.git","svn_url":"https://github.com/jettisonjoe/openhtf","homepage":null,"size":20398,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"a65b636f32113b42592f4aac3bf77783fd298e59","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":41519483,"name":"openhtf","full_name":"google/openhtf","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/openhtf","description":null,"fork":false,"url":"https://api.github.com/repos/google/openhtf","forks_url":"https://api.github.com/repos/google/openhtf/forks","keys_url":"https://api.github.com/repos/google/openhtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/openhtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/openhtf/teams","hooks_url":"https://api.github.com/repos/google/openhtf/hooks","issue_events_url":"https://api.github.com/repos/google/openhtf/issues/events{/number}","events_url":"https://api.github.com/repos/google/openhtf/events","assignees_url":"https://api.github.com/repos/google/openhtf/assignees{/user}","branches_url":"https://api.github.com/repos/google/openhtf/branches{/branch}","tags_url":"https://api.github.com/repos/google/openhtf/tags","blobs_url":"https://api.github.com/repos/google/openhtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/openhtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/openhtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/openhtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/openhtf/statuses/{sha}","languages_url":"https://api.github.com/repos/google/openhtf/languages","stargazers_url":"https://api.github.com/repos/google/openhtf/stargazers","contributors_url":"https://api.github.com/repos/google/openhtf/contributors","subscribers_url":"https://api.github.com/repos/google/openhtf/subscribers","subscription_url":"https://api.github.com/repos/google/openhtf/subscription","commits_url":"https://api.github.com/repos/google/openhtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/openhtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/openhtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/openhtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/openhtf/contents/{+path}","compare_url":"https://api.github.com/repos/google/openhtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/openhtf/merges","archive_url":"https://api.github.com/repos/google/openhtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/openhtf/downloads","issues_url":"https://api.github.com/repos/google/openhtf/issues{/number}","pulls_url":"https://api.github.com/repos/google/openhtf/pulls{/number}","milestones_url":"https://api.github.com/repos/google/openhtf/milestones{/number}","notifications_url":"https://api.github.com/repos/google/openhtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/openhtf/labels{/name}","releases_url":"https://api.github.com/repos/google/openhtf/releases{/id}","deployments_url":"https://api.github.com/repos/google/openhtf/deployments","created_at":"2015-08-28T01:14:17Z","updated_at":"2016-04-27T15:37:25Z","pushed_at":"2016-05-12T23:11:09Z","git_url":"git://github.com/google/openhtf.git","ssh_url":"git@github.com:google/openhtf.git","clone_url":"https://github.com/google/openhtf.git","svn_url":"https://github.com/google/openhtf","homepage":null,"size":18738,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":65,"forks":18,"open_issues":65,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/openhtf/pulls/246"},"html":{"href":"https://github.com/google/openhtf/pull/246"},"issue":{"href":"https://api.github.com/repos/google/openhtf/issues/246"},"comments":{"href":"https://api.github.com/repos/google/openhtf/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/google/openhtf/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/google/openhtf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/openhtf/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/google/openhtf/statuses/a5b1e980a6930485938aa3586d49d4741cf20976"}}}}