Open agentlame opened 9 years ago
I am going to see if I can this give a place in the reddit redesign project. In fact, this is probably one of the few things I can already tackle in advance.
This probably needs smart migration where all the current api calls can still be called from TBUtils but are forwarded to TBApi
libs/redditapi.js
to the current state of TBUtilsOn second thought, that is a overambitious. Though it is a good idea to clean up TBUtils for the redesign doing a structural overhaul probably should be done on a stable toolbox.
See libs/redditapi.js for initial concept. The API lib should not depend on TB/TButils at all. It should be completely self-contained and reusable in any JS project/extension.
At some point we may even want to split it into another repo entirely, so it can be developed independently of toolbox, supporting calls and features that aren't needed in TB. (IE: PRAW/AutoModerator)