Added proxy options
This commit is contained in:
@@ -62,7 +62,7 @@ const Docs = (props) => {
|
||||
if (parent !== null) {
|
||||
var elements = parent.getElementsByTagName('h2')
|
||||
|
||||
const name = window.location.hash.slice(1, window.location.hash.lenth).toLowerCase().split("%20").join(" ").split("_").join(" ")
|
||||
const name = window.location.hash.slice(1, window.location.hash.lenth).toLowerCase().split("%20").join(" ").split("_").join(" ").split("-").join(" ")
|
||||
|
||||
console.log(name)
|
||||
var found = false
|
||||
@@ -214,7 +214,7 @@ const Docs = (props) => {
|
||||
<ul style={{listStyle: "none", paddingLeft: "0"}}>
|
||||
{list.map(item => {
|
||||
const path = "/docs/"+item
|
||||
const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ")
|
||||
const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ").split("-").join(" ")
|
||||
return (
|
||||
<li style={{marginTop: "10px"}}>
|
||||
<Link style={hrefStyle} to={path} onClick={() => {fetchDocs(item)}}>
|
||||
@@ -264,7 +264,7 @@ const Docs = (props) => {
|
||||
>
|
||||
{list.map(item => {
|
||||
const path = "/docs/"+item
|
||||
const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ")
|
||||
const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ").split("-").join(" ")
|
||||
return (
|
||||
<MenuItem onClick={() => {window.location.pathname = path}}>{newname}</MenuItem>
|
||||
)
|
||||
|
||||
@@ -261,9 +261,17 @@ const Workflows = (props) => {
|
||||
const exportWorkflow = (data) => {
|
||||
console.log("export")
|
||||
let dataStr = JSON.stringify(data)
|
||||
|
||||
let dataUri = 'data:application/json;charset=utf-8,'+ encodeURIComponent(dataStr);
|
||||
let exportFileDefaultName = data.name+'.json';
|
||||
|
||||
data["owner"] = ""
|
||||
for (var key in data.triggers) {
|
||||
if (data.triggers[key].status == "running") {
|
||||
data.triggers[key].status = "stopped"
|
||||
}
|
||||
}
|
||||
|
||||
let linkElement = document.createElement('a');
|
||||
linkElement.setAttribute('href', dataUri);
|
||||
linkElement.setAttribute('download', exportFileDefaultName);
|
||||
@@ -727,9 +735,14 @@ const Workflows = (props) => {
|
||||
var workflowdata = {}
|
||||
|
||||
if (editingWorkflow.id !== undefined) {
|
||||
console.log("Building original workflow")
|
||||
method = "PUT"
|
||||
extraData = "/"+editingWorkflow.id
|
||||
workflowdata = editingWorkflow
|
||||
|
||||
console.log("REMOVING OWNER")
|
||||
workflowdata["owner"] = ""
|
||||
// FIXME: Loop triggers and turn them off?
|
||||
}
|
||||
|
||||
workflowdata["name"] = name
|
||||
|
||||
Reference in New Issue
Block a user