Cobbled together some semblance of an item library UI

This commit is contained in:
Stefan Zermatten
2018-10-02 15:43:10 +02:00
parent f4d3368fb4
commit f5a32cb50a
19 changed files with 775 additions and 27 deletions

View File

@@ -23,3 +23,18 @@ Meteor.publish("standardLibrarySpells", function(level){
sort: {name: 1},
});
});
Meteor.publish("customLibraries", function(){
userId = this.userId;
return Libraries.find({
$or: [
{readers: userId},
{writers: userId},
{owner: userId},
],
});
});
Meteor.publish("libraryItems", function(libraryId){
return LibraryItems.find({library: libraryId});
});

View File

@@ -4,5 +4,6 @@ Meteor.publish("user", function(){
username: 1,
profile: 1,
apiKey: 1,
librarySubscriptions: 1,
}});
});