Converted sample project into an almost working Svelte / Meteor project. Needs to fix the login/logout code, the camera code, and add Chromebook history when the QR Code is scanned.

This commit is contained in:
2022-04-02 10:29:35 -07:00
parent 9e0e231152
commit 038c68f618
34 changed files with 3997 additions and 101 deletions

View File

@@ -2,9 +2,21 @@ import { Meteor } from 'meteor/meteor';
if (Meteor.isServer) {
Meteor.methods({
'users.login'() {
console.log("Login Called.");
}
});
}
Meteor.publish(null, function() {
if(this.userId) {
return Meteor.roleAssignment.find({'user._id': this.userId});
}
else {
this.ready();
}
})
// Meteor.methods({
// 'users.setupInitialRoles'() {
// Roles.createRole('admin');
// Roles.createRole('laptop-management');
// Roles.addRolesToParent('laptop-management', 'admin');
// Roles.addUsersToRoles("zwbMiaSKHix4bWQ8d", 'admin', 'global');
// }
// });
}