hoodiehq-archive / hoodie.admin.js

⛔ deprecated
Apache License 2.0
3 stars 1 forks source link

re-implement with minimal API #3

Closed gr2m closed 10 years ago

gr2m commented 10 years ago

for Pocket rewrite, rewrite hoodieAdmin as well. Implement the following API for first version

// initialize
var hoodieAdmin = new HoodieAdmin( /* base Url */ );

// sign in to admin account (username is hardcoded to admin)
hoodieAdmin.account.signIn(password);
// sign out
hoodieAdmin.account.signOut();
// events
hoodieAdmin.on('account:signin');
hoodieAdmin.on('account:signout');

// plugins API
hoodieAdmin.plugins.findAll();
gr2m commented 10 years ago

I've prepared the skeleton here: https://github.com/gr2m/hoodie.admin.js

I hope the boring stuff is done and we can jump right into the fun stuff. Let's do it @svnlto

svnlto commented 10 years ago

Nice one! Wanna move this to a branch on hoodiehq/hoodie.admin?

gr2m commented 10 years ago

there you go: https://github.com/hoodiehq/hoodie.admin.js/tree/futurepocket

svnlto commented 10 years ago

:thumbsup: