@aj-shadow/z-abs-funclayer-engine-cs 0.0.0-aj-beta.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +26 -0
- package/LICENSE.txt +96 -0
- package/README.md +5 -0
- package/npm-shrinkwrap.json +13 -0
- package/package.json +10 -0
- package/project/clientServer/_build/Bundle-FuncLayer-Engine-cs.bld +24 -0
- package/project/clientServer/_build/Client-FuncLayer-Engine-cs.bld +10 -0
- package/project/clientServer/_build/Server-FuncLayer-Engine-cs.bld +12 -0
- package/project/clientServer/_build/z-abs-funclayer-engine-cs.prj +28 -0
- package/project/clientServer/communication/app-protocol/app-protocol-const.js +36 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-debug-continue.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-debug-pause.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-debug-step-in.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-debug-step-out.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-debug-step-over.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-case-stop.js +15 -0
- package/project/clientServer/communication/messages/messages-client-to-server/message-test-suite-stop.js +15 -0
- package/project/clientServer/execution/actor-phase-const.js +61 -0
- package/project/clientServer/execution/actor-result-const.js +209 -0
- package/project/clientServer/execution/actor-state-const.js +28 -0
- package/project/clientServer/execution/actor-type-const.js +84 -0
- package/project/clientServer/log/log-data-action.js +62 -0
- package/project/clientServer/log/log-data-gui-sub-type.js +36 -0
- package/project/clientServer/log/log-data-gui-type.js +44 -0
- package/project/clientServer/log/log-data-stack-type.js +30 -0
- package/project/clientServer/log/log-inner.js +79 -0
- package/project/clientServer/log/log-message.js +16 -0
- package/project/clientServer/log/log-object-ip.js +18 -0
- package/project/clientServer/log/log-part-buffer-cached.js +15 -0
- package/project/clientServer/log/log-part-buffer.js +17 -0
- package/project/clientServer/log/log-part-error.js +19 -0
- package/project/clientServer/log/log-part-ref.js +16 -0
- package/project/clientServer/log/log-part-text.js +15 -0
- package/project/clientServer/log/log-part-type.js +26 -0
- package/project/clientServer/log/log-source-type.js +16 -0
- package/project/clientServer/log/log-type.js +88 -0
- package/project/clientServer/log/msg/log-msg-client.js +16 -0
- package/project/clientServer/log/msg/log-msg-message.js +16 -0
- package/project/clientServer/log/msg/log-msg-server.js +16 -0
- package/project/clientServer/log/msg/log-msg-stack.js +19 -0
- package/project/clientServer/stack/transport-type-const.js +46 -0
- package/project/z-abs-funclayer-engine-cs.tree +47 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ActorStateConst {
|
|
6
|
+
static DATA = 0;
|
|
7
|
+
static INIT_SERVER = 1;
|
|
8
|
+
static INIT_CLIENT = 2;
|
|
9
|
+
static RUN = 3;
|
|
10
|
+
static EXIT = 4;
|
|
11
|
+
static DONE = 5;
|
|
12
|
+
|
|
13
|
+
static actorStateNames = [
|
|
14
|
+
'data',
|
|
15
|
+
'initServer',
|
|
16
|
+
'initClient',
|
|
17
|
+
'run',
|
|
18
|
+
'exit',
|
|
19
|
+
'done'
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
static getName(actorStateId) {
|
|
23
|
+
return ActorStateConst.actorStateNames[actorStateId];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module.exports = ActorStateConst;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ActorTypeConst {
|
|
6
|
+
static LOCAL = 0;
|
|
7
|
+
static COND = 1;
|
|
8
|
+
static ORIG = 2;
|
|
9
|
+
static REAL_SUT = 3;
|
|
10
|
+
static SUT = 4;
|
|
11
|
+
static PROXY = 5;
|
|
12
|
+
static TERM = 6;
|
|
13
|
+
static INTER = 7;
|
|
14
|
+
|
|
15
|
+
static NAME_LOCAL = 'local';
|
|
16
|
+
static NAME_COND = 'cond';
|
|
17
|
+
static NAME_ORIG = 'orig';
|
|
18
|
+
static NAME_REAL_SUT = 'real_sut';
|
|
19
|
+
static NAME_SUT = 'sut';
|
|
20
|
+
static NAME_PROXY = 'proxy';
|
|
21
|
+
static NAME_TERM = 'term';
|
|
22
|
+
static NAME_INTER = 'inter';
|
|
23
|
+
|
|
24
|
+
static FULL_NAME_LOCAL = 'Local';
|
|
25
|
+
static FULL_NAME_COND = 'Condition';
|
|
26
|
+
static FULL_NAME_ORIG = 'Originating';
|
|
27
|
+
static FULL_NAME_REAL_SUT = 'RealSut';
|
|
28
|
+
static FULL_NAME_SUT = 'Sut';
|
|
29
|
+
static FULL_NAME_PROXY = 'Proxy';
|
|
30
|
+
static FULL_NAME_TERM = 'Terminating';
|
|
31
|
+
static FULL_NAME_INTER = 'Intercepting';
|
|
32
|
+
|
|
33
|
+
static names = [
|
|
34
|
+
ActorTypeConst.NAME_LOCAL,
|
|
35
|
+
ActorTypeConst.NAME_COND,
|
|
36
|
+
ActorTypeConst.NAME_ORIG,
|
|
37
|
+
ActorTypeConst.NAME_REAL_SUT,
|
|
38
|
+
ActorTypeConst.NAME_SUT,
|
|
39
|
+
ActorTypeConst.NAME_PROXY,
|
|
40
|
+
ActorTypeConst.NAME_TERM,
|
|
41
|
+
ActorTypeConst.NAME_INTER
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
static ids = new Map(
|
|
45
|
+
[
|
|
46
|
+
[ActorTypeConst.NAME_LOCAL, ActorTypeConst.LOCAL],
|
|
47
|
+
[ActorTypeConst.NAME_COND, ActorTypeConst.COND],
|
|
48
|
+
[ActorTypeConst.NAME_ORIG, ActorTypeConst.ORIG],
|
|
49
|
+
[ActorTypeConst.NAME_REAL_SUT, ActorTypeConst.REAL_SUT],
|
|
50
|
+
[ActorTypeConst.NAME_SUT, ActorTypeConst.SUT],
|
|
51
|
+
[ActorTypeConst.NAME_PROXY, ActorTypeConst.PROXY],
|
|
52
|
+
[ActorTypeConst.NAME_TERM, ActorTypeConst.TERM],
|
|
53
|
+
[ActorTypeConst.NAME_INTER, ActorTypeConst.INTER]
|
|
54
|
+
]
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
static fullNameIds = new Map(
|
|
58
|
+
[
|
|
59
|
+
[ActorTypeConst.FULL_NAME_LOCAL, ActorTypeConst.LOCAL],
|
|
60
|
+
[ActorTypeConst.FULL_NAME_COND, ActorTypeConst.COND],
|
|
61
|
+
[ActorTypeConst.FULL_NAME_ORIG, ActorTypeConst.ORIG],
|
|
62
|
+
[ActorTypeConst.FULL_NAME_REAL_SUT, ActorTypeConst.REAL_SUT],
|
|
63
|
+
[ActorTypeConst.FULL_NAME_SUT, ActorTypeConst.SUT],
|
|
64
|
+
[ActorTypeConst.FULL_NAME_PROXY, ActorTypeConst.PROXY],
|
|
65
|
+
[ActorTypeConst.FULL_NAME_TERM, ActorTypeConst.TERM],
|
|
66
|
+
[ActorTypeConst.FULL_NAME_INTER, ActorTypeConst.INTER]
|
|
67
|
+
]
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
static getName(id) {
|
|
71
|
+
return ActorTypeConst.names[id];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static getId(name) {
|
|
75
|
+
return ActorTypeConst.ids.get(name);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static getPriority(id) {
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
module.exports = ActorTypeConst;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
class LogDataAction {
|
|
5
|
+
static length = 0;
|
|
6
|
+
static STARTING = LogDataAction.length++;
|
|
7
|
+
static STARTED = LogDataAction.length++;
|
|
8
|
+
static ATTACHED = LogDataAction.length++;
|
|
9
|
+
static STOPPING = LogDataAction.length++;
|
|
10
|
+
static STOPPED = LogDataAction.length++;
|
|
11
|
+
static DETACHED = LogDataAction.length++;
|
|
12
|
+
static NOT_STARTED = LogDataAction.length++;
|
|
13
|
+
static NOT_ATTACHED = LogDataAction.length++;
|
|
14
|
+
static SEND = LogDataAction.length++;
|
|
15
|
+
static RECEIVE = LogDataAction.length++;
|
|
16
|
+
static CONNECTING = LogDataAction.length++;
|
|
17
|
+
static CONNECTED = LogDataAction.length++;
|
|
18
|
+
static DNS_FAILURE = LogDataAction.length++;
|
|
19
|
+
static NOT_CONNECTED = LogDataAction.length++;
|
|
20
|
+
static UPGRADING = LogDataAction.length++;
|
|
21
|
+
static UPGRADED = LogDataAction.length++;
|
|
22
|
+
static NOT_UPGRADED = LogDataAction.length++;
|
|
23
|
+
static ACCEPTING = LogDataAction.length++;
|
|
24
|
+
static ACCEPTED = LogDataAction.length++;
|
|
25
|
+
static HALF_CLOSING = LogDataAction.length++;
|
|
26
|
+
static HALF_CLOSED = LogDataAction.length++;
|
|
27
|
+
static CLOSING = LogDataAction.length++;
|
|
28
|
+
static CLOSED = LogDataAction.length++;
|
|
29
|
+
static GUI = LogDataAction.length++;
|
|
30
|
+
static STACK = LogDataAction.length++;
|
|
31
|
+
|
|
32
|
+
static LOG = [
|
|
33
|
+
'STARTING',
|
|
34
|
+
'STARTED',
|
|
35
|
+
'ATTACHED',
|
|
36
|
+
'STOPPING',
|
|
37
|
+
'STOPPED',
|
|
38
|
+
'DETACHED',
|
|
39
|
+
'NOT_STARTED',
|
|
40
|
+
'NOT_ATTACHED',
|
|
41
|
+
'SEND',
|
|
42
|
+
'RECEIVE',
|
|
43
|
+
'CONNECTING',
|
|
44
|
+
'CONNECTED',
|
|
45
|
+
'DNS_FAILURE',
|
|
46
|
+
'NOT_CONNECTED',
|
|
47
|
+
'UPGRADING',
|
|
48
|
+
'UPGRADED',
|
|
49
|
+
'NOT_UPGRADED',
|
|
50
|
+
'ACCEPTING',
|
|
51
|
+
'ACCEPTED',
|
|
52
|
+
'HALF_CLOSING',
|
|
53
|
+
'HALF_CLOSED',
|
|
54
|
+
'CLOSING',
|
|
55
|
+
'CLOSED',
|
|
56
|
+
'GUI',
|
|
57
|
+
'STACK'
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
module.exports = LogDataAction;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogDataGuiSubType {
|
|
6
|
+
static SUB_TYPE_OBJECT = 0;
|
|
7
|
+
static SUB_TYPE_ACTION = 1;
|
|
8
|
+
static SUB_TYPE_FUNCTION = 2;
|
|
9
|
+
|
|
10
|
+
static subTypes = [
|
|
11
|
+
LogDataGuiSubType.SUB_TYPE_OBJECT,
|
|
12
|
+
LogDataGuiSubType.SUB_TYPE_OBJECT,
|
|
13
|
+
LogDataGuiSubType.SUB_TYPE_OBJECT,
|
|
14
|
+
LogDataGuiSubType.SUB_TYPE_OBJECT,
|
|
15
|
+
LogDataGuiSubType.SUB_TYPE_ACTION,
|
|
16
|
+
LogDataGuiSubType.SUB_TYPE_ACTION,
|
|
17
|
+
LogDataGuiSubType.SUB_TYPE_FUNCTION
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
static SUB_TYPE_TEXT_OBJECT = 'object';
|
|
21
|
+
static SUB_TYPE_TEXT_ACTION = 'action';
|
|
22
|
+
static SUB_TYPE_TEXT_FUNCTION = 'function';
|
|
23
|
+
|
|
24
|
+
static subTypeNames = [
|
|
25
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_OBJECT,
|
|
26
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_OBJECT,
|
|
27
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_OBJECT,
|
|
28
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_OBJECT,
|
|
29
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_ACTION,
|
|
30
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_ACTION,
|
|
31
|
+
LogDataGuiSubType.SUB_TYPE_TEXT_FUNCTION
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
module.exports = LogDataGuiSubType;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogDataGuiType {
|
|
6
|
+
static NEW_BROWSER = 0;
|
|
7
|
+
static USE_BROWSER = 1;
|
|
8
|
+
static NEW_PAGE = 2;
|
|
9
|
+
static USE_PAGE = 3;
|
|
10
|
+
static ACTION_CLICK = 4;
|
|
11
|
+
static ACTION_TYPE = 5;
|
|
12
|
+
static FUNCTION_CALL = 6;
|
|
13
|
+
|
|
14
|
+
static TEXT_NEW_BROWSER = 'new browser';
|
|
15
|
+
static TEXT_USE_BROWSER = 'use browser';
|
|
16
|
+
static TEXT_NEW_PAGE = 'new page';
|
|
17
|
+
static TEXT_USE_PAGE = 'use page';
|
|
18
|
+
static TEXT_ACTION_CLICK = 'click';
|
|
19
|
+
static TEXT_ACTION_TYPE = 'type';
|
|
20
|
+
static TEXT_FUNCTION_CALL = 'function';
|
|
21
|
+
|
|
22
|
+
static results = [
|
|
23
|
+
LogDataGuiType.TEXT_NEW_BROWSER,
|
|
24
|
+
LogDataGuiType.TEXT_USE_BROWSER,
|
|
25
|
+
LogDataGuiType.TEXT_NEW_PAGE,
|
|
26
|
+
LogDataGuiType.TEXT_USE_PAGE,
|
|
27
|
+
LogDataGuiType.TEXT_ACTION_CLICK,
|
|
28
|
+
LogDataGuiType.TEXT_ACTION_TYPE,
|
|
29
|
+
LogDataGuiType.TEXT_FUNCTION_CALL
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
static resultClasses = [
|
|
33
|
+
'gui_seq_dia_browser_svg',
|
|
34
|
+
'gui_seq_dia_browser_svg',
|
|
35
|
+
'gui_seq_dia_page_svg',
|
|
36
|
+
'gui_seq_dia_page_svg',
|
|
37
|
+
'gui_seq_dia_click_svg',
|
|
38
|
+
'gui_seq_dia_type_svg',
|
|
39
|
+
'gui_seq_dia_not_impl_svg'
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
module.exports = LogDataGuiType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogDataStackType {
|
|
6
|
+
static NEW = 0;
|
|
7
|
+
static SHARED = 1;
|
|
8
|
+
static USE = 2;
|
|
9
|
+
static STORE = 3;
|
|
10
|
+
static DEL = 4;
|
|
11
|
+
|
|
12
|
+
static results = [
|
|
13
|
+
'new stack',
|
|
14
|
+
'shared stack',
|
|
15
|
+
'use stack',
|
|
16
|
+
'store stack',
|
|
17
|
+
'del stack'
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
static templateWidths = [
|
|
21
|
+
50,
|
|
22
|
+
60,
|
|
23
|
+
47,
|
|
24
|
+
55,
|
|
25
|
+
45
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
module.exports = LogDataStackType;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const LogPartText = require('./log-part-text');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogInner {
|
|
8
|
+
static TYPE_PARTS = 0;
|
|
9
|
+
static TYPE_BUFFER = 1;
|
|
10
|
+
static TYPE_BUFFER_INNER = 2;
|
|
11
|
+
|
|
12
|
+
constructor(logParts, inner) {
|
|
13
|
+
if(logParts) {
|
|
14
|
+
if(Array.isArray(logParts)) {
|
|
15
|
+
this.logParts = logParts;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
if('string' === typeof logParts) {
|
|
19
|
+
this.logParts = [new LogPartText(logParts)];
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.logParts = [logParts];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
this.logParts = [];
|
|
28
|
+
}
|
|
29
|
+
if(inner) {
|
|
30
|
+
if(Array.isArray(inner)) {
|
|
31
|
+
this.inners = inner;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.inners = [inner];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.inners = [];
|
|
39
|
+
}
|
|
40
|
+
this.type = LogInner.TYPE_PARTS;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
add(inner) {
|
|
44
|
+
if(inner) {
|
|
45
|
+
if(Array.isArray(inner)) {
|
|
46
|
+
this.inners = this.inners.concat(inner);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
this.inners.push(inner);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
inner = new LogInner();
|
|
54
|
+
this.inners.push(inner);
|
|
55
|
+
}
|
|
56
|
+
return inner;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
addLogPart(logParts) {
|
|
60
|
+
if(Array.isArray(logParts)) {
|
|
61
|
+
this.logParts = this.logParts.concat(logParts);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
if('string' === typeof logParts) {
|
|
65
|
+
this.logParts.push(new LogPartText(logParts));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.logParts.push(logParts);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
setType(type) {
|
|
74
|
+
this.type = type;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
module.exports = LogInner;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogMessage {
|
|
6
|
+
constructor(message, inners, data, dataBuffers) {
|
|
7
|
+
this.message = 'string' === typeof message ? message : message();
|
|
8
|
+
this.inners = inners;
|
|
9
|
+
this.data = data;
|
|
10
|
+
this.dataBuffers = dataBuffers;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
module.exports = LogMessage;
|
|
16
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogObjectIp {
|
|
6
|
+
constructor(actionId, stackId, stackName, secure, caption, local, remote) {
|
|
7
|
+
this.actionId = actionId;
|
|
8
|
+
this.stackId = stackId;
|
|
9
|
+
this.stack = stackName;
|
|
10
|
+
this.secure = secure;
|
|
11
|
+
this.caption = caption;
|
|
12
|
+
this.local = local;
|
|
13
|
+
this.remote = remote;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
module.exports = LogObjectIp;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const LogPartType = require('./log-part-type');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogPartBuffer {
|
|
8
|
+
constructor(contentType, contentEncoding, transferEncoding) {
|
|
9
|
+
this.type = LogPartType.BUFFER;
|
|
10
|
+
this.contentType = contentType;
|
|
11
|
+
this.contentEncoding = contentEncoding;
|
|
12
|
+
this.transferEncoding = transferEncoding;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module.exports = LogPartBuffer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const LogPartType = require('./log-part-type');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogPartError {
|
|
8
|
+
constructor(text, file, line, column, sourceType) {
|
|
9
|
+
this.type = LogPartType.ERROR;
|
|
10
|
+
this.text = text;
|
|
11
|
+
this.file = file;
|
|
12
|
+
this.line = line;
|
|
13
|
+
this.column = column;
|
|
14
|
+
this.sourceType = sourceType;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
module.exports = LogPartError;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogPartType {
|
|
6
|
+
static TEXT = 0;
|
|
7
|
+
static REF = 1;
|
|
8
|
+
static BIN = 2;
|
|
9
|
+
static VALUE = 3;
|
|
10
|
+
static ERROR = 4;
|
|
11
|
+
static BUFFER = 5;
|
|
12
|
+
static BUFFER_CACHED = 6;
|
|
13
|
+
|
|
14
|
+
static names = [
|
|
15
|
+
'text',
|
|
16
|
+
'ref',
|
|
17
|
+
'bin',
|
|
18
|
+
'value',
|
|
19
|
+
'error',
|
|
20
|
+
'buffer',
|
|
21
|
+
'buffer-cached'
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
module.exports = LogPartType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
let id = -1;
|
|
6
|
+
class LogSourceType {
|
|
7
|
+
static UNKNOWN = ++id;
|
|
8
|
+
static SERVER = ++id;
|
|
9
|
+
static STACK = ++id;
|
|
10
|
+
static ACTOR = ++id;
|
|
11
|
+
static NODE = ++id;
|
|
12
|
+
static ANONYMOUS = ++id;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module.exports = LogSourceType;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogType {
|
|
6
|
+
// DOUBLE-CODE: z-abs-corelayer-cs
|
|
7
|
+
static length = 0;
|
|
8
|
+
static ENGINE = LogType.length++;
|
|
9
|
+
static DEBUG = LogType.length++;
|
|
10
|
+
static ERROR = LogType.length++;
|
|
11
|
+
static WARNING = LogType.length++;
|
|
12
|
+
static IP = LogType.length++;
|
|
13
|
+
static GUI = LogType.length++;
|
|
14
|
+
static VERIFY_SUCCESS = LogType.length++;
|
|
15
|
+
static VERIFY_FAILURE = LogType.length++;
|
|
16
|
+
static TEST_DATA = LogType.length++;
|
|
17
|
+
static BROWSER_LOG = LogType.length++;
|
|
18
|
+
static BROWSER_ERR = LogType.length++;
|
|
19
|
+
|
|
20
|
+
static names = [
|
|
21
|
+
'Engine ',
|
|
22
|
+
'Debug ',
|
|
23
|
+
'Error ',
|
|
24
|
+
'Warning ',
|
|
25
|
+
'IP ',
|
|
26
|
+
'GUI ',
|
|
27
|
+
'Success ',
|
|
28
|
+
'Failure ',
|
|
29
|
+
'TestData',
|
|
30
|
+
'B-Log ',
|
|
31
|
+
'B-Err '
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
static pureNames = [
|
|
35
|
+
'Engine',
|
|
36
|
+
'Debug',
|
|
37
|
+
'Error',
|
|
38
|
+
'Warning',
|
|
39
|
+
'IP',
|
|
40
|
+
'GUI',
|
|
41
|
+
'Success',
|
|
42
|
+
'Failure',
|
|
43
|
+
'TestData',
|
|
44
|
+
'BrowserLog',
|
|
45
|
+
'BrowserErr'
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
static csses = [
|
|
49
|
+
'log_engine',
|
|
50
|
+
'log_debug',
|
|
51
|
+
'log_error',
|
|
52
|
+
'log_warning',
|
|
53
|
+
'log_ip',
|
|
54
|
+
'log_gui',
|
|
55
|
+
'log_verify_success',
|
|
56
|
+
'log_verify_failure',
|
|
57
|
+
'log_test_data',
|
|
58
|
+
'log_browser_log',
|
|
59
|
+
'log_browser_err'
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
static hasInner = [
|
|
63
|
+
false,
|
|
64
|
+
false,
|
|
65
|
+
true,
|
|
66
|
+
false,
|
|
67
|
+
true,
|
|
68
|
+
false,
|
|
69
|
+
false,
|
|
70
|
+
false,
|
|
71
|
+
false,
|
|
72
|
+
false,
|
|
73
|
+
false
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
static getClassFromName(resultName) {
|
|
77
|
+
const foundIndex = LogType.pureNames.indexOf(resultName);
|
|
78
|
+
if(-1 !== foundIndex) {
|
|
79
|
+
return LogType.csses[foundIndex];
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return '';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
module.exports = LogType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogMsgClient {
|
|
6
|
+
constructor(actionId, stackName, local, remote, reverse) {
|
|
7
|
+
this.actionId = actionId;
|
|
8
|
+
this.stack = stackName;
|
|
9
|
+
this.local = local;
|
|
10
|
+
this.remote = remote;
|
|
11
|
+
this.reverse = reverse;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module.exports = LogMsgClient;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LogMsgMessage {
|
|
6
|
+
constructor(actionId, stackName, local, remote, caption) {
|
|
7
|
+
this.actionId = actionId;
|
|
8
|
+
this.stack = stackName;
|
|
9
|
+
this.local = local;
|
|
10
|
+
this.remote = remote;
|
|
11
|
+
this.caption = caption;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module.exports = LogMsgMessage;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const LogDataAction = require('../log-data-action');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogMsgServer {
|
|
8
|
+
constructor(actionId, stackName, local) {
|
|
9
|
+
this.actionId = actionId;
|
|
10
|
+
this.stack = stackName;
|
|
11
|
+
this.local = local;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module.exports = LogMsgServer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const LogDataAction = require('../log-data-action');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogMsgStack {
|
|
8
|
+
constructor(columnIndex, logDataStackType, stackId, stackType, stack) {
|
|
9
|
+
this.actionId = LogDataAction.STACK;
|
|
10
|
+
this.actorIndex = columnIndex;
|
|
11
|
+
this.type = logDataStackType;
|
|
12
|
+
this.stackId = stackId;
|
|
13
|
+
this.stackType = stackType;
|
|
14
|
+
this.stack = stack;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
module.exports = LogMsgStack;
|