@abtnode/constant 1.5.14 → 1.5.18

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.
Files changed (2) hide show
  1. package/index.js +19 -16
  2. 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 ABT Node',
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 ABT Node, 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',
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 ABT nodes',
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 ABT Node',
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 ABT Node',
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: 'View node data, include dashboard and node settings, log stream for both ABT Node and blocklets',
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,23 +80,24 @@ const RBAC_CONFIG = {
79
80
  },
80
81
  {
81
82
  name: 'query_accessKey',
82
- description: 'View access keys for ABT Node',
83
+ description: 'View access keys for Blocklet Server',
83
84
  },
84
85
  {
85
86
  name: 'mutate_accessKey',
86
- description: 'Manage access keys for ABT Node, such as create/update/delete',
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 ABT Node and blocklets',
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 ABT Node and blocklets',
95
+ description: 'Manage team data(members/roles/permissions) for Blocklet Server and blocklets',
95
96
  },
96
97
  {
97
98
  name: 'query_blocklet',
98
- description: 'View marketplace and installed blocklets, including blocklet runtime configuration and access URLs',
99
+ description:
100
+ 'View marketplace and installed blocklets, including blocklet runtime configuration, domains and urls',
99
101
  },
100
102
  {
101
103
  name: 'mutate_blocklet',
@@ -157,7 +159,7 @@ const RBAC_CONFIG = {
157
159
  const DAY_IN_MS = 24 * 60 * 60 * 1000;
158
160
 
159
161
  module.exports = Object.freeze({
160
- // ABT Node
162
+ // Blocklet Server
161
163
  NODE_MODES: Object.freeze({
162
164
  PRODUCTION: 'production',
163
165
  DEBUG: 'debug',
@@ -165,7 +167,7 @@ module.exports = Object.freeze({
165
167
  IMMUTABLE: 'immutable',
166
168
  }),
167
169
 
168
- DEFAULT_DESCRIPTION: 'Web Interface to manage your ABT Node',
170
+ DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
169
171
 
170
172
  NODE_UPGRADE_PROGRESS: Object.freeze({
171
173
  SETUP: 'setup', // backup
@@ -193,9 +195,9 @@ module.exports = Object.freeze({
193
195
 
194
196
  NODE_REGISTER_URL: 'https://install.arcblock.io/', // removed in 1.5.1
195
197
  WEB_WALLET_URL: 'https://web.abtwallet.io',
196
- BLOCKLET_REGISTRY_URL: 'https://registry.arcblock.io',
197
- BLOCKLET_REGISTRY_URL_DEV: 'https://dev.registry.arcblock.io',
198
- BLOCKLET_REGISTRY_API_PREFIX: '/api',
198
+ BLOCKLET_STORE_URL: 'https://store.blocklet.dev',
199
+ BLOCKLET_STORE_URL_DEV: 'https://dev.store.blocklet.dev',
200
+ BLOCKLET_STORE_API_PREFIX: '/api',
199
201
 
200
202
  DEFAULT_IP_DNS_DOMAIN_SUFFIX: 'ip.abtnet.io',
201
203
  DEFAULT_DASHBOARD_DOMAIN: '*.ip.abtnet.io',
@@ -235,6 +237,7 @@ module.exports = Object.freeze({
235
237
  DEFAULT_DAEMON_PORT: 8089,
236
238
 
237
239
  BLOCKLET_PROXY_PATH_PREFIX: '/.blocklet/proxy',
240
+ BLOCKLET_SITE_GROUP_SUFFIX: '.blocklet-domain-group',
238
241
 
239
242
  // Time and dates
240
243
  DAY_IN_MS,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.5.14",
6
+ "version": "1.5.18",
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": "9759378266a2d13a5083398490c7baed39e19f31"
23
+ "gitHead": "0a4f2e300063fdcbc77da81e94cb1be72ab9d4e3"
24
24
  }