{"action":"created","comment":{"url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/comments/236509772","pull_request_review_id":178590575,"id":236509772,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjUwOTc3Mg==","diff_hunk":"@@ -101,14 +101,14 @@ const app = new Vue({\n })\r\n ```\r\n \r\n-As before, `mounted` is used to load persisted data, if it exists. This time, though, data is only persisted when the button is clicked. We could also do any validations or transformations here before storing the value. You could also store a date representing when the values were stored. With that metadata, the `mounted` method could make a logical call on whether or not to store the values again. You can try this version below.\r\n+像之前一样，`mounted` 是用来加载持久化了的数据(如果存在的话)。这一次，数据只会在点击按钮后才被持久化。我们也可以在数据被存储之前，在这里对数据进行验证或转换的操作。你也可以将日期一并存储进去来记录这些数据是何时被存储的。有了这些元数据，`mounted` 方法就可以通过逻辑判断来决定是否再次对数据进行存储。你可以在下面对这个版本进行尝试。\r","path":"src/v2/cookbook/client-side-storage.md","position":null,"original_position":81,"commit_id":"bacea2efe0917f33d34f9c65ecc34df2d6596d08","original_commit_id":"dfc51e9498c4c551ad599562f05116d8d3ef4d34","user":{"login":"Justineo","id":1726061,"node_id":"MDQ6VXNlcjE3MjYwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1726061?v=4","gravatar_id":"","url":"https://api.github.com/users/Justineo","html_url":"https://github.com/Justineo","followers_url":"https://api.github.com/users/Justineo/followers","following_url":"https://api.github.com/users/Justineo/following{/other_user}","gists_url":"https://api.github.com/users/Justineo/gists{/gist_id}","starred_url":"https://api.github.com/users/Justineo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Justineo/subscriptions","organizations_url":"https://api.github.com/users/Justineo/orgs","repos_url":"https://api.github.com/users/Justineo/repos","events_url":"https://api.github.com/users/Justineo/events{/privacy}","received_events_url":"https://api.github.com/users/Justineo/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n像之前一样，`mounted` 是用来加载持久化了的数据 (如果存在的话)。这一次，数据只会在点击按钮后才被持久化。我们也可以在数据被存储之前，在这里对数据进行验证或转换的操作。你也可以将日期一并存储进去来记录这些数据是何时被存储的。有了这些元数据，`mounted` 方法就可以通过逻辑判断来决定是否再次对数据进行存储。你可以在下面对这个版本进行尝试。\r\n```","created_at":"2018-11-27T03:36:27Z","updated_at":"2018-11-27T03:41:37Z","html_url":"https://github.com/vuejs/cn.vuejs.org/pull/846#discussion_r236509772","pull_request_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/comments/236509772"},"html":{"href":"https://github.com/vuejs/cn.vuejs.org/pull/846#discussion_r236509772"},"pull_request":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846"}}},"pull_request":{"url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846","id":233356493,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzU2NDkz","html_url":"https://github.com/vuejs/cn.vuejs.org/pull/846","diff_url":"https://github.com/vuejs/cn.vuejs.org/pull/846.diff","patch_url":"https://github.com/vuejs/cn.vuejs.org/pull/846.patch","issue_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/846","number":846,"state":"open","locked":false,"title":"translate client-side-storage.md","user":{"login":"ludanxer","id":27280733,"node_id":"MDQ6VXNlcjI3MjgwNzMz","avatar_url":"https://avatars1.githubusercontent.com/u/27280733?v=4","gravatar_id":"","url":"https://api.github.com/users/ludanxer","html_url":"https://github.com/ludanxer","followers_url":"https://api.github.com/users/ludanxer/followers","following_url":"https://api.github.com/users/ludanxer/following{/other_user}","gists_url":"https://api.github.com/users/ludanxer/gists{/gist_id}","starred_url":"https://api.github.com/users/ludanxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludanxer/subscriptions","organizations_url":"https://api.github.com/users/ludanxer/orgs","repos_url":"https://api.github.com/users/ludanxer/repos","events_url":"https://api.github.com/users/ludanxer/events{/privacy}","received_events_url":"https://api.github.com/users/ludanxer/received_events","type":"User","site_admin":false},"body":"<!--\r\n\r\n首先感谢您的参与！\r\n为了让社区工作更有效率和质量，我们做了一些约定，希望得到您的理解和支持。\r\n\r\n首先请阅读 README[1] 了解如何参与贡献。\r\n如果你参与的是翻译相关的工作，有劳额外移步 wiki[2] 了解相关注意事项。\r\n\r\n谢谢！\r\n\r\n[1] https://github.com/vuejs/cn.vuejs.org/tree/master/README.md\r\n[2] https://github.com/vuejs/cn.vuejs.org/wiki\r\n\r\n-->\r\nIt's my first PR ever, I'm sorry if I make some mistake.","created_at":"2018-11-25T05:04:23Z","updated_at":"2018-11-27T03:41:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"418527a66eb87d2382bfde546fae65fad0594c63","assignee":{"login":"Justineo","id":1726061,"node_id":"MDQ6VXNlcjE3MjYwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1726061?v=4","gravatar_id":"","url":"https://api.github.com/users/Justineo","html_url":"https://github.com/Justineo","followers_url":"https://api.github.com/users/Justineo/followers","following_url":"https://api.github.com/users/Justineo/following{/other_user}","gists_url":"https://api.github.com/users/Justineo/gists{/gist_id}","starred_url":"https://api.github.com/users/Justineo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Justineo/subscriptions","organizations_url":"https://api.github.com/users/Justineo/orgs","repos_url":"https://api.github.com/users/Justineo/repos","events_url":"https://api.github.com/users/Justineo/events{/privacy}","received_events_url":"https://api.github.com/users/Justineo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Justineo","id":1726061,"node_id":"MDQ6VXNlcjE3MjYwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1726061?v=4","gravatar_id":"","url":"https://api.github.com/users/Justineo","html_url":"https://github.com/Justineo","followers_url":"https://api.github.com/users/Justineo/followers","following_url":"https://api.github.com/users/Justineo/following{/other_user}","gists_url":"https://api.github.com/users/Justineo/gists{/gist_id}","starred_url":"https://api.github.com/users/Justineo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Justineo/subscriptions","organizations_url":"https://api.github.com/users/Justineo/orgs","repos_url":"https://api.github.com/users/Justineo/repos","events_url":"https://api.github.com/users/Justineo/events{/privacy}","received_events_url":"https://api.github.com/users/Justineo/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846/commits","review_comments_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846/comments","review_comment_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/846/comments","statuses_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/statuses/bacea2efe0917f33d34f9c65ecc34df2d6596d08","head":{"label":"ludanxer:pr/client-side-storage","ref":"pr/client-side-storage","sha":"bacea2efe0917f33d34f9c65ecc34df2d6596d08","user":{"login":"ludanxer","id":27280733,"node_id":"MDQ6VXNlcjI3MjgwNzMz","avatar_url":"https://avatars1.githubusercontent.com/u/27280733?v=4","gravatar_id":"","url":"https://api.github.com/users/ludanxer","html_url":"https://github.com/ludanxer","followers_url":"https://api.github.com/users/ludanxer/followers","following_url":"https://api.github.com/users/ludanxer/following{/other_user}","gists_url":"https://api.github.com/users/ludanxer/gists{/gist_id}","starred_url":"https://api.github.com/users/ludanxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludanxer/subscriptions","organizations_url":"https://api.github.com/users/ludanxer/orgs","repos_url":"https://api.github.com/users/ludanxer/repos","events_url":"https://api.github.com/users/ludanxer/events{/privacy}","received_events_url":"https://api.github.com/users/ludanxer/received_events","type":"User","site_admin":false},"repo":{"id":158775974,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg3NzU5NzQ=","name":"cn.vuejs.org","full_name":"ludanxer/cn.vuejs.org","private":false,"owner":{"login":"ludanxer","id":27280733,"node_id":"MDQ6VXNlcjI3MjgwNzMz","avatar_url":"https://avatars1.githubusercontent.com/u/27280733?v=4","gravatar_id":"","url":"https://api.github.com/users/ludanxer","html_url":"https://github.com/ludanxer","followers_url":"https://api.github.com/users/ludanxer/followers","following_url":"https://api.github.com/users/ludanxer/following{/other_user}","gists_url":"https://api.github.com/users/ludanxer/gists{/gist_id}","starred_url":"https://api.github.com/users/ludanxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludanxer/subscriptions","organizations_url":"https://api.github.com/users/ludanxer/orgs","repos_url":"https://api.github.com/users/ludanxer/repos","events_url":"https://api.github.com/users/ludanxer/events{/privacy}","received_events_url":"https://api.github.com/users/ludanxer/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ludanxer/cn.vuejs.org","description":"🇨🇳 Chinese translation for vuejs.org","fork":true,"url":"https://api.github.com/repos/ludanxer/cn.vuejs.org","forks_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/forks","keys_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/teams","hooks_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/hooks","issue_events_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/events","assignees_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/tags","blobs_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/languages","stargazers_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/stargazers","contributors_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/contributors","subscribers_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/subscribers","subscription_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/subscription","commits_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/merges","archive_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/downloads","issues_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/labels{/name}","releases_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/ludanxer/cn.vuejs.org/deployments","created_at":"2018-11-23T03:22:57Z","updated_at":"2018-11-23T03:23:00Z","pushed_at":"2018-11-27T03:39:07Z","git_url":"git://github.com/ludanxer/cn.vuejs.org.git","ssh_url":"git@github.com:ludanxer/cn.vuejs.org.git","clone_url":"https://github.com/ludanxer/cn.vuejs.org.git","svn_url":"https://github.com/ludanxer/cn.vuejs.org","homepage":"https://cn.vuejs.org","size":34969,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vuejs:master","ref":"master","sha":"ad9fb8836a2a25dd45f93dcfcbf2ba5a86444067","user":{"login":"vuejs","id":6128107,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxMjgxMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6128107?v=4","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"repo":{"id":45115168,"node_id":"MDEwOlJlcG9zaXRvcnk0NTExNTE2OA==","name":"cn.vuejs.org","full_name":"vuejs/cn.vuejs.org","private":false,"owner":{"login":"vuejs","id":6128107,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxMjgxMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6128107?v=4","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/vuejs/cn.vuejs.org","description":"🇨🇳 Chinese translation for vuejs.org","fork":false,"url":"https://api.github.com/repos/vuejs/cn.vuejs.org","forks_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/forks","keys_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/teams","hooks_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/hooks","issue_events_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/events","assignees_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/tags","blobs_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/languages","stargazers_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/stargazers","contributors_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/contributors","subscribers_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/subscribers","subscription_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/subscription","commits_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/merges","archive_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/downloads","issues_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/labels{/name}","releases_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/vuejs/cn.vuejs.org/deployments","created_at":"2015-10-28T13:45:49Z","updated_at":"2018-11-27T03:12:10Z","pushed_at":"2018-11-27T03:39:09Z","git_url":"git://github.com/vuejs/cn.vuejs.org.git","ssh_url":"git@github.com:vuejs/cn.vuejs.org.git","clone_url":"https://github.com/vuejs/cn.vuejs.org.git","svn_url":"https://github.com/vuejs/cn.vuejs.org","homepage":"https://cn.vuejs.org","size":34960,"stargazers_count":1136,"watchers_count":1136,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2220,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2220,"open_issues":2,"watchers":1136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846"},"html":{"href":"https://github.com/vuejs/cn.vuejs.org/pull/846"},"issue":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/846"},"comments":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/issues/846/comments"},"review_comments":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846/comments"},"review_comment":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/pulls/846/commits"},"statuses":{"href":"https://api.github.com/repos/vuejs/cn.vuejs.org/statuses/bacea2efe0917f33d34f9c65ecc34df2d6596d08"}},"author_association":"NONE"}}
{"actor":{"display_login":"Justineo"}}