mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
cleaning up
This commit is contained in:
parent
ddb65f8ec5
commit
6862c01c65
2 changed files with 15 additions and 21 deletions
|
@ -44,6 +44,7 @@ Sign In
|
||||||
6) Misc Routes
|
6) Misc Routes
|
||||||
--------------------
|
--------------------
|
||||||
Settings
|
Settings
|
||||||
|
Categories
|
||||||
Toolbox
|
Toolbox
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,14 +87,24 @@ Router.map(function() {
|
||||||
|
|
||||||
// Top
|
// Top
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
// New
|
// New
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
// Best
|
// Best
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
// Pending
|
// Pending
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
// Digest
|
// Digest
|
||||||
|
|
||||||
this.route('posts_digest', {
|
this.route('posts_digest', {
|
||||||
|
@ -295,6 +306,10 @@ Router.map(function() {
|
||||||
|
|
||||||
this.route('signin');
|
this.route('signin');
|
||||||
|
|
||||||
|
// Categories
|
||||||
|
|
||||||
|
this.route('categories');
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
|
|
||||||
this.route('settings');
|
this.route('settings');
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
Session.set('initialLoad', true);
|
Session.set('initialLoad', true);
|
||||||
Session.set('currentDate', new Date());
|
Session.set('currentDate', new Date());
|
||||||
Session.set('categorySlug', null);
|
Session.set('categorySlug', null);
|
||||||
Session.set('singlePostReady', false);
|
|
||||||
|
|
||||||
// Subscriptions
|
// Subscriptions
|
||||||
|
|
||||||
|
@ -31,26 +30,6 @@ if(Meteor.userId() != null){
|
||||||
Meteor.subscribe('notifications');
|
Meteor.subscribe('notifications');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Posts
|
|
||||||
// We have a few subscriptions here, for the various ways we load posts
|
|
||||||
//
|
|
||||||
// The advantage is that
|
|
||||||
// a) we can change pages a lot quicker
|
|
||||||
// XXX: and we can animate between them (todo)
|
|
||||||
// b) we know when an individual page is ready
|
|
||||||
|
|
||||||
// Single Post
|
|
||||||
// Meteor.autorun(function() {
|
|
||||||
// Meteor.subscribe('singlePost', Session.get('selectedPostId'), function(){
|
|
||||||
// Session.set('singlePostReady', true);
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Digest
|
|
||||||
// Meteor.autorun(function() {
|
|
||||||
// digestHandle = Meteor.subscribe('postDigest', Session.get('currentDate'));
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Posts Lists
|
// Posts Lists
|
||||||
STATUS_PENDING=1;
|
STATUS_PENDING=1;
|
||||||
STATUS_APPROVED=2;
|
STATUS_APPROVED=2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue