adding Slides collection
This commit is contained in:
parent
7aef935771
commit
168eb4e715
@ -2,3 +2,4 @@ Meteor.Users = new Meteor.Collection("bbb_users")
|
|||||||
Meteor.Chat = new Meteor.Collection("bbb_chat")
|
Meteor.Chat = new Meteor.Collection("bbb_chat")
|
||||||
Meteor.Meetings = new Meteor.Collection("meetings")
|
Meteor.Meetings = new Meteor.Collection("meetings")
|
||||||
Meteor.Shapes = new Meteor.Collection("shapes")
|
Meteor.Shapes = new Meteor.Collection("shapes")
|
||||||
|
Meteor.Slides = new Meteor.Collection("slides")
|
||||||
|
0
labs/meteor-client/collections/slides.coffee
Normal file
0
labs/meteor-client/collections/slides.coffee
Normal file
@ -8,6 +8,7 @@ Router.map ->
|
|||||||
Meteor.subscribe 'users', Session.get('meetingId')
|
Meteor.subscribe 'users', Session.get('meetingId')
|
||||||
Meteor.subscribe 'chat', Session.get('meetingId')
|
Meteor.subscribe 'chat', Session.get('meetingId')
|
||||||
Meteor.subscribe 'shapes', Session.get('meetingId')
|
Meteor.subscribe 'shapes', Session.get('meetingId')
|
||||||
|
Meteor.subscribe 'slides', Session.get('meetingId')
|
||||||
@
|
@
|
||||||
|
|
||||||
onBeforeAction: ()->
|
onBeforeAction: ()->
|
||||||
|
@ -8,3 +8,8 @@ Meteor.publish 'chat', (meetingId) ->
|
|||||||
|
|
||||||
Meteor.publish 'shapes', (meetingId) ->
|
Meteor.publish 'shapes', (meetingId) ->
|
||||||
Meteor.Shapes.find({meetingId: meetingId})
|
Meteor.Shapes.find({meetingId: meetingId})
|
||||||
|
|
||||||
|
Meteor.publish 'slides', (meetingId) ->
|
||||||
|
Meteor.Slides.find({meetingId: meetingId})
|
||||||
|
|
||||||
|
# should we be publishing Meteor.Meetings? for now we are not
|
||||||
|
@ -24,6 +24,8 @@ Meteor.startup ->
|
|||||||
console.log "cleared Meetings Collection!"
|
console.log "cleared Meetings Collection!"
|
||||||
Meteor.Shapes.remove({})
|
Meteor.Shapes.remove({})
|
||||||
console.log "cleared Shapes Collection!"
|
console.log "cleared Shapes Collection!"
|
||||||
|
Meteor.Slides.remove({})
|
||||||
|
console.log "cleared Slides Collection!"
|
||||||
|
|
||||||
|
|
||||||
# create create a PubSub connection, start listening
|
# create create a PubSub connection, start listening
|
||||||
|
Loading…
Reference in New Issue
Block a user