This file contains hidden or 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
/* eslint-disable react/prop-types */ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import classNames from 'classnames'; | |
import Select from 'react-select'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import Typography from '@material-ui/core/Typography'; | |
import NoSsr from '@material-ui/core/NoSsr'; | |
import TextField from '@material-ui/core/TextField'; |
This file contains hidden or 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 getSwaggerDefinitions = function(){ | |
let schemaPassword = require('../schemas/changePasswordRequest.json'); | |
let schemaUser = require('../schemas/createUserRequest.json'); | |
let schemaLogin = require('../schemas/loginUserRequest.json'); | |
let schemaProfile = require('../schemas/profilePutSchema.json'); | |
let schemas={password:schemaPassword, user:schemaUser, login: schemaLogin, profile: schemaProfile}; | |
//let schemas={profile: schemaProfile}; | |
let reply={}; | |
for (var key in schemas) { | |
let upperLevel = schemas[key].properties; |
This file contains hidden or 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
module.exports.restoreUUID = function(id){ | |
if (id.length != 32) return id; | |
let template = "8-4-4-4-12";//using string to provide guid template | |
let offset = 0; | |
return template | |
.split("-") | |
.map(length => { | |
let part = id.substr(offset,length); | |
offset += parseInt(length); | |
return part; |
This file contains hidden or 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
// provided by in @Spaider (https://github.com/Spaider) | |
// in https://github.com/serverless/serverless/issues/1439#issuecomment-273482220 | |
'use strict' | |
class VerboseDeploy { | |
constructor(serverless, options) { | |
this.serverless = serverless | |
this.options = options |