@abtnode/core 1.16.8-beta-ca58a421 → 1.16.8-beta-0c0c5eb2
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.
|
@@ -1235,6 +1235,7 @@ class BlockletManager extends BaseBlockletManager {
|
|
|
1235
1235
|
return newState;
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
|
+
// TODO: this method can be removed if title is not changed anymore
|
|
1238
1239
|
async updateComponentTitle({ did, rootDid: inputRootDid, title }) {
|
|
1239
1240
|
await titleSchema.validateAsync(title);
|
|
1240
1241
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* eslint-disable no-await-in-loop */
|
|
2
|
+
/* eslint-disable no-continue */
|
|
3
|
+
|
|
4
|
+
const blocklets = {
|
|
5
|
+
z8ia4e5vAeDsQEE2P26bQqz9oWR1Lxg9qUMaV: 'Static Demo',
|
|
6
|
+
z8iZyVVn6XsvcuiYhtdw3GoasMbtqR9BjvJz3: 'Blockchain Explorer',
|
|
7
|
+
z8iZqkCjLP6TZpR12tT3jESWxB8SGzNsx8nZa: 'NFT Store',
|
|
8
|
+
z8ia1WEiBZ7hxURf6LwH21Wpg99vophFwSJdu: 'Discuss Kit',
|
|
9
|
+
z8ia5AUWNBoc5Jw6Zf2ru97W1y6PZVFiFa7h9: 'Coming Soon Page',
|
|
10
|
+
z8iZiDFg3vkkrPwsiba1TLXy3H9XHzFERsP8o: 'Pages Kit',
|
|
11
|
+
z8iZscGk6ohCejHEiX16C7apdFC7JrPYD1J4Z: 'Virtual Gift Card',
|
|
12
|
+
z8ia2birZzhjbXqKnxPUUivmqErdsf3724tr6: 'NFT Maker',
|
|
13
|
+
z8ia1ieY5KhEC4LMRETzS5nUwD7PvAND8qkfX: 'NFT Blender',
|
|
14
|
+
z8iZqeUACK955YaBWqEd8aKg3tTki1GpvE2Wu: 'ArcBridge Node',
|
|
15
|
+
z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ: 'Blocklet Store',
|
|
16
|
+
z8ia2KGe3icfgRcVc9C1qCbWTBbpP2TrfPu7T: 'FS Chain Manager',
|
|
17
|
+
z8ia3xzq2tMq8CRHfaXj1BTYJyYnEcHbqP8cJ: 'AI Kit',
|
|
18
|
+
z8iZvmERrWxqReWe1HZmkAaZvFeRpkXutfKDk: 'NFT Marketplace',
|
|
19
|
+
z8iZpnScvjjeeyYZQoHSdXm4GQTqcfTTGkyPP: 'DID Wallet',
|
|
20
|
+
z8iZrihfHTTBCBpDqCzrjFer5jop383b5hdPh: 'DID Spaces Enterprise',
|
|
21
|
+
z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9: 'Image Bin',
|
|
22
|
+
z8iZu6GDcVFaSsT7LjrBJC9uAfM6HKyQaCD9U: 'Tower Blocks',
|
|
23
|
+
z8iZyhourKXqn8JKHbFcQDqWoAMsR6ZEi5nCW: 'Mine Sweeper',
|
|
24
|
+
z8ia48jeqzdNhr9smse1tQCmt72G5PnSZaTax: 'MultiSig Vault',
|
|
25
|
+
z8iZngXotuUXxsm6imc7naUUy1G5ycVs7A34H: 'Uptime Kuma',
|
|
26
|
+
z8iZvMrKPa7qy2nxfrKremuSm8bE9Wb9Tu2NA: 'AI Assistant',
|
|
27
|
+
z8ia2kJi2hdqASNBZzRiWQaZ8vshaxgQS67EW: 'DID Spaces Personal',
|
|
28
|
+
z8iZpog7mcgcgBZzTiXJCWESvmnRrQmnd3XBB: 'AI Studio',
|
|
29
|
+
z8iZxVUfZZBPpLhVov5YqsaorNX9F2vKAKeMc: 'Excalidraw',
|
|
30
|
+
z8iZoLRKRXHzqdJ2vFZEi4H5UXT9ADsurxZRK: 'Tweet Token',
|
|
31
|
+
z8ia5gwZog5Ut4TfUJP4k82fXKQN8iWZp2bfG: 'Token Prize Pool',
|
|
32
|
+
z8iZorY6mvb5tZrxXTqhBmwu89xjEEazrgT3t: 'Meilisearch',
|
|
33
|
+
z8iZy4P83i6AgnNdNUexsh2kBcsDHoqcwPavn: 'DID Pay',
|
|
34
|
+
z8iZqTiD6tFwEub6t685e3dj18Ekbo8xvqBSV: 'Vote',
|
|
35
|
+
z8iZkFBbrVQxZHvcWWB3Sa2TrfGmSeFz9MSU7: 'Server Launcher',
|
|
36
|
+
z8iZhW61syFGfgMGDm7ttbDATUf4zbNrzxfJG: 'Blocklet Launcher',
|
|
37
|
+
z8iZqxnmW2i3AbgmjuFki1J6KE8e5i5zBWB9k: 'Nostr Verifier',
|
|
38
|
+
z8iZwyBfqwNcGbLCiUnFAQLEzT8sJd2TSjbM2: 'Static Demo',
|
|
39
|
+
z8iZva6oERHPw7qveUwTBKcY8DqUUtcXheBX8: 'Form Builder',
|
|
40
|
+
z8iZrdP3XNxaqzcHqTRewE3BdJiCfeMfNLzTc: 'AD Kit',
|
|
41
|
+
z8ia2XJkmoZDwRBYzrvLqeZAHWz38Ptrz51xf: 'Tweet Assistant',
|
|
42
|
+
z8ia2YJVK83HuwqykTVVe61mtNWEWeR6kVERi: 'aistro',
|
|
43
|
+
z8ia5nxBkFetpK1BzaumvDStQiKyAuHdymnoh: 'Wait Genie',
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
module.exports = async ({ states, printInfo }) => {
|
|
47
|
+
printInfo('Try to update component title...');
|
|
48
|
+
|
|
49
|
+
const apps = await states.blocklet.find({});
|
|
50
|
+
|
|
51
|
+
for (const app of apps || []) {
|
|
52
|
+
let shouldUpdate = false;
|
|
53
|
+
for (const component of app.children || []) {
|
|
54
|
+
const title = blocklets[component?.meta?.bundleDid];
|
|
55
|
+
if (component?.meta && title && title !== component.meta.title) {
|
|
56
|
+
component.meta.title = title;
|
|
57
|
+
shouldUpdate = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (shouldUpdate) {
|
|
62
|
+
await states.blocklet.update({ _id: app._id }, { $set: { children: app.children } });
|
|
63
|
+
printInfo(`Blocklet in blocklet.db updated: ${app.meta?.title}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.8-beta-
|
|
6
|
+
"version": "1.16.8-beta-0c0c5eb2",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/auth": "1.16.8-beta-
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.8-beta-
|
|
24
|
-
"@abtnode/constant": "1.16.8-beta-
|
|
25
|
-
"@abtnode/cron": "1.16.8-beta-
|
|
26
|
-
"@abtnode/db": "1.16.8-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.8-beta-
|
|
28
|
-
"@abtnode/queue": "1.16.8-beta-
|
|
29
|
-
"@abtnode/rbac": "1.16.8-beta-
|
|
30
|
-
"@abtnode/router-provider": "1.16.8-beta-
|
|
31
|
-
"@abtnode/static-server": "1.16.8-beta-
|
|
32
|
-
"@abtnode/timemachine": "1.16.8-beta-
|
|
33
|
-
"@abtnode/util": "1.16.8-beta-
|
|
22
|
+
"@abtnode/auth": "1.16.8-beta-0c0c5eb2",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.8-beta-0c0c5eb2",
|
|
24
|
+
"@abtnode/constant": "1.16.8-beta-0c0c5eb2",
|
|
25
|
+
"@abtnode/cron": "1.16.8-beta-0c0c5eb2",
|
|
26
|
+
"@abtnode/db": "1.16.8-beta-0c0c5eb2",
|
|
27
|
+
"@abtnode/logger": "1.16.8-beta-0c0c5eb2",
|
|
28
|
+
"@abtnode/queue": "1.16.8-beta-0c0c5eb2",
|
|
29
|
+
"@abtnode/rbac": "1.16.8-beta-0c0c5eb2",
|
|
30
|
+
"@abtnode/router-provider": "1.16.8-beta-0c0c5eb2",
|
|
31
|
+
"@abtnode/static-server": "1.16.8-beta-0c0c5eb2",
|
|
32
|
+
"@abtnode/timemachine": "1.16.8-beta-0c0c5eb2",
|
|
33
|
+
"@abtnode/util": "1.16.8-beta-0c0c5eb2",
|
|
34
34
|
"@arcblock/did": "1.18.78",
|
|
35
35
|
"@arcblock/did-auth": "1.18.78",
|
|
36
36
|
"@arcblock/did-ext": "^1.18.78",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
42
|
"@arcblock/validator": "^1.18.77",
|
|
43
43
|
"@arcblock/vc": "1.18.78",
|
|
44
|
-
"@blocklet/constant": "1.16.8-beta-
|
|
45
|
-
"@blocklet/meta": "1.16.8-beta-
|
|
46
|
-
"@blocklet/sdk": "1.16.8-beta-
|
|
44
|
+
"@blocklet/constant": "1.16.8-beta-0c0c5eb2",
|
|
45
|
+
"@blocklet/meta": "1.16.8-beta-0c0c5eb2",
|
|
46
|
+
"@blocklet/sdk": "1.16.8-beta-0c0c5eb2",
|
|
47
47
|
"@did-space/client": "^0.2.90",
|
|
48
48
|
"@fidm/x509": "^1.2.1",
|
|
49
49
|
"@ocap/mcrypto": "1.18.78",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"express": "^4.18.2",
|
|
95
95
|
"jest": "^27.5.1"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "0d8ec3154caf670770284dbdabc61a5f4e8b205f"
|
|
98
98
|
}
|