Vulcan/packages/nova-posts/lib/config.js

44 lines
647 B
JavaScript
Raw Normal View History

2016-02-17 12:54:18 +09:00
/**
* The global namespace/collection for Posts.
* @namespace Posts
*/
Posts = new Mongo.Collection("posts");
/**
* Posts config namespace
* @type {Object}
*/
Posts.config = {};
/**
* Post Statuses
*/
Posts.config.postStatuses = [
{
value: 1,
2016-02-18 16:26:52 +09:00
label: __('pending')
},
{
value: 2,
2016-02-18 16:26:52 +09:00
label: __('approved')
},
{
value: 3,
2016-02-18 16:26:52 +09:00
label: __('rejected')
2015-11-18 15:03:17 +09:00
},
{
value: 4,
2016-02-18 16:26:52 +09:00
label: __('spam')
2015-11-18 15:03:17 +09:00
},
{
value: 5,
2016-02-18 16:26:52 +09:00
label: __('deleted')
}
];
Posts.config.STATUS_PENDING = 1;
Posts.config.STATUS_APPROVED = 2;
2015-11-18 15:03:17 +09:00
Posts.config.STATUS_REJECTED = 3;
Posts.config.STATUS_SPAM = 4;
Posts.config.STATUS_DELETED = 5;