@blocklet/launcher-util 2.2.28 → 2.2.30
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/es/constant.js +12 -10
- package/es/locale/en.js +3 -2
- package/es/locale/zh.js +3 -2
- package/lib/constant.js +12 -10
- package/lib/locale/en.js +3 -2
- package/lib/locale/zh.js +3 -2
- package/package.json +2 -2
package/es/constant.js
CHANGED
|
@@ -5,11 +5,13 @@ const INSTANCE_STATUS = Object.freeze({
|
|
|
5
5
|
starting: 20,
|
|
6
6
|
running: 30,
|
|
7
7
|
restarting: 40,
|
|
8
|
+
underMaintenance: 45,
|
|
8
9
|
stopping: 50,
|
|
9
10
|
stopped: 60,
|
|
10
|
-
|
|
11
|
+
terminatedInstance: 70,
|
|
11
12
|
expired: 80,
|
|
12
|
-
|
|
13
|
+
terminated: 90
|
|
14
|
+
// 最终状态
|
|
13
15
|
});
|
|
14
16
|
const PLAN_STATUS = Object.freeze({
|
|
15
17
|
draft: 10,
|
|
@@ -29,6 +31,12 @@ const LAUNCH_STATUS = Object.freeze({
|
|
|
29
31
|
timeout: 80,
|
|
30
32
|
transferred: 90
|
|
31
33
|
});
|
|
34
|
+
const SERVERLESS_INSTANCE_STATUS = {
|
|
35
|
+
launching: 10,
|
|
36
|
+
running: 20,
|
|
37
|
+
expired: 30,
|
|
38
|
+
terminated: 40
|
|
39
|
+
};
|
|
32
40
|
const LAUNCH_ACTIVITY_TYPE = Object.freeze({
|
|
33
41
|
created: "created",
|
|
34
42
|
selected: "selected",
|
|
@@ -63,14 +71,8 @@ const SERVER_ACTIVITY_TYPE = Object.freeze({
|
|
|
63
71
|
transferred: "transferred",
|
|
64
72
|
replacement: "replacement"
|
|
65
73
|
});
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
running: 20,
|
|
69
|
-
expired: 30,
|
|
70
|
-
terminated: 40
|
|
71
|
-
};
|
|
72
|
-
const toMap = (staus) => Object.keys(staus).reduce((acc, cur) => {
|
|
73
|
-
acc[staus[cur]] = cur;
|
|
74
|
+
const toMap = (status) => Object.keys(status).reduce((acc, cur) => {
|
|
75
|
+
acc[status[cur]] = cur;
|
|
74
76
|
return acc;
|
|
75
77
|
}, {});
|
|
76
78
|
const fromStatus = (map) => (status) => map[status];
|
package/es/locale/en.js
CHANGED
|
@@ -22,13 +22,14 @@ const en = flat({
|
|
|
22
22
|
[INSTANCE_STATUS.starting]: "Starting",
|
|
23
23
|
[INSTANCE_STATUS.running]: "Running",
|
|
24
24
|
[INSTANCE_STATUS.restarting]: "Restarting",
|
|
25
|
+
[INSTANCE_STATUS.underMaintenance]: "Under-Maintenance",
|
|
25
26
|
[INSTANCE_STATUS.stopping]: "Stopping",
|
|
26
27
|
[INSTANCE_STATUS.stopped]: "Stopped",
|
|
27
|
-
[INSTANCE_STATUS.
|
|
28
|
+
[INSTANCE_STATUS.terminatedInstance]: "Instance Terminated",
|
|
28
29
|
[INSTANCE_STATUS.expired]: "Expired",
|
|
29
30
|
[INSTANCE_STATUS.error]: "Error",
|
|
30
31
|
[INSTANCE_STATUS.waiting]: "Waiting",
|
|
31
|
-
[INSTANCE_STATUS.
|
|
32
|
+
[INSTANCE_STATUS.terminated]: "Terminated"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
paymentMethod: {
|
package/es/locale/zh.js
CHANGED
|
@@ -22,13 +22,14 @@ const zh = flat({
|
|
|
22
22
|
[INSTANCE_STATUS.starting]: "启动中",
|
|
23
23
|
[INSTANCE_STATUS.running]: "运行中",
|
|
24
24
|
[INSTANCE_STATUS.restarting]: "重启中",
|
|
25
|
+
[INSTANCE_STATUS.underMaintenance]: "维护中",
|
|
25
26
|
[INSTANCE_STATUS.stopping]: "停止中",
|
|
26
27
|
[INSTANCE_STATUS.stopped]: "已停止",
|
|
27
|
-
[INSTANCE_STATUS.
|
|
28
|
+
[INSTANCE_STATUS.terminatedInstance]: "已终止实例",
|
|
28
29
|
[INSTANCE_STATUS.expired]: "已过期",
|
|
29
30
|
[INSTANCE_STATUS.error]: "错误",
|
|
30
31
|
[INSTANCE_STATUS.waiting]: "等待中",
|
|
31
|
-
[INSTANCE_STATUS.
|
|
32
|
+
[INSTANCE_STATUS.terminated]: "已终止"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
paymentMethod: {
|
package/lib/constant.js
CHANGED
|
@@ -7,11 +7,13 @@ const INSTANCE_STATUS = Object.freeze({
|
|
|
7
7
|
starting: 20,
|
|
8
8
|
running: 30,
|
|
9
9
|
restarting: 40,
|
|
10
|
+
underMaintenance: 45,
|
|
10
11
|
stopping: 50,
|
|
11
12
|
stopped: 60,
|
|
12
|
-
|
|
13
|
+
terminatedInstance: 70,
|
|
13
14
|
expired: 80,
|
|
14
|
-
|
|
15
|
+
terminated: 90
|
|
16
|
+
// 最终状态
|
|
15
17
|
});
|
|
16
18
|
const PLAN_STATUS = Object.freeze({
|
|
17
19
|
draft: 10,
|
|
@@ -31,6 +33,12 @@ const LAUNCH_STATUS = Object.freeze({
|
|
|
31
33
|
timeout: 80,
|
|
32
34
|
transferred: 90
|
|
33
35
|
});
|
|
36
|
+
const SERVERLESS_INSTANCE_STATUS = {
|
|
37
|
+
launching: 10,
|
|
38
|
+
running: 20,
|
|
39
|
+
expired: 30,
|
|
40
|
+
terminated: 40
|
|
41
|
+
};
|
|
34
42
|
const LAUNCH_ACTIVITY_TYPE = Object.freeze({
|
|
35
43
|
created: "created",
|
|
36
44
|
selected: "selected",
|
|
@@ -65,14 +73,8 @@ const SERVER_ACTIVITY_TYPE = Object.freeze({
|
|
|
65
73
|
transferred: "transferred",
|
|
66
74
|
replacement: "replacement"
|
|
67
75
|
});
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
running: 20,
|
|
71
|
-
expired: 30,
|
|
72
|
-
terminated: 40
|
|
73
|
-
};
|
|
74
|
-
const toMap = (staus) => Object.keys(staus).reduce((acc, cur) => {
|
|
75
|
-
acc[staus[cur]] = cur;
|
|
76
|
+
const toMap = (status) => Object.keys(status).reduce((acc, cur) => {
|
|
77
|
+
acc[status[cur]] = cur;
|
|
76
78
|
return acc;
|
|
77
79
|
}, {});
|
|
78
80
|
const fromStatus = (map) => (status) => map[status];
|
package/lib/locale/en.js
CHANGED
|
@@ -23,13 +23,14 @@ const en = flat({
|
|
|
23
23
|
[constant.INSTANCE_STATUS.starting]: "Starting",
|
|
24
24
|
[constant.INSTANCE_STATUS.running]: "Running",
|
|
25
25
|
[constant.INSTANCE_STATUS.restarting]: "Restarting",
|
|
26
|
+
[constant.INSTANCE_STATUS.underMaintenance]: "Under-Maintenance",
|
|
26
27
|
[constant.INSTANCE_STATUS.stopping]: "Stopping",
|
|
27
28
|
[constant.INSTANCE_STATUS.stopped]: "Stopped",
|
|
28
|
-
[constant.INSTANCE_STATUS.
|
|
29
|
+
[constant.INSTANCE_STATUS.terminatedInstance]: "Instance Terminated",
|
|
29
30
|
[constant.INSTANCE_STATUS.expired]: "Expired",
|
|
30
31
|
[constant.INSTANCE_STATUS.error]: "Error",
|
|
31
32
|
[constant.INSTANCE_STATUS.waiting]: "Waiting",
|
|
32
|
-
[constant.INSTANCE_STATUS.
|
|
33
|
+
[constant.INSTANCE_STATUS.terminated]: "Terminated"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
paymentMethod: {
|
package/lib/locale/zh.js
CHANGED
|
@@ -23,13 +23,14 @@ const zh = flat({
|
|
|
23
23
|
[constant.INSTANCE_STATUS.starting]: "启动中",
|
|
24
24
|
[constant.INSTANCE_STATUS.running]: "运行中",
|
|
25
25
|
[constant.INSTANCE_STATUS.restarting]: "重启中",
|
|
26
|
+
[constant.INSTANCE_STATUS.underMaintenance]: "维护中",
|
|
26
27
|
[constant.INSTANCE_STATUS.stopping]: "停止中",
|
|
27
28
|
[constant.INSTANCE_STATUS.stopped]: "已停止",
|
|
28
|
-
[constant.INSTANCE_STATUS.
|
|
29
|
+
[constant.INSTANCE_STATUS.terminatedInstance]: "已终止实例",
|
|
29
30
|
[constant.INSTANCE_STATUS.expired]: "已过期",
|
|
30
31
|
[constant.INSTANCE_STATUS.error]: "错误",
|
|
31
32
|
[constant.INSTANCE_STATUS.waiting]: "等待中",
|
|
32
|
-
[constant.INSTANCE_STATUS.
|
|
33
|
+
[constant.INSTANCE_STATUS.terminated]: "已终止"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
paymentMethod: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-util",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.30",
|
|
4
4
|
"description": "Common constants",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"constant"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"vite": "^4.5.0",
|
|
51
51
|
"vite-plugin-build": "^0.10.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ed3ec053569e105c241216602d2200c571eac0cf"
|
|
54
54
|
}
|