{"action":"created","comment":{"url":"https://api.github.com/repos/valantic/vue-template/pulls/comments/191174379","pull_request_review_id":123696140,"id":191174379,"diff_hunk":"@@ -0,0 +1,168 @@\n+<template>\n+  <div :class=\"b()\">\n+    <div v-for=\"item in items\"\n+         v-if=\"item.loggedIn == userLoggedIn\"\n+         :class=\"b('item', { active: item.isActive })\"\n+         :key=\"item.link\"\n+    >\n+      <a :class=\"b('link')\" :href=\"$t(item.link)\">\n+        <e-icon\n+          :class=\"b('icon')\"\n+          :icon=\"item.icon\"\n+          inline\n+          width=\"25px\"\n+          height=\"25px\"\n+          @click=\"onClick\"\n+        />\n+        <span v-if=\"item.label\" :class=\"b('label')\">{{ $t(item.label) }}</span>\n+        <span v-else :class=\"b('label')\">{{ username }}</span>\n+      </a>\n+    </div>\n+  </div>\n+</template>\n+\n+<script>\n+  import eIcon from '@/components/e-icon';\n+\n+  /**\n+   * Renders three links which contain an icon and a text element each. Should be displayed in the header.\n+   */\n+  export default {\n+    name: 'c-header-links',\n+    components: {\n+      eIcon,\n+    },\n+    // mixins: [],\n+\n+    props: {\n+      /**\n+       * Defines if the account-link should be active.\n+       */\n+      account: {\n+        type: Boolean,\n+        default: false,\n+      },\n+\n+      /**\n+       * Defines if the wishlist-link should be active.\n+       */\n+      wishlist: {\n+        type: Boolean,\n+        default: false,\n+      },\n+\n+      /**\n+       * Defines if the login-link should be active.\n+       */\n+      login: {\n+        type: Boolean,\n+        default: false,\n+      }","path":"app/components/c-header-links.vue","position":60,"original_position":60,"commit_id":"e24cb56795e6f7fc28c3fbe106082abd64629051","original_commit_id":"e24cb56795e6f7fc28c3fbe106082abd64629051","user":{"login":"adrianburtscher","id":39257572,"avatar_url":"https://avatars1.githubusercontent.com/u/39257572?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianburtscher","html_url":"https://github.com/adrianburtscher","followers_url":"https://api.github.com/users/adrianburtscher/followers","following_url":"https://api.github.com/users/adrianburtscher/following{/other_user}","gists_url":"https://api.github.com/users/adrianburtscher/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianburtscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianburtscher/subscriptions","organizations_url":"https://api.github.com/users/adrianburtscher/orgs","repos_url":"https://api.github.com/users/adrianburtscher/repos","events_url":"https://api.github.com/users/adrianburtscher/events{/privacy}","received_events_url":"https://api.github.com/users/adrianburtscher/received_events","type":"User","site_admin":false},"body":"It should be possible to set every header-link as active, from the parent component. They aren´t used atm but can be useful for further integration.","created_at":"2018-05-28T10:39:47Z","updated_at":"2018-05-28T10:39:47Z","html_url":"https://github.com/valantic/vue-template/pull/45#discussion_r191174379","pull_request_url":"https://api.github.com/repos/valantic/vue-template/pulls/45","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/comments/191174379"},"html":{"href":"https://github.com/valantic/vue-template/pull/45#discussion_r191174379"},"pull_request":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/45"}},"in_reply_to_id":190903089},"pull_request":{"url":"https://api.github.com/repos/valantic/vue-template/pulls/45","id":189968347,"html_url":"https://github.com/valantic/vue-template/pull/45","diff_url":"https://github.com/valantic/vue-template/pull/45.diff","patch_url":"https://github.com/valantic/vue-template/pull/45.patch","issue_url":"https://api.github.com/repos/valantic/vue-template/issues/45","number":45,"state":"open","locked":false,"title":"Feature/wf 574 c header links","user":{"login":"adrianburtscher","id":39257572,"avatar_url":"https://avatars1.githubusercontent.com/u/39257572?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianburtscher","html_url":"https://github.com/adrianburtscher","followers_url":"https://api.github.com/users/adrianburtscher/followers","following_url":"https://api.github.com/users/adrianburtscher/following{/other_user}","gists_url":"https://api.github.com/users/adrianburtscher/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianburtscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianburtscher/subscriptions","organizations_url":"https://api.github.com/users/adrianburtscher/orgs","repos_url":"https://api.github.com/users/adrianburtscher/repos","events_url":"https://api.github.com/users/adrianburtscher/events{/privacy}","received_events_url":"https://api.github.com/users/adrianburtscher/received_events","type":"User","site_admin":false},"body":"## Pull request\r\nAdds c-header-links and c-search components, and displays them in the header\r\n \r\n### Ticket\r\n[WF-574](https://winterhalter-fenner.atlassian.net/browse/WF-574)\r\n \r\n### Browser testing\r\n- [Productdetail](http://localhost:8080/styleguide/product-detail) (e.g.)\r\n \r\n### Checklist\r\n- [x] Added JSDoc and styleguide demo\r\n- [x] Tested all links in project relevant browsers\r\n- [x] Tested all links in different screen sizes\r\n- [x] Did run automated tests and linters\r\n- [x] Did assign ticket\r\n- [x] Double checked target branch\r\n \r\n## Review/Test checklist\r\n- [x] Did run automated tests and linters\r\n- [x] Did review code and documentation\r\n- [x] Tested all links in project relevant browsers\r\n- [x] Tested all links in different screen sizes\r\n- [x] Re-assign ticket to developer\r\n","created_at":"2018-05-23T13:05:50Z","updated_at":"2018-05-28T10:39:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdc40d2bf10ead40ded9f734e04feb29d8e89d31","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/valantic/vue-template/pulls/45/commits","review_comments_url":"https://api.github.com/repos/valantic/vue-template/pulls/45/comments","review_comment_url":"https://api.github.com/repos/valantic/vue-template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valantic/vue-template/issues/45/comments","statuses_url":"https://api.github.com/repos/valantic/vue-template/statuses/e24cb56795e6f7fc28c3fbe106082abd64629051","head":{"label":"valantic:feature/WF-574_c-header-links","ref":"feature/WF-574_c-header-links","sha":"e24cb56795e6f7fc28c3fbe106082abd64629051","user":{"login":"valantic","id":37074558,"avatar_url":"https://avatars1.githubusercontent.com/u/37074558?v=4","gravatar_id":"","url":"https://api.github.com/users/valantic","html_url":"https://github.com/valantic","followers_url":"https://api.github.com/users/valantic/followers","following_url":"https://api.github.com/users/valantic/following{/other_user}","gists_url":"https://api.github.com/users/valantic/gists{/gist_id}","starred_url":"https://api.github.com/users/valantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valantic/subscriptions","organizations_url":"https://api.github.com/users/valantic/orgs","repos_url":"https://api.github.com/users/valantic/repos","events_url":"https://api.github.com/users/valantic/events{/privacy}","received_events_url":"https://api.github.com/users/valantic/received_events","type":"Organization","site_admin":false},"repo":{"id":124873048,"name":"vue-template","full_name":"valantic/vue-template","owner":{"login":"valantic","id":37074558,"avatar_url":"https://avatars1.githubusercontent.com/u/37074558?v=4","gravatar_id":"","url":"https://api.github.com/users/valantic","html_url":"https://github.com/valantic","followers_url":"https://api.github.com/users/valantic/followers","following_url":"https://api.github.com/users/valantic/following{/other_user}","gists_url":"https://api.github.com/users/valantic/gists{/gist_id}","starred_url":"https://api.github.com/users/valantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valantic/subscriptions","organizations_url":"https://api.github.com/users/valantic/orgs","repos_url":"https://api.github.com/users/valantic/repos","events_url":"https://api.github.com/users/valantic/events{/privacy}","received_events_url":"https://api.github.com/users/valantic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/valantic/vue-template","description":"A custom Vue.js boilerplate based on webpack.","fork":false,"url":"https://api.github.com/repos/valantic/vue-template","forks_url":"https://api.github.com/repos/valantic/vue-template/forks","keys_url":"https://api.github.com/repos/valantic/vue-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valantic/vue-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valantic/vue-template/teams","hooks_url":"https://api.github.com/repos/valantic/vue-template/hooks","issue_events_url":"https://api.github.com/repos/valantic/vue-template/issues/events{/number}","events_url":"https://api.github.com/repos/valantic/vue-template/events","assignees_url":"https://api.github.com/repos/valantic/vue-template/assignees{/user}","branches_url":"https://api.github.com/repos/valantic/vue-template/branches{/branch}","tags_url":"https://api.github.com/repos/valantic/vue-template/tags","blobs_url":"https://api.github.com/repos/valantic/vue-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valantic/vue-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valantic/vue-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/valantic/vue-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valantic/vue-template/statuses/{sha}","languages_url":"https://api.github.com/repos/valantic/vue-template/languages","stargazers_url":"https://api.github.com/repos/valantic/vue-template/stargazers","contributors_url":"https://api.github.com/repos/valantic/vue-template/contributors","subscribers_url":"https://api.github.com/repos/valantic/vue-template/subscribers","subscription_url":"https://api.github.com/repos/valantic/vue-template/subscription","commits_url":"https://api.github.com/repos/valantic/vue-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/valantic/vue-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/valantic/vue-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/valantic/vue-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/valantic/vue-template/contents/{+path}","compare_url":"https://api.github.com/repos/valantic/vue-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valantic/vue-template/merges","archive_url":"https://api.github.com/repos/valantic/vue-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valantic/vue-template/downloads","issues_url":"https://api.github.com/repos/valantic/vue-template/issues{/number}","pulls_url":"https://api.github.com/repos/valantic/vue-template/pulls{/number}","milestones_url":"https://api.github.com/repos/valantic/vue-template/milestones{/number}","notifications_url":"https://api.github.com/repos/valantic/vue-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valantic/vue-template/labels{/name}","releases_url":"https://api.github.com/repos/valantic/vue-template/releases{/id}","deployments_url":"https://api.github.com/repos/valantic/vue-template/deployments","created_at":"2018-03-12T10:35:10Z","updated_at":"2018-05-17T14:24:06Z","pushed_at":"2018-05-28T10:16:48Z","git_url":"git://github.com/valantic/vue-template.git","ssh_url":"git@github.com:valantic/vue-template.git","clone_url":"https://github.com/valantic/vue-template.git","svn_url":"https://github.com/valantic/vue-template","homepage":null,"size":2628,"stargazers_count":1,"watchers_count":1,"language":"Vue","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"valantic:develop","ref":"develop","sha":"83226eae65b6a490060e356b87864c5aa77586b6","user":{"login":"valantic","id":37074558,"avatar_url":"https://avatars1.githubusercontent.com/u/37074558?v=4","gravatar_id":"","url":"https://api.github.com/users/valantic","html_url":"https://github.com/valantic","followers_url":"https://api.github.com/users/valantic/followers","following_url":"https://api.github.com/users/valantic/following{/other_user}","gists_url":"https://api.github.com/users/valantic/gists{/gist_id}","starred_url":"https://api.github.com/users/valantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valantic/subscriptions","organizations_url":"https://api.github.com/users/valantic/orgs","repos_url":"https://api.github.com/users/valantic/repos","events_url":"https://api.github.com/users/valantic/events{/privacy}","received_events_url":"https://api.github.com/users/valantic/received_events","type":"Organization","site_admin":false},"repo":{"id":124873048,"name":"vue-template","full_name":"valantic/vue-template","owner":{"login":"valantic","id":37074558,"avatar_url":"https://avatars1.githubusercontent.com/u/37074558?v=4","gravatar_id":"","url":"https://api.github.com/users/valantic","html_url":"https://github.com/valantic","followers_url":"https://api.github.com/users/valantic/followers","following_url":"https://api.github.com/users/valantic/following{/other_user}","gists_url":"https://api.github.com/users/valantic/gists{/gist_id}","starred_url":"https://api.github.com/users/valantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valantic/subscriptions","organizations_url":"https://api.github.com/users/valantic/orgs","repos_url":"https://api.github.com/users/valantic/repos","events_url":"https://api.github.com/users/valantic/events{/privacy}","received_events_url":"https://api.github.com/users/valantic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/valantic/vue-template","description":"A custom Vue.js boilerplate based on webpack.","fork":false,"url":"https://api.github.com/repos/valantic/vue-template","forks_url":"https://api.github.com/repos/valantic/vue-template/forks","keys_url":"https://api.github.com/repos/valantic/vue-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valantic/vue-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valantic/vue-template/teams","hooks_url":"https://api.github.com/repos/valantic/vue-template/hooks","issue_events_url":"https://api.github.com/repos/valantic/vue-template/issues/events{/number}","events_url":"https://api.github.com/repos/valantic/vue-template/events","assignees_url":"https://api.github.com/repos/valantic/vue-template/assignees{/user}","branches_url":"https://api.github.com/repos/valantic/vue-template/branches{/branch}","tags_url":"https://api.github.com/repos/valantic/vue-template/tags","blobs_url":"https://api.github.com/repos/valantic/vue-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valantic/vue-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valantic/vue-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/valantic/vue-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valantic/vue-template/statuses/{sha}","languages_url":"https://api.github.com/repos/valantic/vue-template/languages","stargazers_url":"https://api.github.com/repos/valantic/vue-template/stargazers","contributors_url":"https://api.github.com/repos/valantic/vue-template/contributors","subscribers_url":"https://api.github.com/repos/valantic/vue-template/subscribers","subscription_url":"https://api.github.com/repos/valantic/vue-template/subscription","commits_url":"https://api.github.com/repos/valantic/vue-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/valantic/vue-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/valantic/vue-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/valantic/vue-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/valantic/vue-template/contents/{+path}","compare_url":"https://api.github.com/repos/valantic/vue-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valantic/vue-template/merges","archive_url":"https://api.github.com/repos/valantic/vue-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valantic/vue-template/downloads","issues_url":"https://api.github.com/repos/valantic/vue-template/issues{/number}","pulls_url":"https://api.github.com/repos/valantic/vue-template/pulls{/number}","milestones_url":"https://api.github.com/repos/valantic/vue-template/milestones{/number}","notifications_url":"https://api.github.com/repos/valantic/vue-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valantic/vue-template/labels{/name}","releases_url":"https://api.github.com/repos/valantic/vue-template/releases{/id}","deployments_url":"https://api.github.com/repos/valantic/vue-template/deployments","created_at":"2018-03-12T10:35:10Z","updated_at":"2018-05-17T14:24:06Z","pushed_at":"2018-05-28T10:16:48Z","git_url":"git://github.com/valantic/vue-template.git","ssh_url":"git@github.com:valantic/vue-template.git","clone_url":"https://github.com/valantic/vue-template.git","svn_url":"https://github.com/valantic/vue-template","homepage":null,"size":2628,"stargazers_count":1,"watchers_count":1,"language":"Vue","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/45"},"html":{"href":"https://github.com/valantic/vue-template/pull/45"},"issue":{"href":"https://api.github.com/repos/valantic/vue-template/issues/45"},"comments":{"href":"https://api.github.com/repos/valantic/vue-template/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valantic/vue-template/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/valantic/vue-template/statuses/e24cb56795e6f7fc28c3fbe106082abd64629051"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"adrianburtscher"}}