mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating the materialize library and calls.
This commit is contained in:
parent
a118bf38fc
commit
e44ef98be4
17 changed files with 10582 additions and 15529 deletions
|
|
@ -11,7 +11,7 @@ Meteor.methods({
|
|||
console.log("User id for role: " + Meteor.userId() );
|
||||
let userId = Meteor.userId();
|
||||
Roles.addUsersToRoles(userId, role);
|
||||
Meteor.call('add.darkPref', false, function(err, result) {
|
||||
Meteor.call('add.darkModePref', "light", function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR: can't set user dark mode preference: " + err);
|
||||
} else {
|
||||
|
|
@ -22,7 +22,7 @@ Meteor.methods({
|
|||
console.log("Creating first system admin user: " + Meteor.userId() );
|
||||
let userId = Meteor.userId();
|
||||
Roles.addUsersToRoles(userId, "systemadmin");
|
||||
Meteor.call('add.darkPref', false, function(err, result) {
|
||||
Meteor.call('add.darkModePref', "light", function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR: can't set user dark mode preference: " + err);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { Menus } from '../imports/api/menu.js';
|
|||
import { MenuItems } from '../imports/api/menuItems.js';
|
||||
import moment from 'moment';
|
||||
import { TaskItems } from '../imports/api/tasks.js';
|
||||
import { UserConfig } from '../imports/api/userConfig.js';
|
||||
|
||||
Meteor.publish("SystemConfig", function() {
|
||||
try {
|
||||
|
|
@ -17,6 +18,14 @@ Meteor.publish("SystemConfig", function() {
|
|||
}
|
||||
});
|
||||
|
||||
Meteor.publish("UserConfigPrefs", function() {
|
||||
try {
|
||||
return UserConfig.find({});
|
||||
} catch (error) {
|
||||
console.log(" ERROR: Error accessing user config: " + error);
|
||||
}
|
||||
});
|
||||
|
||||
Meteor.publish('userList', function() {
|
||||
return Meteor.users.find({});
|
||||
});
|
||||
|
|
@ -37,6 +46,14 @@ Meteor.publish("myProducts", function() {
|
|||
}
|
||||
});
|
||||
|
||||
Meteor.publish("limProducts", function(findItemVal) {
|
||||
try {
|
||||
return Products.find({ prodName: {$regex: findItemVal + '.*', $options: 'i' }});
|
||||
} catch (error) {
|
||||
cconsole.log(" ERROR pulling limited product data: " + error);
|
||||
}
|
||||
})
|
||||
|
||||
Meteor.publish("myLists", function() {
|
||||
try {
|
||||
return Lists.find( { $or: [ { listOwner: this.userId, listComplete: false }, { listShared: true, listComplete: false } ] } );
|
||||
|
|
@ -47,7 +64,6 @@ Meteor.publish("myLists", function() {
|
|||
|
||||
Meteor.publish("myListItems", function(listId) {
|
||||
try {
|
||||
// console.log("List Id is: " + listId);
|
||||
return ListItems.find({ listId: listId });
|
||||
} catch (error) {
|
||||
console.log(" ERROR pulling list items for this list: " + error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue