{"action":"created","comment":{"url":"https://api.github.com/repos/codex-team/codex/pulls/comments/212936931","pull_request_review_id":149664378,"id":212936931,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjkzNjkzMQ==","diff_hunk":"@@ -0,0 +1,156 @@\n+'use strict';\n+\n+const CodexEditor = require('codex.editor');\n+\n+/**\n+ * JSON preview for Editor's demo\n+ */\n+const cPreview = require('./json-preview');\n+\n+/**\n+ * Editor's demo save button\n+ * @type {HTMLElement}\n+ */\n+let saveButton = document.getElementById('saveButton');\n+\n+/**\n+ * Editor's preview data output\n+ * @type {HTMLElement}\n+ */\n+let editorOutput = document.getElementById('output');\n+\n+/**\n+ * CodeX Editor instance\n+ */\n+let editor;\n+\n+/**\n+ * Load Tools for the Editor\n+ */\n+const Header = require('codex.editor.header');\n+const SimpleImage = require('codex.editor.simple-image');\n+const Quote = require('codex.editor.quote');\n+const Marker = require('codex.editor.marker');\n+const CodeTool = require('codex.editor.code');\n+const Delimiter = require('codex.editor.delimiter');\n+const InlineCode = require('codex.editor.inline-code');\n+const List = require('codex.editor.list');\n+\n+/**\n+ * Initialize CodeX Editor\n+ */\n+class InitEditor {\n+\n+    constructor() {\n+\n+        editor = null;\n+\n+        this.saveData();\n+\n+    }\n+\n+    saveData() {\n+\n+        /**\n+         * Saving example\n+         */\n+        if (saveButton && editorOutput) {","path":"www/public/app/js/modules/editor.js","position":57,"original_position":57,"commit_id":"14d96051dc2e6f332434d5bb8f8d379655e52c83","original_commit_id":"14d96051dc2e6f332434d5bb8f8d379655e52c83","user":{"login":"neSpecc","id":3684889,"node_id":"MDQ6VXNlcjM2ODQ4ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/3684889?v=4","gravatar_id":"","url":"https://api.github.com/users/neSpecc","html_url":"https://github.com/neSpecc","followers_url":"https://api.github.com/users/neSpecc/followers","following_url":"https://api.github.com/users/neSpecc/following{/other_user}","gists_url":"https://api.github.com/users/neSpecc/gists{/gist_id}","starred_url":"https://api.github.com/users/neSpecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neSpecc/subscriptions","organizations_url":"https://api.github.com/users/neSpecc/orgs","repos_url":"https://api.github.com/users/neSpecc/repos","events_url":"https://api.github.com/users/neSpecc/events{/privacy}","received_events_url":"https://api.github.com/users/neSpecc/received_events","type":"User","site_admin":false},"body":"вывернуть if и добавить логирование и return.","created_at":"2018-08-27T10:51:59Z","updated_at":"2018-08-27T10:57:50Z","html_url":"https://github.com/codex-team/codex/pull/475#discussion_r212936931","pull_request_url":"https://api.github.com/repos/codex-team/codex/pulls/475","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/codex-team/codex/pulls/comments/212936931"},"html":{"href":"https://github.com/codex-team/codex/pull/475#discussion_r212936931"},"pull_request":{"href":"https://api.github.com/repos/codex-team/codex/pulls/475"}}},"pull_request":{"url":"https://api.github.com/repos/codex-team/codex/pulls/475","id":210970471,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTcwNDcx","html_url":"https://github.com/codex-team/codex/pull/475","diff_url":"https://github.com/codex-team/codex/pull/475.diff","patch_url":"https://github.com/codex-team/codex/pull/475.patch","issue_url":"https://api.github.com/repos/codex-team/codex/issues/475","number":475,"state":"open","locked":false,"title":"Separate bundle for CodeX Editor","user":{"login":"PolinaShneider","id":15448200,"node_id":"MDQ6VXNlcjE1NDQ4MjAw","avatar_url":"https://avatars3.githubusercontent.com/u/15448200?v=4","gravatar_id":"","url":"https://api.github.com/users/PolinaShneider","html_url":"https://github.com/PolinaShneider","followers_url":"https://api.github.com/users/PolinaShneider/followers","following_url":"https://api.github.com/users/PolinaShneider/following{/other_user}","gists_url":"https://api.github.com/users/PolinaShneider/gists{/gist_id}","starred_url":"https://api.github.com/users/PolinaShneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolinaShneider/subscriptions","organizations_url":"https://api.github.com/users/PolinaShneider/orgs","repos_url":"https://api.github.com/users/PolinaShneider/repos","events_url":"https://api.github.com/users/PolinaShneider/events{/privacy}","received_events_url":"https://api.github.com/users/PolinaShneider/received_events","type":"User","site_admin":false},"body":"This will appear at https://ifmo.su/editor","created_at":"2018-08-26T20:55:59Z","updated_at":"2018-08-27T10:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae337e585016e0cae7145811587d520d638b11a2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"khaydarov","id":6507765,"node_id":"MDQ6VXNlcjY1MDc3NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/6507765?v=4","gravatar_id":"","url":"https://api.github.com/users/khaydarov","html_url":"https://github.com/khaydarov","followers_url":"https://api.github.com/users/khaydarov/followers","following_url":"https://api.github.com/users/khaydarov/following{/other_user}","gists_url":"https://api.github.com/users/khaydarov/gists{/gist_id}","starred_url":"https://api.github.com/users/khaydarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaydarov/subscriptions","organizations_url":"https://api.github.com/users/khaydarov/orgs","repos_url":"https://api.github.com/users/khaydarov/repos","events_url":"https://api.github.com/users/khaydarov/events{/privacy}","received_events_url":"https://api.github.com/users/khaydarov/received_events","type":"User","site_admin":false},{"login":"gohabereg","id":23050529,"node_id":"MDQ6VXNlcjIzMDUwNTI5","avatar_url":"https://avatars0.githubusercontent.com/u/23050529?v=4","gravatar_id":"","url":"https://api.github.com/users/gohabereg","html_url":"https://github.com/gohabereg","followers_url":"https://api.github.com/users/gohabereg/followers","following_url":"https://api.github.com/users/gohabereg/following{/other_user}","gists_url":"https://api.github.com/users/gohabereg/gists{/gist_id}","starred_url":"https://api.github.com/users/gohabereg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gohabereg/subscriptions","organizations_url":"https://api.github.com/users/gohabereg/orgs","repos_url":"https://api.github.com/users/gohabereg/repos","events_url":"https://api.github.com/users/gohabereg/events{/privacy}","received_events_url":"https://api.github.com/users/gohabereg/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codex-team/codex/pulls/475/commits","review_comments_url":"https://api.github.com/repos/codex-team/codex/pulls/475/comments","review_comment_url":"https://api.github.com/repos/codex-team/codex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codex-team/codex/issues/475/comments","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/14d96051dc2e6f332434d5bb8f8d379655e52c83","head":{"label":"codex-team:separate-editors-bundle","ref":"separate-editors-bundle","sha":"14d96051dc2e6f332434d5bb8f8d379655e52c83","user":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":44992775,"node_id":"MDEwOlJlcG9zaXRvcnk0NDk5Mjc3NQ==","name":"codex","full_name":"codex-team/codex","owner":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/codex","description":"Codex Team development","fork":false,"url":"https://api.github.com/repos/codex-team/codex","forks_url":"https://api.github.com/repos/codex-team/codex/forks","keys_url":"https://api.github.com/repos/codex-team/codex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/codex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/codex/teams","hooks_url":"https://api.github.com/repos/codex-team/codex/hooks","issue_events_url":"https://api.github.com/repos/codex-team/codex/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/codex/events","assignees_url":"https://api.github.com/repos/codex-team/codex/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/codex/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/codex/tags","blobs_url":"https://api.github.com/repos/codex-team/codex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/codex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/codex/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/codex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/codex/languages","stargazers_url":"https://api.github.com/repos/codex-team/codex/stargazers","contributors_url":"https://api.github.com/repos/codex-team/codex/contributors","subscribers_url":"https://api.github.com/repos/codex-team/codex/subscribers","subscription_url":"https://api.github.com/repos/codex-team/codex/subscription","commits_url":"https://api.github.com/repos/codex-team/codex/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/codex/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/codex/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/codex/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/codex/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/codex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/codex/merges","archive_url":"https://api.github.com/repos/codex-team/codex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/codex/downloads","issues_url":"https://api.github.com/repos/codex-team/codex/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/codex/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/codex/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/codex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/codex/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/codex/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/codex/deployments","created_at":"2015-10-26T19:41:35Z","updated_at":"2018-08-25T20:24:48Z","pushed_at":"2018-08-27T09:06:57Z","git_url":"git://github.com/codex-team/codex.git","ssh_url":"git@github.com:codex-team/codex.git","clone_url":"https://github.com/codex-team/codex.git","svn_url":"https://github.com/codex-team/codex","homepage":"https://ifmo.su","size":64705,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":6,"open_issues":35,"watchers":5,"default_branch":"master"}},"base":{"label":"codex-team:master","ref":"master","sha":"bb74f540c7560e20bc5a261a0a769987b4d3d6ee","user":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":44992775,"node_id":"MDEwOlJlcG9zaXRvcnk0NDk5Mjc3NQ==","name":"codex","full_name":"codex-team/codex","owner":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codex-team/codex","description":"Codex Team development","fork":false,"url":"https://api.github.com/repos/codex-team/codex","forks_url":"https://api.github.com/repos/codex-team/codex/forks","keys_url":"https://api.github.com/repos/codex-team/codex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/codex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/codex/teams","hooks_url":"https://api.github.com/repos/codex-team/codex/hooks","issue_events_url":"https://api.github.com/repos/codex-team/codex/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/codex/events","assignees_url":"https://api.github.com/repos/codex-team/codex/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/codex/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/codex/tags","blobs_url":"https://api.github.com/repos/codex-team/codex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/codex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/codex/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/codex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/codex/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/codex/languages","stargazers_url":"https://api.github.com/repos/codex-team/codex/stargazers","contributors_url":"https://api.github.com/repos/codex-team/codex/contributors","subscribers_url":"https://api.github.com/repos/codex-team/codex/subscribers","subscription_url":"https://api.github.com/repos/codex-team/codex/subscription","commits_url":"https://api.github.com/repos/codex-team/codex/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/codex/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/codex/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/codex/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/codex/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/codex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/codex/merges","archive_url":"https://api.github.com/repos/codex-team/codex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/codex/downloads","issues_url":"https://api.github.com/repos/codex-team/codex/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/codex/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/codex/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/codex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/codex/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/codex/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/codex/deployments","created_at":"2015-10-26T19:41:35Z","updated_at":"2018-08-25T20:24:48Z","pushed_at":"2018-08-27T09:06:57Z","git_url":"git://github.com/codex-team/codex.git","ssh_url":"git@github.com:codex-team/codex.git","clone_url":"https://github.com/codex-team/codex.git","svn_url":"https://github.com/codex-team/codex","homepage":"https://ifmo.su","size":64705,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":6,"open_issues":35,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codex-team/codex/pulls/475"},"html":{"href":"https://github.com/codex-team/codex/pull/475"},"issue":{"href":"https://api.github.com/repos/codex-team/codex/issues/475"},"comments":{"href":"https://api.github.com/repos/codex-team/codex/issues/475/comments"},"review_comments":{"href":"https://api.github.com/repos/codex-team/codex/pulls/475/comments"},"review_comment":{"href":"https://api.github.com/repos/codex-team/codex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codex-team/codex/pulls/475/commits"},"statuses":{"href":"https://api.github.com/repos/codex-team/codex/statuses/14d96051dc2e6f332434d5bb8f8d379655e52c83"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"neSpecc"}}