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
// this route proxies static site requests to Review Page Builder | |
// Requests are secured by Sheet membership to this route. | |
// TODO: Maintain Google Drive API file permission cache | |
app.use( | |
'/dps/review/:ssid/:sid', | |
[authUser.redirectForAccess, authSsm.hasViewAccess], | |
(req, res, next) => { | |
// using the session ensures that the session cookie is included on every request | |
// otherwise, RPB will send its own session cookie on subsequent requests, which won't be authorized. | |
if (req.session.view) { |
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
/** | |
* | |
* | |
* Proxy Data Export | |
*/ | |
const assignObjToScopeByParams = (obj, scopes, matchParamsByScopes, depth) => { | |
// create clean nested-scope objects for parameters that are objects | |
const prepareNestScopes = () => { | |
return scopes.map(() => { | |
return {} |
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
version: '2' | |
services: | |
sizzle-mongo: | |
container_name: sizzle-mongo | |
image: mongo | |
volumes: | |
- sizzle-volume:/data/db | |
ports: | |
- '27017:27017' |
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
let cmd = '' | |
// windows | |
if (process.platform === 'win32') { | |
cmd += `cd "${global.servePath}" && npm install ` | |
} | |
// mac & other platforms | |
else { | |
cmd = `cd ${unixPathLiteral(global.servePath)} && npm install ` | |
} |
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
self.prepareMonet = function() { | |
trace( id + '.prepareMonet()' ); | |
async.wait(); | |
// monetData will exist if data was loaded but had missing/unexpected data | |
if( typeof monetData == 'undefined' ) | |
self.loadMonet(); | |
else self.loadMonetBackup(); | |
} |
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
metamask.setupTrustedCommunication( | |
new ConnectionStream(), | |
'metamask-controller' | |
) | |
// | |
// | |
// | |
setupTrustedCommunication (connectionStream, originDomain) { |
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
0xf0ECf102C09cE54b9ae31BcE01EBf63b999A811e |
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
0x11A9F9354b3B301A778AF60c4EcbC5C4D7490b8D |
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
0x9dEbAc63ADb27Cd2eB0A01042760bF233924C5fa |
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
0xCB2355213dEf96207e202606aE5fda6b33a62977 |
NewerOlder