{"action":"created","comment":{"url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/comments/210081426","pull_request_review_id":146224300,"id":210081426,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDA4MTQyNg==","diff_hunk":"@@ -0,0 +1,175 @@\n+<template>\n+  <vi-wrapper\n+    mini-spacing\n+    justify-content=\"flex-start\"\n+    class=\"ViComponent ViToggleSwitch\"\n+  >\n+    <div\n+      class=\"ViToggleSwitch__Container\"\n+      :class=\"[\n+        {\n+          'ViToggleSwitch__Container--mini': mini,\n+          'ViToggleSwitch__Container--small': small,\n+          'ViToggleSwitch__Container--large': large,\n+          'ViToggleSwitch__Container--active': state,\n+        }\n+      ]\"\n+      @click.self=\"onClick\">\n+      <div\n+        class=\"ViToggleSwitch__Draggable\"\n+        @mousedown.prevent=\"dragStart\"\n+        @click.self=\"onClick\"\n+        :style=\"style\">\n+      </div>\n+    </div>\n+  </vi-wrapper>\n+</template>\n+\n+\n+<script>\n+import ViWrapper from './Wrapper.vue';\n+import { scaleMixin } from '../mixins/sizes';\n+\n+export default {\n+  name: 'ViToggleSwitch',\n+  components: {\n+    ViWrapper,\n+  },\n+  mixins: [scaleMixin],\n+  data() {\n+    return {\n+      width: 100,\n+      state: false,\n+      position: 0\n+    }\n+  },\n+  props: {\n+    /**\n+     * Valor do campo\n+     * @model\n+     */\n+    value: {\n+      type: Boolean,\n+      default: null,\n+    },\n+  },\n+  methods: {\n+    onClick() {\n+      this.toggle(!this.state)\n+      this.emit()\n+    },\n+    toggle(state) {\n+      this.state = state\n+      this.position = !state ? 0 : 100\n+    },\n+    dragging(e) {\n+      debugger","path":"src/components/ToggleSwitch.vue","position":66,"original_position":66,"commit_id":"843f16cce24bffd858ed3af518b59e281a721ca7","original_commit_id":"843f16cce24bffd858ed3af518b59e281a721ca7","user":{"login":"beeblebrox3","id":767624,"node_id":"MDQ6VXNlcjc2NzYyNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767624?v=4","gravatar_id":"","url":"https://api.github.com/users/beeblebrox3","html_url":"https://github.com/beeblebrox3","followers_url":"https://api.github.com/users/beeblebrox3/followers","following_url":"https://api.github.com/users/beeblebrox3/following{/other_user}","gists_url":"https://api.github.com/users/beeblebrox3/gists{/gist_id}","starred_url":"https://api.github.com/users/beeblebrox3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeblebrox3/subscriptions","organizations_url":"https://api.github.com/users/beeblebrox3/orgs","repos_url":"https://api.github.com/users/beeblebrox3/repos","events_url":"https://api.github.com/users/beeblebrox3/events{/privacy}","received_events_url":"https://api.github.com/users/beeblebrox3/received_events","type":"User","site_admin":false},"body":"Ops!","created_at":"2018-08-14T19:49:48Z","updated_at":"2018-08-14T19:50:16Z","html_url":"https://github.com/vitta-health/Vi-Ui/pull/25#discussion_r210081426","pull_request_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/comments/210081426"},"html":{"href":"https://github.com/vitta-health/Vi-Ui/pull/25#discussion_r210081426"},"pull_request":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25","id":208387818,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4Mzg3ODE4","html_url":"https://github.com/vitta-health/Vi-Ui/pull/25","diff_url":"https://github.com/vitta-health/Vi-Ui/pull/25.diff","patch_url":"https://github.com/vitta-health/Vi-Ui/pull/25.patch","issue_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/25","number":25,"state":"open","locked":false,"title":"Feature/toggleswitch","user":{"login":"jessicamrbr","id":18180548,"node_id":"MDQ6VXNlcjE4MTgwNTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/18180548?v=4","gravatar_id":"","url":"https://api.github.com/users/jessicamrbr","html_url":"https://github.com/jessicamrbr","followers_url":"https://api.github.com/users/jessicamrbr/followers","following_url":"https://api.github.com/users/jessicamrbr/following{/other_user}","gists_url":"https://api.github.com/users/jessicamrbr/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicamrbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicamrbr/subscriptions","organizations_url":"https://api.github.com/users/jessicamrbr/orgs","repos_url":"https://api.github.com/users/jessicamrbr/repos","events_url":"https://api.github.com/users/jessicamrbr/events{/privacy}","received_events_url":"https://api.github.com/users/jessicamrbr/received_events","type":"User","site_admin":false},"body":"| Type  | Env Vars Change |\r\n| :---: | :---: |\r\n| Feature | No |\r\n\r\n## Description\r\n\r\nAdd new feature ViToggleSwitch\r\n\r\n## Before & After Screenshots\r\n\r\n**AFTER**:\r\n![deepin screenshot_selecionar area_20180814163239](https://user-images.githubusercontent.com/18180548/44113932-0cb2645e-9fe0-11e8-8f72-2e45770e7163.png)\r\n\r\n## Todos\r\n\r\n- [ ] Tests","created_at":"2018-08-14T19:37:34Z","updated_at":"2018-08-14T19:50:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c030c80be95b31151e5604ea7386128da9279667","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jeancarlos","id":713484,"node_id":"MDQ6VXNlcjcxMzQ4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/713484?v=4","gravatar_id":"","url":"https://api.github.com/users/jeancarlos","html_url":"https://github.com/jeancarlos","followers_url":"https://api.github.com/users/jeancarlos/followers","following_url":"https://api.github.com/users/jeancarlos/following{/other_user}","gists_url":"https://api.github.com/users/jeancarlos/gists{/gist_id}","starred_url":"https://api.github.com/users/jeancarlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeancarlos/subscriptions","organizations_url":"https://api.github.com/users/jeancarlos/orgs","repos_url":"https://api.github.com/users/jeancarlos/repos","events_url":"https://api.github.com/users/jeancarlos/events{/privacy}","received_events_url":"https://api.github.com/users/jeancarlos/received_events","type":"User","site_admin":false},{"login":"pablovieiras","id":21210210,"node_id":"MDQ6VXNlcjIxMjEwMjEw","avatar_url":"https://avatars1.githubusercontent.com/u/21210210?v=4","gravatar_id":"","url":"https://api.github.com/users/pablovieiras","html_url":"https://github.com/pablovieiras","followers_url":"https://api.github.com/users/pablovieiras/followers","following_url":"https://api.github.com/users/pablovieiras/following{/other_user}","gists_url":"https://api.github.com/users/pablovieiras/gists{/gist_id}","starred_url":"https://api.github.com/users/pablovieiras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablovieiras/subscriptions","organizations_url":"https://api.github.com/users/pablovieiras/orgs","repos_url":"https://api.github.com/users/pablovieiras/repos","events_url":"https://api.github.com/users/pablovieiras/events{/privacy}","received_events_url":"https://api.github.com/users/pablovieiras/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25/commits","review_comments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25/comments","review_comment_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/25/comments","statuses_url":"https://api.github.com/repos/vitta-health/Vi-Ui/statuses/843f16cce24bffd858ed3af518b59e281a721ca7","head":{"label":"vitta-health:feature/toggleswitch","ref":"feature/toggleswitch","sha":"843f16cce24bffd858ed3af518b59e281a721ca7","user":{"login":"vitta-health","id":15134581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTM0NTgx","avatar_url":"https://avatars2.githubusercontent.com/u/15134581?v=4","gravatar_id":"","url":"https://api.github.com/users/vitta-health","html_url":"https://github.com/vitta-health","followers_url":"https://api.github.com/users/vitta-health/followers","following_url":"https://api.github.com/users/vitta-health/following{/other_user}","gists_url":"https://api.github.com/users/vitta-health/gists{/gist_id}","starred_url":"https://api.github.com/users/vitta-health/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitta-health/subscriptions","organizations_url":"https://api.github.com/users/vitta-health/orgs","repos_url":"https://api.github.com/users/vitta-health/repos","events_url":"https://api.github.com/users/vitta-health/events{/privacy}","received_events_url":"https://api.github.com/users/vitta-health/received_events","type":"Organization","site_admin":false},"repo":{"id":134332473,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzMzI0NzM=","name":"Vi-Ui","full_name":"vitta-health/Vi-Ui","owner":{"login":"vitta-health","id":15134581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTM0NTgx","avatar_url":"https://avatars2.githubusercontent.com/u/15134581?v=4","gravatar_id":"","url":"https://api.github.com/users/vitta-health","html_url":"https://github.com/vitta-health","followers_url":"https://api.github.com/users/vitta-health/followers","following_url":"https://api.github.com/users/vitta-health/following{/other_user}","gists_url":"https://api.github.com/users/vitta-health/gists{/gist_id}","starred_url":"https://api.github.com/users/vitta-health/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitta-health/subscriptions","organizations_url":"https://api.github.com/users/vitta-health/orgs","repos_url":"https://api.github.com/users/vitta-health/repos","events_url":"https://api.github.com/users/vitta-health/events{/privacy}","received_events_url":"https://api.github.com/users/vitta-health/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vitta-health/Vi-Ui","description":" 💙 A simple but consistent user interface made for Vue","fork":false,"url":"https://api.github.com/repos/vitta-health/Vi-Ui","forks_url":"https://api.github.com/repos/vitta-health/Vi-Ui/forks","keys_url":"https://api.github.com/repos/vitta-health/Vi-Ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vitta-health/Vi-Ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vitta-health/Vi-Ui/teams","hooks_url":"https://api.github.com/repos/vitta-health/Vi-Ui/hooks","issue_events_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/events{/number}","events_url":"https://api.github.com/repos/vitta-health/Vi-Ui/events","assignees_url":"https://api.github.com/repos/vitta-health/Vi-Ui/assignees{/user}","branches_url":"https://api.github.com/repos/vitta-health/Vi-Ui/branches{/branch}","tags_url":"https://api.github.com/repos/vitta-health/Vi-Ui/tags","blobs_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vitta-health/Vi-Ui/statuses/{sha}","languages_url":"https://api.github.com/repos/vitta-health/Vi-Ui/languages","stargazers_url":"https://api.github.com/repos/vitta-health/Vi-Ui/stargazers","contributors_url":"https://api.github.com/repos/vitta-health/Vi-Ui/contributors","subscribers_url":"https://api.github.com/repos/vitta-health/Vi-Ui/subscribers","subscription_url":"https://api.github.com/repos/vitta-health/Vi-Ui/subscription","commits_url":"https://api.github.com/repos/vitta-health/Vi-Ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/vitta-health/Vi-Ui/contents/{+path}","compare_url":"https://api.github.com/repos/vitta-health/Vi-Ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vitta-health/Vi-Ui/merges","archive_url":"https://api.github.com/repos/vitta-health/Vi-Ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vitta-health/Vi-Ui/downloads","issues_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues{/number}","pulls_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls{/number}","milestones_url":"https://api.github.com/repos/vitta-health/Vi-Ui/milestones{/number}","notifications_url":"https://api.github.com/repos/vitta-health/Vi-Ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vitta-health/Vi-Ui/labels{/name}","releases_url":"https://api.github.com/repos/vitta-health/Vi-Ui/releases{/id}","deployments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/deployments","created_at":"2018-05-21T22:41:19Z","updated_at":"2018-08-13T13:42:36Z","pushed_at":"2018-08-14T19:37:35Z","git_url":"git://github.com/vitta-health/Vi-Ui.git","ssh_url":"git@github.com:vitta-health/Vi-Ui.git","clone_url":"https://github.com/vitta-health/Vi-Ui.git","svn_url":"https://github.com/vitta-health/Vi-Ui","homepage":"https://vitta-health.github.io/Vi-Ui/","size":2972,"stargazers_count":22,"watchers_count":22,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":13,"watchers":22,"default_branch":"master"}},"base":{"label":"vitta-health:master","ref":"master","sha":"40d8463355563a06df45ec20d28f3c9a2b878f4b","user":{"login":"vitta-health","id":15134581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTM0NTgx","avatar_url":"https://avatars2.githubusercontent.com/u/15134581?v=4","gravatar_id":"","url":"https://api.github.com/users/vitta-health","html_url":"https://github.com/vitta-health","followers_url":"https://api.github.com/users/vitta-health/followers","following_url":"https://api.github.com/users/vitta-health/following{/other_user}","gists_url":"https://api.github.com/users/vitta-health/gists{/gist_id}","starred_url":"https://api.github.com/users/vitta-health/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitta-health/subscriptions","organizations_url":"https://api.github.com/users/vitta-health/orgs","repos_url":"https://api.github.com/users/vitta-health/repos","events_url":"https://api.github.com/users/vitta-health/events{/privacy}","received_events_url":"https://api.github.com/users/vitta-health/received_events","type":"Organization","site_admin":false},"repo":{"id":134332473,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzMzI0NzM=","name":"Vi-Ui","full_name":"vitta-health/Vi-Ui","owner":{"login":"vitta-health","id":15134581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTM0NTgx","avatar_url":"https://avatars2.githubusercontent.com/u/15134581?v=4","gravatar_id":"","url":"https://api.github.com/users/vitta-health","html_url":"https://github.com/vitta-health","followers_url":"https://api.github.com/users/vitta-health/followers","following_url":"https://api.github.com/users/vitta-health/following{/other_user}","gists_url":"https://api.github.com/users/vitta-health/gists{/gist_id}","starred_url":"https://api.github.com/users/vitta-health/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitta-health/subscriptions","organizations_url":"https://api.github.com/users/vitta-health/orgs","repos_url":"https://api.github.com/users/vitta-health/repos","events_url":"https://api.github.com/users/vitta-health/events{/privacy}","received_events_url":"https://api.github.com/users/vitta-health/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vitta-health/Vi-Ui","description":" 💙 A simple but consistent user interface made for Vue","fork":false,"url":"https://api.github.com/repos/vitta-health/Vi-Ui","forks_url":"https://api.github.com/repos/vitta-health/Vi-Ui/forks","keys_url":"https://api.github.com/repos/vitta-health/Vi-Ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vitta-health/Vi-Ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vitta-health/Vi-Ui/teams","hooks_url":"https://api.github.com/repos/vitta-health/Vi-Ui/hooks","issue_events_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/events{/number}","events_url":"https://api.github.com/repos/vitta-health/Vi-Ui/events","assignees_url":"https://api.github.com/repos/vitta-health/Vi-Ui/assignees{/user}","branches_url":"https://api.github.com/repos/vitta-health/Vi-Ui/branches{/branch}","tags_url":"https://api.github.com/repos/vitta-health/Vi-Ui/tags","blobs_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vitta-health/Vi-Ui/statuses/{sha}","languages_url":"https://api.github.com/repos/vitta-health/Vi-Ui/languages","stargazers_url":"https://api.github.com/repos/vitta-health/Vi-Ui/stargazers","contributors_url":"https://api.github.com/repos/vitta-health/Vi-Ui/contributors","subscribers_url":"https://api.github.com/repos/vitta-health/Vi-Ui/subscribers","subscription_url":"https://api.github.com/repos/vitta-health/Vi-Ui/subscription","commits_url":"https://api.github.com/repos/vitta-health/Vi-Ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/vitta-health/Vi-Ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/vitta-health/Vi-Ui/contents/{+path}","compare_url":"https://api.github.com/repos/vitta-health/Vi-Ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vitta-health/Vi-Ui/merges","archive_url":"https://api.github.com/repos/vitta-health/Vi-Ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vitta-health/Vi-Ui/downloads","issues_url":"https://api.github.com/repos/vitta-health/Vi-Ui/issues{/number}","pulls_url":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls{/number}","milestones_url":"https://api.github.com/repos/vitta-health/Vi-Ui/milestones{/number}","notifications_url":"https://api.github.com/repos/vitta-health/Vi-Ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vitta-health/Vi-Ui/labels{/name}","releases_url":"https://api.github.com/repos/vitta-health/Vi-Ui/releases{/id}","deployments_url":"https://api.github.com/repos/vitta-health/Vi-Ui/deployments","created_at":"2018-05-21T22:41:19Z","updated_at":"2018-08-13T13:42:36Z","pushed_at":"2018-08-14T19:37:35Z","git_url":"git://github.com/vitta-health/Vi-Ui.git","ssh_url":"git@github.com:vitta-health/Vi-Ui.git","clone_url":"https://github.com/vitta-health/Vi-Ui.git","svn_url":"https://github.com/vitta-health/Vi-Ui","homepage":"https://vitta-health.github.io/Vi-Ui/","size":2972,"stargazers_count":22,"watchers_count":22,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":13,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25"},"html":{"href":"https://github.com/vitta-health/Vi-Ui/pull/25"},"issue":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/25"},"comments":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/vitta-health/Vi-Ui/statuses/843f16cce24bffd858ed3af518b59e281a721ca7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"beeblebrox3"}}