@aj-shadow/z-abs-corelayer-server 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/server/_build/Server-CoreLayer-server.bld +12 -0
- package/project/server/_build/z-abs-corelayer-server.prj +12 -0
- package/project/server/communication/core-protocol/decoder.js +404 -0
- package/project/server/communication/core-protocol/encoder.js +503 -0
- package/project/server/communication/messages/messages-s-to-c/message-persistent-init-response.js +14 -0
- package/project/server/communication/messages/messages-s-to-c/message-persistent-publish.js +16 -0
- package/project/server/communication/messages/messages-s-to-c/message-ws-init.js +14 -0
- package/project/server/communication/messages/messages-s-to-s/service-init-request.js +17 -0
- package/project/server/communication/messages/messages-s-to-s/service-init-response.js +18 -0
- package/project/server/communication/messages/messages-s-to-s/service-offer-off.js +15 -0
- package/project/server/communication/messages/messages-s-to-s/service-offer-on.js +15 -0
- package/project/server/communication/messages/messages-s-to-s/worker-init-request.js +15 -0
- package/project/server/data-response.js +588 -0
- package/project/server/high-resolution-timestamp.js +36 -0
- package/project/server/log/log-config.js +107 -0
- package/project/server/log/log-types.js +14 -0
- package/project/server/log/logger-console.js +36 -0
- package/project/server/log/logger.js +114 -0
- package/project/server/node/channel-input.js +65 -0
- package/project/server/node/channel-output.js +39 -0
- package/project/server/node/clients.js +80 -0
- package/project/server/node/connection-address.js +24 -0
- package/project/server/node/connection-data-ip.js +82 -0
- package/project/server/node/connection-data.js +25 -0
- package/project/server/node/const.js +44 -0
- package/project/server/node/external-services.js +209 -0
- package/project/server/node/http-cache.js +109 -0
- package/project/server/node/http-proxy.js +97 -0
- package/project/server/node/http-request-handler.js +219 -0
- package/project/server/node/http-server.js +36 -0
- package/project/server/node/http2-server.js +67 -0
- package/project/server/node/https-server.js +63 -0
- package/project/server/node/ip-client.js +98 -0
- package/project/server/node/ip-server.js +63 -0
- package/project/server/node/ip-subscription.js +46 -0
- package/project/server/node/message-channel.js +98 -0
- package/project/server/node/node-admin.js +513 -0
- package/project/server/node/node-data.js +25 -0
- package/project/server/node/node-settings.js +352 -0
- package/project/server/node/node-worker.js +76 -0
- package/project/server/node/node.js +156 -0
- package/project/server/node/servers.js +168 -0
- package/project/server/node/ws-client.js +12 -0
- package/project/server/node/ws-server.js +20 -0
- package/project/server/node/ws-web-server.js +52 -0
- package/project/server/node/wss-server.js +20 -0
- package/project/server/node/wss-web-server.js +82 -0
- package/project/server/path/actor-path-build.js +29 -0
- package/project/server/path/actor-path-content.js +51 -0
- package/project/server/path/actor-path-creator.js +90 -0
- package/project/server/path/actor-path-data.js +487 -0
- package/project/server/path/actor-path-dist.js +132 -0
- package/project/server/path/actor-path-generated.js +202 -0
- package/project/server/path/actor-path-project.js +181 -0
- package/project/server/path/actor-path.js +57 -0
- package/project/server/path/paths/actor-content-paths.js +34 -0
- package/project/server/path/paths/actor-data-paths.js +302 -0
- package/project/server/path/paths/actor-generated-paths.js +99 -0
- package/project/server/path/paths/actor-paths.js +22 -0
- package/project/server/plugin-base-multi.js +484 -0
- package/project/server/plugin-base.js +233 -0
- package/project/server/plugin-component.js +92 -0
- package/project/server/plugin-data/client/plugin_data_ClientGet.js +18 -0
- package/project/server/plugin-data/dialog-file/plugin_data_DialogFileGet.js +197 -0
- package/project/server/plugin-data/platform/plugin_data_PlatformPing.js +19 -0
- package/project/server/plugin-factor-protocol.js +35 -0
- package/project/server/plugin-factory.js +127 -0
- package/project/server/plugin-lock.js +164 -0
- package/project/server/response-queue.js +46 -0
- package/project/server/responses.js +20 -0
- package/project/server/service/plugin-service.js +264 -0
- package/project/server/service/service-export.js +47 -0
- package/project/server/service/service-manager.js +270 -0
- package/project/server/service/service-requests.js +49 -0
- package/project/server/session-cache.js +39 -0
- package/project/server/session.js +23 -0
- package/project/server/worker/worker-channel.js +175 -0
- package/project/server/worker/worker-core.js +58 -0
- package/project/server/worker/worker-main.js +165 -0
- package/project/server/worker/worker-pool.js +94 -0
- package/project/server/worker/worker-thread.js +128 -0
- package/project/z-abs-corelayer-server.tree +99 -0
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const ActorPath = require('./actor-path');
|
|
5
|
+
const Path = require('path');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ActorPathData {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.actor = 'Actor';
|
|
11
|
+
this.globalDataRepoName = 'actorjs-data-global';
|
|
12
|
+
|
|
13
|
+
if(ActorPath.releaseStepDelivery) {
|
|
14
|
+
this.dataFolderLocal = ActorPath.setPath(ActorPath.getActorPath(), `..${Path.sep}..${Path.sep}..${Path.sep}Data`);
|
|
15
|
+
this.dataFolderGlobal = ActorPath.setPath(ActorPath.getActorPath(), `${Path.sep}node_modules${Path.sep}${ActorPath.organization}`);
|
|
16
|
+
this.actorDataGlobalFolder = ActorPath.setPath(this.dataFolderGlobal, `${Path.sep}${this.globalDataRepoName}`);
|
|
17
|
+
}
|
|
18
|
+
else if(ActorPath.releaseStepCandidate) {
|
|
19
|
+
this.dataFolderLocal = ActorPath.setPath(ActorPath.getActorPath(), `..${Path.sep}Data`);
|
|
20
|
+
this.dataFolderGlobal = ActorPath.setPath(ActorPath.getActorPath(), `${Path.sep}node_modules`);
|
|
21
|
+
this.actorDataGlobalFolder = ActorPath.setPath(this.dataFolderGlobal, `${Path.sep}${this.globalDataRepoName}`);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.dataFolderLocal = ActorPath.setPath(ActorPath.getActorPath(), `..${Path.sep}Data`);
|
|
25
|
+
this.dataFolderGlobal = ActorPath.setPath(ActorPath.getActorPath(), `..${Path.sep}Data`);
|
|
26
|
+
this.actorDataGlobalFolder = ActorPath.setPath(this.dataFolderGlobal, `${Path.sep}${this.globalDataRepoName}`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// *** LOCAL
|
|
30
|
+
|
|
31
|
+
this.actorDataLocalFolder = ActorPath.setPath(this.dataFolderLocal, `${Path.sep}actorjs-data-local`);
|
|
32
|
+
this.testAbstractionsLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}TestAbstractions`);
|
|
33
|
+
this.actorsLocalFolder = ActorPath.setPath(this.testAbstractionsLocalFolder, `${Path.sep}Actors-local`);
|
|
34
|
+
this.stacksLocalFolder = ActorPath.setPath(this.testAbstractionsLocalFolder, `${Path.sep}Stacks-local`);
|
|
35
|
+
this.addressesLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}Addresses-local`);
|
|
36
|
+
|
|
37
|
+
this.testDataLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}TestData`);
|
|
38
|
+
|
|
39
|
+
this.documentationNoteLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}Note`);
|
|
40
|
+
|
|
41
|
+
this.contentLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}Content`);
|
|
42
|
+
this.reposLocalFolder = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}Repos`);
|
|
43
|
+
this.reposLocalFile = ActorPath.setPath(this.reposLocalFolder, `${Path.sep}repos.json`);
|
|
44
|
+
|
|
45
|
+
this.reposLocalReadMeFile = ActorPath.setPath(this.actorDataLocalFolder, `${Path.sep}README.md`);
|
|
46
|
+
|
|
47
|
+
// *** GLOBAL
|
|
48
|
+
|
|
49
|
+
this.testAbstractionsGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}TestAbstractions`);
|
|
50
|
+
this.actorsGlobalFolder = ActorPath.setPath(this.testAbstractionsGlobalFolder, `${Path.sep}Actors-global`);
|
|
51
|
+
this.stacksGlobalFolder = ActorPath.setPath(this.testAbstractionsGlobalFolder, `${Path.sep}Stacks-global`);
|
|
52
|
+
|
|
53
|
+
this.addressesGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}Addresses-global`);
|
|
54
|
+
this.certsGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}Certs`);
|
|
55
|
+
this.testDataGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}TestData`);
|
|
56
|
+
this.contentGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}Content`);
|
|
57
|
+
|
|
58
|
+
this.loginGlobalFolder = ActorPath.setPath(this.actorDataGlobalFolder, `${Path.sep}Login`);
|
|
59
|
+
this.loginGlobalFile = ActorPath.setPath(this.loginGlobalFolder, `${Path.sep}licenses.json`);
|
|
60
|
+
this.dependenciesGlobalFile = ActorPath.setPath(this.loginGlobalFolder, `${Path.sep}dependencies.json`);
|
|
61
|
+
|
|
62
|
+
this.testAbstractions = 'TestAbstractions';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
getGlobalDataRepoName() {
|
|
66
|
+
return this.globalDataRepoName;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getActorDataLocalFolder() {
|
|
70
|
+
return this.actorDataLocalFolder;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
getActorDataGlobalFolder() {
|
|
74
|
+
return this.actorDataGlobalFolder;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
getReposLocalFolder() {
|
|
78
|
+
return this.dataFolderLocal;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
getReposGlobalFolder() {
|
|
82
|
+
return this.dataFolderGlobal;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
getTestAbstractionGlobalFolder() {
|
|
86
|
+
return this.testAbstractionsGlobalFolder;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
getTestAbstractionLocalFolder() {
|
|
90
|
+
return this.testAbstractionsLocalFolder;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
getReposRepoFolder(repoName) {
|
|
94
|
+
if(this.globalDataRepoName === repoName) {
|
|
95
|
+
return this.actorDataGlobalFolder;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return `${this.dataFolderLocal}${Path.sep}${repoName}`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
getTestAbstractionFolder(repoName) {
|
|
103
|
+
if(this.globalDataRepoName === repoName) {
|
|
104
|
+
return this.getTestAbstractionGlobalFolder();
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
return `${this.dataFolderLocal}${Path.sep}${repoName}${Path.sep}${this.testAbstractions}`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
getSystemUnderTestFolder(repoName, sutName) {
|
|
112
|
+
if(this.globalDataRepoName === repoName) {
|
|
113
|
+
return `${this.testAbstractionsGlobalFolder}${Path.sep}Sut${sutName}`;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return `${this.getTestAbstractionFolder(repoName)}${Path.sep}Sut${sutName}`;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
getSystemUnderTestFile(repoName, sutName) {
|
|
121
|
+
return `${this.getSystemUnderTestFolder(repoName, sutName)}${Path.sep}Sut${sutName}.json`;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
getSystemUnderTestActorGlobalFolder() {
|
|
125
|
+
return `${this.testAbstractionsGlobalFolder}${Path.sep}Sut${this.actor}`;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
getSystemUnderTestActorFile() {
|
|
129
|
+
return `${this.getSystemUnderTestFolder(this.globalDataRepoName, this.actor)}${Path.sep}Sut${this.actor}.json`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
getFunctionUnderTestFolder(repoName, sutName, futName) {
|
|
133
|
+
return `${this.getSystemUnderTestFolder(repoName, sutName)}${Path.sep}Fut${sutName}${futName}`;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
getFunctionUnderTestFile(repoName, sutName, futName) {
|
|
137
|
+
return `${this.getFunctionUnderTestFolder(repoName, sutName, futName)}${Path.sep}Fut${sutName}${futName}.json`;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
getTestCasesFolder(repoName, sutName, futName) {
|
|
141
|
+
return `${this.getFunctionUnderTestFolder(repoName, sutName, futName)}${Path.sep}TestCases`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
getTestSuitesFolder(repoName, sutName, futName) {
|
|
145
|
+
return `${this.getFunctionUnderTestFolder(repoName, sutName, futName)}${Path.sep}TestSuites`;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
getTestCaseFolder(repoName, sutName, futName, tcName) {
|
|
149
|
+
return `${this.getTestCasesFolder(repoName, sutName, futName)}${Path.sep}Tc${tcName}`;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
getTestSuiteFolder(repoName, sutName, futName, tsName) {
|
|
153
|
+
return `${this.getTestSuitesFolder(repoName, sutName, futName)}${Path.sep}Ts${tsName}`;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
getTestCaseFile(repoName, sutName, futName, tcName) {
|
|
157
|
+
return `${this.getTestCaseFolder(repoName, sutName, futName, tcName)}${Path.sep}Tc${tcName}.json`;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
getTestCaseFileName(tcName) {
|
|
161
|
+
return `Tc${tcName}.json`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
getTestSuiteFile(repoName, sutName, futName, tsName) {
|
|
165
|
+
return `${this.getTestSuiteFolder(repoName, sutName, futName, tsName)}${Path.sep}Ts${tsName}.json`;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
getActorsLocalFolder() {
|
|
169
|
+
return this.actorsLocalFolder;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
getActorsGlobalFolder() {
|
|
173
|
+
return this.actorsGlobalFolder;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
getActorsLocalProjectPureFile() {
|
|
177
|
+
return `${this.getActorsLocalFolder()}${Path.sep}actors-local-project.tree`;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
getActorsGlobalProjectPureFile() {
|
|
181
|
+
return `${this.getActorsGlobalFolder()}${Path.sep}actors-global-project.tree`;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
getActorsProjectPureFile(path) {
|
|
185
|
+
if('./Actors-global' === path) {
|
|
186
|
+
return this.getActorsGlobalProjectPureFile();
|
|
187
|
+
}
|
|
188
|
+
else if('./Actors-local' === path ) {
|
|
189
|
+
return this.getActorsLocalProjectPureFile();
|
|
190
|
+
}
|
|
191
|
+
return 'NotFound';
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
getActorFile(path) {
|
|
195
|
+
if(path.startsWith('./Actors-global')) {
|
|
196
|
+
return Path.normalize(`${this.getTestAbstractionGlobalFolder()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
197
|
+
}
|
|
198
|
+
else if(path.startsWith('./Actors-local')) {
|
|
199
|
+
return Path.normalize(`${this.getTestAbstractionLocalFolder()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
200
|
+
}
|
|
201
|
+
return 'NotFound';
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
getStacksLocalFolder() {
|
|
205
|
+
return this.stacksLocalFolder;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
getStacksGlobalFolder() {
|
|
209
|
+
return this.stacksGlobalFolder;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
getStacksLocalProjectPureFile() {
|
|
213
|
+
return `${this.getStacksLocalFolder()}${Path.sep}stacks-local-project.tree`;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
getStacksGlobalProjectPureFile() {
|
|
217
|
+
return `${this.getStacksGlobalFolder()}${Path.sep}stacks-global-project.tree`;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
getStacksProjectPureFile(path) {
|
|
221
|
+
if('./Stacks-global' === path) {
|
|
222
|
+
return this.getStacksGlobalProjectPureFile();
|
|
223
|
+
}
|
|
224
|
+
else if('./Actors-local' === path ) {
|
|
225
|
+
return this.getStacksLocalProjectPureFile();
|
|
226
|
+
}
|
|
227
|
+
return 'NotFound';
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
getStackFile(path) {
|
|
231
|
+
if(path.startsWith('./Stacks-global')) {
|
|
232
|
+
return Path.normalize(`${this.getTestAbstractionGlobalFolder()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
233
|
+
}
|
|
234
|
+
else if(path.startsWith('./Stacks-local')) {
|
|
235
|
+
return Path.normalize(`${this.getTestAbstractionLocalFolder()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
236
|
+
}
|
|
237
|
+
return 'NotFound';
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
getAddressesLocalFolder() {
|
|
241
|
+
return this.addressesLocalFolder;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
getAddressesGlobalFolder() {
|
|
245
|
+
return this.addressesGlobalFolder;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
getCertsGlobalFolder() {
|
|
249
|
+
return this.certsGlobalFolder;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
getAddressesLocalNetworksFile() {
|
|
253
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}networks.json`;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
getAddressesGlobalNetworksFile() {
|
|
257
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}networks.json`;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
getAddressesLocalInterfacesSutFile() {
|
|
261
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}interfacesSut.json`;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
getAddressesGlobalInterfacesSutFile() {
|
|
265
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}interfacesSut.json`;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
getAddressesLocalInterfacesClientFile() {
|
|
269
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}interfacesClient.json`;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
getAddressesGlobalInterfacesClientFile() {
|
|
273
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}interfacesClient.json`;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
getAddressesLocalInterfacesServerFile() {
|
|
277
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}interfacesServer.json`;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
getAddressesGlobalInterfacesServerFile() {
|
|
281
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}interfacesServer.json`;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
getAddressesLocalAddressesSutFile() {
|
|
285
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesSut.json`;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
getAddressesGlobalAddressesSutFile() {
|
|
289
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesSut.json`;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
getAddressesLocalAddressesClientFile() {
|
|
293
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesClient.json`;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
getAddressesGlobalAddressesClientFile() {
|
|
297
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesClient.json`;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
getAddressesLocalAddressesServerFile() {
|
|
301
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesServer.json`;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
getAddressesGlobalAddressesServerFile() {
|
|
305
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesServer.json`;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
getAddressesLocalSrcFile() {
|
|
309
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesSrc.json`;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
getAddressesGlobalSrcFile() {
|
|
313
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesSrc.json`;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
getAddressesLocalDstFile() {
|
|
317
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesDst.json`;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
getAddressesGlobalDstFile() {
|
|
321
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesDst.json`;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
getAddressesLocalSrvFile() {
|
|
325
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesSrv.json`;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
getAddressesGlobalSrvFile() {
|
|
329
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesSrv.json`;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
getAddressesLocalPortsFile() {
|
|
333
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesPorts.json`;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
getAddressesGlobalPortsFile() {
|
|
337
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesPorts.json`;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
getAddressesLocalDnsFile() {
|
|
341
|
+
return `${this.getAddressesLocalFolder()}${Path.sep}addressesDns.json`;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
getAddressesGlobalDnsFile() {
|
|
345
|
+
return `${this.getAddressesGlobalFolder()}${Path.sep}addressesDns.json`;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
getTestDataGlobalFolder() {
|
|
349
|
+
return this.testDataGlobalFolder;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
getTestDataLocalFolder() {
|
|
353
|
+
return this.testDataLocalFolder;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
getTestDataEnvironmentGlobalFile() {
|
|
357
|
+
return `${this.getTestDataGlobalFolder()}${Path.sep}test-data-environment.json`;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
getTestDataEnvironmentLocalFile() {
|
|
361
|
+
return `${this.getTestDataLocalFolder()}${Path.sep}test-data-environment.json`;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
getTestDataGeneralGlobalFile() {
|
|
365
|
+
return `${this.getTestDataGlobalFolder()}${Path.sep}test-data-general.json`;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
getTestDataGeneralLocalFile() {
|
|
369
|
+
return `${this.getTestDataLocalFolder()}${Path.sep}test-data-general.json`;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
getTestDataOutputGlobalFile() {
|
|
373
|
+
return `${this.getTestDataGlobalFolder()}${Path.sep}test-data-output.json`;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
getTestDataOutputLocalFile() {
|
|
377
|
+
return `${this.getTestDataLocalFolder()}${Path.sep}test-data-output.json`;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
getTestDataSystemGlobalFile() {
|
|
381
|
+
return `${this.getTestDataGlobalFolder()}${Path.sep}test-data-system.json`;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
getTestDataSystemLocalFile() {
|
|
385
|
+
return `${this.getTestDataLocalFolder()}${Path.sep}test-data-system.json`;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
getDocumentationNoteLocalFilder() {
|
|
389
|
+
return this.documentationNoteLocalFolder;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
getDocumentationNoteLocalFileAndPath(guid, path) {
|
|
393
|
+
let fullPath = `${this.getDocumentationNoteLocalFilder()}${Path.sep}${path}`;
|
|
394
|
+
let formattedPath = Path.normalize(fullPath.replace(new RegExp('[/\\\\]', 'g'), Path.sep));
|
|
395
|
+
let formattedFile = `${formattedPath}${Path.sep}Local-note-${guid}.txt`;
|
|
396
|
+
return {
|
|
397
|
+
path: formattedPath,
|
|
398
|
+
file: formattedFile
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
getDocumentationNoteLocalFile(guid, path) {
|
|
403
|
+
return this.getDocumentationNoteLocalFileAndPath(guid, path).file;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
getContentLocalFolder() {
|
|
407
|
+
return this.contentLocalFolder;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
getContentTextLocalFile() {
|
|
411
|
+
return `${this.contentLocalFolder}${Path.sep}text.json`;
|
|
412
|
+
}
|
|
413
|
+
getContentDocumentsLocalFile() {
|
|
414
|
+
return `${this.contentLocalFolder}${Path.sep}documents.json`;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
getContentImageLocalFile() {
|
|
418
|
+
return `${this.contentLocalFolder}${Path.sep}image.json`;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
getContentVideoLocalFile() {
|
|
422
|
+
return `${this.contentLocalFolder}${Path.sep}video.json`;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
getContentAudioLocalFile() {
|
|
426
|
+
return `${this.contentLocalFolder}${Path.sep}audio.json`;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
getContentOtherLocalFile() {
|
|
430
|
+
return `${this.contentLocalFolder}${Path.sep}other.json`;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
getContentGlobalFolder() {
|
|
434
|
+
return this.contentGlobalFolder;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
getContentTextGlobalFile() {
|
|
438
|
+
return `${this.contentGlobalFolder}${Path.sep}text.json`;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
getContentDocumentsGlobalFile() {
|
|
442
|
+
return `${this.contentGlobalFolder}${Path.sep}documents.json`;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
getContentImageGlobalFile() {
|
|
446
|
+
return `${this.contentGlobalFolder}${Path.sep}image.json`;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
getContentVideoGlobalFile() {
|
|
450
|
+
return `${this.contentGlobalFolder}${Path.sep}video.json`;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
getContentAudioGlobalFile() {
|
|
454
|
+
return `${this.contentGlobalFolder}${Path.sep}audio.json`;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
getContentOtherGlobalFile() {
|
|
458
|
+
return `${this.contentGlobalFolder}${Path.sep}other.json`;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
getLoginGlobalFolder() {
|
|
462
|
+
return this.loginGlobalFolder;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
getLicensesFile() {
|
|
466
|
+
return this.loginGlobalFile;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
getDependenciesFile() {
|
|
470
|
+
return this.dependenciesGlobalFile;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
getLocalReposFolder() {
|
|
474
|
+
return this.reposLocalFolder;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
getLocalReposFile() {
|
|
478
|
+
return this.reposLocalFile;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
getReadMeFile() {
|
|
482
|
+
return this.reposLocalReadMeFile;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
module.exports = new ActorPathData();
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const ActorPath = require('./actor-path');
|
|
5
|
+
const Path = require('path');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ActorPathDist {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.actorDistPath = ActorPath.setPath(ActorPath.getActorPath(), `${Path.sep}dist`);
|
|
11
|
+
this.actorDistLayersPath = ActorPath.setPath(this.actorDistPath, `${Path.sep}Layers`);
|
|
12
|
+
this.actorDistScriptsPath = ActorPath.setPath(this.actorDistPath, `${Path.sep}scripts`);
|
|
13
|
+
this.actorDistCssPath = ActorPath.setPath(this.actorDistPath, `${Path.sep}css`);
|
|
14
|
+
this.actorDistApiPath = ActorPath.setPath(this.actorDistPath, `${Path.sep}api`);
|
|
15
|
+
this.actorDistActorApiPath = ActorPath.setPath(this.actorDistApiPath, `${Path.sep}actor-api`);
|
|
16
|
+
this.actorDistNodejsApiPath = ActorPath.setPath(this.actorDistApiPath, `${Path.sep}nodejs-api`);
|
|
17
|
+
this.actorDistStackApiPath = ActorPath.setPath(this.actorDistApiPath, `${Path.sep}stack-api`);
|
|
18
|
+
this.actorDistActorsPath = ActorPath.setPath(this.getActorDistPath(), `${Path.sep}actors`);
|
|
19
|
+
this.actorDistStacksPath = ActorPath.setPath(this.getActorDistPath(), `${Path.sep}stacks`);
|
|
20
|
+
this.actorDistStacksGlobalPath = ActorPath.setPath(this.getActorDistPath(), `${Path.sep}stacks${Path.sep}Stacks-global`);
|
|
21
|
+
this.actorDistStacksLocalPath = ActorPath.setPath(this.getActorDistPath(), `${Path.sep}stacks${Path.sep}Stacks-local`);
|
|
22
|
+
this.actorDistServerPath = ActorPath.setPath(this.getActorDistPath(), `${Path.sep}Layers${Path.sep}AppLayer${Path.sep}server`);
|
|
23
|
+
this.actorDistServerPluginDataPath = ActorPath.setPath(this.getActorDistServerPath(), `${Path.sep}plugin-data`);
|
|
24
|
+
this.actorDistServerPluginServicePath = ActorPath.setPath(this.getActorDistServerPath(), `${Path.sep}plugin-service`);
|
|
25
|
+
this.actorDistServerPluginComponentPath = ActorPath.setPath(this.getActorDistServerPath(), `${Path.sep}plugin-component`);
|
|
26
|
+
this.serverActorsGlobalJs = 'serverActorsGlobalJs';
|
|
27
|
+
this.serverActorsLocalJs = 'serverActorsLocalJs';
|
|
28
|
+
this.serverStacksGlobalJs = 'serverStacksGlobalJs';
|
|
29
|
+
this.serverStacksLocalJs = 'serverStacksLocalJs';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
getActorDistPath() {
|
|
33
|
+
return this.actorDistPath;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getLayersPath() {
|
|
37
|
+
return this.actorDistLayersPath;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getScriptsPath() {
|
|
41
|
+
return this.actorDistScriptsPath;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
getCssPath() {
|
|
45
|
+
return this.actorDistCssPath;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
getActorDistActorsPath() {
|
|
49
|
+
return this.actorDistActorsPath;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
getActorFile(path) {
|
|
53
|
+
return Path.normalize(`${this.getActorDistActorsPath()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
getActorCacheName(path) {
|
|
57
|
+
if(path.startsWith('./Actors-global')) {
|
|
58
|
+
return this.serverActorsGlobalJs;
|
|
59
|
+
}
|
|
60
|
+
else if(path.startsWith('./Actors-local')) {
|
|
61
|
+
return this.serverActorsLocalJs;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
getActorDistStacksPath() {
|
|
66
|
+
return this.actorDistStacksPath;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getActorDistStacksGlobalPath() {
|
|
70
|
+
return this.actorDistStacksGlobalPath;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
getActorDistStacksLocalPath() {
|
|
74
|
+
return this.actorDistStacksLocalPath;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
getStackFile(path) {
|
|
78
|
+
return Path.normalize(`${this.getActorDistStacksPath()}${Path.sep}${path.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
getStackCacheName(path) {
|
|
82
|
+
if(path.startsWith('./Stacks-global')) {
|
|
83
|
+
return this.serverStacksGlobalJs;
|
|
84
|
+
}
|
|
85
|
+
else if(path.startsWith('./Stacks-local')) {
|
|
86
|
+
return this.serverStacksLocalJs;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
getActorDistServerPath() {
|
|
91
|
+
return this.actorDistServerPath;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
getActorDistServerPluginDataPath() {
|
|
95
|
+
return this.actorDistServerPluginDataPath;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
getActorDistServerPluginServicePath() {
|
|
99
|
+
return this.actorDistServerPluginServicePath;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
getActorDistServerPluginComponentPath() {
|
|
103
|
+
return this.actorDistServerPluginComponentPath;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
getActorDistServerWorkerLogPath() {
|
|
107
|
+
return this.actorDistServerWorkerLogPath;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
getCodeFile(file, projectType) {
|
|
111
|
+
if(!projectType) {
|
|
112
|
+
if(file.startsWith('./project/api')) {
|
|
113
|
+
const fileName = file.substring('./project/'.length);
|
|
114
|
+
return Path.normalize(`${this.getActorDistPath()}${Path.sep}${fileName.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const fileName = file.substring('./project/'.length);
|
|
118
|
+
return Path.normalize(`${this.getLayersPath()}${Path.sep}AppLayer${Path.sep}${fileName.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
return Path.normalize(`${this.getLayersPath()}${Path.sep}${file.replace(new RegExp('[/\\\\]', 'g'), Path.sep)}`);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
getImage(path) {
|
|
127
|
+
return `/abs-images/${path}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
module.exports = new ActorPathDist();
|