FlandreDaisuki / Patchouli

An image searching and browsing tool on pixiv
MIT License
80 stars 6 forks source link

Support click again to unbookmark & Add postAddBookmark,postDeleteBoo… #25

Closed maple3142 closed 6 years ago

maple3142 commented 6 years ago

加入了一鍵新增/取消收藏的功能(API 和 ui 都有)

DefaultImageItemImage 中的 bookmarkId 好像不一定會存在的樣子,所以只好在不存在時再去抓一次 id

還有我想問你編輯 vue 的設定是什麼,我在自動 format 時排版都會亂掉,然後噴 eslint 就報 error 了 😢 eslint 的設定也可能有些部分沒有 cover 到,像是在 utils.js 中最下面的 export,formatter 會自動把它變成一行

FlandreDaisuki commented 6 years ago

我猜八成你有用別的 formatter extensions (prettier 之類的) 我的 .gitignore 只有忽略 node_modules 而已,該丟上去的都丟上去了

FlandreDaisuki commented 6 years ago

@maple3142 4.1.x 有我稍微改一點命名跟更新 eslint rule, dependencies 的版本,你試試看其他東西有沒有壞掉跟你的功能是不是 work

maple3142 commented 6 years ago

測試了一下,linter 部分正常了 還有 string 到底是用 ' 還是 ",我看到在 .js 中都用 '.vue 中都是 "?

FlandreDaisuki commented 6 years ago

這個我有發現,但我是直接交給 linter 幫我 fixOnSave,所以就變這樣了 還是你有辦法設定 .vue 也用 ' (只套用 js 部份,html 保持 ")?

maple3142 commented 6 years ago

我是直接用 eslint 把 " 弄成 error,而 vue 的 linter 雖然不會 "->',但也不會把 '->"

FlandreDaisuki commented 6 years ago

我好像找到了,已改。晚點 release v4.1.10