Skip to content

Instantly share code, notes, and snippets.

@thinksource
Created January 21, 2016 00:43
Show Gist options
  • Save thinksource/038e208c94892f826f0f to your computer and use it in GitHub Desktop.
Save thinksource/038e208c94892f826f0f to your computer and use it in GitHub Desktop.
config.js
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