@abtnode/router-templates 1.16.54-beta-20251023-041534-36eec6b9 → 1.16.54-beta-20251027-105624-dfa978f8
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
2
|
const getIcon = require('./util/get-icon');
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const getBlockletMaintenanceTemplate = (blocklet, nodeInfo, adminURL) => {
|
|
5
5
|
let content = '<p style="color: #121212">Thanks for your patience. Please check back soon.</p>';
|
|
6
6
|
if (adminURL) {
|
|
7
7
|
content = `${content} <p style="color: #121212"> If you're the <span style="font-weight:bold">site owner</span>, <a href="${
|
|
@@ -21,3 +21,5 @@ module.exports = (blocklet, nodeInfo, adminURL) => {
|
|
|
21
21
|
nodeInfo,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
+
|
|
25
|
+
module.exports = { getBlockletMaintenanceTemplate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
2
|
const getIcon = require('./util/get-icon');
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const getBlockletNotRunningTemplate = (blocklet, nodeInfo) => {
|
|
5
5
|
return getCommonTemplate({
|
|
6
6
|
title: 'Blocklet is not running',
|
|
7
7
|
icon: getIcon(blocklet),
|
|
@@ -14,3 +14,5 @@ module.exports = (blocklet, nodeInfo) => {
|
|
|
14
14
|
nodeInfo,
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
module.exports = { getBlockletNotRunningTemplate };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.54-beta-
|
|
6
|
+
"version": "1.16.54-beta-20251027-105624-dfa978f8",
|
|
7
7
|
"description": "Provide page templates for ABT Node router",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -12,18 +12,15 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint tests lib",
|
|
14
14
|
"lint:fix": "eslint --fix tests lib",
|
|
15
|
-
"test": "bun test",
|
|
16
|
-
"coverage": "bun test --coverage"
|
|
15
|
+
"test": "bun test --bail --timeout 30000",
|
|
16
|
+
"coverage": "bun test --bail --timeout 30000 --coverage"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [],
|
|
19
19
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@arcblock/result-html-pages": "^3.1.51",
|
|
23
|
-
"@blocklet/meta": "1.16.54-beta-
|
|
23
|
+
"@blocklet/meta": "1.16.54-beta-20251027-105624-dfa978f8"
|
|
24
24
|
},
|
|
25
|
-
"
|
|
26
|
-
"jest": "^29.7.0"
|
|
27
|
-
},
|
|
28
|
-
"gitHead": "a642bc21c7c0f4aaccae2758d6b1d836d078bc1b"
|
|
25
|
+
"gitHead": "03b0bb26807c6c427ca700f48566ecc913f1353e"
|
|
29
26
|
}
|