{"action":"created","comment":{"url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/comments/94017337","pull_request_review_id":14547167,"id":94017337,"diff_hunk":"@@ -0,0 +1,76 @@\n+<template>\n+    <div>\n+        <div class=\"row-fluid\">\n+            <div class=\"span3 media-sidebar\">\n+                <media-tree :tree=\"tree\" :dir=\"dir\"></media-tree>\n+            </div>\n+            <div class=\"span9 media-browser\">\n+                <media-browser :content=\"content\"></media-browser>\n+            </div>\n+        </div>\n+    </div>\n+</template>\n+\n+<script>\n+    export default {\n+        name: 'media-app',\n+        data() {\n+            return {\n+                // The current selected directory\n+                dir: '/',\n+                // The content of the selected directory\n+                content: [],\n+                // The tree structure\n+                tree: {path: '/', children: []},\n+                // The api base url\n+                baseUrl: 'https://api.github.com/repos/joomla/joomla-cms/contents'\n+            }\n+        },\n+        methods: {\n+            getContent() {\n+                let url = this.baseUrl + this.dir;\n+                jQuery.getJSON(url, (content) => {\n+                    // Update the current directory content\n+                    this.content = content;\n+                    // Find the directory node by path and update its children\n+                    this._updateLeafByPath(this.tree, this.dir, content);\n+                }).error(() => {\n+                    alert(\"Error loading directory content.\");\n+                })","path":"administrator/components/com_media/resources/components/app.vue","position":39,"original_position":39,"commit_id":"c72d9c44e03cd55bb1f184e71cc67bf43dea0f1c","original_commit_id":"c72d9c44e03cd55bb1f184e71cc67bf43dea0f1c","user":{"login":"laoneo","id":251072,"avatar_url":"https://avatars.githubusercontent.com/u/251072?v=3","gravatar_id":"","url":"https://api.github.com/users/laoneo","html_url":"https://github.com/laoneo","followers_url":"https://api.github.com/users/laoneo/followers","following_url":"https://api.github.com/users/laoneo/following{/other_user}","gists_url":"https://api.github.com/users/laoneo/gists{/gist_id}","starred_url":"https://api.github.com/users/laoneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laoneo/subscriptions","organizations_url":"https://api.github.com/users/laoneo/orgs","repos_url":"https://api.github.com/users/laoneo/repos","events_url":"https://api.github.com/users/laoneo/events{/privacy}","received_events_url":"https://api.github.com/users/laoneo/received_events","type":"User","site_admin":false},"body":"What would be interesting to see how we will bring in multilingual support into the vue app.","created_at":"2016-12-28T10:29:19Z","updated_at":"2016-12-28T10:29:19Z","html_url":"https://github.com/joomla-projects/media-manager-improvement/pull/70#discussion_r94017337","pull_request_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/comments/94017337"},"html":{"href":"https://github.com/joomla-projects/media-manager-improvement/pull/70#discussion_r94017337"},"pull_request":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70","id":99491646,"html_url":"https://github.com/joomla-projects/media-manager-improvement/pull/70","diff_url":"https://github.com/joomla-projects/media-manager-improvement/pull/70.diff","patch_url":"https://github.com/joomla-projects/media-manager-improvement/pull/70.patch","issue_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/70","number":70,"state":"open","locked":false,"title":"Basic vue-app-setup","user":{"login":"dneukirchen","id":1134007,"avatar_url":"https://avatars.githubusercontent.com/u/1134007?v=3","gravatar_id":"","url":"https://api.github.com/users/dneukirchen","html_url":"https://github.com/dneukirchen","followers_url":"https://api.github.com/users/dneukirchen/followers","following_url":"https://api.github.com/users/dneukirchen/following{/other_user}","gists_url":"https://api.github.com/users/dneukirchen/gists{/gist_id}","starred_url":"https://api.github.com/users/dneukirchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dneukirchen/subscriptions","organizations_url":"https://api.github.com/users/dneukirchen/orgs","repos_url":"https://api.github.com/users/dneukirchen/repos","events_url":"https://api.github.com/users/dneukirchen/events{/privacy}","received_events_url":"https://api.github.com/users/dneukirchen/received_events","type":"User","site_admin":false},"body":"This PR includes my suggestion for a vue2 based application in the joomla component environment.\r\n\r\nIt also includes a basic list view using vue2 and the github file api (since we dont have an api yet).\r\n\r\n### Test instructions\r\n\r\n* Just open the media manager component in the backend\r\n\r\n### Developmnt instructions\r\n\r\n* Change directory to ```administrator/components/com_media```\r\n* Run ```npm install``` to install the dependencies (only once on initial setup)\r\n* Make your changes to the frontend application \r\n* Run ```npm run build```to build the app (this will generate a single javascript file ```media/media/js/app.js```)","created_at":"2016-12-27T23:03:56Z","updated_at":"2016-12-28T10:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"862a5c891b7b875e9ab4224cecb3e5100723e121","assignee":{"login":"dneukirchen","id":1134007,"avatar_url":"https://avatars.githubusercontent.com/u/1134007?v=3","gravatar_id":"","url":"https://api.github.com/users/dneukirchen","html_url":"https://github.com/dneukirchen","followers_url":"https://api.github.com/users/dneukirchen/followers","following_url":"https://api.github.com/users/dneukirchen/following{/other_user}","gists_url":"https://api.github.com/users/dneukirchen/gists{/gist_id}","starred_url":"https://api.github.com/users/dneukirchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dneukirchen/subscriptions","organizations_url":"https://api.github.com/users/dneukirchen/orgs","repos_url":"https://api.github.com/users/dneukirchen/repos","events_url":"https://api.github.com/users/dneukirchen/events{/privacy}","received_events_url":"https://api.github.com/users/dneukirchen/received_events","type":"User","site_admin":false},"assignees":[{"login":"dneukirchen","id":1134007,"avatar_url":"https://avatars.githubusercontent.com/u/1134007?v=3","gravatar_id":"","url":"https://api.github.com/users/dneukirchen","html_url":"https://github.com/dneukirchen","followers_url":"https://api.github.com/users/dneukirchen/followers","following_url":"https://api.github.com/users/dneukirchen/following{/other_user}","gists_url":"https://api.github.com/users/dneukirchen/gists{/gist_id}","starred_url":"https://api.github.com/users/dneukirchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dneukirchen/subscriptions","organizations_url":"https://api.github.com/users/dneukirchen/orgs","repos_url":"https://api.github.com/users/dneukirchen/repos","events_url":"https://api.github.com/users/dneukirchen/events{/privacy}","received_events_url":"https://api.github.com/users/dneukirchen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/milestones/1","html_url":"https://github.com/joomla-projects/media-manager-improvement/milestone/1","labels_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/milestones/1/labels","id":2212127,"number":1,"title":"Milestone 1","description":"","creator":{"login":"laoneo","id":251072,"avatar_url":"https://avatars.githubusercontent.com/u/251072?v=3","gravatar_id":"","url":"https://api.github.com/users/laoneo","html_url":"https://github.com/laoneo","followers_url":"https://api.github.com/users/laoneo/followers","following_url":"https://api.github.com/users/laoneo/following{/other_user}","gists_url":"https://api.github.com/users/laoneo/gists{/gist_id}","starred_url":"https://api.github.com/users/laoneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laoneo/subscriptions","organizations_url":"https://api.github.com/users/laoneo/orgs","repos_url":"https://api.github.com/users/laoneo/repos","events_url":"https://api.github.com/users/laoneo/events{/privacy}","received_events_url":"https://api.github.com/users/laoneo/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2016-12-22T14:28:41Z","updated_at":"2016-12-28T09:46:12Z","due_on":"2017-02-28T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70/commits","review_comments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70/comments","review_comment_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/70/comments","statuses_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/statuses/c72d9c44e03cd55bb1f184e71cc67bf43dea0f1c","head":{"label":"joomla-projects:feature/vue-app-setup","ref":"feature/vue-app-setup","sha":"c72d9c44e03cd55bb1f184e71cc67bf43dea0f1c","user":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":47698650,"name":"media-manager-improvement","full_name":"joomla-projects/media-manager-improvement","owner":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-projects/media-manager-improvement","description":"Repository for the improvement of Media Manager","fork":false,"url":"https://api.github.com/repos/joomla-projects/media-manager-improvement","forks_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/forks","keys_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/teams","hooks_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/hooks","issue_events_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/events","assignees_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/tags","blobs_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/languages","stargazers_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/stargazers","contributors_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/contributors","subscribers_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/subscribers","subscription_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/subscription","commits_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/merges","archive_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/downloads","issues_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/labels{/name}","releases_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/releases{/id}","deployments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/deployments","created_at":"2015-12-09T15:08:53Z","updated_at":"2016-12-01T11:28:22Z","pushed_at":"2016-12-28T10:20:55Z","git_url":"git://github.com/joomla-projects/media-manager-improvement.git","ssh_url":"git@github.com:joomla-projects/media-manager-improvement.git","clone_url":"https://github.com/joomla-projects/media-manager-improvement.git","svn_url":"https://github.com/joomla-projects/media-manager-improvement","homepage":"","size":139638,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":6,"default_branch":"milestone1"}},"base":{"label":"joomla-projects:milestone1","ref":"milestone1","sha":"625d800bc2c4c6639e0c8c0c621e8ff1c68b1762","user":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":47698650,"name":"media-manager-improvement","full_name":"joomla-projects/media-manager-improvement","owner":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-projects/media-manager-improvement","description":"Repository for the improvement of Media Manager","fork":false,"url":"https://api.github.com/repos/joomla-projects/media-manager-improvement","forks_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/forks","keys_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/teams","hooks_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/hooks","issue_events_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/events","assignees_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/tags","blobs_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/languages","stargazers_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/stargazers","contributors_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/contributors","subscribers_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/subscribers","subscription_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/subscription","commits_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/merges","archive_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/downloads","issues_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/labels{/name}","releases_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/releases{/id}","deployments_url":"https://api.github.com/repos/joomla-projects/media-manager-improvement/deployments","created_at":"2015-12-09T15:08:53Z","updated_at":"2016-12-01T11:28:22Z","pushed_at":"2016-12-28T10:20:55Z","git_url":"git://github.com/joomla-projects/media-manager-improvement.git","ssh_url":"git@github.com:joomla-projects/media-manager-improvement.git","clone_url":"https://github.com/joomla-projects/media-manager-improvement.git","svn_url":"https://github.com/joomla-projects/media-manager-improvement","homepage":"","size":139638,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":6,"default_branch":"milestone1"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70"},"html":{"href":"https://github.com/joomla-projects/media-manager-improvement/pull/70"},"issue":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/70"},"comments":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/joomla-projects/media-manager-improvement/statuses/c72d9c44e03cd55bb1f184e71cc67bf43dea0f1c"}}}}
{"actor":{"display_login":"laoneo"}}