This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filepicker.pickAndStore( | |
{ | |
multiple: false, | |
maxFiles: 1, | |
services: ['COMPUTER', 'GOOGLE_DRIVE', 'DROPBOX'] | |
},{ | |
access:"private" | |
}, | |
function(InkBlobs){ | |
var fileTotal = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accounts.onCreateUser(function(options, user) { | |
//misc stuff | |
if(options.profile.invite){ | |
Invites.remove({_id: options.profile.invite}); | |
} | |
//this is what i need to be doing? | |
user.isNew = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.methods({ | |
payInvoice: function (token, transfer) { | |
// TODO: add checks | |
console.log('=== Pay Invoive ==='); | |
console.log(token); | |
console.log(JSON.stringify(transfer, null, 2)); | |
console.log('==================='); | |
var Stripe = StripeAPI(transfer.invoice.stripe.accessToken); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isPasswordValid(input) { | |
if (!hasUppercase(input)) { | |
console.log('Password needs a capital letter'); | |
} | |
if (!hasLowercase(input)) { | |
console.log('Password needs a lowercase letter'); | |
} | |
if (!isLongEnough(input)) { | |
console.log('Password needs to be longer'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isProduction) { | |
// public settings that need to be exposed to the client can be added here | |
const publicEnvs = { | |
// Your client settings go here | |
}; | |
Meteor.settings.public = publicEnvs; | |
__meteor_runtime_config__.PUBLIC_SETTINGS = Meteor.settings.public; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.NewDesign { | |
background-color: #f6f6f7; | |
} | |
.NewDesign button.Polaris-Button--primary { | |
background: #008060; | |
border-color: #008060; | |
} | |
.NewDesign button[role="gridcell"][aria-selected="true"] { |