{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/dl-ui/pulls/comments/235730180","pull_request_review_id":177662567,"id":235730180,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTczMDE4MA==","diff_hunk":"@@ -0,0 +1,67 @@\n+import { inject, bindable, Lazy } from 'aurelia-framework';\n+import { Router } from 'aurelia-router';\n+import { Service } from './service';\n+\n+\n+@inject(Router, Service)\n+export class Create {\n+    @bindable error = {};\n+\n+    constructor(router, service) {\n+        this.router = router;\n+        this.service = service;\n+        this.data = {};\n+    }\n+\n+    activate(params) {\n+    }\n+\n+    list() {\n+        this.router.navigateToRoute('list');\n+    }\n+\n+    cancelCallback(event) {\n+      this.list();\n+    }\n+\n+    saveCallback(event) {\n+        var e = {};\n+        var formData = new FormData();\n+        var fileInput = document.getElementById(\"fileCsv\");\n+        var fileList = fileInput.files;\n+        if (fileList[0] == undefined) {\n+            e.file = \"File Path harus dipilih\";\n+            this.error = e;\n+        } else {\n+            formData.append(\"fileUpload\", fileList[0]);\n+ \n+            var endpoint = 'master/chart-of-accounts/upload';\n+            var request = {\n+                method: 'POST',\n+                headers: {\n+                },\n+                body: formData\n+            };\n+\n+            this.service.endpoint.client.fetch(endpoint, request)\n+                .then(response => {","path":"src/modules/accounting/chart-of-accounts/upload.js","position":47,"original_position":47,"commit_id":"d27800b41ff11317381362a208493f82a3a4cb30","original_commit_id":"d27800b41ff11317381362a208493f82a3a4cb30","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2018-11-22T13:43:32Z","updated_at":"2018-11-22T13:43:33Z","html_url":"https://github.com/danliris/dl-ui/pull/1850#discussion_r235730180","pull_request_url":"https://api.github.com/repos/danliris/dl-ui/pulls/1850","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/comments/235730180"},"html":{"href":"https://github.com/danliris/dl-ui/pull/1850#discussion_r235730180"},"pull_request":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/1850"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/dl-ui/pulls/1850","id":232984072,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyOTg0MDcy","html_url":"https://github.com/danliris/dl-ui/pull/1850","diff_url":"https://github.com/danliris/dl-ui/pull/1850.diff","patch_url":"https://github.com/danliris/dl-ui/pull/1850.patch","issue_url":"https://api.github.com/repos/danliris/dl-ui/issues/1850","number":1850,"state":"open","locked":false,"title":"add chart of account ui","user":{"login":"ali-moonlay","id":43127426,"node_id":"MDQ6VXNlcjQzMTI3NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/43127426?v=4","gravatar_id":"","url":"https://api.github.com/users/ali-moonlay","html_url":"https://github.com/ali-moonlay","followers_url":"https://api.github.com/users/ali-moonlay/followers","following_url":"https://api.github.com/users/ali-moonlay/following{/other_user}","gists_url":"https://api.github.com/users/ali-moonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-moonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-moonlay/subscriptions","organizations_url":"https://api.github.com/users/ali-moonlay/orgs","repos_url":"https://api.github.com/users/ali-moonlay/repos","events_url":"https://api.github.com/users/ali-moonlay/events{/privacy}","received_events_url":"https://api.github.com/users/ali-moonlay/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-22T13:43:18Z","updated_at":"2018-11-22T13:43:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12e002299b3e26e79fddd6ee168954fae2257820","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/dl-ui/pulls/1850/commits","review_comments_url":"https://api.github.com/repos/danliris/dl-ui/pulls/1850/comments","review_comment_url":"https://api.github.com/repos/danliris/dl-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/dl-ui/issues/1850/comments","statuses_url":"https://api.github.com/repos/danliris/dl-ui/statuses/d27800b41ff11317381362a208493f82a3a4cb30","head":{"label":"ali-moonlay:dev","ref":"dev","sha":"d27800b41ff11317381362a208493f82a3a4cb30","user":{"login":"ali-moonlay","id":43127426,"node_id":"MDQ6VXNlcjQzMTI3NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/43127426?v=4","gravatar_id":"","url":"https://api.github.com/users/ali-moonlay","html_url":"https://github.com/ali-moonlay","followers_url":"https://api.github.com/users/ali-moonlay/followers","following_url":"https://api.github.com/users/ali-moonlay/following{/other_user}","gists_url":"https://api.github.com/users/ali-moonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-moonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-moonlay/subscriptions","organizations_url":"https://api.github.com/users/ali-moonlay/orgs","repos_url":"https://api.github.com/users/ali-moonlay/repos","events_url":"https://api.github.com/users/ali-moonlay/events{/privacy}","received_events_url":"https://api.github.com/users/ali-moonlay/received_events","type":"User","site_admin":false},"repo":{"id":148112056,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxMTIwNTY=","name":"dl-ui","full_name":"ali-moonlay/dl-ui","private":false,"owner":{"login":"ali-moonlay","id":43127426,"node_id":"MDQ6VXNlcjQzMTI3NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/43127426?v=4","gravatar_id":"","url":"https://api.github.com/users/ali-moonlay","html_url":"https://github.com/ali-moonlay","followers_url":"https://api.github.com/users/ali-moonlay/followers","following_url":"https://api.github.com/users/ali-moonlay/following{/other_user}","gists_url":"https://api.github.com/users/ali-moonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-moonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-moonlay/subscriptions","organizations_url":"https://api.github.com/users/ali-moonlay/orgs","repos_url":"https://api.github.com/users/ali-moonlay/repos","events_url":"https://api.github.com/users/ali-moonlay/events{/privacy}","received_events_url":"https://api.github.com/users/ali-moonlay/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ali-moonlay/dl-ui","description":"Dan Liris ui with Aurelia","fork":true,"url":"https://api.github.com/repos/ali-moonlay/dl-ui","forks_url":"https://api.github.com/repos/ali-moonlay/dl-ui/forks","keys_url":"https://api.github.com/repos/ali-moonlay/dl-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ali-moonlay/dl-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ali-moonlay/dl-ui/teams","hooks_url":"https://api.github.com/repos/ali-moonlay/dl-ui/hooks","issue_events_url":"https://api.github.com/repos/ali-moonlay/dl-ui/issues/events{/number}","events_url":"https://api.github.com/repos/ali-moonlay/dl-ui/events","assignees_url":"https://api.github.com/repos/ali-moonlay/dl-ui/assignees{/user}","branches_url":"https://api.github.com/repos/ali-moonlay/dl-ui/branches{/branch}","tags_url":"https://api.github.com/repos/ali-moonlay/dl-ui/tags","blobs_url":"https://api.github.com/repos/ali-moonlay/dl-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ali-moonlay/dl-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ali-moonlay/dl-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ali-moonlay/dl-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ali-moonlay/dl-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/ali-moonlay/dl-ui/languages","stargazers_url":"https://api.github.com/repos/ali-moonlay/dl-ui/stargazers","contributors_url":"https://api.github.com/repos/ali-moonlay/dl-ui/contributors","subscribers_url":"https://api.github.com/repos/ali-moonlay/dl-ui/subscribers","subscription_url":"https://api.github.com/repos/ali-moonlay/dl-ui/subscription","commits_url":"https://api.github.com/repos/ali-moonlay/dl-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ali-moonlay/dl-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ali-moonlay/dl-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ali-moonlay/dl-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ali-moonlay/dl-ui/contents/{+path}","compare_url":"https://api.github.com/repos/ali-moonlay/dl-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ali-moonlay/dl-ui/merges","archive_url":"https://api.github.com/repos/ali-moonlay/dl-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ali-moonlay/dl-ui/downloads","issues_url":"https://api.github.com/repos/ali-moonlay/dl-ui/issues{/number}","pulls_url":"https://api.github.com/repos/ali-moonlay/dl-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/ali-moonlay/dl-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/ali-moonlay/dl-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ali-moonlay/dl-ui/labels{/name}","releases_url":"https://api.github.com/repos/ali-moonlay/dl-ui/releases{/id}","deployments_url":"https://api.github.com/repos/ali-moonlay/dl-ui/deployments","created_at":"2018-09-10T06:53:39Z","updated_at":"2018-10-25T10:43:09Z","pushed_at":"2018-11-22T13:42:10Z","git_url":"git://github.com/ali-moonlay/dl-ui.git","ssh_url":"git@github.com:ali-moonlay/dl-ui.git","clone_url":"https://github.com/ali-moonlay/dl-ui.git","svn_url":"https://github.com/ali-moonlay/dl-ui","homepage":null,"size":7768,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:dev","ref":"dev","sha":"bc54d34edb875e1461e42703e6729aebca943479","user":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":64897822,"node_id":"MDEwOlJlcG9zaXRvcnk2NDg5NzgyMg==","name":"dl-ui","full_name":"danliris/dl-ui","private":false,"owner":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"html_url":"https://github.com/danliris/dl-ui","description":"Dan Liris ui with Aurelia","fork":false,"url":"https://api.github.com/repos/danliris/dl-ui","forks_url":"https://api.github.com/repos/danliris/dl-ui/forks","keys_url":"https://api.github.com/repos/danliris/dl-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-ui/teams","hooks_url":"https://api.github.com/repos/danliris/dl-ui/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-ui/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-ui/events","assignees_url":"https://api.github.com/repos/danliris/dl-ui/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-ui/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-ui/tags","blobs_url":"https://api.github.com/repos/danliris/dl-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-ui/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-ui/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-ui/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-ui/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-ui/subscription","commits_url":"https://api.github.com/repos/danliris/dl-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-ui/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-ui/merges","archive_url":"https://api.github.com/repos/danliris/dl-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-ui/downloads","issues_url":"https://api.github.com/repos/danliris/dl-ui/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-ui/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-ui/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-ui/deployments","created_at":"2016-08-04T03:06:28Z","updated_at":"2018-10-30T09:17:02Z","pushed_at":"2018-11-22T13:43:19Z","git_url":"git://github.com/danliris/dl-ui.git","ssh_url":"git@github.com:danliris/dl-ui.git","clone_url":"https://github.com/danliris/dl-ui.git","svn_url":"https://github.com/danliris/dl-ui","homepage":null,"size":7921,"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":41,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":41,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/1850"},"html":{"href":"https://github.com/danliris/dl-ui/pull/1850"},"issue":{"href":"https://api.github.com/repos/danliris/dl-ui/issues/1850"},"comments":{"href":"https://api.github.com/repos/danliris/dl-ui/issues/1850/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/1850/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/dl-ui/pulls/1850/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/dl-ui/statuses/d27800b41ff11317381362a208493f82a3a4cb30"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}