@abtnode/constant 1.5.13 → 1.15.17
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/index.js +17 -15
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -18,14 +18,14 @@ const RBAC_CONFIG = {
|
|
|
18
18
|
{
|
|
19
19
|
name: ROLES.OWNER,
|
|
20
20
|
title: 'Owner',
|
|
21
|
-
description: 'Has full administrative access to the
|
|
21
|
+
description: 'Has full administrative access to the Blocklet Server',
|
|
22
22
|
passport: true,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
name: ROLES.ADMIN,
|
|
26
26
|
title: 'Admin',
|
|
27
27
|
description:
|
|
28
|
-
'Has full permissions to manage blocklet and
|
|
28
|
+
'Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version',
|
|
29
29
|
passport: true,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -38,20 +38,20 @@ const RBAC_CONFIG = {
|
|
|
38
38
|
{
|
|
39
39
|
name: ROLES.GUEST,
|
|
40
40
|
title: 'Guest',
|
|
41
|
-
description: 'Has all read permissions on
|
|
41
|
+
description: 'Has all read permissions on Blocklet Server',
|
|
42
42
|
passport: true,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
name: 'ci',
|
|
46
46
|
title: 'CI',
|
|
47
|
-
description: 'Deploy blocklet to
|
|
47
|
+
description: 'Deploy blocklet to Blocklet Server',
|
|
48
48
|
passport: true,
|
|
49
49
|
ci: true,
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
name: 'certificate',
|
|
53
53
|
title: 'Certificate',
|
|
54
|
-
description: 'Manage https certificates for blocklets on the
|
|
54
|
+
description: 'Manage https certificates for blocklets on the Blocklet Server',
|
|
55
55
|
passport: true,
|
|
56
56
|
ci: true,
|
|
57
57
|
},
|
|
@@ -63,7 +63,8 @@ const RBAC_CONFIG = {
|
|
|
63
63
|
permissions: Object.freeze([
|
|
64
64
|
{
|
|
65
65
|
name: 'query_node',
|
|
66
|
-
description:
|
|
66
|
+
description:
|
|
67
|
+
'View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets',
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
name: 'mutate_node',
|
|
@@ -79,19 +80,19 @@ const RBAC_CONFIG = {
|
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
name: 'query_accessKey',
|
|
82
|
-
description: 'View access keys for
|
|
83
|
+
description: 'View access keys for Blocklet Server',
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
name: 'mutate_accessKey',
|
|
86
|
-
description: 'Manage access keys for
|
|
87
|
+
description: 'Manage access keys for Blocklet Server, such as create/update/delete',
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
name: 'query_team',
|
|
90
|
-
description: 'View team data(members/roles/permissions) for
|
|
91
|
+
description: 'View team data(members/roles/permissions) for Blocklet Server and blocklets',
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
94
|
name: 'mutate_team',
|
|
94
|
-
description: 'Manage team data(members/roles/permissions) for
|
|
95
|
+
description: 'Manage team data(members/roles/permissions) for Blocklet Server and blocklets',
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
name: 'query_blocklet',
|
|
@@ -157,7 +158,7 @@ const RBAC_CONFIG = {
|
|
|
157
158
|
const DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
158
159
|
|
|
159
160
|
module.exports = Object.freeze({
|
|
160
|
-
//
|
|
161
|
+
// Blocklet Server
|
|
161
162
|
NODE_MODES: Object.freeze({
|
|
162
163
|
PRODUCTION: 'production',
|
|
163
164
|
DEBUG: 'debug',
|
|
@@ -165,7 +166,7 @@ module.exports = Object.freeze({
|
|
|
165
166
|
IMMUTABLE: 'immutable',
|
|
166
167
|
}),
|
|
167
168
|
|
|
168
|
-
DEFAULT_DESCRIPTION: 'Web Interface to manage your
|
|
169
|
+
DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
|
|
169
170
|
|
|
170
171
|
NODE_UPGRADE_PROGRESS: Object.freeze({
|
|
171
172
|
SETUP: 'setup', // backup
|
|
@@ -193,9 +194,9 @@ module.exports = Object.freeze({
|
|
|
193
194
|
|
|
194
195
|
NODE_REGISTER_URL: 'https://install.arcblock.io/', // removed in 1.5.1
|
|
195
196
|
WEB_WALLET_URL: 'https://web.abtwallet.io',
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
BLOCKLET_STORE_URL: 'https://store.blocklet.dev',
|
|
198
|
+
BLOCKLET_STORE_URL_DEV: 'https://dev.store.blocklet.dev',
|
|
199
|
+
BLOCKLET_STORE_API_PREFIX: '/api',
|
|
199
200
|
|
|
200
201
|
DEFAULT_IP_DNS_DOMAIN_SUFFIX: 'ip.abtnet.io',
|
|
201
202
|
DEFAULT_DASHBOARD_DOMAIN: '*.ip.abtnet.io',
|
|
@@ -235,6 +236,7 @@ module.exports = Object.freeze({
|
|
|
235
236
|
DEFAULT_DAEMON_PORT: 8089,
|
|
236
237
|
|
|
237
238
|
BLOCKLET_PROXY_PATH_PREFIX: '/.blocklet/proxy',
|
|
239
|
+
BLOCKLET_SITE_GROUP_SUFFIX: '.blocklet-domain-group',
|
|
238
240
|
|
|
239
241
|
// Time and dates
|
|
240
242
|
DAY_IN_MS,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.15.17",
|
|
7
7
|
"description": "ABT Node constants",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"jest": "^27.3.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "22715c3ea74d0230f3413162a17f491614b6735a"
|
|
24
24
|
}
|