{"action":"created","comment":{"url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/comments/97214974","pull_request_review_id":17822023,"id":97214974,"diff_hunk":"@@ -1,21 +1,165 @@\n <script>\n+import Thumbnail from 'components/Thumbnail'\n+import Localize from 'js/Localize'\n+\n export default {\n+  components: {\n+    Thumbnail,\n+  },\n+  created() {\n+    this.query = 649 // test use\n+    /*\n+    LRIG: 649\n+    ARTS: 1908\n+    SINGI: 1801\n+    RESONA: 1895\n \n+    */\n+    Localize.setLanguage('zh_CN') // test use\n+  },\n+  computed: {\n+    query: {\n+      get() {\n+        return Number(this.$route.query.query)\n+      },\n+      set(value) {\n+        // TODO: check if Number && <= total card count\n+        if (value) {\n+          this.$router.replace({\n+            path: '/detail',\n+            query: {\n+              query: value,\n+            },\n+          })\n+        } else {\n+          this.$route.replace('/detail')\n+        }\n+      },\n+    },\n+    info() {\n+      return CardInfo[this.query]\n+    },\n+    parseEffect() {\n+      return Localize.effectTexts(this.info)\n+    },\n+    parseBurst() {\n+      return Localize.burstEffectTexts(this.info)\n+    },\n+    metas() {\n+      let card = this.info\n+      let level = {\n+        key: 'Lv.',\n+        value: card.level,\n+      }\n+      let power = {\n+        key: 'Power',\n+        value: card.power,\n+      }\n+      let limit = {\n+        key: 'Limit',\n+        value: (card.limit < 1024) ? card.limit : '∞',\n+      }\n+      let cost = {\n+        key: 'cost',\n+        value: Localize.cost(card),\n+      }\n+      let timming = {\n+        key: 'timming',\n+        value: Localize.timmings(card),\n+      }\n+      let classes = {\n+        key: 'class',\n+        value: Localize.classes(card),\n+      }\n+      let guard = {\n+        key: 'guard',\n+        value: Localize.guard(card),\n+      }\n+      return {\n+        'RESONA': [\n+          [level, classes],\n+          [power, guard],\n+        ],\n+        'SIGNI': [\n+          [level, classes],\n+          [power, guard],\n+        ],\n+        'SPELL': [\n+          [cost],\n+        ],\n+        'LRIG': [\n+          [level, classes],\n+          [limit, cost]\n+        ],\n+        'ARTS': [\n+          [cost],\n+          [timming],\n+        ],\n+      }[card.cardType] || []\n+    },\n+  },\n }\n+\n </script>\n \n <template>\n-\t<div id=\"Detail\">\n-\t\t<div id=\"detail-card-figure\">\n-\t      <img id=\"detail-card-image\">\n-\t    </div>\n-\t    <div id=\"detail-card-data\">\n-\t      <div id=\"detail-card-wxid\"></div>\n-\t      <div id=\"detail-card-name\"></div>\n-\t      <div id=\"detail-card-limiting\"></div>\n-\t      <table id=\"detail-table\">\n-\t        <tbody id=\"detail-table-body\"></tbody>\n-\t      </table>\n-\t    </div>\n+  <div id=\"Detail\">\n+  <div class=\"detail-head\">","path":"src/pages/Detail.vue","position":119,"original_position":119,"commit_id":"dda7c9d833bb373f43df29068c8ebcf7b704743b","original_commit_id":"dda7c9d833bb373f43df29068c8ebcf7b704743b","user":{"login":"webxoss","id":17349102,"avatar_url":"https://avatars.githubusercontent.com/u/17349102?v=3","gravatar_id":"","url":"https://api.github.com/users/webxoss","html_url":"https://github.com/webxoss","followers_url":"https://api.github.com/users/webxoss/followers","following_url":"https://api.github.com/users/webxoss/following{/other_user}","gists_url":"https://api.github.com/users/webxoss/gists{/gist_id}","starred_url":"https://api.github.com/users/webxoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webxoss/subscriptions","organizations_url":"https://api.github.com/users/webxoss/orgs","repos_url":"https://api.github.com/users/webxoss/repos","events_url":"https://api.github.com/users/webxoss/events{/privacy}","received_events_url":"https://api.github.com/users/webxoss/received_events","type":"User","site_admin":false},"body":"没用的class都删掉","created_at":"2017-01-22T07:09:30Z","updated_at":"2017-01-22T07:23:09Z","html_url":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16#discussion_r97214974","pull_request_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/comments/97214974"},"html":{"href":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16#discussion_r97214974"},"pull_request":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16","id":102608248,"html_url":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16","diff_url":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16.diff","patch_url":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16.patch","issue_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/16","number":16,"state":"open","locked":false,"title":"build Detail page","user":{"login":"Deardrops","id":9463871,"avatar_url":"https://avatars.githubusercontent.com/u/9463871?v=3","gravatar_id":"","url":"https://api.github.com/users/Deardrops","html_url":"https://github.com/Deardrops","followers_url":"https://api.github.com/users/Deardrops/followers","following_url":"https://api.github.com/users/Deardrops/following{/other_user}","gists_url":"https://api.github.com/users/Deardrops/gists{/gist_id}","starred_url":"https://api.github.com/users/Deardrops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deardrops/subscriptions","organizations_url":"https://api.github.com/users/Deardrops/orgs","repos_url":"https://api.github.com/users/Deardrops/repos","events_url":"https://api.github.com/users/Deardrops/events{/privacy}","received_events_url":"https://api.github.com/users/Deardrops/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-22T05:20:16Z","updated_at":"2017-01-22T07:23:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aad987bf924b514a72629e5773405d27d28e9c14","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/16/comments","statuses_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/statuses/dda7c9d833bb373f43df29068c8ebcf7b704743b","head":{"label":"Deardrops:dev","ref":"dev","sha":"dda7c9d833bb373f43df29068c8ebcf7b704743b","user":{"login":"Deardrops","id":9463871,"avatar_url":"https://avatars.githubusercontent.com/u/9463871?v=3","gravatar_id":"","url":"https://api.github.com/users/Deardrops","html_url":"https://github.com/Deardrops","followers_url":"https://api.github.com/users/Deardrops/followers","following_url":"https://api.github.com/users/Deardrops/following{/other_user}","gists_url":"https://api.github.com/users/Deardrops/gists{/gist_id}","starred_url":"https://api.github.com/users/Deardrops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deardrops/subscriptions","organizations_url":"https://api.github.com/users/Deardrops/orgs","repos_url":"https://api.github.com/users/Deardrops/repos","events_url":"https://api.github.com/users/Deardrops/events{/privacy}","received_events_url":"https://api.github.com/users/Deardrops/received_events","type":"User","site_admin":false},"repo":{"id":78500844,"name":"webxoss-deckeditor2","full_name":"Deardrops/webxoss-deckeditor2","owner":{"login":"Deardrops","id":9463871,"avatar_url":"https://avatars.githubusercontent.com/u/9463871?v=3","gravatar_id":"","url":"https://api.github.com/users/Deardrops","html_url":"https://github.com/Deardrops","followers_url":"https://api.github.com/users/Deardrops/followers","following_url":"https://api.github.com/users/Deardrops/following{/other_user}","gists_url":"https://api.github.com/users/Deardrops/gists{/gist_id}","starred_url":"https://api.github.com/users/Deardrops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deardrops/subscriptions","organizations_url":"https://api.github.com/users/Deardrops/orgs","repos_url":"https://api.github.com/users/Deardrops/repos","events_url":"https://api.github.com/users/Deardrops/events{/privacy}","received_events_url":"https://api.github.com/users/Deardrops/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Deardrops/webxoss-deckeditor2","description":null,"fork":false,"url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2","forks_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/forks","keys_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/teams","hooks_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/hooks","issue_events_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/events{/number}","events_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/events","assignees_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/assignees{/user}","branches_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/branches{/branch}","tags_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/tags","blobs_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/statuses/{sha}","languages_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/languages","stargazers_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/stargazers","contributors_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/contributors","subscribers_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/subscribers","subscription_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/subscription","commits_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/contents/{+path}","compare_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/merges","archive_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/downloads","issues_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues{/number}","pulls_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls{/number}","milestones_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/milestones{/number}","notifications_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/labels{/name}","releases_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/releases{/id}","deployments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/deployments","created_at":"2017-01-10T05:29:15Z","updated_at":"2017-01-21T11:00:43Z","pushed_at":"2017-01-22T06:50:51Z","git_url":"git://github.com/Deardrops/webxoss-deckeditor2.git","ssh_url":"git@github.com:Deardrops/webxoss-deckeditor2.git","clone_url":"https://github.com/Deardrops/webxoss-deckeditor2.git","svn_url":"https://github.com/Deardrops/webxoss-deckeditor2","homepage":null,"size":438,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Deardrops:master","ref":"master","sha":"d4d54359cf8fcff7e05954a9836fc1c942c29db1","user":{"login":"Deardrops","id":9463871,"avatar_url":"https://avatars.githubusercontent.com/u/9463871?v=3","gravatar_id":"","url":"https://api.github.com/users/Deardrops","html_url":"https://github.com/Deardrops","followers_url":"https://api.github.com/users/Deardrops/followers","following_url":"https://api.github.com/users/Deardrops/following{/other_user}","gists_url":"https://api.github.com/users/Deardrops/gists{/gist_id}","starred_url":"https://api.github.com/users/Deardrops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deardrops/subscriptions","organizations_url":"https://api.github.com/users/Deardrops/orgs","repos_url":"https://api.github.com/users/Deardrops/repos","events_url":"https://api.github.com/users/Deardrops/events{/privacy}","received_events_url":"https://api.github.com/users/Deardrops/received_events","type":"User","site_admin":false},"repo":{"id":78500844,"name":"webxoss-deckeditor2","full_name":"Deardrops/webxoss-deckeditor2","owner":{"login":"Deardrops","id":9463871,"avatar_url":"https://avatars.githubusercontent.com/u/9463871?v=3","gravatar_id":"","url":"https://api.github.com/users/Deardrops","html_url":"https://github.com/Deardrops","followers_url":"https://api.github.com/users/Deardrops/followers","following_url":"https://api.github.com/users/Deardrops/following{/other_user}","gists_url":"https://api.github.com/users/Deardrops/gists{/gist_id}","starred_url":"https://api.github.com/users/Deardrops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deardrops/subscriptions","organizations_url":"https://api.github.com/users/Deardrops/orgs","repos_url":"https://api.github.com/users/Deardrops/repos","events_url":"https://api.github.com/users/Deardrops/events{/privacy}","received_events_url":"https://api.github.com/users/Deardrops/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Deardrops/webxoss-deckeditor2","description":null,"fork":false,"url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2","forks_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/forks","keys_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/teams","hooks_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/hooks","issue_events_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/events{/number}","events_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/events","assignees_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/assignees{/user}","branches_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/branches{/branch}","tags_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/tags","blobs_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/statuses/{sha}","languages_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/languages","stargazers_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/stargazers","contributors_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/contributors","subscribers_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/subscribers","subscription_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/subscription","commits_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/contents/{+path}","compare_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/merges","archive_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/downloads","issues_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues{/number}","pulls_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls{/number}","milestones_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/milestones{/number}","notifications_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/labels{/name}","releases_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/releases{/id}","deployments_url":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/deployments","created_at":"2017-01-10T05:29:15Z","updated_at":"2017-01-21T11:00:43Z","pushed_at":"2017-01-22T06:50:51Z","git_url":"git://github.com/Deardrops/webxoss-deckeditor2.git","ssh_url":"git@github.com:Deardrops/webxoss-deckeditor2.git","clone_url":"https://github.com/Deardrops/webxoss-deckeditor2.git","svn_url":"https://github.com/Deardrops/webxoss-deckeditor2","homepage":null,"size":438,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16"},"html":{"href":"https://github.com/Deardrops/webxoss-deckeditor2/pull/16"},"issue":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/16"},"comments":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Deardrops/webxoss-deckeditor2/statuses/dda7c9d833bb373f43df29068c8ebcf7b704743b"}}}}
{"actor":{"display_login":"webxoss"}}