Skip to content

Commit acb175d

Browse files
authored
Merge pull request #105 from SaaShup/add_ui_put_action_button
✨ Add UI put action button
2 parents e339f20 + 8007b2c commit acb175d

File tree

4 files changed

+735
-443
lines changed

4 files changed

+735
-443
lines changed

flows.json

Lines changed: 137 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3888,12 +3888,12 @@
38883888
"from": "",
38893889
"to": "",
38903890
"reg": false,
3891-
"x": 380,
3891+
"x": 300,
38923892
"y": 160,
38933893
"wires": [
38943894
[
38953895
"e19033703f460489",
3896-
"8a7f167c07eca98c"
3896+
"3fb24016d76424c3"
38973897
]
38983898
]
38993899
},
@@ -4115,11 +4115,18 @@
41154115
"z": "8e85e8c54d776ddc",
41164116
"name": "start new",
41174117
"rules": [
4118+
{
4119+
"t": "set",
4120+
"p": "newinput",
4121+
"pt": "msg",
4122+
"to": "payload.Id",
4123+
"tot": "msg"
4124+
},
41184125
{
41194126
"t": "set",
41204127
"p": "post",
41214128
"pt": "msg",
4122-
"to": "\"http://localhost/containers/\" & $string(msg.input.data.name) & \"/start -H 'content-type: application/json'\"",
4129+
"to": "\"http://localhost/containers/\" & $string(msg.newinput) & \"/start -H 'content-type: application/json'\"",
41234130
"tot": "jsonata"
41244131
}
41254132
],
@@ -4290,7 +4297,7 @@
42904297
"t": "set",
42914298
"p": "payload",
42924299
"pt": "msg",
4293-
"to": "{ \"Container\": \"test\" }",
4300+
"to": "{ \"Container\": msg.newinput }",
42944301
"tot": "jsonata"
42954302
}
42964303
],
@@ -4324,7 +4331,7 @@
43244331
"t": "set",
43254332
"p": "post",
43264333
"pt": "msg",
4327-
"to": "\"http://localhost/containers/\" & $string(msg.input.data.name) & \"/json -H 'content-type: application/json'\"",
4334+
"to": "\"http://localhost/containers/\" & $string(msg.newinput) & \"/json -H 'content-type: application/json'\"",
43284335
"tot": "jsonata"
43294336
}
43304337
],
@@ -4345,7 +4352,7 @@
43454352
"id": "3b574a7133f293da",
43464353
"type": "exec",
43474354
"z": "8e85e8c54d776ddc",
4348-
"command": "curl -X GET --unix-socket /var/run/docker.sock",
4355+
"command": "curl -s -X GET --unix-socket /var/run/docker.sock",
43494356
"addpay": "post",
43504357
"append": "",
43514358
"useSpawn": "false",
@@ -4474,8 +4481,7 @@
44744481
"y": 760,
44754482
"wires": [
44764483
[
4477-
"c469b4b880927dc6",
4478-
"f97a2faad0f4275a"
4484+
"2386f957b4f1a646"
44794485
]
44804486
]
44814487
},
@@ -4495,7 +4501,7 @@
44954501
"authType": "",
44964502
"senderr": false,
44974503
"headers": [],
4498-
"x": 1080,
4504+
"x": 1130,
44994505
"y": 760,
45004506
"wires": [
45014507
[
@@ -4575,7 +4581,7 @@
45754581
"links": [
45764582
"36f439d2ba0ac71a"
45774583
],
4578-
"x": 1225,
4584+
"x": 1265,
45794585
"y": 760,
45804586
"wires": []
45814587
},
@@ -4604,7 +4610,7 @@
46044610
"29132a5a3f72e359"
46054611
],
46064612
[
4607-
"fd627a14335caef4"
4613+
"2ca8bc5af87333b2"
46084614
]
46094615
]
46104616
},
@@ -4613,7 +4619,7 @@
46134619
"type": "subflow:0455d311f0e53c09",
46144620
"z": "8e85e8c54d776ddc",
46154621
"name": "",
4616-
"x": 1530,
4622+
"x": 1630,
46174623
"y": 260,
46184624
"wires": []
46194625
},
@@ -4622,7 +4628,7 @@
46224628
"type": "subflow:0455d311f0e53c09",
46234629
"z": "8e85e8c54d776ddc",
46244630
"name": "",
4625-
"x": 1050,
4631+
"x": 1130,
46264632
"y": 820,
46274633
"wires": []
46284634
},
@@ -4645,7 +4651,7 @@
46454651
"from": "",
46464652
"to": "",
46474653
"reg": false,
4648-
"x": 1320,
4654+
"x": 1440,
46494655
"y": 260,
46504656
"wires": [
46514657
[
@@ -4942,7 +4948,7 @@
49424948
"type": "subflow:0455d311f0e53c09",
49434949
"z": "8e85e8c54d776ddc",
49444950
"name": "",
4945-
"x": 430,
4951+
"x": 510,
49464952
"y": 100,
49474953
"wires": []
49484954
},
@@ -5082,6 +5088,88 @@
50825088
[]
50835089
]
50845090
},
5091+
{
5092+
"id": "2386f957b4f1a646",
5093+
"type": "switch",
5094+
"z": "8e85e8c54d776ddc",
5095+
"name": "",
5096+
"property": "config.id",
5097+
"propertyType": "global",
5098+
"rules": [
5099+
{
5100+
"t": "nempty"
5101+
},
5102+
{
5103+
"t": "else"
5104+
}
5105+
],
5106+
"checkall": "true",
5107+
"repair": false,
5108+
"outputs": 2,
5109+
"x": 930,
5110+
"y": 820,
5111+
"wires": [
5112+
[
5113+
"f97a2faad0f4275a",
5114+
"c469b4b880927dc6"
5115+
],
5116+
[]
5117+
]
5118+
},
5119+
{
5120+
"id": "2ca8bc5af87333b2",
5121+
"type": "switch",
5122+
"z": "8e85e8c54d776ddc",
5123+
"name": "",
5124+
"property": "config.id",
5125+
"propertyType": "global",
5126+
"rules": [
5127+
{
5128+
"t": "nempty"
5129+
},
5130+
{
5131+
"t": "else"
5132+
}
5133+
],
5134+
"checkall": "true",
5135+
"repair": false,
5136+
"outputs": 2,
5137+
"x": 1270,
5138+
"y": 260,
5139+
"wires": [
5140+
[
5141+
"fd627a14335caef4"
5142+
],
5143+
[]
5144+
]
5145+
},
5146+
{
5147+
"id": "3fb24016d76424c3",
5148+
"type": "switch",
5149+
"z": "8e85e8c54d776ddc",
5150+
"name": "",
5151+
"property": "config.id",
5152+
"propertyType": "global",
5153+
"rules": [
5154+
{
5155+
"t": "nempty"
5156+
},
5157+
{
5158+
"t": "else"
5159+
}
5160+
],
5161+
"checkall": "true",
5162+
"repair": false,
5163+
"outputs": 2,
5164+
"x": 350,
5165+
"y": 100,
5166+
"wires": [
5167+
[
5168+
"8a7f167c07eca98c"
5169+
],
5170+
[]
5171+
]
5172+
},
50855173
{
50865174
"id": "3eb97ccb653722a0",
50875175
"type": "http in",
@@ -5172,7 +5260,7 @@
51725260
"id": "489afa20fcdf043a",
51735261
"type": "exec",
51745262
"z": "177047e3d7a351be",
5175-
"command": "curl -X DELETE --unix-socket /var/run/docker.sock ",
5263+
"command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ",
51765264
"addpay": "post",
51775265
"append": "",
51785266
"useSpawn": "false",
@@ -5228,7 +5316,7 @@
52285316
"id": "f40ceca8b2fe91cf",
52295317
"type": "exec",
52305318
"z": "177047e3d7a351be",
5231-
"command": "curl -X DELETE --unix-socket /var/run/docker.sock ",
5319+
"command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ",
52325320
"addpay": "post",
52335321
"append": "",
52345322
"useSpawn": "false",
@@ -5275,7 +5363,7 @@
52755363
"id": "8dc73accdac55b3b",
52765364
"type": "exec",
52775365
"z": "177047e3d7a351be",
5278-
"command": "curl -X DELETE --unix-socket /var/run/docker.sock ",
5366+
"command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ",
52795367
"addpay": "post",
52805368
"append": "",
52815369
"useSpawn": "false",
@@ -5322,7 +5410,7 @@
53225410
"id": "551cf7f33257a9d3",
53235411
"type": "exec",
53245412
"z": "177047e3d7a351be",
5325-
"command": "curl -X DELETE --unix-socket /var/run/docker.sock ",
5413+
"command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ",
53265414
"addpay": "post",
53275415
"append": "",
53285416
"useSpawn": "false",
@@ -5334,7 +5422,7 @@
53345422
"y": 60,
53355423
"wires": [
53365424
[
5337-
"c594da7accef66e1"
5425+
"47d05b450f712ec1"
53385426
],
53395427
[],
53405428
[]
@@ -5350,7 +5438,7 @@
53505438
"t": "set",
53515439
"p": "post",
53525440
"pt": "msg",
5353-
"to": "'\\\"http://localhost/containers/' & msg.payload.data.name & '\\\"'",
5441+
"to": "'\\\"http://localhost/containers/' & msg.payload.data.ContainerID & '\\\"'",
53545442
"tot": "jsonata"
53555443
}
53565444
],
@@ -5619,13 +5707,6 @@
56195707
"z": "177047e3d7a351be",
56205708
"name": "",
56215709
"rules": [
5622-
{
5623-
"t": "set",
5624-
"p": "post",
5625-
"pt": "msg",
5626-
"to": "'\\\"http://localhost/images/' & msg.input.data.name & ':' & msg.input.data.version & '\\\"'",
5627-
"tot": "jsonata"
5628-
},
56295710
{
56305711
"t": "set",
56315712
"p": "journal",
@@ -5639,14 +5720,41 @@
56395720
"from": "",
56405721
"to": "",
56415722
"reg": false,
5642-
"x": 1320,
5723+
"x": 1420,
56435724
"y": 80,
56445725
"wires": [
56455726
[
56465727
"b87eba8ac3329ce3"
56475728
]
56485729
]
56495730
},
5731+
{
5732+
"id": "47d05b450f712ec1",
5733+
"type": "switch",
5734+
"z": "177047e3d7a351be",
5735+
"name": "",
5736+
"property": "config.id",
5737+
"propertyType": "global",
5738+
"rules": [
5739+
{
5740+
"t": "nempty"
5741+
},
5742+
{
5743+
"t": "else"
5744+
}
5745+
],
5746+
"checkall": "true",
5747+
"repair": false,
5748+
"outputs": 2,
5749+
"x": 1250,
5750+
"y": 60,
5751+
"wires": [
5752+
[
5753+
"c594da7accef66e1"
5754+
],
5755+
[]
5756+
]
5757+
},
56505758
{
56515759
"id": "305f23764ca23090",
56525760
"type": "change",

0 commit comments

Comments
 (0)