{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments/199560453","pull_request_review_id":133703742,"id":199560453,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTU2MDQ1Mw==","diff_hunk":"@@ -578,43 +655,58 @@ class Splitter {\n         this._splitterElement.onpointerdown = (e: PointerEvent) => { this.pointerDown(e); };\n         this._splitterElement.onpointermove = (e: PointerEvent) => { this.pointerMove(e); };\n         this._splitterElement.onpointerup = (e: PointerEvent) => { this.pointerUp(e); };\n-    }    \n+    }\n }\n \n var app: DesignerApp;\n var horizontalSplitter: Splitter;\n-var verticalSplitter: Splitter;\n+var propertyVerticalSplitter: Splitter;\n+var treeViewVerticalSplitter: Splitter;\n \n window.onload = () => {\n-    document.getElementById(\"btnNewCard\").onclick = (e) => {\n-        app.newCard();\n-    }\n+    const fullScreenHandler = new FullScreenHandler(document.querySelector(\".js-enter-fullscreen\"));\n+    fullScreenHandler.init();\n+\n+    new Clipboard(\".js-copy-json\", {\n+        text: function () {\n+            return JSON.stringify(app.card.toJSON(), null, 4);\n+        }\n+    });\n \n     horizontalSplitter = new Splitter(document.getElementById(\"horizontalSplitter\"), document.getElementById(\"jsonEditorHost\"));\n     horizontalSplitter.onRezized = (splitter: Splitter) => {\n         if (isMonacoEditorLoaded) {\n             monacoEditor.layout();\n-        }    \n+        }\n     }\n \n-    verticalSplitter = new Splitter(document.getElementById(\"verticalSplitter\"), document.getElementById(\"propertySheetHost\"));\n-    verticalSplitter.isVertical = true;\n-    verticalSplitter.onRezized = (splitter: Splitter) => {\n+    propertyVerticalSplitter\n+        = new Splitter(document.getElementById(\"propertyVerticalSplitter\"), document.getElementById(\"propertySheetHost\"));\n+    propertyVerticalSplitter.isVertical = true;\n+    propertyVerticalSplitter.onRezized = (splitter: Splitter) => {\n         scheduleLayoutUpdate();\n     }\n \n+    treeViewVerticalSplitter\n+        = new Splitter(document.getElementById(\"treeViewVerticalSplitter\"), document.getElementById(\"treeViewSheetHost\"));\n+    treeViewVerticalSplitter.isVertical = true;\n+\n     let card = new Adaptive.AdaptiveCard();\n     card.onImageLoaded = (image: Adaptive.Image) => {\n         scheduleLayoutUpdate();\n     }\n \n     app = new DesignerApp(document.getElementById(\"designerHost\"));\n     app.propertySheetHostElement = document.getElementById(\"propertySheetHost\");\n+    app.treeViewSheetHostElement = document.getElementById(\"treeViewSheetHost\");\n     app.commandListHostElement = document.getElementById(\"commandsHost\");\n-    app.paletteHostElement = document.getElementById(\"toolPalette\");\n+    app.paletteHostElement = document.querySelector(\".aside-items\");","path":"source/nodejs/adaptivecards-designer/src/app.ts","position":478,"original_position":478,"commit_id":"9dc18290295ea3d22d978eb76a8aa323a368ed40","original_commit_id":"9dc18290295ea3d22d978eb76a8aa323a368ed40","user":{"login":"tfennel","id":18040091,"node_id":"MDQ6VXNlcjE4MDQwMDkx","avatar_url":"https://avatars2.githubusercontent.com/u/18040091?v=4","gravatar_id":"","url":"https://api.github.com/users/tfennel","html_url":"https://github.com/tfennel","followers_url":"https://api.github.com/users/tfennel/followers","following_url":"https://api.github.com/users/tfennel/following{/other_user}","gists_url":"https://api.github.com/users/tfennel/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennel/subscriptions","organizations_url":"https://api.github.com/users/tfennel/orgs","repos_url":"https://api.github.com/users/tfennel/repos","events_url":"https://api.github.com/users/tfennel/events{/privacy}","received_events_url":"https://api.github.com/users/tfennel/received_events","type":"User","site_admin":false},"body":"P0: getElementById is safer and more solid","created_at":"2018-07-02T16:56:53Z","updated_at":"2018-07-02T16:56:53Z","html_url":"https://github.com/Microsoft/AdaptiveCards/pull/1657#discussion_r199560453","pull_request_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments/199560453"},"html":{"href":"https://github.com/Microsoft/AdaptiveCards/pull/1657#discussion_r199560453"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657"}},"in_reply_to_id":199003446},"pull_request":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657","id":198058820,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDU4ODIw","html_url":"https://github.com/Microsoft/AdaptiveCards/pull/1657","diff_url":"https://github.com/Microsoft/AdaptiveCards/pull/1657.diff","patch_url":"https://github.com/Microsoft/AdaptiveCards/pull/1657.patch","issue_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1657","number":1657,"state":"open","locked":false,"title":"Plain Concepts’ PR with the Adaptive Cards designer first version. WIP","user":{"login":"IsmaelNavarro","id":10558907,"node_id":"MDQ6VXNlcjEwNTU4OTA3","avatar_url":"https://avatars2.githubusercontent.com/u/10558907?v=4","gravatar_id":"","url":"https://api.github.com/users/IsmaelNavarro","html_url":"https://github.com/IsmaelNavarro","followers_url":"https://api.github.com/users/IsmaelNavarro/followers","following_url":"https://api.github.com/users/IsmaelNavarro/following{/other_user}","gists_url":"https://api.github.com/users/IsmaelNavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/IsmaelNavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsmaelNavarro/subscriptions","organizations_url":"https://api.github.com/users/IsmaelNavarro/orgs","repos_url":"https://api.github.com/users/IsmaelNavarro/repos","events_url":"https://api.github.com/users/IsmaelNavarro/events{/privacy}","received_events_url":"https://api.github.com/users/IsmaelNavarro/received_events","type":"User","site_admin":false},"body":"[Functionality] Copy JSON\r\n[Functionality] Enter Full Screen\r\n[UI] + [Functionality] View tree view\r\n[UI] Top Nav\r\n[UI] Aside Left Menu\r\n[UI] Element properties\r\n[UI] Card\r\n[Functionality] Hide Menus\r\n[Functionality] Add hosts","created_at":"2018-06-28T14:58:33Z","updated_at":"2018-07-02T16:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2de2a92c946b963c5a8e3d451c9a712c73e97975","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657/commits","review_comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657/comments","review_comment_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1657/comments","statuses_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/9dc18290295ea3d22d978eb76a8aa323a368ed40","head":{"label":"IsmaelNavarro:plain-concepts-wip","ref":"plain-concepts-wip","sha":"9dc18290295ea3d22d978eb76a8aa323a368ed40","user":{"login":"IsmaelNavarro","id":10558907,"node_id":"MDQ6VXNlcjEwNTU4OTA3","avatar_url":"https://avatars2.githubusercontent.com/u/10558907?v=4","gravatar_id":"","url":"https://api.github.com/users/IsmaelNavarro","html_url":"https://github.com/IsmaelNavarro","followers_url":"https://api.github.com/users/IsmaelNavarro/followers","following_url":"https://api.github.com/users/IsmaelNavarro/following{/other_user}","gists_url":"https://api.github.com/users/IsmaelNavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/IsmaelNavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsmaelNavarro/subscriptions","organizations_url":"https://api.github.com/users/IsmaelNavarro/orgs","repos_url":"https://api.github.com/users/IsmaelNavarro/repos","events_url":"https://api.github.com/users/IsmaelNavarro/events{/privacy}","received_events_url":"https://api.github.com/users/IsmaelNavarro/received_events","type":"User","site_admin":false},"repo":{"id":136307073,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYzMDcwNzM=","name":"AdaptiveCards","full_name":"IsmaelNavarro/AdaptiveCards","owner":{"login":"IsmaelNavarro","id":10558907,"node_id":"MDQ6VXNlcjEwNTU4OTA3","avatar_url":"https://avatars2.githubusercontent.com/u/10558907?v=4","gravatar_id":"","url":"https://api.github.com/users/IsmaelNavarro","html_url":"https://github.com/IsmaelNavarro","followers_url":"https://api.github.com/users/IsmaelNavarro/followers","following_url":"https://api.github.com/users/IsmaelNavarro/following{/other_user}","gists_url":"https://api.github.com/users/IsmaelNavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/IsmaelNavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsmaelNavarro/subscriptions","organizations_url":"https://api.github.com/users/IsmaelNavarro/orgs","repos_url":"https://api.github.com/users/IsmaelNavarro/repos","events_url":"https://api.github.com/users/IsmaelNavarro/events{/privacy}","received_events_url":"https://api.github.com/users/IsmaelNavarro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IsmaelNavarro/AdaptiveCards","description":"A new way for developers to exchange card content in a common and consistent way.","fork":true,"url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards","forks_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/forks","keys_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/teams","hooks_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/hooks","issue_events_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/issues/events{/number}","events_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/events","assignees_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/assignees{/user}","branches_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/branches{/branch}","tags_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/tags","blobs_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/statuses/{sha}","languages_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/languages","stargazers_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/stargazers","contributors_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/contributors","subscribers_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/subscribers","subscription_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/subscription","commits_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/contents/{+path}","compare_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/merges","archive_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/downloads","issues_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/issues{/number}","pulls_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/pulls{/number}","milestones_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/milestones{/number}","notifications_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/labels{/name}","releases_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/releases{/id}","deployments_url":"https://api.github.com/repos/IsmaelNavarro/AdaptiveCards/deployments","created_at":"2018-06-06T09:39:38Z","updated_at":"2018-06-28T14:36:12Z","pushed_at":"2018-07-02T07:21:53Z","git_url":"git://github.com/IsmaelNavarro/AdaptiveCards.git","ssh_url":"git@github.com:IsmaelNavarro/AdaptiveCards.git","clone_url":"https://github.com/IsmaelNavarro/AdaptiveCards.git","svn_url":"https://github.com/IsmaelNavarro/AdaptiveCards","homepage":"http://adaptivecards.io","size":72957,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"Microsoft:master","ref":"master","sha":"84daf96875ebf45493a8088cbfcedb0d790c0a84","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":75978731,"node_id":"MDEwOlJlcG9zaXRvcnk3NTk3ODczMQ==","name":"AdaptiveCards","full_name":"Microsoft/AdaptiveCards","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AdaptiveCards","description":"A new way for developers to exchange card content in a common and consistent way.","fork":false,"url":"https://api.github.com/repos/Microsoft/AdaptiveCards","forks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/forks","keys_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/teams","hooks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/events","assignees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/tags","blobs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscription","commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/merges","archive_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/downloads","issues_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/deployments","created_at":"2016-12-08T22:00:33Z","updated_at":"2018-07-02T16:32:56Z","pushed_at":"2018-07-02T16:32:51Z","git_url":"git://github.com/Microsoft/AdaptiveCards.git","ssh_url":"git@github.com:Microsoft/AdaptiveCards.git","clone_url":"https://github.com/Microsoft/AdaptiveCards.git","svn_url":"https://github.com/Microsoft/AdaptiveCards","homepage":"http://adaptivecards.io","size":72916,"stargazers_count":342,"watchers_count":342,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"archived":false,"open_issues_count":355,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":84,"open_issues":355,"watchers":342,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657"},"html":{"href":"https://github.com/Microsoft/AdaptiveCards/pull/1657"},"issue":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1657"},"comments":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1657/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1657/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/9dc18290295ea3d22d978eb76a8aa323a368ed40"}},"author_association":"NONE"}}
{"actor":{"display_login":"tfennel"}}