-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommons.js
40 lines (37 loc) · 1.4 KB
/
commons.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const productsPopulateQuery = [{ path: 'uploads' }, { path: 'featured' }, { path: 'color' }, { path: 'brand' }, {
path: 'siblings',
populate: [{ path: 'featured' }]
}, { path: 'sizes.size' }, { path: 'categories' }]
const productsPopulateQueryWithoutSiblings = [{ path: 'uploads' }, { path: 'featured' }, { path: 'color' }, { path: 'brand' }, { path: 'sizes.size' }, { path: 'categories' }]
const gender = ['male', 'female', 'other']
const notificationType = ['success', 'warning', 'error', 'info']
const notificationsStatuses = ['read', 'unread']
const extensionTargets = ['dashboard', 'server']
const providers = ['google', 'facebook']
const productsStatus = ['available', 'notAvailable', 'quantityCarriedOut', 'idle']
const enableDisable = ['enable', 'disable']
const postsStatus = ['publish', 'draft']
const pagesStatus = ['publish', 'draft']
const bannersStatus = ['publish', 'draft']
const bannerLocation = ['home', 'search']
const bannerType = ['products', 'categories', 'brands', 'search']
const commentsStatus = ['publish', 'pendingReview']
const postCommentsStatus = ['open', 'close']
module.exports = {
productsPopulateQuery,
productsStatus,
enableDisable,
postsStatus,
postCommentsStatus,
commentsStatus,
pagesStatus,
bannersStatus,
bannerLocation,
bannerType,
gender,
providers,
productsPopulateQueryWithoutSiblings,
notificationsStatuses,
extensionTargets,
notificationType
}