Adding StudyPrefetcher

This commit is contained in:
Leonardo Campos committed 2017-03-15 15:47:27 -03:00
1 parent 3f575358f0
commit 1c509a9870
6 files changed
+338 -44

No files matched your search

@@ -166,6 +166,21 @@ export const UISettings = new SimpleSchema({
}
});
export const PrefetchSchema = new SimpleSchema({
order: {
type: String,
label: 'Prefetch Order',
allowedValues: ['topdown', 'downward', 'closest'],
optional: false
},
displaySetCount: {
type: Number,
label: 'Display Set Count',
min: 1,
defaultValue: 1
}
});
export const PublicServerConfig = new SimpleSchema({
verifyEmail: {
type: Boolean,
@@ -180,6 +195,10 @@ export const PublicServerConfig = new SimpleSchema({
ui: {
type: UISettings,
label: 'UI Settings'
},
prefetch: {
type: PrefetchSchema,
label: 'Prefetch settings'
}
});