@blocklet/launcher-util 2.1.32 → 2.1.34
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/lib/constant.js +16 -4
- package/lib/locale/en.js +4 -1
- package/lib/locale/zh.js +5 -2
- package/package.json +2 -2
package/lib/constant.js
CHANGED
|
@@ -18,17 +18,28 @@ const PLAN_STATUS = Object.freeze({
|
|
|
18
18
|
dropped: 30, // 已下架
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
const LAUNCH_STATUS = {
|
|
21
|
+
const LAUNCH_STATUS = Object.freeze({
|
|
22
22
|
created: 0,
|
|
23
23
|
selected: 10,
|
|
24
24
|
connected: 20,
|
|
25
25
|
paid: 30,
|
|
26
26
|
allocated: 40,
|
|
27
27
|
installed: 50,
|
|
28
|
-
started: 60,
|
|
29
|
-
expired: 70,
|
|
30
28
|
timeout: 80,
|
|
31
|
-
|
|
29
|
+
terminated: 90,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const LAUNCH_ACTIVITY_TYPE = Object.freeze({
|
|
33
|
+
created: 'created',
|
|
34
|
+
selected: 'selected',
|
|
35
|
+
connected: 'connected',
|
|
36
|
+
paid: 'paid',
|
|
37
|
+
allocated: 'allocated',
|
|
38
|
+
installed: 'installed',
|
|
39
|
+
timeout: 'timeout',
|
|
40
|
+
expired: 'expired',
|
|
41
|
+
terminated: 'terminated',
|
|
42
|
+
});
|
|
32
43
|
|
|
33
44
|
const SERVER_ACTIVITY_TYPE = Object.freeze({
|
|
34
45
|
purchase: 'purchase',
|
|
@@ -145,6 +156,7 @@ module.exports = Object.freeze({
|
|
|
145
156
|
BLOCKLET_SERVER_OWNERSHIP_NFT,
|
|
146
157
|
SERVERLESS_INSTANCE_STATUS,
|
|
147
158
|
LAUNCH_STATUS,
|
|
159
|
+
LAUNCH_ACTIVITY_TYPE,
|
|
148
160
|
SERVERLESS_RETAIN_DAYS: 30,
|
|
149
161
|
TIME_LOCALE,
|
|
150
162
|
});
|
package/lib/locale/en.js
CHANGED
|
@@ -3,14 +3,17 @@ const { SERVERLESS_INSTANCE_STATUS, INSTANCE_STATUS, CURRENCY_TYPE, PAYMENT_METH
|
|
|
3
3
|
|
|
4
4
|
module.exports = flat({
|
|
5
5
|
common: {
|
|
6
|
-
|
|
6
|
+
app: 'App',
|
|
7
|
+
billing: 'Billing',
|
|
7
8
|
duration: 'Duration',
|
|
9
|
+
spaceName: 'Space Name',
|
|
8
10
|
},
|
|
9
11
|
serverlessInstance: {
|
|
10
12
|
appStatus: {
|
|
11
13
|
[SERVERLESS_INSTANCE_STATUS.launching]: 'Launching',
|
|
12
14
|
[SERVERLESS_INSTANCE_STATUS.running]: 'Running',
|
|
13
15
|
[SERVERLESS_INSTANCE_STATUS.expired]: 'Expired',
|
|
16
|
+
[SERVERLESS_INSTANCE_STATUS.terminated]: 'Terminated',
|
|
14
17
|
},
|
|
15
18
|
},
|
|
16
19
|
dedicatedInstance: {
|
package/lib/locale/zh.js
CHANGED
|
@@ -3,19 +3,22 @@ const { SERVERLESS_INSTANCE_STATUS, INSTANCE_STATUS, PAYMENT_METHODS, CURRENCY_T
|
|
|
3
3
|
|
|
4
4
|
module.exports = flat({
|
|
5
5
|
common: {
|
|
6
|
-
|
|
6
|
+
app: '应用',
|
|
7
|
+
billing: '账单',
|
|
7
8
|
duration: '时长',
|
|
9
|
+
spaceName: '应用空间',
|
|
8
10
|
},
|
|
9
11
|
serverlessInstance: {
|
|
10
12
|
appStatus: {
|
|
11
13
|
[SERVERLESS_INSTANCE_STATUS.launching]: '启动中',
|
|
12
14
|
[SERVERLESS_INSTANCE_STATUS.running]: '运行中',
|
|
13
15
|
[SERVERLESS_INSTANCE_STATUS.expired]: '已过期',
|
|
16
|
+
[SERVERLESS_INSTANCE_STATUS.terminated]: '已终止',
|
|
14
17
|
},
|
|
15
18
|
},
|
|
16
19
|
dedicatedInstance: {
|
|
17
20
|
appStatus: {
|
|
18
|
-
[INSTANCE_STATUS.unknown]: '
|
|
21
|
+
[INSTANCE_STATUS.unknown]: '未知',
|
|
19
22
|
[INSTANCE_STATUS.pending]: '待处理',
|
|
20
23
|
[INSTANCE_STATUS.starting]: '启动中',
|
|
21
24
|
[INSTANCE_STATUS.running]: '运行中',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-util",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.34",
|
|
4
4
|
"description": "Common constants",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"constant"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"jest": "^27.5.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "25616222c3365973427744efbc12998e417a9205"
|
|
50
50
|
}
|