Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
7bf22da3
Commit
7bf22da3
authored
Dec 07, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
fe477e13
Changes
27
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
260 additions
and
1417 deletions
+260
-1417
dispatch-event.json
dist/processes/base/dispatch-event.json
+26
-0
env-judge.json
dist/processes/base/env-judge.json
+11
-0
http-polling-judge.json
dist/processes/net/http-polling-judge.json
+0
-28
http-polling.json
dist/processes/net/http-polling.json
+0
-91
turntable.json
dist/processes/prefabs/turntable.json
+0
-407
api-polling.json
dist/processes/projectX/api-polling.json
+1
-98
share-preprocessing.json
dist/processes/share/share-preprocessing.json
+11
-0
share-sunsunshine.json
dist/processes/share/share-sunsunshine.json
+18
-0
share-weixin.json
dist/processes/share/share-weixin.json
+19
-0
compiler-process.js
scripts/compiler-process.js
+8
-1
index.ts
src/process/base/dispatch-event/index.ts
+12
-0
meta.json
src/process/base/dispatch-event/meta.json
+22
-0
index.ts
src/process/base/env-judge/index.ts
+17
-0
meta.json
src/process/base/env-judge/meta.json
+7
-0
meta.json
src/process/duiba/duiba-api/meta.json
+0
-91
index.ts
src/process/net/http-polling-judge/index.ts
+0
-20
meta.json
src/process/net/http-polling-judge/meta.json
+0
-25
meta.json
src/process/net/http-polling/meta.json
+0
-91
meta.json
src/process/prefabs/turntable/meta.json
+0
-407
meta.json
src/process/projectX/api-polling/meta.json
+1
-98
meta.json
src/process/projectX/api-request/meta.json
+1
-60
index.ts
src/process/share/share-preprocessing/index.ts
+10
-0
meta.json
src/process/share/share-preprocessing/meta.json
+7
-0
index.ts
src/process/share/share-sunsunshine/index.ts
+28
-0
meta.json
src/process/share/share-sunsunshine/meta.json
+14
-0
index.ts
src/process/share/share-weixin/index.ts
+32
-0
meta.json
src/process/share/share-weixin/meta.json
+15
-0
No files found.
dist/processes/base/dispatch-event.json
0 → 100644
View file @
7bf22da3
{
"name"
:
"发送事件"
,
"desc"
:
"发送事件"
,
"props"
:
{
"eventName"
:
{
"type"
:
"string"
,
"alias"
:
"事件名"
},
"data"
:
{
"type"
:
"dynamic"
,
"alias"
:
"数据"
},
"useCapture"
:
{
"type"
:
"boolean"
,
"alias"
:
"是否捕获"
,
"default"
:
true
}
},
"output"
:
[
"success"
],
"id"
:
"dispatch-event"
,
"script"
:
"var eventName = engine.findVariable('eventName', args, props);
\n
var data = engine.findVariable('data', args, props);
\n
var useCapture = engine.findVariable('useCapture', args, props);
\n
if (eventName) {
\n
engine.globalEvent.dispatchEvent(eventName, data, useCapture);
\n
}
\n
next('success', args);
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
}
dist/processes/base/env-judge.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{},
"name"
:
"环境判断"
,
"output"
:
[
"success"
],
"id"
:
"env-judge"
,
"script"
:
"var ua = navigator.userAgent.toLowerCase();
\n
var env;
\n
if (ua.indexOf('eversunshine') >= 0) {
\n
env = 'eversunshine';
\n
}
\n
else if (ua.indexOf('micromessenger') >= 0) {
\n
env = 'weixin';
\n
}
\n
var payload = args || {};
\n
payload.env = env;
\n
next('success', payload);
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
}
dist/processes/net/http-polling-judge.json
deleted
100644 → 0
View file @
fe477e13
{
"script"
:
"var count = props.count, field = props.field, successValues = props.successValues;
\n
var key = 'counting-' + vm.id;
\n
var counting = global[key] || 0;
\n
counting++;
\n
var successArr = successValues.split(',');
\n
if (successArr.indexOf(args[field] + '') >= 0) {
\n
delete global[key];
\n
next('success', args);
\n
}
\n
else if (counting < count) {
\n
global[key] = counting;
\n
next('continue');
\n
}
\n
else {
\n
delete global[key];
\n
next('timeout');
\n
}
\n
"
,
"props"
:
{
"count"
:
{
"type"
:
"number"
,
"default"
:
5
,
"alias"
:
"次数"
},
"field"
:
{
"type"
:
"string"
,
"alias"
:
"字段名"
,
"default"
:
"status"
},
"successValues"
:
{
"type"
:
"string"
,
"alias"
:
"成功值"
}
},
"name"
:
"轮询判断"
,
"output"
:
[
"success"
,
"continue"
,
"timeout"
],
"id"
:
"http-polling-judge"
,
"group"
:
"net"
,
"type"
:
"builtin"
}
dist/processes/net/http-polling.json
View file @
7bf22da3
...
...
@@ -50,19 +50,6 @@
"442452af-e4d2-47be-b931-86fef866056f"
:
{
"uuid"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
26
,
"y"
:
15
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -73,26 +60,6 @@
"9def8371-1326-4daa-8220-78cf888297e3"
:
{
"uuid"
:
"9def8371-1326-4daa-8220-78cf888297e3"
,
"meta"
:
"wait"
,
"design"
:
{
"x"
:
343
,
"y"
:
277
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"duration"
:
{
"type"
:
"link"
,
...
...
@@ -108,38 +75,6 @@
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
:
{
"uuid"
:
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
,
"meta"
:
"http-polling-judge"
,
"design"
:
{
"x"
:
441
,
"y"
:
57
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"continue"
:
[
{
"x"
:
124.5
,
"y"
:
42
}
],
"timeout"
:
[
{
"x"
:
124.5
,
"y"
:
56
}
],
"success"
:
[
{
"x"
:
124.5
,
"y"
:
70
}
]
}
},
"props"
:
{
"count"
:
{
"type"
:
"link"
...
...
@@ -160,32 +95,6 @@
"2b895831-d362-491a-a57b-cd6e2d7223a8"
:
{
"uuid"
:
"2b895831-d362-491a-a57b-cd6e2d7223a8"
,
"meta"
:
"duiba-api"
,
"design"
:
{
"x"
:
238
,
"y"
:
10
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
]
}
},
"props"
:
{
"url"
:
{
"type"
:
"link"
...
...
dist/processes/prefabs/turntable.json
View file @
7bf22da3
This diff is collapsed.
Click to expand it.
dist/processes/projectX/api-polling.json
View file @
7bf22da3
...
...
@@ -51,19 +51,6 @@
"442452af-e4d2-47be-b931-86fef866056f"
:
{
"uuid"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
26
,
"y"
:
15
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -74,26 +61,6 @@
"9def8371-1326-4daa-8220-78cf888297e3"
:
{
"uuid"
:
"9def8371-1326-4daa-8220-78cf888297e3"
,
"meta"
:
"wait"
,
"design"
:
{
"x"
:
265
,
"y"
:
313
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"duration"
:
{
"type"
:
"link"
,
...
...
@@ -109,38 +76,6 @@
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
:
{
"uuid"
:
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
,
"meta"
:
"http-polling-judge"
,
"design"
:
{
"x"
:
441
,
"y"
:
57
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
42
}
],
"continue"
:
[
{
"x"
:
124.5
,
"y"
:
56
}
],
"timeout"
:
[
{
"x"
:
124.5
,
"y"
:
70
}
]
}
},
"props"
:
{
"count"
:
{
"type"
:
"link"
...
...
@@ -161,38 +96,6 @@
"37b87a14-679b-49b8-9293-321b82d6019d"
:
{
"uuid"
:
"37b87a14-679b-49b8-9293-321b82d6019d"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
250
,
"y"
:
43
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
64.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
50.5
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
64.5
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
78.5
}
]
}
},
"props"
:
{
"uri"
:
{
"type"
:
"link"
...
...
@@ -217,7 +120,7 @@
"subEntry"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"metas"
:
[
{
"script"
:
"var count = props.count, field = props.field, successValues = props.successValues;
\n
var key = 'counting-' + vm.id;
\n
var counting = global[key] || 0;
\n
counting++;
\n
var success
Arr = successValues.split(',');
\n
if (successArr.indexOf(args[field] + '') >= 0) {
\n
delete global[key];
\n
next('success', args);
\n
}
\n
else if (counting < count) {
\n
global[key] = counting;
\n
next('continue');
\n
}
\n
else {
\n
delete global[key];
\n
next('timeout');
\n
}
\n
"
,
"script"
:
"var count = props.count, field = props.field, successValues = props.successValues;
\n
var key = 'counting-' + vm.id;
\n
var counting = global[key] || 0;
\n
counting++;
\n
var success
Value = engine.getDataByPath(args, field) + '';
\n
var successArr = successValues.split(',');
\n
if (successArr.indexOf(successValue) >= 0) {
\n
delete global[key];
\n
next('success', args);
\n
}
\n
else if (counting < count) {
\n
global[key] = counting;
\n
next('continue');
\n
}
\n
else {
\n
delete global[key];
\n
next('timeout');
\n
}
"
,
"props"
:
{
"count"
:
{
"type"
:
"number"
,
...
...
dist/processes/share/share-preprocessing.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{},
"name"
:
"分享预处理"
,
"output"
:
[
"success"
],
"id"
:
"share-preprocessing"
,
"script"
:
"var title = engine.findVariable('shareTitle', args, props, engine.env);
\n
var content = engine.findVariable('shareContent', args, props, engine.env);
\n
var url = engine.findVariable('shareUrl', args, props, engine.env);
\n
var thumbnail = engine.findVariable('shareThumbnail', args, props, engine.env);
\n
next('success', { title: title, content: content, url: url, thumbnail: thumbnail });
\n
"
,
"group"
:
"share"
,
"type"
:
"builtin"
}
dist/processes/share/share-sunsunshine.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{
"update"
:
{
"type"
:
"boolean"
,
"alias"
:
"仅更新"
}
},
"name"
:
"阳光守护分享"
,
"output"
:
[
"success"
,
"failed"
,
"pass"
],
"id"
:
"share-sunsunshine"
,
"script"
:
"if (props.update || args.env !== 'eversunshine') {
\n
next('pass');
\n
}
\n
else {
\n
var title = args.title, content = args.content, url = args.url, thumbnail = args.thumbnail;
\n
var params = {
\n
title: title,
\n
content: content,
\n
href: url,
\n
thumbs: [thumbnail],
\n
};
\n
plusShare(params, function (result) {
\n
if (!!result) {
\n
next('success');
\n
}
\n
else {
\n
next('failed');
\n
}
\n
});
\n
next('success');
\n
}
\n
"
,
"group"
:
"share"
,
"type"
:
"builtin"
}
dist/processes/share/share-weixin.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{
"update"
:
{
"type"
:
"boolean"
,
"alias"
:
"仅更新"
}
},
"name"
:
"微信分享"
,
"output"
:
[
"success"
,
"failed"
,
"pass"
,
"guide"
],
"id"
:
"share-weixin"
,
"script"
:
"if (args.env !== 'weixin') {
\n
next('pass');
\n
}
\n
else {
\n
var title = args.title, content = args.content, url = args.url, thumbnail = args.thumbnail;
\n
var params_1 = {
\n
title: title,
\n
desc: content,
\n
link: url,
\n
imgUrl: thumbnail,
\n
};
\n
var wxEvents_1 = ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'];
\n
wx.ready(function () {
\n
wxEvents_1.forEach(function (method) {
\n
wx[method](params_1);
\n
});
\n
});
\n
if (props.update) {
\n
next('success');
\n
}
\n
else {
\n
next('guide');
\n
}
\n
}
\n
"
,
"group"
:
"share"
,
"type"
:
"builtin"
}
scripts/compiler-process.js
View file @
7bf22da3
...
...
@@ -14,7 +14,14 @@ const [_, __, sourcePath, outputPath = 'dist/processes', builtin] = process.argv
const
isBuiltin
=
builtin
?
builtin
===
'builtin'
:
true
;
if
(
sourcePath
)
{
if
(
sourcePath
.
includes
(
'/'
)){
compileProcess
(
sourcePath
,
outputPath
,
isBuiltin
);
}
else
{
const
files
=
glob
.
sync
(
sourcePath
+
'/*'
,
{
cwd
:
process
.
cwd
()
+
'/src/process'
});
for
(
let
file
of
files
)
{
compileProcess
(
file
,
outputPath
,
isBuiltin
);
}
}
}
else
{
const
files
=
glob
.
sync
(
'*/*'
,
{
cwd
:
process
.
cwd
()
+
'/src/process'
});
for
(
let
file
of
files
)
{
...
...
src/process/base/dispatch-event/index.ts
0 → 100644
View file @
7bf22da3
/**
* Created by rockyl on 2019-11-16.
*/
const
eventName
=
engine
.
findVariable
(
'eventName'
,
args
,
props
);
const
data
=
engine
.
findVariable
(
'data'
,
args
,
props
);
const
useCapture
=
engine
.
findVariable
(
'useCapture'
,
args
,
props
);
if
(
eventName
){
engine
.
globalEvent
.
dispatchEvent
(
eventName
,
data
,
useCapture
);
}
next
(
'success'
,
args
);
src/process/base/dispatch-event/meta.json
0 → 100644
View file @
7bf22da3
{
"name"
:
"发送事件"
,
"desc"
:
"发送事件"
,
"props"
:
{
"eventName"
:
{
"type"
:
"string"
,
"alias"
:
"事件名"
},
"data"
:
{
"type"
:
"dynamic"
,
"alias"
:
"数据"
},
"useCapture"
:
{
"type"
:
"boolean"
,
"alias"
:
"是否捕获"
,
"default"
:
true
}
},
"output"
:
[
"success"
]
}
src/process/base/env-judge/index.ts
0 → 100644
View file @
7bf22da3
/**
* Created by rockyl on 2019-12-05.
*/
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
let
env
;
if
(
ua
.
indexOf
(
'eversunshine'
)
>=
0
){
env
=
'eversunshine'
}
else
if
(
ua
.
indexOf
(
'micromessenger'
)
>=
0
){
env
=
'weixin'
}
const
payload
=
args
||
{};
payload
.
env
=
env
;
next
(
'success'
,
payload
);
src/process/base/env-judge/meta.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{},
"name"
:
"环境判断"
,
"output"
:
[
"success"
]
}
\ No newline at end of file
src/process/duiba/duiba-api/meta.json
View file @
7bf22da3
...
...
@@ -32,19 +32,6 @@
"5fc7ba4d-6afa-4eab-82d8-f25cbcb79d56"
:
{
"uuid"
:
"5fc7ba4d-6afa-4eab-82d8-f25cbcb79d56"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -55,38 +42,6 @@
"69e28053-dfb3-459e-a9e5-4964c6e35193"
:
{
"uuid"
:
"69e28053-dfb3-459e-a9e5-4964c6e35193"
,
"meta"
:
"http-request"
,
"design"
:
{
"x"
:
67
,
"y"
:
139
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
33.5
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
61.5
}
]
}
},
"props"
:
{
"url"
:
{
"type"
:
"link"
...
...
@@ -104,32 +59,6 @@
"39dce565-539b-44b6-901c-0344467795a8"
:
{
"uuid"
:
"39dce565-539b-44b6-901c-0344467795a8"
,
"meta"
:
"duiba-api-transform"
,
"design"
:
{
"x"
:
184
,
"y"
:
275
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
30.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
23.5
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
37.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -140,26 +69,6 @@
"e95e7bbc-b592-4f87-b433-77fd03a9ef51"
:
{
"uuid"
:
"e95e7bbc-b592-4f87-b433-77fd03a9ef51"
,
"meta"
:
"put-data"
,
"design"
:
{
"x"
:
280
,
"y"
:
367
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"name"
:
{
"type"
:
"link"
...
...
src/process/net/http-polling-judge/index.ts
deleted
100644 → 0
View file @
fe477e13
/**
* Created by rockyl on 2019-11-16.
*/
const
{
count
,
field
,
successValues
}
=
props
;
const
key
=
'counting-'
+
vm
.
id
;
let
counting
=
global
[
key
]
||
0
;
counting
++
;
let
successArr
=
successValues
.
split
(
','
);
if
(
successArr
.
indexOf
(
args
[
field
]
+
''
)
>=
0
)
{
delete
global
[
key
];
next
(
'success'
,
args
);
}
else
if
(
counting
<
count
)
{
global
[
key
]
=
counting
;
next
(
'continue'
);
}
else
{
delete
global
[
key
];
next
(
'timeout'
);
}
src/process/net/http-polling-judge/meta.json
deleted
100644 → 0
View file @
fe477e13
{
"script"
:
""
,
"props"
:
{
"count"
:
{
"type"
:
"number"
,
"default"
:
5
,
"alias"
:
"次数"
},
"field"
:
{
"type"
:
"string"
,
"alias"
:
"字段名"
,
"default"
:
"status"
},
"successValues"
:
{
"type"
:
"string"
,
"alias"
:
"成功值"
}
},
"name"
:
"轮询判断"
,
"output"
:
[
"success"
,
"continue"
,
"timeout"
]
}
\ No newline at end of file
src/process/net/http-polling/meta.json
View file @
7bf22da3
...
...
@@ -50,19 +50,6 @@
"442452af-e4d2-47be-b931-86fef866056f"
:
{
"uuid"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
26
,
"y"
:
15
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -73,26 +60,6 @@
"9def8371-1326-4daa-8220-78cf888297e3"
:
{
"uuid"
:
"9def8371-1326-4daa-8220-78cf888297e3"
,
"meta"
:
"wait"
,
"design"
:
{
"x"
:
343
,
"y"
:
277
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"duration"
:
{
"type"
:
"link"
,
...
...
@@ -108,38 +75,6 @@
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
:
{
"uuid"
:
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
,
"meta"
:
"http-polling-judge"
,
"design"
:
{
"x"
:
441
,
"y"
:
57
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"continue"
:
[
{
"x"
:
124.5
,
"y"
:
42
}
],
"timeout"
:
[
{
"x"
:
124.5
,
"y"
:
56
}
],
"success"
:
[
{
"x"
:
124.5
,
"y"
:
70
}
]
}
},
"props"
:
{
"count"
:
{
"type"
:
"link"
...
...
@@ -160,32 +95,6 @@
"2b895831-d362-491a-a57b-cd6e2d7223a8"
:
{
"uuid"
:
"2b895831-d362-491a-a57b-cd6e2d7223a8"
,
"meta"
:
"duiba-api"
,
"design"
:
{
"x"
:
238
,
"y"
:
10
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
]
}
},
"props"
:
{
"url"
:
{
"type"
:
"link"
...
...
src/process/prefabs/turntable/meta.json
View file @
7bf22da3
...
...
@@ -34,19 +34,6 @@
"uuid"
:
"11f3efcc-c2f2-4b2d-be68-61ee4ceb0d7a"
,
"alias"
:
"Entry"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
15
,
"y"
:
2
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -57,26 +44,6 @@
"1dc4c11e-27a2-4b66-a230-dee1f47dcb9d"
:
{
"uuid"
:
"1dc4c11e-27a2-4b66-a230-dee1f47dcb9d"
,
"meta"
:
"set-mouse-enabled"
,
"design"
:
{
"x"
:
345.8888888888889
,
"y"
:
75
,
"input"
:
{
"default"
:
[
{
"x"
:
5.611111111111086
,
"y"
:
47.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.61111111111109
,
"y"
:
47.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -87,26 +54,6 @@
"ae449fab-5a4a-48e2-a72d-6b745586d20d"
:
{
"uuid"
:
"ae449fab-5a4a-48e2-a72d-6b745586d20d"
,
"meta"
:
"log"
,
"design"
:
{
"x"
:
190
,
"y"
:
11
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"content"
:
"开始抽奖"
},
...
...
@@ -119,26 +66,6 @@
"fc341306-d60e-4e88-99e8-84888ac2e841"
:
{
"uuid"
:
"fc341306-d60e-4e88-99e8-84888ac2e841"
,
"meta"
:
"set-mouse-enabled"
,
"design"
:
{
"x"
:
1005.6666666666667
,
"y"
:
355.1111111111111
,
"input"
:
{
"default"
:
[
{
"x"
:
5.8333333333332575
,
"y"
:
47.388888888888914
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.83333333333326
,
"y"
:
47.388888888888914
}
]
}
},
"props"
:
{
"enabled"
:
true
},
...
...
@@ -147,32 +74,6 @@
"1a6d2146-d4fa-4901-b227-858e9fb05497"
:
{
"uuid"
:
"1a6d2146-d4fa-4901-b227-858e9fb05497"
,
"meta"
:
"duiba-api"
,
"design"
:
{
"x"
:
337
,
"y"
:
366
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
]
}
},
"props"
:
{
"url"
:
"http://10.10.94.134:3003/hdtool/recon/doJoin"
,
"name"
:
"doJoin"
...
...
@@ -190,38 +91,6 @@
"f1dae956-de13-403e-864c-0d3855e57017"
:
{
"uuid"
:
"f1dae956-de13-403e-864c-0d3855e57017"
,
"meta"
:
"http-polling"
,
"design"
:
{
"x"
:
499.33333333333326
,
"y"
:
255.66666666666669
,
"input"
:
{
"default"
:
[
{
"x"
:
5.1666666666667425
,
"y"
:
90.33333333333331
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.16666666666674
,
"y"
:
76.33333333333331
}
],
"failed"
:
[
{
"x"
:
124.16666666666674
,
"y"
:
90.33333333333331
}
],
"timeout"
:
[
{
"x"
:
124.16666666666674
,
"y"
:
104.33333333333331
}
]
}
},
"props"
:
{
"delay"
:
500
,
"url"
:
"http://10.10.94.134:3003/hdtool/recon/getOrderStatus"
,
...
...
@@ -246,26 +115,6 @@
"b96a3296-766a-4add-a9e2-5439779421f5"
:
{
"uuid"
:
"b96a3296-766a-4add-a9e2-5439779421f5"
,
"meta"
:
"d2c886c5-b29a-488a-8928-5e5ffe476696"
,
"design"
:
{
"x"
:
270.6666666666667
,
"y"
:
223
,
"input"
:
{
"default"
:
[
{
"x"
:
5.833333333333314
,
"y"
:
47.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.83333333333331
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"duration"
:
2000
,
"target"
:
{
...
...
@@ -281,26 +130,6 @@
"416be49e-f2e0-4fc0-bf28-879a6fd29015"
:
{
"uuid"
:
"416be49e-f2e0-4fc0-bf28-879a6fd29015"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
139.55555555555554
,
"y"
:
305.44444444444446
,
"input"
:
{
"default"
:
[
{
"x"
:
5.944444444444457
,
"y"
:
47.05555555555554
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.94444444444446
,
"y"
:
47.05555555555554
}
]
}
},
"props"
:
{
"viewName"
:
{
"type"
:
"link"
,
...
...
@@ -314,32 +143,6 @@
"d56e2901-749e-43ee-93fc-bb480f234294"
:
{
"uuid"
:
"d56e2901-749e-43ee-93fc-bb480f234294"
,
"meta"
:
"compare"
,
"design"
:
{
"x"
:
87.22222222222223
,
"y"
:
119
,
"input"
:
{
"default"
:
[
{
"x"
:
5.2777777777777715
,
"y"
:
56
}
]
},
"output"
:
{
"true"
:
[
{
"x"
:
124.27777777777777
,
"y"
:
49
}
],
"false"
:
[
{
"x"
:
124.27777777777777
,
"y"
:
63
}
]
}
},
"props"
:
{
"left"
:
{
"type"
:
"data-center"
,
...
...
@@ -363,26 +166,6 @@
"63fa6201-3acd-41fe-80a1-d0a502b971f8"
:
{
"uuid"
:
"63fa6201-3acd-41fe-80a1-d0a502b971f8"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
1183
,
"y"
:
148
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"viewName"
:
{
"type"
:
"link"
,
...
...
@@ -394,32 +177,6 @@
"82216b90-f6c2-4060-9fb1-4e335f946a73"
:
{
"uuid"
:
"82216b90-f6c2-4060-9fb1-4e335f946a73"
,
"meta"
:
"31df5957-3f8f-44d8-9e6b-325b04b2c0cf"
,
"design"
:
{
"x"
:
800
,
"y"
:
310
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
44.5
}
]
},
"output"
:
{
"p0"
:
[
{
"x"
:
124.5
,
"y"
:
37.5
}
],
"p1"
:
[
{
"x"
:
124.5
,
"y"
:
51.5
}
]
}
},
"props"
:
{},
"output"
:
{
"p0"
:
[
...
...
@@ -434,26 +191,6 @@
"8e00dea7-19d0-40f6-abf4-bb8351f96a2c"
:
{
"uuid"
:
"8e00dea7-19d0-40f6-abf4-bb8351f96a2c"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
878
,
"y"
:
451
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"viewName"
:
{
"type"
:
"link"
,
...
...
@@ -465,38 +202,6 @@
"bb4ce362-0389-4c2b-bb78-288a6a839c05"
:
{
"uuid"
:
"bb4ce362-0389-4c2b-bb78-288a6a839c05"
,
"meta"
:
"14d59115-f556-400e-913b-9e8d3d7235c3"
,
"design"
:
{
"x"
:
664
,
"y"
:
434
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
44.5
}
]
},
"output"
:
{
"p0"
:
[
{
"x"
:
124.5
,
"y"
:
30.5
}
],
"p1"
:
[
{
"x"
:
124.5
,
"y"
:
44.5
}
],
"p2"
:
[
{
"x"
:
124.5
,
"y"
:
58.5
}
]
}
},
"props"
:
{},
"output"
:
{
"p0"
:
[
...
...
@@ -514,26 +219,6 @@
"6ced550f-e3eb-4010-8205-65aaa68e4905"
:
{
"uuid"
:
"6ced550f-e3eb-4010-8205-65aaa68e4905"
,
"meta"
:
"3f02e64a-b20d-4834-acf9-8b5e979671c0"
,
"design"
:
{
"x"
:
656.2857142857142
,
"y"
:
138
,
"input"
:
{
"default"
:
[
{
"x"
:
5.214285714285779
,
"y"
:
64.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.21428571428578
,
"y"
:
64.5
}
]
}
},
"props"
:
{
"target"
:
{
"type"
:
"link"
...
...
@@ -551,32 +236,6 @@
"e3fb3404-2e41-4384-9d3c-a51a391ad509"
:
{
"uuid"
:
"e3fb3404-2e41-4384-9d3c-a51a391ad509"
,
"meta"
:
"compare"
,
"design"
:
{
"x"
:
1001
,
"y"
:
192
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"true"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"false"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
]
}
},
"props"
:
{
"left"
:
{
"type"
:
"data-center"
,
...
...
@@ -599,26 +258,6 @@
"4ae2c447-2bf2-4f01-8e40-e8a6984592f4"
:
{
"uuid"
:
"4ae2c447-2bf2-4f01-8e40-e8a6984592f4"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
1187
,
"y"
:
277
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47.5
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47.5
}
]
}
},
"props"
:
{
"viewName"
:
{
"type"
:
"link"
,
...
...
@@ -630,32 +269,6 @@
"43fc1923-0a23-4ea5-8b64-a6196260a211"
:
{
"uuid"
:
"43fc1923-0a23-4ea5-8b64-a6196260a211"
,
"meta"
:
"d47c5143-c958-4a1f-8d74-958626af9bf8"
,
"design"
:
{
"x"
:
851
,
"y"
:
551
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{
"target"
:
{
"type"
:
"link"
...
...
@@ -666,26 +279,6 @@
"5a727c49-f660-4736-89d7-cf74f186a345"
:
{
"uuid"
:
"5a727c49-f660-4736-89d7-cf74f186a345"
,
"meta"
:
"wait"
,
"design"
:
{
"x"
:
811
,
"y"
:
192
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"duration"
:
500
},
...
...
src/process/projectX/api-polling/meta.json
View file @
7bf22da3
...
...
@@ -51,19 +51,6 @@
"442452af-e4d2-47be-b931-86fef866056f"
:
{
"uuid"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
26
,
"y"
:
15
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -74,26 +61,6 @@
"9def8371-1326-4daa-8220-78cf888297e3"
:
{
"uuid"
:
"9def8371-1326-4daa-8220-78cf888297e3"
,
"meta"
:
"wait"
,
"design"
:
{
"x"
:
265
,
"y"
:
313
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"duration"
:
{
"type"
:
"link"
,
...
...
@@ -109,38 +76,6 @@
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
:
{
"uuid"
:
"b88c8995-28eb-470f-a8a2-7484c9f98e05"
,
"meta"
:
"http-polling-judge"
,
"design"
:
{
"x"
:
441
,
"y"
:
57
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
56
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
42
}
],
"continue"
:
[
{
"x"
:
124.5
,
"y"
:
56
}
],
"timeout"
:
[
{
"x"
:
124.5
,
"y"
:
70
}
]
}
},
"props"
:
{
"count"
:
{
"type"
:
"link"
...
...
@@ -161,38 +96,6 @@
"37b87a14-679b-49b8-9293-321b82d6019d"
:
{
"uuid"
:
"37b87a14-679b-49b8-9293-321b82d6019d"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
250
,
"y"
:
43
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
64.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
50.5
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
64.5
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
78.5
}
]
}
},
"props"
:
{
"uri"
:
{
"type"
:
"link"
...
...
@@ -217,7 +120,7 @@
"subEntry"
:
"442452af-e4d2-47be-b931-86fef866056f"
,
"metas"
:
[
{
"script"
:
"var count = props.count, field = props.field, successValues = props.successValues;
\n
var key = 'counting-' + vm.id;
\n
var counting = global[key] || 0;
\n
counting++;
\n
var success
Arr = successValues.split(',');
\n
if (successArr.indexOf(args[field] + '') >= 0) {
\n
delete global[key];
\n
next('success', args);
\n
}
\n
else if (counting < count) {
\n
global[key] = counting;
\n
next('continue');
\n
}
\n
else {
\n
delete global[key];
\n
next('timeout');
\n
}
\n
"
,
"script"
:
"var count = props.count, field = props.field, successValues = props.successValues;
\n
var key = 'counting-' + vm.id;
\n
var counting = global[key] || 0;
\n
counting++;
\n
var success
Value = engine.getDataByPath(args, field) + '';
\n
var successArr = successValues.split(',');
\n
if (successArr.indexOf(successValue) >= 0) {
\n
delete global[key];
\n
next('success', args);
\n
}
\n
else if (counting < count) {
\n
global[key] = counting;
\n
next('continue');
\n
}
\n
else {
\n
delete global[key];
\n
next('timeout');
\n
}
"
,
"props"
:
{
"count"
:
{
"type"
:
"number"
,
...
...
src/process/projectX/api-request/meta.json
View file @
7bf22da3
...
...
@@ -32,19 +32,6 @@
"e6a9f1de-40c6-445b-b5e9-5c50a904a4de"
:
{
"uuid"
:
"e6a9f1de-40c6-445b-b5e9-5c50a904a4de"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
...
...
@@ -55,26 +42,6 @@
"567169ba-a2c1-4c10-9025-605a2e89ef0f"
:
{
"uuid"
:
"567169ba-a2c1-4c10-9025-605a2e89ef0f"
,
"meta"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"design"
:
{
"x"
:
163
,
"y"
:
133
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"host"
:
{
"type"
:
"link"
...
...
@@ -92,32 +59,6 @@
"f9a32b46-aec1-4bd2-9b98-3d9a427d87db"
:
{
"uuid"
:
"f9a32b46-aec1-4bd2-9b98-3d9a427d87db"
,
"meta"
:
"duiba-api"
,
"design"
:
{
"x"
:
350
,
"y"
:
188
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
64.5
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
57.5
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
71.5
}
]
}
},
"props"
:
{
"method"
:
{
"type"
:
"link"
...
...
@@ -134,7 +75,7 @@
"metas"
:
[
{
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(
location.pathname === '/preview'
){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url});"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(
uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0
){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url});"
,
"props"
:
{
"uri"
:
{
"type"
:
"string"
,
...
...
src/process/share/share-preprocessing/index.ts
0 → 100644
View file @
7bf22da3
/**
* Created by rockyl on 2019-12-05.
*/
const
title
=
engine
.
findVariable
(
'shareTitle'
,
args
,
props
,
engine
.
env
);
const
content
=
engine
.
findVariable
(
'shareContent'
,
args
,
props
,
engine
.
env
);
const
url
=
engine
.
findVariable
(
'shareUrl'
,
args
,
props
,
engine
.
env
);
const
thumbnail
=
engine
.
findVariable
(
'shareThumbnail'
,
args
,
props
,
engine
.
env
);
next
(
'success'
,
{
title
,
content
,
url
,
thumbnail
});
src/process/share/share-preprocessing/meta.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{},
"name"
:
"分享预处理"
,
"output"
:
[
"success"
]
}
\ No newline at end of file
src/process/share/share-sunsunshine/index.ts
0 → 100644
View file @
7bf22da3
/**
* Created by rockyl on 2019-12-05.
*/
declare
function
plusShare
(
params
,
callback
);
if
(
props
.
update
||
args
.
env
!==
'eversunshine'
){
next
(
'pass'
);
}
else
{
const
{
title
,
content
,
url
,
thumbnail
}
=
args
;
let
params
=
{
title
:
title
,
content
:
content
,
href
:
url
,
thumbs
:
[
thumbnail
],
};
plusShare
(
params
,
(
result
)
=>
{
if
(
!!
result
){
next
(
'success'
);
}
else
{
next
(
'failed'
);
}
});
next
(
'success'
);
}
src/process/share/share-sunsunshine/meta.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{
"update"
:
{
"type"
:
"boolean"
,
"alias"
:
"仅更新"
}
},
"name"
:
"阳光守护分享"
,
"output"
:
[
"success"
,
"failed"
,
"pass"
]
}
src/process/share/share-weixin/index.ts
0 → 100644
View file @
7bf22da3
/**
* Created by rockyl on 2019-12-05.
*/
declare
const
wx
:
any
;
if
(
args
.
env
!==
'weixin'
){
next
(
'pass'
);
}
else
{
const
{
title
,
content
,
url
,
thumbnail
}
=
args
;
let
params
=
{
title
:
title
,
desc
:
content
,
link
:
url
,
imgUrl
:
thumbnail
,
};
const
wxEvents
=
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'onMenuShareQQ'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
];
wx
.
ready
(()
=>
{
wxEvents
.
forEach
(
method
=>
{
wx
[
method
](
params
);
});
});
if
(
props
.
update
){
next
(
'success'
);
}
else
{
next
(
'guide'
);
}
}
src/process/share/share-weixin/meta.json
0 → 100644
View file @
7bf22da3
{
"props"
:
{
"update"
:
{
"type"
:
"boolean"
,
"alias"
:
"仅更新"
}
},
"name"
:
"微信分享"
,
"output"
:
[
"success"
,
"failed"
,
"pass"
,
"guide"
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment