{"action":"created","comment":{"url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/comments/73391103","id":73391103,"diff_hunk":"@@ -0,0 +1,299 @@\n+/**\n+ * @license\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+foam.CLASS({\n+  package: 'foam.u2.md',\n+  name: 'DAOController',\n+  extends: 'foam.u2.DAOController',\n+\n+  requires: [\n+    'foam.u2.md.Button',\n+    'foam.u2.md.DAOCreateController',\n+    'foam.u2.md.DAOUpdateController',\n+    'foam.u2.md.Toolbar',\n+    'foam.u2.md.ToolbarContainer'\n+  ],\n+\n+  methods: [\n+    function initE() {\n+      // TODO(braden): Once toPropertyE is generalized to actions etc., use that\n+      // here if practical.\n+      var list = this.listFactory$f({\n+        rowFactory: this.rowFactory,\n+        data: this.data\n+      }, this);\n+\n+      list.rowClick.sub(this.rowClick);\n+      this.add(list);\n+\n+      var fab = this.Button.create({\n+        action: this.NEW_ITEM,\n+        data: this,\n+        icon: 'add',\n+        type: 'fab'\n+      }).cssClass(this.myCls('fab'));\n+      this.add(fab);\n+    },\n+\n+    function buildCreateController(X) {\n+      var toolbar = this.Toolbar.create();\n+      var Y = X.createSubContext({ toolbar: toolbar });\n+      return this.ToolbarContainer.create({","path":"src/com/chrome/apis/Controller.js","position":54,"original_position":54,"commit_id":"597df49cebeb5f1deaa5c7ef0c47894d7c8253e4","original_commit_id":"597df49cebeb5f1deaa5c7ef0c47894d7c8253e4","user":{"login":"kgrgreer","id":7460787,"avatar_url":"https://avatars.githubusercontent.com/u/7460787?v=3","gravatar_id":"","url":"https://api.github.com/users/kgrgreer","html_url":"https://github.com/kgrgreer","followers_url":"https://api.github.com/users/kgrgreer/followers","following_url":"https://api.github.com/users/kgrgreer/following{/other_user}","gists_url":"https://api.github.com/users/kgrgreer/gists{/gist_id}","starred_url":"https://api.github.com/users/kgrgreer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgrgreer/subscriptions","organizations_url":"https://api.github.com/users/kgrgreer/orgs","repos_url":"https://api.github.com/users/kgrgreer/repos","events_url":"https://api.github.com/users/kgrgreer/events{/privacy}","received_events_url":"https://api.github.com/users/kgrgreer/received_events","type":"User","site_admin":false},"body":"Couldn't the ToolbarContainer create it's own Toolbar if not supplied?","created_at":"2016-08-03T18:23:01Z","updated_at":"2016-08-03T18:23:01Z","html_url":"https://github.com/foam-framework/foam2-experimental/pull/31#discussion_r73391103","pull_request_url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/comments/73391103"},"html":{"href":"https://github.com/foam-framework/foam2-experimental/pull/31#discussion_r73391103"},"pull_request":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31","id":79950165,"html_url":"https://github.com/foam-framework/foam2-experimental/pull/31","diff_url":"https://github.com/foam-framework/foam2-experimental/pull/31.diff","patch_url":"https://github.com/foam-framework/foam2-experimental/pull/31.patch","issue_url":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/31","number":31,"state":"open","locked":false,"title":"Add MD browser components, backed by Polymer","user":{"login":"shepheb","id":157812,"avatar_url":"https://avatars.githubusercontent.com/u/157812?v=3","gravatar_id":"","url":"https://api.github.com/users/shepheb","html_url":"https://github.com/shepheb","followers_url":"https://api.github.com/users/shepheb/followers","following_url":"https://api.github.com/users/shepheb/following{/other_user}","gists_url":"https://api.github.com/users/shepheb/gists{/gist_id}","starred_url":"https://api.github.com/users/shepheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepheb/subscriptions","organizations_url":"https://api.github.com/users/shepheb/orgs","repos_url":"https://api.github.com/users/shepheb/repos","events_url":"https://api.github.com/users/shepheb/events{/privacy}","received_events_url":"https://api.github.com/users/shepheb/received_events","type":"User","site_admin":false},"body":"This is still pretty rough, but it was a working (not very well whitespaced) `DetailView`, with MD toolbars with all the various actions.\r\n\r\nIt comes with a basic demo port of the Chrome APIs app from FOAM 1, which is very, very incomplete.","created_at":"2016-08-03T17:56:10Z","updated_at":"2016-08-03T18:23:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cd959577eab26c05da7eea66c344e9b0f00d8d8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31/commits","review_comments_url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31/comments","review_comment_url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/31/comments","statuses_url":"https://api.github.com/repos/foam-framework/foam2-experimental/statuses/597df49cebeb5f1deaa5c7ef0c47894d7c8253e4","head":{"label":"shepheb:md-browser","ref":"md-browser","sha":"597df49cebeb5f1deaa5c7ef0c47894d7c8253e4","user":{"login":"shepheb","id":157812,"avatar_url":"https://avatars.githubusercontent.com/u/157812?v=3","gravatar_id":"","url":"https://api.github.com/users/shepheb","html_url":"https://github.com/shepheb","followers_url":"https://api.github.com/users/shepheb/followers","following_url":"https://api.github.com/users/shepheb/following{/other_user}","gists_url":"https://api.github.com/users/shepheb/gists{/gist_id}","starred_url":"https://api.github.com/users/shepheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepheb/subscriptions","organizations_url":"https://api.github.com/users/shepheb/orgs","repos_url":"https://api.github.com/users/shepheb/repos","events_url":"https://api.github.com/users/shepheb/events{/privacy}","received_events_url":"https://api.github.com/users/shepheb/received_events","type":"User","site_admin":false},"repo":{"id":53057607,"name":"foam2-experimental","full_name":"shepheb/foam2-experimental","owner":{"login":"shepheb","id":157812,"avatar_url":"https://avatars.githubusercontent.com/u/157812?v=3","gravatar_id":"","url":"https://api.github.com/users/shepheb","html_url":"https://github.com/shepheb","followers_url":"https://api.github.com/users/shepheb/followers","following_url":"https://api.github.com/users/shepheb/following{/other_user}","gists_url":"https://api.github.com/users/shepheb/gists{/gist_id}","starred_url":"https://api.github.com/users/shepheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepheb/subscriptions","organizations_url":"https://api.github.com/users/shepheb/orgs","repos_url":"https://api.github.com/users/shepheb/repos","events_url":"https://api.github.com/users/shepheb/events{/privacy}","received_events_url":"https://api.github.com/users/shepheb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shepheb/foam2-experimental","description":"Nothing to see here.","fork":true,"url":"https://api.github.com/repos/shepheb/foam2-experimental","forks_url":"https://api.github.com/repos/shepheb/foam2-experimental/forks","keys_url":"https://api.github.com/repos/shepheb/foam2-experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shepheb/foam2-experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shepheb/foam2-experimental/teams","hooks_url":"https://api.github.com/repos/shepheb/foam2-experimental/hooks","issue_events_url":"https://api.github.com/repos/shepheb/foam2-experimental/issues/events{/number}","events_url":"https://api.github.com/repos/shepheb/foam2-experimental/events","assignees_url":"https://api.github.com/repos/shepheb/foam2-experimental/assignees{/user}","branches_url":"https://api.github.com/repos/shepheb/foam2-experimental/branches{/branch}","tags_url":"https://api.github.com/repos/shepheb/foam2-experimental/tags","blobs_url":"https://api.github.com/repos/shepheb/foam2-experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shepheb/foam2-experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shepheb/foam2-experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/shepheb/foam2-experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shepheb/foam2-experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/shepheb/foam2-experimental/languages","stargazers_url":"https://api.github.com/repos/shepheb/foam2-experimental/stargazers","contributors_url":"https://api.github.com/repos/shepheb/foam2-experimental/contributors","subscribers_url":"https://api.github.com/repos/shepheb/foam2-experimental/subscribers","subscription_url":"https://api.github.com/repos/shepheb/foam2-experimental/subscription","commits_url":"https://api.github.com/repos/shepheb/foam2-experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/shepheb/foam2-experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/shepheb/foam2-experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/shepheb/foam2-experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/shepheb/foam2-experimental/contents/{+path}","compare_url":"https://api.github.com/repos/shepheb/foam2-experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shepheb/foam2-experimental/merges","archive_url":"https://api.github.com/repos/shepheb/foam2-experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shepheb/foam2-experimental/downloads","issues_url":"https://api.github.com/repos/shepheb/foam2-experimental/issues{/number}","pulls_url":"https://api.github.com/repos/shepheb/foam2-experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/shepheb/foam2-experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/shepheb/foam2-experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shepheb/foam2-experimental/labels{/name}","releases_url":"https://api.github.com/repos/shepheb/foam2-experimental/releases{/id}","deployments_url":"https://api.github.com/repos/shepheb/foam2-experimental/deployments","created_at":"2016-03-03T14:43:21Z","updated_at":"2016-07-21T16:00:36Z","pushed_at":"2016-08-03T17:50:26Z","git_url":"git://github.com/shepheb/foam2-experimental.git","ssh_url":"git@github.com:shepheb/foam2-experimental.git","clone_url":"https://github.com/shepheb/foam2-experimental.git","svn_url":"https://github.com/shepheb/foam2-experimental","homepage":null,"size":2832,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"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":"foam-framework:master","ref":"master","sha":"fb0a942ce54934f6cae7a890b63631f4e90b3aa3","user":{"login":"foam-framework","id":7460756,"avatar_url":"https://avatars.githubusercontent.com/u/7460756?v=3","gravatar_id":"","url":"https://api.github.com/users/foam-framework","html_url":"https://github.com/foam-framework","followers_url":"https://api.github.com/users/foam-framework/followers","following_url":"https://api.github.com/users/foam-framework/following{/other_user}","gists_url":"https://api.github.com/users/foam-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/foam-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foam-framework/subscriptions","organizations_url":"https://api.github.com/users/foam-framework/orgs","repos_url":"https://api.github.com/users/foam-framework/repos","events_url":"https://api.github.com/users/foam-framework/events{/privacy}","received_events_url":"https://api.github.com/users/foam-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":50441060,"name":"foam2-experimental","full_name":"foam-framework/foam2-experimental","owner":{"login":"foam-framework","id":7460756,"avatar_url":"https://avatars.githubusercontent.com/u/7460756?v=3","gravatar_id":"","url":"https://api.github.com/users/foam-framework","html_url":"https://github.com/foam-framework","followers_url":"https://api.github.com/users/foam-framework/followers","following_url":"https://api.github.com/users/foam-framework/following{/other_user}","gists_url":"https://api.github.com/users/foam-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/foam-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foam-framework/subscriptions","organizations_url":"https://api.github.com/users/foam-framework/orgs","repos_url":"https://api.github.com/users/foam-framework/repos","events_url":"https://api.github.com/users/foam-framework/events{/privacy}","received_events_url":"https://api.github.com/users/foam-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foam-framework/foam2-experimental","description":"Nothing to see here.","fork":false,"url":"https://api.github.com/repos/foam-framework/foam2-experimental","forks_url":"https://api.github.com/repos/foam-framework/foam2-experimental/forks","keys_url":"https://api.github.com/repos/foam-framework/foam2-experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foam-framework/foam2-experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foam-framework/foam2-experimental/teams","hooks_url":"https://api.github.com/repos/foam-framework/foam2-experimental/hooks","issue_events_url":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/events{/number}","events_url":"https://api.github.com/repos/foam-framework/foam2-experimental/events","assignees_url":"https://api.github.com/repos/foam-framework/foam2-experimental/assignees{/user}","branches_url":"https://api.github.com/repos/foam-framework/foam2-experimental/branches{/branch}","tags_url":"https://api.github.com/repos/foam-framework/foam2-experimental/tags","blobs_url":"https://api.github.com/repos/foam-framework/foam2-experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foam-framework/foam2-experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foam-framework/foam2-experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/foam-framework/foam2-experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foam-framework/foam2-experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/foam-framework/foam2-experimental/languages","stargazers_url":"https://api.github.com/repos/foam-framework/foam2-experimental/stargazers","contributors_url":"https://api.github.com/repos/foam-framework/foam2-experimental/contributors","subscribers_url":"https://api.github.com/repos/foam-framework/foam2-experimental/subscribers","subscription_url":"https://api.github.com/repos/foam-framework/foam2-experimental/subscription","commits_url":"https://api.github.com/repos/foam-framework/foam2-experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/foam-framework/foam2-experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/foam-framework/foam2-experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/foam-framework/foam2-experimental/contents/{+path}","compare_url":"https://api.github.com/repos/foam-framework/foam2-experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foam-framework/foam2-experimental/merges","archive_url":"https://api.github.com/repos/foam-framework/foam2-experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foam-framework/foam2-experimental/downloads","issues_url":"https://api.github.com/repos/foam-framework/foam2-experimental/issues{/number}","pulls_url":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/foam-framework/foam2-experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/foam-framework/foam2-experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foam-framework/foam2-experimental/labels{/name}","releases_url":"https://api.github.com/repos/foam-framework/foam2-experimental/releases{/id}","deployments_url":"https://api.github.com/repos/foam-framework/foam2-experimental/deployments","created_at":"2016-01-26T16:13:38Z","updated_at":"2016-07-22T17:09:02Z","pushed_at":"2016-08-03T18:12:42Z","git_url":"git://github.com/foam-framework/foam2-experimental.git","ssh_url":"git@github.com:foam-framework/foam2-experimental.git","clone_url":"https://github.com/foam-framework/foam2-experimental.git","svn_url":"https://github.com/foam-framework/foam2-experimental","homepage":null,"size":2862,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31"},"html":{"href":"https://github.com/foam-framework/foam2-experimental/pull/31"},"issue":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/31"},"comments":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/foam-framework/foam2-experimental/statuses/597df49cebeb5f1deaa5c7ef0c47894d7c8253e4"}}}}
{"actor":{"display_login":"kgrgreer"}}