Created
January 21, 2016 00:43
-
-
Save thinksource/038e208c94892f826f0f to your computer and use it in GitHub Desktop.
config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdminConfig = { | |
name: 'My App', | |
adminEmails: ['ben@code2create.com'], | |
collections: { | |
Posts: { | |
icon: 'post', | |
omitFields:['updateAt'], | |
tableColumns:[ | |
{label:'Content', name:'content'}, | |
{label:'Post', name:'postTitle()'}, | |
{label:'user', name:'owner', template:'userEmail'} | |
], | |
showEditColumn:true, | |
showDelcolumn:true, | |
showWidget:false, | |
color:'red', | |
routes:{ | |
new: { | |
waitOn: function () | |
{ | |
//return Meteor.subscribe('images'); | |
} | |
}, | |
view: { | |
waitOn: function () | |
{ | |
//return Meteor.subscribe('images'); | |
} | |
}, | |
edit: { | |
waitOn: function () | |
{ | |
//return Meteor.subscribe('images'); | |
} | |
} | |
} | |
}, | |
userSchema: new SimpleSchema({ | |
'profile.gender':{ | |
type: String, | |
allowedValues:['male','female'] | |
} | |
}) | |
}, | |
dashboard: { | |
homeUrl: '/dashboard', | |
skin: 'black', | |
widgets: [ | |
{ | |
template: 'adminCollectionWidget', | |
data: { | |
collection: 'Posts', | |
class: 'col-lg-3 col-xs-6' | |
} | |
}, | |
{ | |
template: 'adminUserWidget', | |
data: { | |
class: 'col-lg-3 col-xs-6' | |
} | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment