Vulcan/collections/settings.js

161 lines
3.1 KiB
JavaScript
Raw Normal View History

2014-05-01 19:34:24 -07:00
// Settings = new Meteor.Collection('settings');
Settings = new Meteor.Collection("settings", {
2014-06-22 10:58:02 +09:00
schema: new SimpleSchema({
title: {
type: String,
label: "Title",
optional: true
},
2014-07-03 17:22:36 +09:00
siteUrl: {
type: String,
optional: true
},
2014-06-22 10:58:02 +09:00
tagline: {
type: String,
label: "Tagline",
optional: true
},
requireViewInvite: {
type: Boolean,
label: "Require invite to view",
optional: true
},
requirePostInvite: {
type: Boolean,
label: "Require invite to post",
optional: true
},
requirePostsApproval: {
type: Boolean,
label: "Posts must be approved by admin",
optional: true
},
emailNotifications: {
type: Boolean,
label: "Enable email notifications",
optional: true
},
nestedComments: {
type: Boolean,
label: "Enable nested comments",
optional: true
},
redistributeKarma: {
type: Boolean,
label: "Enable redistributed karma",
optional: true
},
defaultEmail: {
type: String,
optional: true
},
scoreUpdateInterval: {
type: Number,
optional: true
},
postInterval: {
type: Number,
optional: true
},
commentInterval: {
type: Number,
optional: true
},
maxPostsPerDay: {
type: Number,
optional: true
},
startInvitesCount: {
type: Number,
defaultValue: 3,
optional: true
},
postsPerPage: {
type: Number,
defaultValue: 10,
optional: true
},
logoUrl: {
type: String,
optional: true
},
logoHeight: {
type: Number,
optional: true
},
logoWidth: {
type: Number,
optional: true
},
language: {
type: String,
defaultValue: 'en',
optional: true
},
backgroundColor: {
type: String,
optional: true
},
secondaryColor: {
type: String,
optional: true
},
buttonColor: {
type: String,
optional: true
},
headerColor: {
type: String,
optional: true
},
2014-07-03 10:09:22 +09:00
twitterAccount: {
type: String,
optional: true
},
2014-06-22 10:58:02 +09:00
googleAnalyticsId: {
type: String,
optional: true
},
mixpanelId: {
type: String,
optional: true
},
clickyId: {
type: String,
optional: true
},
embedlyId: {
type: String,
optional: true
},
mailChimpAPIKey: {
type: String,
optional: true
},
mailChimpListId: {
type: String,
optional: true
},
footerCode: {
type: String,
optional: true
},
extraCode: {
type: String,
optional: true
},
notes: {
type: String,
optional: true
},
})
2014-05-01 19:34:24 -07:00
});
2013-07-04 12:51:26 +09:00
Settings.allow({
2014-06-22 10:58:02 +09:00
insert: isAdminById,
update: isAdminById,
remove: isAdminById
2013-07-04 12:51:26 +09:00
});