#57: Added optiona SSL verification if no URL is specified when creating app

This commit is contained in:
frikky
2020-06-13 15:51:18 +02:00
parent 927ca5504d
commit 18824daecc
6 changed files with 228 additions and 31 deletions
-1
View File
@@ -1401,7 +1401,6 @@ const AngularWorkflow = (props) => {
display: "flex",
}
const paperVariableStyle = {
minHeight: "50px",
maxHeight: "50px",
+10 -10
View File
@@ -67,7 +67,7 @@ const useStyles = makeStyles({
const rewrite = (args) => {
return args.reduce(function(args, a){
if (0 == a.indexOf('-X')) {
if (0 === a.indexOf('-X')) {
args.push('-X')
args.push(a.slice(2))
} else {
@@ -105,35 +105,35 @@ const parseCurl = (s) => {
out.url = arg
break;
case arg == '-A' || arg == '--user-agent':
case arg === '-A' || arg === '--user-agent':
state = 'user-agent'
break;
case arg == '-H' || arg == '--header':
case arg === '-H' || arg === '--header':
state = 'header'
break;
case arg == '-d' || arg == '--data' || arg == '--data-ascii':
case arg === '-d' || arg === '--data' || arg === '--data-ascii':
state = 'data'
break;
case arg == '-u' || arg == '--user':
case arg === '-u' || arg === '--user':
state = 'user'
break;
case arg == '-I' || arg == '--head':
case arg === '-I' || arg === '--head':
out.method = 'HEAD'
break;
case arg == '-X' || arg == '--request':
case arg === '-X' || arg === '--request':
state = 'method'
break;
case arg == '-b' || arg =='--cookie':
case arg === '-b' || arg === '--cookie':
state = 'cookie'
break;
case arg == '--compressed':
case arg === '--compressed':
out.header['Accept-Encoding'] = out.header['Accept-Encoding'] || 'deflate, gzip'
break;
@@ -149,7 +149,7 @@ const parseCurl = (s) => {
state = ''
break;
case 'data':
if (out.method == 'GET' || out.method == 'HEAD') out.method = 'POST'
if (out.method === 'GET' || out.method === 'HEAD') out.method = 'POST'
out.header['Content-Type'] = out.header['Content-Type'] || 'application/x-www-form-urlencoded'
out.body = out.body
? out.body + '&' + arg
+4 -4
View File
@@ -512,9 +512,9 @@ const Apps = (props) => {
}
const appView = isLoggedIn ?
<div style={{maxWidth: 1366, margin: "auto",}}>
<div style={{maxWidth: window.innerWidth > 1366 ? 1366 : 1200, margin: "auto",}}>
<div style={appViewStyle}>
<div>
<div style={{flex: 1}}>
<Breadcrumbs aria-label="breadcrumb" separator="" style={{color: "white",}}>
<Link to="/apps" style={{textDecoration: "none", color: "inherit",}}>
<h2 style={{color: "rgba(255,255,255,0.5)"}}>
@@ -532,10 +532,10 @@ const Apps = (props) => {
</Breadcrumbs>
<UploadView/>
</div>
<Divider style={{marginBottom: "10px", marginTop: "10px", height: "100%", width: "1px", backgroundColor: dividerColor}}/>
<Divider style={{marginBottom: 10, marginTop: 10, height: "100%", width: 1, backgroundColor: dividerColor}}/>
<div style={{flex: 1, marginLeft: 10, marginRight: 10}}>
<div style={{display: "flex"}}>
<div style={{flex: 10}}>
<div style={{flex: 1}}>
<h2>Available integrations</h2>
</div>
{isLoading ? <CircularProgress style={{marginTop: 13, marginRight: 15}} /> : null}