-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
102 lines (92 loc) · 2.68 KB
/
app.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
var path = require('path');
var apos = require('apostrophe')({
shortName: 'test-project',
// See lib/modules for basic project-level configuration of our modules
// responsible for serving static assets, managing page templates and
// configuring user acounts.
modules: {
// This one is for children of link pages
'apostrophe-pages': {},
'apostrophe-express' : {
csrf : {
exceptions : ['/my-post-route']
}
},
'apostrophe-workflow' :{
alias : 'workflow'
},
'apostrophe-admin-bar' :{
addGroups : [{
label : 'Admin',
items :['apostrophe-users' , 'apostrophe-groups']
},{
label : 'Attachments',
items : ['apostrophe-images' , 'apostrophe-files']
},{
label : 'Pieces',
items : ['contact-form','people']
}]
},
'contact-form' : {},
'contact-form-widgets' : {},
'link-widgets' : {},
'page-link-widgets' : {},
'drawer-widgets' : {},
'two-column-widgets' : {},
// Begin Pieces of people
'people' : {},
'people-widgets' : {
extend : 'apostrophe-pieces-widgets',
filters : {
projection : {
slug : 1,
title : 1,
type : 1,
tags : 1,
phone : 1,
thumbnail : 1
}
}
},
'people-pages' : {
extend : 'apostrophe-pieces-pages',
piecesFilters : [
{
name : 'tags',
},
{
name : 'title'
}
]
},
'default-pages' :{
extend : 'apostrophe-custom-pages',
name : 'default',
addFields : [
{
name : 'vendor',
type : 'string',
label : 'Vendor'
}
]
},
// End Pieces of people
settings: {
// So we can write `apos.settings` in a template
alias: 'settings',
// Let's pass in a Google Analytics id, just as an example
analyticsId: 'UA-XYZPDQ'
},
'apostrophe-users' : {},
// load my own-theme-module
'my-theme' : {},
// Apostrophe module configuration
// Note: most configuration occurs in the respective
// modules' directories. See lib/apostrophe-assets/index.js for an example.
// However any modules that are not present by default in Apostrophe must at
// least have a minimal configuration here: `moduleName: {}`
// If a template is not found somewhere else, serve it from the top-level
// `views/` folder of the project
'apostrophe-templates': { viewsFolderFallback: path.join(__dirname, 'views') }
}
});