mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
37 lines
No EOL
872 B
JavaScript
37 lines
No EOL
872 B
JavaScript
Telescope.SEO = new FlowRouterSEO();
|
|
|
|
// Session variables
|
|
Session.set('appIsReady', false);
|
|
|
|
Meteor.startup(function () {
|
|
$('#rss-link').attr('title', i18n.t('new_posts'));
|
|
});
|
|
|
|
// Global Subscriptions
|
|
|
|
Telescope.subsManager = new SubsManager({
|
|
// cache recent 50 subscriptions
|
|
cacheLimit: 50,
|
|
// expire any subscription after 30 minutes
|
|
expireIn: 30
|
|
});
|
|
|
|
Telescope.subscriptions.preload('settings');
|
|
Telescope.subscriptions.preload('currentUser');
|
|
|
|
FlowRouter.subscriptions = function() {
|
|
var flow = this;
|
|
Telescope.subscriptions.forEach(function (sub) {
|
|
if (typeof sub === 'object'){
|
|
flow.register(sub.subName, Meteor.subscribe(sub.subName, sub.subArguments));
|
|
}else{
|
|
flow.register(sub, Meteor.subscribe(sub));
|
|
}
|
|
});
|
|
};
|
|
|
|
FlowRouter.notFound = {
|
|
action: function() {
|
|
BlazeLayout.render("layout", {main: "not_found"});
|
|
}
|
|
}; |