ee-core 4.1.3 → 4.1.4
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/LICENSE +21 -21
- package/README.md +65 -65
- package/app/application.d.ts +5 -5
- package/app/application.js +30 -30
- package/app/boot.d.ts +5 -5
- package/app/boot.js +80 -80
- package/app/dir.d.ts +1 -1
- package/app/dir.js +26 -26
- package/app/events.d.ts +14 -14
- package/app/events.js +55 -55
- package/app/index.d.ts +2 -2
- package/app/index.js +6 -6
- package/config/config_loader.d.ts +13 -13
- package/config/config_loader.js +65 -65
- package/config/default_config.d.ts +95 -95
- package/config/default_config.js +111 -111
- package/config/index.d.ts +28 -28
- package/config/index.js +24 -24
- package/const/channel.d.ts +16 -16
- package/const/channel.js +27 -27
- package/controller/controller_loader.d.ts +9 -9
- package/controller/controller_loader.js +77 -77
- package/controller/index.d.ts +2 -2
- package/controller/index.js +24 -24
- package/core/index.d.ts +2 -2
- package/core/index.js +11 -11
- package/core/loader/file_loader.d.ts +66 -66
- package/core/loader/file_loader.js +211 -211
- package/core/utils/index.d.ts +12 -12
- package/core/utils/index.js +83 -83
- package/core/utils/timing.d.ts +22 -22
- package/core/utils/timing.js +78 -78
- package/cross/cross.d.ts +19 -19
- package/cross/cross.js +151 -151
- package/cross/crossProcess.d.ts +29 -29
- package/cross/crossProcess.js +172 -172
- package/cross/index.d.ts +2 -2
- package/cross/index.js +8 -8
- package/electron/app/index.d.ts +5 -5
- package/electron/app/index.js +48 -48
- package/electron/index.d.ts +3 -3
- package/electron/index.js +15 -15
- package/electron/window/index.d.ts +6 -6
- package/electron/window/index.js +268 -268
- package/exception/index.d.ts +9 -9
- package/exception/index.js +100 -100
- package/html/boot.html +98 -98
- package/html/cross-failure.html +28 -28
- package/html/failure.html +28 -28
- package/html/index.d.ts +1 -1
- package/html/index.js +10 -10
- package/index.d.ts +2 -2
- package/index.js +6 -6
- package/jobs/child/app.d.ts +1 -1
- package/jobs/child/app.js +69 -69
- package/jobs/child/index.d.ts +13 -13
- package/jobs/child/index.js +85 -85
- package/jobs/child/jobProcess.d.ts +16 -16
- package/jobs/child/jobProcess.js +133 -133
- package/jobs/child-pool/index.d.ts +26 -26
- package/jobs/child-pool/index.js +190 -190
- package/jobs/index.d.ts +3 -3
- package/jobs/index.js +6 -6
- package/jobs/load-balancer/algorithm/index.d.ts +4 -4
- package/jobs/load-balancer/algorithm/index.js +11 -11
- package/jobs/load-balancer/algorithm/minimumConnection.d.ts +2 -2
- package/jobs/load-balancer/algorithm/minimumConnection.js +18 -18
- package/jobs/load-balancer/algorithm/polling.d.ts +2 -2
- package/jobs/load-balancer/algorithm/polling.js +11 -11
- package/jobs/load-balancer/algorithm/random.d.ts +2 -2
- package/jobs/load-balancer/algorithm/random.js +9 -9
- package/jobs/load-balancer/algorithm/specify.d.ts +2 -2
- package/jobs/load-balancer/algorithm/specify.js +14 -14
- package/jobs/load-balancer/algorithm/weights.d.ts +2 -2
- package/jobs/load-balancer/algorithm/weights.js +21 -21
- package/jobs/load-balancer/algorithm/weightsMinimumConnection.d.ts +2 -2
- package/jobs/load-balancer/algorithm/weightsMinimumConnection.js +29 -29
- package/jobs/load-balancer/algorithm/weightsPolling.d.ts +2 -2
- package/jobs/load-balancer/algorithm/weightsPolling.js +22 -22
- package/jobs/load-balancer/algorithm/weightsRandom.d.ts +2 -2
- package/jobs/load-balancer/algorithm/weightsRandom.js +16 -16
- package/jobs/load-balancer/consts.d.ts +8 -8
- package/jobs/load-balancer/consts.js +9 -9
- package/jobs/load-balancer/index.d.ts +96 -96
- package/jobs/load-balancer/index.js +201 -201
- package/jobs/load-balancer/scheduler.d.ts +16 -16
- package/jobs/load-balancer/scheduler.js +31 -31
- package/loader/index.d.ts +9 -9
- package/loader/index.js +99 -98
- package/log/index.d.ts +5 -5
- package/log/index.js +85 -85
- package/log/logger.d.ts +1 -1
- package/log/logger.js +94 -94
- package/message/childMessage.d.ts +10 -10
- package/message/childMessage.js +43 -43
- package/message/index.d.ts +3 -3
- package/message/index.js +9 -9
- package/package.json +42 -42
- package/ps/index.d.ts +39 -39
- package/ps/index.js +294 -294
- package/socket/httpServer.d.ts +8 -8
- package/socket/httpServer.js +199 -199
- package/socket/index.d.ts +10 -10
- package/socket/index.js +64 -64
- package/socket/ipcServer.d.ts +9 -9
- package/socket/ipcServer.js +105 -105
- package/socket/socketServer.d.ts +10 -10
- package/socket/socketServer.js +81 -81
- package/storage/index.d.ts +4 -4
- package/storage/index.js +6 -6
- package/storage/sqliteStorage.d.ts +16 -16
- package/storage/sqliteStorage.js +123 -123
- package/tsconfig.json +13 -13
- package/utils/extend.d.ts +2 -2
- package/utils/extend.js +77 -77
- package/utils/helper.d.ts +14 -14
- package/utils/helper.js +206 -206
- package/utils/index.d.ts +10 -10
- package/utils/index.js +167 -167
- package/utils/ip.d.ts +2 -2
- package/utils/ip.js +221 -221
- package/utils/is.d.ts +14 -14
- package/utils/is.js +111 -111
- package/utils/json.d.ts +5 -5
- package/utils/json.js +79 -79
- package/utils/pargv.d.ts +3 -3
- package/utils/pargv.js +267 -267
- package/utils/port/index.d.ts +1 -1
- package/utils/port/index.js +125 -125
- package/utils/wrap.d.ts +4 -4
- package/utils/wrap.js +40 -40
package/exception/index.js
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { coreLogger } = require('../log');
|
|
4
|
-
const { isForkedChild, isRenderer, isDev, isMain } = require('../ps');
|
|
5
|
-
const { getConfig } = require('../config');
|
|
6
|
-
const { childMessage } = require('../message');
|
|
7
|
-
|
|
8
|
-
// 捕获异常
|
|
9
|
-
function loadException() {
|
|
10
|
-
uncaughtExceptionHandler();
|
|
11
|
-
unhandledRejectionHandler();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// 当进程上抛出异常而没有被捕获时触发该事件,并且使异常静默。
|
|
15
|
-
function uncaughtExceptionHandler() {
|
|
16
|
-
process.on('uncaughtException', function(err) {
|
|
17
|
-
if (!(err instanceof Error)) {
|
|
18
|
-
err = new Error(String(err));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (err.name === 'Error') {
|
|
22
|
-
err.name = 'unhandledExceptionError';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
coreLogger.error(err);
|
|
26
|
-
|
|
27
|
-
_devError(err);
|
|
28
|
-
|
|
29
|
-
_exit();
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// 当进程上抛出异常而没有被捕获时触发该事件。
|
|
34
|
-
function uncaughtExceptionMonitorHandler() {
|
|
35
|
-
process.on('uncaughtExceptionMonitor', function(err, origin) {
|
|
36
|
-
if (!(err instanceof Error)) {
|
|
37
|
-
err = new Error(String(err));
|
|
38
|
-
}
|
|
39
|
-
coreLogger.error('uncaughtExceptionMonitor:',err);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// 当promise中reject的异常在同步任务中没有使用catch捕获就会触发该事件,
|
|
44
|
-
// 即便是在异步情况下使用了catch也会触发该事件
|
|
45
|
-
function unhandledRejectionHandler() {
|
|
46
|
-
process.on('unhandledRejection', function(err) {
|
|
47
|
-
if (!(err instanceof Error)) {
|
|
48
|
-
const newError = new Error(String(err));
|
|
49
|
-
// err maybe an object, try to copy the name, message and stack to the new error instance
|
|
50
|
-
if (err) {
|
|
51
|
-
if (err.name) newError.name = err.name;
|
|
52
|
-
if (err.message) newError.message = err.message;
|
|
53
|
-
if (err.stack) newError.stack = err.stack;
|
|
54
|
-
}
|
|
55
|
-
err = newError;
|
|
56
|
-
}
|
|
57
|
-
if (err.name === 'Error') {
|
|
58
|
-
err.name = 'unhandledRejectionError';
|
|
59
|
-
}
|
|
60
|
-
coreLogger.error(err);
|
|
61
|
-
_devError(err);
|
|
62
|
-
_exit();
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// 如果是子进程,发送错误到主进程控制台
|
|
67
|
-
function _devError (err) {
|
|
68
|
-
if (isForkedChild() && isDev()) {
|
|
69
|
-
childMessage.sendErrorToTerminal(err);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// 捕获异常后是否退出
|
|
74
|
-
function _exit () {
|
|
75
|
-
const { mainExit, childExit, rendererExit } = getConfig().exception;
|
|
76
|
-
|
|
77
|
-
if (isMain() && mainExit == true) {
|
|
78
|
-
_delayExit();
|
|
79
|
-
} else if (isForkedChild() && childExit == true) {
|
|
80
|
-
_delayExit();
|
|
81
|
-
} else if (isRenderer() && rendererExit == true) {
|
|
82
|
-
_delayExit();
|
|
83
|
-
} else {
|
|
84
|
-
// other
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// 捕获异常后是否退出
|
|
89
|
-
function _delayExit() {
|
|
90
|
-
// 等待日志等异步写入完成
|
|
91
|
-
setTimeout(() => {
|
|
92
|
-
process.exit();
|
|
93
|
-
}, 1500)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
module.exports = {
|
|
97
|
-
loadException,
|
|
98
|
-
uncaughtExceptionHandler,
|
|
99
|
-
unhandledRejectionHandler,
|
|
100
|
-
uncaughtExceptionMonitorHandler
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { coreLogger } = require('../log');
|
|
4
|
+
const { isForkedChild, isRenderer, isDev, isMain } = require('../ps');
|
|
5
|
+
const { getConfig } = require('../config');
|
|
6
|
+
const { childMessage } = require('../message');
|
|
7
|
+
|
|
8
|
+
// 捕获异常
|
|
9
|
+
function loadException() {
|
|
10
|
+
uncaughtExceptionHandler();
|
|
11
|
+
unhandledRejectionHandler();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// 当进程上抛出异常而没有被捕获时触发该事件,并且使异常静默。
|
|
15
|
+
function uncaughtExceptionHandler() {
|
|
16
|
+
process.on('uncaughtException', function(err) {
|
|
17
|
+
if (!(err instanceof Error)) {
|
|
18
|
+
err = new Error(String(err));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (err.name === 'Error') {
|
|
22
|
+
err.name = 'unhandledExceptionError';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
coreLogger.error(err);
|
|
26
|
+
|
|
27
|
+
_devError(err);
|
|
28
|
+
|
|
29
|
+
_exit();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 当进程上抛出异常而没有被捕获时触发该事件。
|
|
34
|
+
function uncaughtExceptionMonitorHandler() {
|
|
35
|
+
process.on('uncaughtExceptionMonitor', function(err, origin) {
|
|
36
|
+
if (!(err instanceof Error)) {
|
|
37
|
+
err = new Error(String(err));
|
|
38
|
+
}
|
|
39
|
+
coreLogger.error('uncaughtExceptionMonitor:',err);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 当promise中reject的异常在同步任务中没有使用catch捕获就会触发该事件,
|
|
44
|
+
// 即便是在异步情况下使用了catch也会触发该事件
|
|
45
|
+
function unhandledRejectionHandler() {
|
|
46
|
+
process.on('unhandledRejection', function(err) {
|
|
47
|
+
if (!(err instanceof Error)) {
|
|
48
|
+
const newError = new Error(String(err));
|
|
49
|
+
// err maybe an object, try to copy the name, message and stack to the new error instance
|
|
50
|
+
if (err) {
|
|
51
|
+
if (err.name) newError.name = err.name;
|
|
52
|
+
if (err.message) newError.message = err.message;
|
|
53
|
+
if (err.stack) newError.stack = err.stack;
|
|
54
|
+
}
|
|
55
|
+
err = newError;
|
|
56
|
+
}
|
|
57
|
+
if (err.name === 'Error') {
|
|
58
|
+
err.name = 'unhandledRejectionError';
|
|
59
|
+
}
|
|
60
|
+
coreLogger.error(err);
|
|
61
|
+
_devError(err);
|
|
62
|
+
_exit();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// 如果是子进程,发送错误到主进程控制台
|
|
67
|
+
function _devError (err) {
|
|
68
|
+
if (isForkedChild() && isDev()) {
|
|
69
|
+
childMessage.sendErrorToTerminal(err);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// 捕获异常后是否退出
|
|
74
|
+
function _exit () {
|
|
75
|
+
const { mainExit, childExit, rendererExit } = getConfig().exception;
|
|
76
|
+
|
|
77
|
+
if (isMain() && mainExit == true) {
|
|
78
|
+
_delayExit();
|
|
79
|
+
} else if (isForkedChild() && childExit == true) {
|
|
80
|
+
_delayExit();
|
|
81
|
+
} else if (isRenderer() && rendererExit == true) {
|
|
82
|
+
_delayExit();
|
|
83
|
+
} else {
|
|
84
|
+
// other
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 捕获异常后是否退出
|
|
89
|
+
function _delayExit() {
|
|
90
|
+
// 等待日志等异步写入完成
|
|
91
|
+
setTimeout(() => {
|
|
92
|
+
process.exit();
|
|
93
|
+
}, 1500)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
module.exports = {
|
|
97
|
+
loadException,
|
|
98
|
+
uncaughtExceptionHandler,
|
|
99
|
+
unhandledRejectionHandler,
|
|
100
|
+
uncaughtExceptionMonitorHandler
|
|
101
101
|
};
|
package/html/boot.html
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
-
<style>
|
|
8
|
-
#loadingPage {
|
|
9
|
-
background-color: #dedede;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
}
|
|
12
|
-
.base {
|
|
13
|
-
left: 50%;
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 50%;
|
|
16
|
-
transform: translate(-50%, -50%);
|
|
17
|
-
}
|
|
18
|
-
.desc {
|
|
19
|
-
margin: 0, 0, 20px, 0;
|
|
20
|
-
}
|
|
21
|
-
.loading,
|
|
22
|
-
.loading > div {
|
|
23
|
-
position: relative;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
}
|
|
26
|
-
.loading {
|
|
27
|
-
display: block;
|
|
28
|
-
font-size: 0;
|
|
29
|
-
color: #06b359;
|
|
30
|
-
}
|
|
31
|
-
.loading.la-dark {
|
|
32
|
-
color: #07C160;
|
|
33
|
-
}
|
|
34
|
-
.loading > div {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
float: none;
|
|
37
|
-
background-color: currentColor;
|
|
38
|
-
border: 0 solid currentColor;
|
|
39
|
-
}
|
|
40
|
-
.loading {
|
|
41
|
-
width: 92px;
|
|
42
|
-
height: 92px;
|
|
43
|
-
}
|
|
44
|
-
.loading > div {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 50%;
|
|
47
|
-
left: 50%;
|
|
48
|
-
background: transparent;
|
|
49
|
-
border-style: solid;
|
|
50
|
-
border-width: 2px;
|
|
51
|
-
border-radius: 100%;
|
|
52
|
-
animation: ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;
|
|
53
|
-
}
|
|
54
|
-
.loading > div:first-child {
|
|
55
|
-
position: absolute;
|
|
56
|
-
width: 92px;
|
|
57
|
-
height: 92px;
|
|
58
|
-
border-right-color: transparent;
|
|
59
|
-
border-left-color: transparent;
|
|
60
|
-
}
|
|
61
|
-
.loading > div:last-child {
|
|
62
|
-
width: 16px;
|
|
63
|
-
height: 16px;
|
|
64
|
-
border-top-color: transparent;
|
|
65
|
-
border-bottom-color: transparent;
|
|
66
|
-
animation-duration: 0.5s;
|
|
67
|
-
animation-direction: reverse;
|
|
68
|
-
}
|
|
69
|
-
@keyframes ball-clip-rotate-multiple-rotate {
|
|
70
|
-
0% {
|
|
71
|
-
transform: translate(-50%, -50%) rotate(0deg);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
50% {
|
|
75
|
-
transform: translate(-50%, -50%) rotate(180deg);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
100% {
|
|
79
|
-
transform: translate(-50%, -50%) rotate(360deg);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
</style>
|
|
83
|
-
</head>
|
|
84
|
-
<body>
|
|
85
|
-
<div id="boot">
|
|
86
|
-
<div class='base'>
|
|
87
|
-
<!-- Booting the frontend service ... -->
|
|
88
|
-
<!-- <div class='desc'>
|
|
89
|
-
Booting frontend
|
|
90
|
-
</div> -->
|
|
91
|
-
<div class="loading">
|
|
92
|
-
<div></div>
|
|
93
|
-
<div></div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
</body>
|
|
98
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
+
<style>
|
|
8
|
+
#loadingPage {
|
|
9
|
+
background-color: #dedede;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
}
|
|
12
|
+
.base {
|
|
13
|
+
left: 50%;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
transform: translate(-50%, -50%);
|
|
17
|
+
}
|
|
18
|
+
.desc {
|
|
19
|
+
margin: 0, 0, 20px, 0;
|
|
20
|
+
}
|
|
21
|
+
.loading,
|
|
22
|
+
.loading > div {
|
|
23
|
+
position: relative;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
.loading {
|
|
27
|
+
display: block;
|
|
28
|
+
font-size: 0;
|
|
29
|
+
color: #06b359;
|
|
30
|
+
}
|
|
31
|
+
.loading.la-dark {
|
|
32
|
+
color: #07C160;
|
|
33
|
+
}
|
|
34
|
+
.loading > div {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
float: none;
|
|
37
|
+
background-color: currentColor;
|
|
38
|
+
border: 0 solid currentColor;
|
|
39
|
+
}
|
|
40
|
+
.loading {
|
|
41
|
+
width: 92px;
|
|
42
|
+
height: 92px;
|
|
43
|
+
}
|
|
44
|
+
.loading > div {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 50%;
|
|
48
|
+
background: transparent;
|
|
49
|
+
border-style: solid;
|
|
50
|
+
border-width: 2px;
|
|
51
|
+
border-radius: 100%;
|
|
52
|
+
animation: ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;
|
|
53
|
+
}
|
|
54
|
+
.loading > div:first-child {
|
|
55
|
+
position: absolute;
|
|
56
|
+
width: 92px;
|
|
57
|
+
height: 92px;
|
|
58
|
+
border-right-color: transparent;
|
|
59
|
+
border-left-color: transparent;
|
|
60
|
+
}
|
|
61
|
+
.loading > div:last-child {
|
|
62
|
+
width: 16px;
|
|
63
|
+
height: 16px;
|
|
64
|
+
border-top-color: transparent;
|
|
65
|
+
border-bottom-color: transparent;
|
|
66
|
+
animation-duration: 0.5s;
|
|
67
|
+
animation-direction: reverse;
|
|
68
|
+
}
|
|
69
|
+
@keyframes ball-clip-rotate-multiple-rotate {
|
|
70
|
+
0% {
|
|
71
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
50% {
|
|
75
|
+
transform: translate(-50%, -50%) rotate(180deg);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
100% {
|
|
79
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
83
|
+
</head>
|
|
84
|
+
<body>
|
|
85
|
+
<div id="boot">
|
|
86
|
+
<div class='base'>
|
|
87
|
+
<!-- Booting the frontend service ... -->
|
|
88
|
+
<!-- <div class='desc'>
|
|
89
|
+
Booting frontend
|
|
90
|
+
</div> -->
|
|
91
|
+
<div class="loading">
|
|
92
|
+
<div></div>
|
|
93
|
+
<div></div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</body>
|
|
98
|
+
</html>
|
package/html/cross-failure.html
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
-
<title>Booting failure</title>
|
|
8
|
-
<style>
|
|
9
|
-
#failure {
|
|
10
|
-
background-color: #dedede;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
}
|
|
13
|
-
.base {
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 50%;
|
|
16
|
-
left: 50%;
|
|
17
|
-
transform: translate(-50%, -50%);
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="failure">
|
|
23
|
-
<div class='base'>
|
|
24
|
-
Startup failed, please check cross service is runing !
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
+
<title>Booting failure</title>
|
|
8
|
+
<style>
|
|
9
|
+
#failure {
|
|
10
|
+
background-color: #dedede;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
}
|
|
13
|
+
.base {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
</head>
|
|
21
|
+
<body>
|
|
22
|
+
<div id="failure">
|
|
23
|
+
<div class='base'>
|
|
24
|
+
Startup failed, please check cross service is runing !
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
package/html/failure.html
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
-
<title>Booting failure</title>
|
|
8
|
-
<style>
|
|
9
|
-
#failure {
|
|
10
|
-
background-color: #dedede;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
}
|
|
13
|
-
.base {
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 50%;
|
|
16
|
-
left: 50%;
|
|
17
|
-
transform: translate(-50%, -50%);
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="failure">
|
|
23
|
-
<div class='base'>
|
|
24
|
-
Startup failed, please check frontend service is runing !
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
|
|
7
|
+
<title>Booting failure</title>
|
|
8
|
+
<style>
|
|
9
|
+
#failure {
|
|
10
|
+
background-color: #dedede;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
}
|
|
13
|
+
.base {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
</head>
|
|
21
|
+
<body>
|
|
22
|
+
<div id="failure">
|
|
23
|
+
<div class='base'>
|
|
24
|
+
Startup failed, please check frontend service is runing !
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
package/html/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getHtmlFilepath(name: string): string;
|
|
1
|
+
export declare function getHtmlFilepath(name: string): string;
|
package/html/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
// Html
|
|
4
|
-
function getHtmlFilepath(name){
|
|
5
|
-
const pagePath = path.join(__dirname, name);
|
|
6
|
-
return pagePath;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
getHtmlFilepath
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
// Html
|
|
4
|
+
function getHtmlFilepath(name){
|
|
5
|
+
const pagePath = path.join(__dirname, name);
|
|
6
|
+
return pagePath;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
getHtmlFilepath
|
|
11
11
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ElectronEgg };
|
|
2
|
-
import { ElectronEgg } from "./app";
|
|
1
|
+
export { ElectronEgg };
|
|
2
|
+
import { ElectronEgg } from "./app";
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { ElectronEgg } = require('./app');
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
ElectronEgg
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { ElectronEgg } = require('./app');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
ElectronEgg
|
|
7
7
|
}
|
package/jobs/child/app.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|