2014-02-05 12:40:30 +04:00
|
|
|
var _ = require('lodash'),
|
2013-11-29 20:26:56 +04:00
|
|
|
api = require('../api'),
|
2013-11-28 06:45:01 +04:00
|
|
|
helpers = require('../helpers'),
|
|
|
|
filters = require('../filters');
|
2013-11-15 06:17:33 +04:00
|
|
|
|
2013-11-29 20:26:56 +04:00
|
|
|
var proxy = {
|
2013-11-15 06:17:33 +04:00
|
|
|
|
2013-11-29 20:26:56 +04:00
|
|
|
filters: {
|
2014-02-10 03:17:28 +04:00
|
|
|
register: filters.registerFilter.bind(filters),
|
2014-02-10 16:44:07 +04:00
|
|
|
deregister: filters.deregisterFilter.bind(filters)
|
2013-11-29 20:26:56 +04:00
|
|
|
},
|
|
|
|
helpers: {
|
2014-02-10 03:17:28 +04:00
|
|
|
register: helpers.registerThemeHelper.bind(helpers),
|
|
|
|
registerAsync: helpers.registerAsyncThemeHelper.bind(helpers)
|
2013-11-29 20:26:56 +04:00
|
|
|
},
|
|
|
|
api: {
|
|
|
|
posts: _.pick(api.posts, 'browse', 'read'),
|
2014-02-26 21:51:01 +04:00
|
|
|
tags: _.pick(api.tags, 'browse'),
|
2013-11-29 20:26:56 +04:00
|
|
|
notifications: _.pick(api.notifications, 'add'),
|
|
|
|
settings: _.pick(api.settings, 'read')
|
|
|
|
}
|
|
|
|
};
|
2013-11-15 06:17:33 +04:00
|
|
|
|
2014-02-10 03:17:28 +04:00
|
|
|
module.exports = proxy;
|