Created
October 28, 2019 03:46
-
-
Save stacietaylorcima/ce9177f481a78781e6881333cd70a21f to your computer and use it in GitHub Desktop.
This is the state when an app is selected
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
{ | |
hello: 'world', | |
loggedIn: true, | |
apiKey: 'sdfnadslkfjsadklfjfakeerfakerbellyacher234', | |
fetchingApps: false, | |
apps: [ | |
{ | |
notes: 'fdsfdsafsdfdsffdsfdfd', | |
userData: [], | |
appData: 'const test = "test"\n\nreturn {\n test\n}', | |
name: 'blah', | |
created: '2019-04-23T20:13:36.048Z', | |
updated: '2019-06-15T20:31:24.723Z' | |
} | |
], | |
selectedApp: { | |
notes: '', | |
userData: [], | |
appData: '', | |
name: 'failchimp', | |
created: '2019-04-05T20:15:25.950Z', | |
updated: '2019-04-05T20:15:25.950Z', | |
endpoints: [ | |
{ | |
handler: 'if(req.body.email.indexOf("@") === -1 || req.body.email.indexOf(".") === -1){\n return res.status(400).json({err:`invalid email address: ${req.body.email}`})\n}\n\nif(req.body.email.indexOf("gnail") !== -1){\n return res.status(400).json({err:`invalid email address: ${req.body.email}`})\n}\n\nif(req.body.email.indexOf("hotnail") !== -1){\n return res.status(400).json({err:`invalid email address: ${req.body.email}`})\n}\n\nif(req.body.email.indexOf("yoohoo") !== -1){\n return res.status(400).json({err:`invalid email address: ${req.body.email}`})\n}\n\nreturn res.status(200).json({id:"fdjklfjdlksjfdklsf", email: req.body.email, name:req.body.name})', | |
active: true, | |
_id: '5ca7bc376914580004a2ad8e', | |
name: 'addsubscriber', | |
app: '5ca7b75d6914580004a2ad84', | |
method: 'POST', | |
created: '2019-04-05T20:36:07.234Z', | |
updated: '2019-06-19T14:21:40.043Z', | |
__v: 0, | |
notes: 'Takes a name, and email address. Validates email address. Does it include an @ sign? Also reject misspellings of major domains - e.g, gnail, hitmail, etc.' | |
} | |
] | |
}, | |
selectedEndpoint: null, | |
currentError: '', | |
userEmail: '[email protected]', | |
userRole: 'admin', | |
fetching: false, | |
selectedSamples: [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment