mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
123 lines
2.1 KiB
JavaScript
123 lines
2.1 KiB
JavaScript
![]() |
/**
|
||
|
* Telescope config namespace
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
Telescope.config = {};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Array containing subscriptions to be preloaded
|
||
|
* @type {Array}
|
||
|
*/
|
||
|
Telescope.config.preloadSubscriptions = [];
|
||
|
|
||
|
|
||
|
////////////////
|
||
|
// Navigation //
|
||
|
////////////////
|
||
|
|
||
|
// array containing nav items;
|
||
|
Telescope.config.primaryNav = [];
|
||
|
|
||
|
Telescope.config.secondaryNav = [
|
||
|
{
|
||
|
template: 'userMenu',
|
||
|
order: 10
|
||
|
},
|
||
|
{
|
||
|
template:'notificationsMenu',
|
||
|
order: 20
|
||
|
},
|
||
|
{
|
||
|
template: 'submitButton',
|
||
|
order: 30
|
||
|
}
|
||
|
];
|
||
|
|
||
|
Telescope.config.mobileNav = [
|
||
|
{
|
||
|
template: 'userMenu',
|
||
|
order: 10
|
||
|
},
|
||
|
{
|
||
|
template:'notificationsMenu',
|
||
|
order: 20
|
||
|
},
|
||
|
{
|
||
|
template: 'submitButton',
|
||
|
order: 30
|
||
|
}
|
||
|
];
|
||
|
|
||
|
// array containing items in the views menu
|
||
|
Telescope.config.viewsMenu = [
|
||
|
{
|
||
|
route: 'posts_top',
|
||
|
label: 'top',
|
||
|
description: 'most_popular_posts'
|
||
|
},
|
||
|
{
|
||
|
route: 'posts_new',
|
||
|
label: 'new',
|
||
|
description: 'newest_posts'
|
||
|
},
|
||
|
{
|
||
|
route: 'posts_best',
|
||
|
label: 'best',
|
||
|
description: 'highest_ranked_posts_ever'
|
||
|
},
|
||
|
{
|
||
|
route: 'posts_pending',
|
||
|
label: 'pending',
|
||
|
description: 'posts_awaiting_moderation',
|
||
|
adminOnly: true
|
||
|
},
|
||
|
{
|
||
|
route: 'posts_scheduled',
|
||
|
label: 'scheduled',
|
||
|
description: 'future_scheduled_posts',
|
||
|
adminOnly: true
|
||
|
},
|
||
|
];
|
||
|
|
||
|
// array containing items in the admin menu
|
||
|
Telescope.config.adminMenu = [
|
||
|
{
|
||
|
route: 'settings',
|
||
|
label: 'Settings',
|
||
|
description: 'telescope_settings_panel'
|
||
|
},
|
||
|
{
|
||
|
route: 'usersDashboard',
|
||
|
label: 'Users',
|
||
|
description: 'users_dashboard'
|
||
|
}
|
||
|
];
|
||
|
|
||
|
Telescope.config.userMenu = [
|
||
|
{
|
||
|
route: function () {
|
||
|
return Router.path('user_profile', {_idOrSlug: Meteor.user().slug});
|
||
|
},
|
||
|
label: 'profile',
|
||
|
description: 'view_your_profile'
|
||
|
},
|
||
|
{
|
||
|
route: function () {
|
||
|
return Router.path('user_edit', {slug: Meteor.user().slug});
|
||
|
},
|
||
|
label: 'edit_account',
|
||
|
description: 'edit_your_profile'
|
||
|
},
|
||
|
{
|
||
|
route: 'settings',
|
||
|
label: 'settings',
|
||
|
description: 'settings',
|
||
|
adminOnly: true
|
||
|
},
|
||
|
{
|
||
|
route: 'signOut',
|
||
|
label: 'sign_out',
|
||
|
description: 'sign_out'
|
||
|
}
|
||
|
];
|