Commit 636c4b85 authored by rockyl's avatar rockyl

mock上传

parent 0fcc4e27
{
"success": true,
"data": {
"name": "Zeroing Editor",
"version": "1.0.0",
"templates": {
"builtin": [
"blank"
],
"custom": []
},
"processes": [
{
"id": "entry",
"name": "Entry",
"group": "base",
"options": {},
"output": [
"success"
]
},
{
"id": "wait",
"name": "Wait",
"group": "base",
"options": {
"duration": {
"type": "number",
"default": 1000
}
},
"output": [
"complete"
]
},
{
"id": "prefab1",
"name": "Prefab1",
"isPrefab": true,
"sub": {
"1": {
"uuid": "1",
"alias": "入口",
"meta": "entry",
"output": {
"success": [
"2"
]
}
},
"2": {
"uuid": "2",
"meta": "wait",
"alias": "等待",
"options": {
"duration": 500
}
}
}
}
],
"scripts": [
{
"id": "wave",
"name": "Wave",
"options": {
"duration": {
"type": "number",
"default": 1000
},
"type": {
"type": "string",
"default": "yoyo"
},
"ease": {
"type": "string",
"default": "linear"
},
"autoPlay": {
"type": "boolean",
"default": false
}
}
}
]
}
}
\ No newline at end of file
...@@ -24,15 +24,6 @@ const data = { ...@@ -24,15 +24,6 @@ const data = {
}, },
output: ['complete'], output: ['complete'],
}, },
{
id: 'test',
name: 'Test',
group: 'test',
options: {
duration: {type: 'number', default: 1000},
},
output: ['complete'],
},
{ {
id: 'prefab1', id: 'prefab1',
name: 'Prefab1', name: 'Prefab1',
......
{
"success": true,
"data": {
"id": "6566c4a3f237",
"name": "测试",
"creator": "卞龙亭",
"operator": "卞龙亭",
"create_time": "2019-09-19T06:56:01.000Z",
"update_time": "2019-09-19T06:56:01.000Z",
"data": "{\"views\":[{\"name\":\"view1\",\"type\":\"node\",\"properties\":{},\"uuid\":\"3a357816-5581-41ba-aa6f-4a6cc40ae396\",\"children\":[{\"name\":\"rect\",\"type\":\"rect\",\"properties\":{\"width\":50,\"height\":50,\"fillColor\":\"rgba(105, 182, 255, 1)\",\"strokeWidth\":0,\"x\":10,\"y\":10},\"events\":{\"click\":{\"once\":false,\"behaviors\":[{\"uuid\":\"aa1\",\"alias\":\"主过程\",\"meta\":\"main\"}]}},\"scripts\":[{\"script\":\"wave\",\"options\":{\"duration\":500,\"autoPlay\":true,\"type\":\"cubicIn\"}}],\"uuid\":\"f97bbf76-6923-4669-b5a3-e6382753e49a\"}]}],\"assets\":[],\"dataMapping\":[],\"processMap\":{\"main\":{\"id\":\"main\",\"name\":\"Main\",\"options\":{},\"subEntry\":\"1\",\"sub\":{\"a1\":{\"uuid\":\"a1\",\"alias\":\"入口\",\"meta\":\"entry\",\"output\":{\"success\":[\"a2\"]},\"design\":{\"x\":10,\"y\":10}},\"a2\":{\"uuid\":\"a2\",\"alias\":\"test\",\"meta\":\"test\",\"options\":{\"text\":\"hello\"},\"output\":{\"success\":[],\"failed\":[]},\"design\":{\"x\":20,\"y\":100}}}},\"test\":{\"id\":\"test\",\"name\":\"Test\",\"options\":{\"text\":{\"type\":\"string\",\"default\":\"\"}},\"output\":[\"success\",\"failed\"]}}}"
}
}
\ No newline at end of file
...@@ -3,37 +3,431 @@ ...@@ -3,37 +3,431 @@
*/ */
const data = { const data = {
"views": [ "views": [{
"name": "view1",
], "type": "node",
"assets": [ "properties": {},
{ "uuid": "3a357816-5581-41ba-aa6f-4a6cc40ae396",
"name": "bg.jpg", "children": [{
uuid:"a1", "name": "rect",
"url": "http://0.0.0.0:4002/assets/bg.jpg" "type": "rect",
"properties": {
"width": 50,
"height": 50,
"fillColor": "rgba(105, 182, 255, 1)",
"strokeWidth": 0,
"x": 10,
"y": 10
}, },
events: {
click: {
once: false,
behaviors: [
{ {
"name": "btn-join.png", uuid: 'aa1',
uuid:"a2", alias: '主过程',
"url": "http://0.0.0.0:4002/assets/btn-join.png" meta: 'main',
} }
] ]
}
},
scripts: [
{
script: 'wave',
options: {
duration: 500,
autoPlay: true,
type: 'cubicIn',
}
}
],
"uuid": "f97bbf76-6923-4669-b5a3-e6382753e49a"
}]
}],
"assets": [],
"dataMapping": [],
processMap: {
main: {
id: 'main',
name: 'Main',
options: {},
subEntry: '1',
sub: {
a1: {
uuid: 'a1',
alias: '入口',
meta: 'entry',
output: {
success: ['a2'],
},
design: {
x: 10,
y: 10,
},
},
a2: {
uuid: 'a2',
alias: 'test',
meta: 'test',
options: {
text: 'hello',
},
output: {
success: [],
failed: [],
},
design: {
x: 20,
y: 100,
},
},
}
},
test: {
id: 'test',
name: 'Test',
options: {
text: {type: 'string', default: ''},
},
output: ['success', 'failed'],
},
}
}; };
const data1 = { const data1 = {
"views": [ "views": [{
], "name": "a0981f54ccf796eaf68a0634b15a1211d9b25ece",
"assets": [ "type": "node",
{ "uuid": "33adb462-8048-471a-b02b-9e7e97d2254b",
"name": "bg.jpg", "children": [{
uuid:"a1", "name": "bg",
"url": "http://0.0.0.0:4002/assets/bg.jpg" "properties": {
"width": 375,
"height": 812,
"alpha": 1,
"visible": true,
"source": "asset://5fe14ca0-5b86-405e-98a6-54ca733f2180"
}, },
{ "uuid": "9bd517e7-23c8-48e1-805c-10dc3ef33964",
"name": "btn-join.png", "type": "image"
uuid:"a2", }, {
"url": "http://0.0.0.0:4002/assets/btn-join.png" "name": "rule_button",
"properties": {
"width": 40,
"height": 46,
"alpha": 1,
"visible": true,
"x": 9,
"source": "asset://82a9d493-078a-4b7c-8352-616abc99f24a"
},
"uuid": "fbda96a2-259d-414b-a069-7ccc9e13c334",
"type": "image"
}, {
"name": "fan",
"properties": {"width": 337, "height": 339, "alpha": 1, "visible": true, "x": 19, "y": 130},
"uuid": "05342ebc-d2a4-41d8-8160-8fbbdc23445e",
"type": "node",
"children": [{
"name": "wheel_items",
"properties": {
"width": 302,
"height": 302,
"alpha": 1,
"visible": true,
"x": 18,
"y": 19,
"source": "asset://b899e2f0-36da-42dc-a9ac-c8f4093e4457"
},
"uuid": "e105b535-0cfa-4f76-8899-61c73ed37a22",
"type": "image"
}, {
"name": "wheel_bg",
"properties": {
"width": 337,
"height": 339,
"alpha": 1,
"visible": true,
"source": "asset://8f531f60-b48e-4a7a-bd7a-9488a3c3dd2d"
},
"uuid": "0f0e7886-a585-466e-beb3-bde97c310a05",
"type": "image"
}, {
"name": "start_bg",
"properties": {
"width": 124,
"height": 149,
"alpha": 1,
"visible": true,
"x": 107,
"y": 84,
"source": "asset://62fe5f9b-47ec-4c1e-b508-f566501caa72"
},
"uuid": "c6989739-3e3b-4db7-b354-d66fefdec3d2",
"type": "image"
}]
}, {
"name": "light-switch-surround",
"properties": {"width": 310, "height": 312, "alpha": 1, "visible": true, "x": 33, "y": 141},
"uuid": "92209984-cc64-421b-9d63-58acde84f4e8",
"type": "node",
"children": [{
"name": "0",
"properties": {
"width": 310,
"height": 312,
"alpha": 1,
"visible": true,
"source": "asset://562af6d0-6b73-4de8-bed0-ed3a4507962c"
},
"uuid": "926bd02f-7a55-47d5-bd00-34fac3c0611d",
"type": "image"
}, {
"name": "1",
"properties": {
"width": 310,
"height": 311,
"alpha": 1,
"visible": true,
"source": "asset://6cf1bc08-bcc8-4cec-88d8-3e979b35dd0f"
},
"uuid": "865ef474-0563-47d7-8dd6-c31b61c32bc9",
"type": "image"
}]
}, {
"name": "light-switch",
"properties": {"width": 375, "height": 74, "alpha": 1, "visible": true, "y": 186},
"uuid": "42599c87-58ee-4d41-b800-798ef5f65467",
"type": "node",
"children": [{
"name": "0",
"properties": {
"width": 327,
"height": 57,
"alpha": 1,
"visible": true,
"x": 24,
"y": 17,
"source": "asset://378851d3-6664-4b0e-8407-342f4ffaf334"
},
"uuid": "ed504dca-83d7-46db-8aaa-d1fe089dbd52",
"type": "image"
}, {
"name": "1",
"properties": {
"width": 375,
"height": 70,
"alpha": 1,
"visible": true,
"source": "asset://dee35c49-db44-4722-a412-a8b7123d20b7"
},
"uuid": "58e9cbe4-34de-432d-9322-c48f49a2fb16",
"type": "image"
}]
}, {
"name": "my_credits",
"properties": {"width": 158, "height": 28, "alpha": 1, "visible": true, "x": 109, "y": 448},
"uuid": "46ec1530-41e8-4945-923b-6389791dfe02",
"type": "node",
"children": [{
"name": "bg",
"properties": {
"width": 158,
"height": 28,
"alpha": 1,
"visible": true,
"source": "asset://2b0cc6bd-fc10-43ee-a217-aaf1c40a0ad3"
},
"uuid": "bd3d7aa9-7914-4396-9e32-d03f1c3d1951",
"type": "image"
}, {
"name": "0",
"properties": {
"width": 7,
"height": 11,
"alpha": 1,
"visible": true,
"x": 79,
"y": 8,
"text": "0",
"textflow": {
"fonts": ["ArialMT", "AdobeInvisFont", "AdobeHeitiStd-Regular"],
"styles": {
"Font": [0],
"FontSize": [30],
"AutoLeading": [false],
"Leading": [31.70466],
"Tracking": [100],
"AutoKerning": [true],
"Kerning": [0],
"Language": [14],
"FillColor": [{"Type": 1, "Values": [1, 1, 1, 1]}],
"HindiNumbers": [false]
},
"RunLengthArray": [2]
} }
] },
"uuid": "ce9f866f-dbe1-4d0d-a48e-407e9dac17d1",
"type": "label"
}]
}]
}],
"assets": [
{
"name": "face",
"ext": ".png",
"url": "//yun.duiba.com.cn/aurora/58323a0469a7467c99b34f8933ea65b507a0c655.png",
"uuid": "3e496939-5fe6-42f2-b8fa-42c7a742e880"
}, {
"name": "还以是bug",
"ext": ".jpg",
"url": "//yun.duiba.com.cn/aurora/094832ace87c94bdb9e4a7821b3a3ebca0df2cd7.jpg",
"uuid": "ec67a8a0-8708-43a4-888e-efb0fe7c2bd6"
}, {
"name": "嘿嘿",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/1ad10a4cf3488ef1400af1d6f353d9c577fe1049.gif",
"uuid": "429803eb-0f68-4071-b68c-468980883ac4"
}, {
"name": "1643017",
"ext": ".jpg",
"url": "//yun.duiba.com.cn/aurora/2e4adf3d8646ffbd027038cb2c6627a6bca44e44.jpg",
"uuid": "cc1ad757-ff4c-4cb9-b629-be355119d018"
}, {
"name": "0",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/616a413facbd406b81daac809a52bd0b648a7f4c.gif",
"uuid": "0a5f2064-f5b4-41a9-8a54-2085e208d20f"
}, {
"name": "3",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/e052cb4a88d63330c37ecaf55ae8e7eb2246c433.gif",
"uuid": "e4dacdd2-064f-413e-a8f0-6425ce6dcf12"
}, {
"name": "5",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/881193ea1bd975c8a59f38f2d1f0d0094db6ec7a.gif",
"uuid": "bf822d51-a1b1-4ab6-8f49-a821863731d0"
}, {
"name": "4",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/2df4a5c5238f86704388517d2ba0faa6782fea1e.gif",
"uuid": "9c1d46b4-d2f1-4733-8b93-39b2bb4db9d1"
}, {
"name": "1",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/0bc24c7bb68e3691bad89c8ae096b253af874a73.gif",
"uuid": "db076340-e1db-4e2d-8bb2-7cc32ccdee43"
}, {
"name": "7",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/3e218541244d1ed1192274ad49ea70588b6cd0dc.gif",
"uuid": "02aa47c3-dbdf-43d2-8cdc-869cab544bcc"
}, {
"name": "2",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/1e1344fabf25cf2ea6f1407cd42afc1f1de0bb07.gif",
"uuid": "264f7a8d-475e-4fd0-ac83-96e13a7702f3"
}, {
"name": "8",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/90080b186e0507b70f64c2020880dd1ddd3b7cd8.gif",
"uuid": "ec63930b-8aff-4108-9ceb-ddf9353d4412"
}, {
"name": "0",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/616a413facbd406b81daac809a52bd0b648a7f4c.gif",
"uuid": "7c475d4d-0ae2-4b9a-81ff-76fb8264721f"
}, {
"name": "9",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/f41b70c1003ff703386a5a80ed7092db5fdc11f4.gif",
"uuid": "473b82ec-c9b9-43d7-b2e5-b5399a55d239"
}, {
"name": "12",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/99660ca0a9a578cd6c5eb38b1f35aee9a77849b3.gif",
"uuid": "84f549d3-9bb1-4066-9668-3705e94b5891"
}, {
"name": "11",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/f88c5de6bb6ab80f24cc56978e92cedf4af201f0.gif",
"uuid": "a4470420-60bd-4578-a2dc-100663ba6256"
}, {
"name": "13",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/c5c446eba840899d364bcdb010a2aea8d2ae02ab.gif",
"uuid": "7383d2db-43dd-408a-aa69-261bd39865ac"
}, {
"name": "6",
"ext": ".gif",
"url": "//yun.duiba.com.cn/aurora/881193ea1bd975c8a59f38f2d1f0d0094db6ec7a.gif",
"uuid": "894a28f8-a814-4c8c-a5d9-619194b3073d"
}, {
"name": "btn-join",
"ext": ".png",
"url": "//yun.duiba.com.cn/aurora/e50e0fe70f4b2c96d2deee1d93a0a2444732be6a.png",
"uuid": "e3301bc4-7b51-4868-a613-26298f87988b"
}, {
"name": "bg",
"ext": ".jpg",
"url": "//yun.duiba.com.cn/aurora/7dbe10dba2a92d830f0f9ff72f3d82e07a4c4649.jpg",
"uuid": "bab58ec1-24b1-4d5d-9c95-7014b9915cb3"
}, {
"name": "1643017",
"ext": ".png",
"uuid": "54f7916f-dc10-49f7-b3b1-0bda9d4f5bcd",
"url": "//yun.duiba.com.cn/aurora/4090d0acf7dbf29cd6ab0690795e0b00b715280c.png"
}, {
"name": "bg",
"ext": ".png",
"uuid": "5fe14ca0-5b86-405e-98a6-54ca733f2180",
"url": "//yun.duiba.com.cn/aurora/070159098034ae2cd8c8e4bf4f47b1d45b87024a.png"
}, {
"name": "rule_button",
"ext": ".png",
"uuid": "82a9d493-078a-4b7c-8352-616abc99f24a",
"url": "//yun.duiba.com.cn/aurora/d0c3ed2bf9abc5748c01eb88abb7e0830669b1c5.png"
}, {
"name": "wheel_items",
"ext": ".png",
"uuid": "b899e2f0-36da-42dc-a9ac-c8f4093e4457",
"url": "//yun.duiba.com.cn/aurora/897ee802eb89999c2019c683c084f4b7e2d7f554.png"
}, {
"name": "wheel_bg",
"ext": ".png",
"uuid": "8f531f60-b48e-4a7a-bd7a-9488a3c3dd2d",
"url": "//yun.duiba.com.cn/aurora/479cbb31bfdaee48893bf34f7d0c8fc702b1459a.png"
}, {
"name": "start_bg",
"ext": ".png",
"uuid": "62fe5f9b-47ec-4c1e-b508-f566501caa72",
"url": "//yun.duiba.com.cn/aurora/3191ba684512b9e9391ab4a9d2a2df31cad4825d.png"
}, {
"name": "0",
"ext": ".png",
"uuid": "562af6d0-6b73-4de8-bed0-ed3a4507962c",
"url": "//yun.duiba.com.cn/aurora/be2fa0d9e91b58d9aafcd18f7934784742069cb6.png"
}, {
"name": "1",
"ext": ".png",
"uuid": "6cf1bc08-bcc8-4cec-88d8-3e979b35dd0f",
"url": "//yun.duiba.com.cn/aurora/3f64f753e272d17a1f5807ddf1a8965a0e2de9d5.png"
}, {
"name": "0",
"ext": ".png",
"uuid": "378851d3-6664-4b0e-8407-342f4ffaf334",
"url": "//yun.duiba.com.cn/aurora/3c292a9c6c5b1a3dab684e95d1f7b7cb4f369a8a.png"
}, {
"name": "1",
"ext": ".png",
"uuid": "dee35c49-db44-4722-a412-a8b7123d20b7",
"url": "//yun.duiba.com.cn/aurora/b22420f2322326359e2b3e1dae66dc7e34ce6978.png"
}, {
"name": "bg",
"ext": ".png",
"uuid": "2b0cc6bd-fc10-43ee-a217-aaf1c40a0ad3",
"url": "//yun.duiba.com.cn/aurora/93fbb49529a3b4617f4cdc41dba7c297989baa5e.png"
}],
"dataMapping": [{"name": "aaa", "path": "bbb"}]
}; };
const resp = { const resp = {
...@@ -49,6 +443,6 @@ const resp = { ...@@ -49,6 +443,6 @@ const resp = {
} }
}; };
module.exports = function(){ module.exports = function () {
return resp; return resp;
}; };
{
"success": true,
"data": {
"id": "6566c4a3f237",
"name": "呼呼",
"creator": "卞龙亭",
"data": "{\"views\":[{\"name\":\"aaa\",\"type\":\"node\",\"children\":[{\"name\":\"node\",\"type\":\"image\"}]},{\"name\":\"aaa\",\"type\":\"node\",\"children\":[{\"name\":\"node\",\"type\":\"node\"},{\"name\":\"node\",\"type\":\"node\"}]}],\"assets\":[{\"name\":\"2ACA84D91EAAE90EDBFF78CBF5E727AB.png\",\"url\":\"//yun.duiba.com.cn/aurora/58323a0469a7467c99b34f8933ea65b507a0c655.png\",\"uuid\":\"3e496939-5fe6-42f2-b8fa-42c7a742e880\"},{\"name\":\"还以为是bug.jpg\",\"url\":\"//yun.duiba.com.cn/aurora/094832ace87c94bdb9e4a7821b3a3ebca0df2cd7.jpg\",\"uuid\":\"ec67a8a0-8708-43a4-888e-efb0fe7c2bd6\"},{\"name\":\"17344D055C89C3CFADB0C51E1A1E064E.gif\",\"url\":\"//yun.duiba.com.cn/aurora/1ad10a4cf3488ef1400af1d6f353d9c577fe1049.gif\",\"uuid\":\"429803eb-0f68-4071-b68c-468980883ac4\"}],\"dataMapping\":[]}"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment