-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
119 lines (107 loc) · 3.35 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
var site = require('apostrophe-site')({
// This line is required and allows apostrophe-site to use require() and manage our NPM modules for us.
root: module,
shortName: 'apostrophe-sandbox',
hostName: 'apostrophe-sandbox',
title: 'Apostrophe Sandbox',
sessionSecret: 'apostrophe sandbox demo party',
adminPassword: 'demo',
// If true, new tags can only be added by admins accessing
// the tag editor modal via the admin bar. Sometimes useful
// if your folksonomy has gotten completely out of hand
lockTags: false,
// Give users a chance to log in if they attempt to visit a page
// which requires login
secondChanceLogin: true,
locals: {
loginButton: true
},
lockups: {
left: {
label: 'Left',
tooltip: 'Float Small',
icon: 'icon-arrow-left',
// Only allows one type of widget
widgets: [ 'slideshow' ],
// Override the options for slideshows when they are inside the lockup to get the size right
slideshow: {
size: 'one-third'
},
video: {
size: 'one-half'
}
},
right: {
label: 'Right',
tooltip: 'Float Right',
icon: 'icon-arrow-right',
widgets: [ 'slideshow', 'video' ],
slideshow: {
size: 'one-half'
},
video: {
size: 'one-half'
}
}
},
// Here we define what page templates we have and what they will be called in the Page Types menu.
// For html templates, the 'name' property refers to the filename in ./views/pages, e.g. 'default'
// refers to '/views/pages/default.html'.
// The name property can also refer to a module, in the case of 'blog', 'map', 'events', etc.
pages: {
types: [
{ name: 'default', label: 'Default (Two Column)' },
{ name: 'onecolumn', label: 'One Column' },
{ name: 'blocks', label: 'Blocks' },
{ name: 'marquee', label: 'Marquee' },
{ name: 'home', label: 'Home Page' },
{ name: 'blog', label: 'Blog' },
{ name: 'map', label: 'Map' },
{ name: 'groups', label: 'Directory' }
]
},
// These are the modules we want to bring into the project.
workflow: true,
modules: {
// Styles required by the new editor, must go FIRST
'apostrophe-workflow': {},
'apostrophe-ui-2': {},
'apostrophe-blog-2': {},
'apostrophe-people': {
email: {
from: 'Tommy Boutell <[email protected]>'
}
},
'apostrophe-groups': {},
'apostrophe-map': {},
// The new editor
'apostrophe-editor-2': {},
'apostrophe-blocks': {
types: [
{
name: 'one',
label: 'One Column'
},
{
name: 'two',
label: 'Two Column'
}
]
},
'apostrophe-redirects': {}
},
// These are assets we want to push to the browser.
// The scripts array contains the names of JS files in /public/js,
// while stylesheets contains the names of LESS files in /public/css
assets: {
scripts: ['site'],
stylesheets: ['site']
},
// beforeEndAssets: function(callback) {
// // Apostrophe already loads these for logged-out users, but we
// // want them all the time in this project.
// site.apos.pushAsset('script', { name: 'vendor/blueimp-iframe-transport', when: 'always' });
// site.apos.pushAsset('script', { name: 'vendor/blueimp-fileupload', when: 'always' });
// return callback(null);
// }
});