-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
80 lines (69 loc) · 3.05 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
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var GroupPages = new Module('groupPages');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
GroupPages.register(function(app, auth, database, upload, users) {
//We enable routing. By default the Package Object is passed to the routes
GroupPages.routes(app, auth, database);
//We are adding a link to the main menu for all authenticated users
GroupPages.menus.add({
'roles': ['authenticated'],
'title': 'Admin',
'link': 'all groupPages'
});
/* GroupPages.menus.add({
'roles': ['authenticated'],
'title': 'Create New Group Page',
'link': 'create groupPage'
}); */
//GroupPages.aggregateAsset('js','/packages/system/public/services/menus.js', {group:'footer', absolute:true, weight:-9999});
GroupPages.aggregateAsset('js', '../js/blueimp-gallery.min.js', {group: 'footer', weight: -1});
GroupPages.aggregateAsset('js', '../js/bootstrap-image-gallery.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/googlemaps.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/angulargm.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/lodash.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/froala_editor.min.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/angular-froala.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('js', '../js/froala-sanitize.js', {group: 'footer', weight: 5});
// Probably put this into a factory?"
GroupPages.aggregateAsset('js', '../js/client.js', {group: 'footer', weight: 5 });
GroupPages.aggregateAsset('js', '../js/bootstrap-image-gallery.js', {group: 'footer', weight: 5});
GroupPages.aggregateAsset('css', '../css/blueimp-gallery.min.css', {
absolute: false
});
GroupPages.aggregateAsset('css', '../css/bootstrap-image-gallery.css', {
absolute: false
});
GroupPages.aggregateAsset('css', '../css/font-awesome.min.css', {
absolute: false
});
GroupPages.aggregateAsset('css', '../css/froala_editor.min.css', {
absolute: false
});
GroupPages.aggregateAsset('css', '../css/froala_style.min.css', {
absolute: false
});
/*
//Uncomment to use. Requires [email protected] or above
// Save settings with callback
// Use this for saving data from administration pages
GroupPages.settings({'someSetting':'some value'},function (err, settings) {
//you now have the settings object
});
// Another save settings example this time with no callback
// This writes over the last settings.
GroupPages.settings({'anotherSettings':'some value'});
// Get settings. Retrieves latest saved settings
GroupPages.settings(function (err, settings) {
//you now have the settings object
});
*/
GroupPages.aggregateAsset('css', 'groupPages.css');
return GroupPages;
});