diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbc4dd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +uketuke/project.json diff --git a/uketuke/project.json b/uketuke/project.json index 0bf9fc1..0b42f16 100644 --- a/uketuke/project.json +++ b/uketuke/project.json @@ -1,5 +1,5 @@ { - "name": "Untitled", + "name": "N2_Uketuke", "components": [ { "name": "/uketuke", @@ -62,7 +62,7 @@ "id": "9f9b3f6a-6834-eadc-fa52-54307c17cb2a", "type": "Text Input", "x": 20, - "y": 92, + "y": 128, "parameters": { "fontSize": { "value": 30, @@ -115,8 +115,8 @@ { "id": "75d61ef0-c0e4-1701-4715-6168339cf42f", "type": "Group", - "x": 20, - "y": 184, + "x": 156, + "y": 138.5, "parameters": { "width": { "value": 150, @@ -142,8 +142,8 @@ { "id": "0eea45f1-4224-57e7-2aa0-e8ae1ca7f5b9", "type": "Text", - "x": 73.19999999999999, - "y": 208.3, + "x": 176, + "y": 220.5, "parameters": { "sizeMode": "contentSize", "text": "送信!", @@ -241,18 +241,6 @@ "name": "/kanri", "graph": { "connections": [ - { - "fromId": "9d62194d-bda2-8933-273f-a79eb8e219bf", - "fromProperty": "items", - "toId": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", - "toProperty": "items" - }, - { - "fromId": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", - "fromProperty": "items", - "toId": "6a9537e8-7711-25fc-ecd8-bf8f7dc7853a", - "toProperty": "items" - }, { "fromId": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", "fromProperty": "items", @@ -276,16 +264,35 @@ "fromProperty": "trig", "toId": "1dd83ad6-a2d3-dc65-a4b5-9b050e0a8150", "toProperty": "send" + }, + { + "fromId": "26d648e7-5065-a183-4281-4408e00d8a4c", + "fromProperty": "onClick", + "toId": "7a81e0b6-6876-1aff-6cd9-84ed3c843b8e", + "toProperty": "fetch" + }, + { + "fromId": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", + "fromProperty": "items", + "toId": "6a9537e8-7711-25fc-ecd8-bf8f7dc7853a", + "toProperty": "items" + }, + { + "fromId": "7a81e0b6-6876-1aff-6cd9-84ed3c843b8e", + "fromProperty": "items", + "toId": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", + "toProperty": "items" } ], "roots": [ { "id": "3bf30146-579b-2c9e-30da-494ec7ef3b8f", "type": "Group", - "x": 252, - "y": 92.0333333333333, + "x": 261, + "y": 141.0333333333333, "parameters": { - "backgroundColor": "#EF8F45" + "backgroundColor": "#EF8F45", + "scrollBehavior": "noodl" }, "ports": [], "dynamicports": [], @@ -296,21 +303,92 @@ "x": 20, "y": 46, "parameters": { - "template": "/parts" + "template": "/parts2" }, "ports": [], "dynamicports": [], "children": [] + }, + { + "id": "26d648e7-5065-a183-4281-4408e00d8a4c", + "type": "Group", + "x": 20, + "y": 128, + "parameters": { + "width": { + "value": 150, + "unit": "px" + }, + "height": { + "value": 60, + "unit": "px" + }, + "position": "absolute", + "alignX": "right", + "alignY": "top", + "backgroundColor": "#004BBD", + "borderRadius": 20, + "zIndex": 2, + "marginTop": { + "value": 10, + "unit": "px" + }, + "marginRight": { + "value": 8, + "unit": "px" + }, + "borderStyle": "solid", + "borderWidth": { + "value": 1, + "unit": "px" + }, + "boxShadowEnabled": true, + "boxShadowOffsetX": { + "value": 5, + "unit": "px" + }, + "boxShadowOffsetY": { + "value": 5, + "unit": "px" + } + }, + "ports": [], + "dynamicports": [], + "children": [ + { + "id": "c76297e8-fbde-a26f-d7ba-431ef494af42", + "type": "Text", + "x": 20, + "y": 46, + "parameters": { + "sizeMode": "contentSize", + "text": "リスト更新", + "fontSize": { + "value": 25, + "unit": "px" + }, + "color": "#FFFFFF", + "position": "absolute", + "alignX": "center", + "alignY": "center" + }, + "ports": [], + "dynamicports": [], + "children": [] + } + ] } ] }, { "id": "9d62194d-bda2-8933-273f-a79eb8e219bf", "type": "Static Data", - "x": -130.7759412640325, - "y": 141.09149561902805, + "x": -121.07291613075961, + "y": 168.646311952803, "parameters": { - "csv": "id,表示名\r\n01,りんご\r\n02,みかん\r\n03,ゆず\r\n04,清水さん" + "csv": "id,name\r\n01,りんご\r\n02,みかん\r\n03,ゆず\r\n04,清水さん\r\n05,けん\r\n06,ちひ\r\n07,こと", + "type": "csv", + "json": "" }, "ports": [], "dynamicports": [], @@ -319,8 +397,8 @@ { "id": "23ae1c24-0667-1791-d278-5f79dd8cf2c5", "type": "Collection", - "x": 66.37210819046314, - "y": 125.00160845022708, + "x": 77.63411205712046, + "y": 174.00160845022708, "parameters": { "collectionId": "user" }, @@ -331,10 +409,10 @@ { "id": "8aa89c1f-1b54-0116-b89d-7769f9bb2f4d", "type": "Javascript2", - "x": 92.86417696968655, - "y": 293.33306825969544, + "x": 96.86417696968655, + "y": 454.3330682596955, "parameters": { - "code": "define({\r\n \t// The input ports of the Javascript node, name of input and type\r\n \tinputs:{\r\n \t // ExampleInput:'number',\r\n \t // Available types are 'number', 'string', 'boolean', 'color' and 'signal',\r\n \t data:'collection',\r\n \t name:'string',\r\n \t},\r\n\r\n \t// The output ports of the Javascript node, name of output and type\r\n \toutputs:{\r\n \t state:'string',\r\n \t trig:'boolean',\r\n \t},\r\n\r\n \t// All signal inputs need their own function with the corresponding name that\r\n \t// will be run when a signal is received on the input.\r\n \tmySignal:function(inputs,outputs) {\r\n \t\t// ...\r\n \t},\r\n\r\n \t// This function will be called when any of the inputs have changed\r\n \tchange:function(inputs,outputs) {\r\n \t\t// ...\r\n \t\tvar i;\r\n \t\tvar w_this = this;\r\n\r\n console.log(\"入力データ [\" + inputs.name + \"]\");\r\n\r\n \t\tfor(i=0; i