{"action":"created","issue":{"url":"https://api.github.com/repos/poooi/poi/issues/579","labels_url":"https://api.github.com/repos/poooi/poi/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/poooi/poi/issues/579/comments","events_url":"https://api.github.com/repos/poooi/poi/issues/579/events","html_url":"https://github.com/poooi/poi/issues/579","id":119440716,"number":579,"title":"关于新的plugin management的几个问题及建议","user":{"login":"alvin-777","id":13615512,"avatar_url":"https://avatars.githubusercontent.com/u/13615512?v=3","gravatar_id":"","url":"https://api.github.com/users/alvin-777","html_url":"https://github.com/alvin-777","followers_url":"https://api.github.com/users/alvin-777/followers","following_url":"https://api.github.com/users/alvin-777/following{/other_user}","gists_url":"https://api.github.com/users/alvin-777/gists{/gist_id}","starred_url":"https://api.github.com/users/alvin-777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvin-777/subscriptions","organizations_url":"https://api.github.com/users/alvin-777/orgs","repos_url":"https://api.github.com/users/alvin-777/repos","events_url":"https://api.github.com/users/alvin-777/events{/privacy}","received_events_url":"https://api.github.com/users/alvin-777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-11-30T08:21:01Z","updated_at":"2015-12-05T14:50:55Z","closed_at":null,"body":"首先赞美一下欧选，几个月前我就想做这功能，但一直没机会研究，然后欧选几天就做好了\r\n\r\n* 下载新插件有时会莫名卡住，然后。。就会只见那个圈圈一直转，永远卡下去。。。没有error message，没有任何提示，也不会重试或者time-out，只能重开然后才能再install\r\n* 鼠标cursor指在button上和指在button上的字上时都不一样，普通button和disabled button都不一样\r\n* disabled button在好几个theme下都。。看起来怪怪的。。。\r\n* check update按了之后没有任何回馈，让人感觉十分不安。。（比起“我所有插件都是最新的”，给人更多的感觉是“这功能还没做吧／没起作用吧？”）\r\n\r\n另外希望能够更新doc，新写一个插件的话要做些什么才能用得上自动更新之类的功能，什么的"},"comment":{"url":"https://api.github.com/repos/poooi/poi/issues/comments/162202752","html_url":"https://github.com/poooi/poi/issues/579#issuecomment-162202752","issue_url":"https://api.github.com/repos/poooi/poi/issues/579","id":162202752,"user":{"login":"alvin-777","id":13615512,"avatar_url":"https://avatars.githubusercontent.com/u/13615512?v=3","gravatar_id":"","url":"https://api.github.com/users/alvin-777","html_url":"https://github.com/alvin-777","followers_url":"https://api.github.com/users/alvin-777/followers","following_url":"https://api.github.com/users/alvin-777/following{/other_user}","gists_url":"https://api.github.com/users/alvin-777/gists{/gist_id}","starred_url":"https://api.github.com/users/alvin-777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvin-777/subscriptions","organizations_url":"https://api.github.com/users/alvin-777/orgs","repos_url":"https://api.github.com/users/alvin-777/repos","events_url":"https://api.github.com/users/alvin-777/events{/privacy}","received_events_url":"https://api.github.com/users/alvin-777/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T14:50:55Z","updated_at":"2015-12-05T14:50:55Z","body":"维护兼容列表实在太过麻烦\r\n\r\n我的想法是这样：\r\n* 检测到新版本，用户点了“更新”之后，先把现有插件复制一份作为备份\r\n* 更新插件，重启poi\r\n* 插件爆炸，load失败，自动禁用该插件，在插件管理里显示“无法使用此版本”，并提供“删除”和“恢复前一版本”\r\n* 如果用户选“恢复”，直接删掉新版文件夹，把旧版文件夹移回来\r\n* 重启poi，插件复活\r\n\r\n这样还有个好处，就是前一版的插件就算用户魔改过也能够完美恢复\r\n\r\n----\r\n另外我觉得其实可以在插件中心列出npm上所有能找到的poi-plugin，非官方的打个“非官方”tag就是了。\r\n或者(至少)加一个“寻找更多插件”的按钮，点击直接跳转到 https://www.npmjs.com/search?q=poi-plugin-\r\n这样也能够有效吸引和刺激更多的人来为poi写插件\r\n毕竟对于绝大多数用户来说根本不知道npm是个什么鬼，非官方插件基本死路一条"}}