@abtnode/router-templates 1.16.18-beta-bb4ebacc → 1.16.18-beta-41b7fdb1
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/blocklet-403.js +1 -1
- package/lib/blocklet-404.js +1 -1
- package/lib/blocklet-maintenance.js +1 -1
- package/lib/blocklet-not-running.js +1 -1
- package/lib/common.js +2 -1
- package/lib/welcome.js +4 -0
- package/package.json +4 -4
package/lib/blocklet-403.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = (blocklet, nodeInfo) => {
|
|
|
8
8
|
appName: blocklet?.meta?.title,
|
|
9
9
|
pageTitle: `Error - ${blocklet?.meta?.title}`,
|
|
10
10
|
content: '',
|
|
11
|
-
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;">
|
|
11
|
+
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center">
|
|
12
12
|
Powered by <a href="https://www.arcblock.io" target="_blank">ArcBlock</a>'s <a href="https://www.blocklet.io" target="_blank">Blocklet Technology</a>, the decentralized web engine.
|
|
13
13
|
</p>`,
|
|
14
14
|
nodeInfo,
|
package/lib/blocklet-404.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = (blocklet, nodeInfo) => {
|
|
|
8
8
|
appName: blocklet?.meta?.title,
|
|
9
9
|
pageTitle: `Error - ${blocklet?.meta?.title}`,
|
|
10
10
|
content: '',
|
|
11
|
-
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;">
|
|
11
|
+
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center">
|
|
12
12
|
Powered by <a href="https://www.arcblock.io" target="_blank">ArcBlock</a>'s <a href="https://www.blocklet.io" target="_blank">Blocklet Technology</a>, the decentralized web engine.
|
|
13
13
|
</p>`,
|
|
14
14
|
nodeInfo,
|
|
@@ -8,7 +8,7 @@ module.exports = (blocklet, nodeInfo) => {
|
|
|
8
8
|
appName: blocklet?.meta?.title,
|
|
9
9
|
pageTitle: `${blocklet?.meta?.title}`,
|
|
10
10
|
content: 'Please come back later',
|
|
11
|
-
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;">
|
|
11
|
+
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center">
|
|
12
12
|
Powered by <a href="https://www.arcblock.io" target="_blank">ArcBlock</a>'s <a href="https://www.blocklet.io" target="_blank">Blocklet Technology</a>, the decentralized web engine.
|
|
13
13
|
</p>`,
|
|
14
14
|
nodeInfo,
|
|
@@ -8,7 +8,7 @@ module.exports = (blocklet, nodeInfo) => {
|
|
|
8
8
|
appName: blocklet?.meta?.title,
|
|
9
9
|
pageTitle: `${blocklet?.meta?.title}`,
|
|
10
10
|
content: 'Please come back later',
|
|
11
|
-
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;">
|
|
11
|
+
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center">
|
|
12
12
|
Powered by <a href="https://www.arcblock.io" target="_blank">ArcBlock</a>'s <a href="https://www.blocklet.io" target="_blank">Blocklet Technology</a>, the decentralized web engine.
|
|
13
13
|
</p>`,
|
|
14
14
|
nodeInfo,
|
package/lib/common.js
CHANGED
|
@@ -85,6 +85,7 @@ module.exports = ({
|
|
|
85
85
|
content = '',
|
|
86
86
|
nodeInfo = {},
|
|
87
87
|
refreshButton = false,
|
|
88
|
+
exclusiveExtra = true,
|
|
88
89
|
extra: inputExtra,
|
|
89
90
|
appName,
|
|
90
91
|
}) => {
|
|
@@ -126,7 +127,7 @@ module.exports = ({
|
|
|
126
127
|
`;
|
|
127
128
|
|
|
128
129
|
let extra = inputExtra === undefined ? defaultExtra : inputExtra;
|
|
129
|
-
extra = (extra || '') + style + staticResources(inBlockletContext);
|
|
130
|
+
extra = (exclusiveExtra ? '' : defaultExtra) + (extra || '') + style + staticResources(inBlockletContext);
|
|
130
131
|
|
|
131
132
|
return render(
|
|
132
133
|
filterNullOrUndefined({
|
package/lib/welcome.js
CHANGED
|
@@ -7,5 +7,9 @@ module.exports = (nodeInfo = {}) => {
|
|
|
7
7
|
title,
|
|
8
8
|
content: 'Your Blocklet Server is up and running!',
|
|
9
9
|
nodeInfo,
|
|
10
|
+
exclusiveExtra: false,
|
|
11
|
+
extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center;margin-top:48px;">
|
|
12
|
+
Powered by <a href="https://www.arcblock.io" target="_blank">ArcBlock</a>'s <a href="https://www.blocklet.io" target="_blank">Blocklet Technology</a>, the decentralized web engine.
|
|
13
|
+
</p>`,
|
|
10
14
|
});
|
|
11
15
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.18-beta-
|
|
6
|
+
"version": "1.16.18-beta-41b7fdb1",
|
|
7
7
|
"description": "Provide page templates for ABT Node router",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arcblock/result-html-pages": "^2.8.
|
|
23
|
-
"@blocklet/meta": "1.16.18-beta-
|
|
22
|
+
"@arcblock/result-html-pages": "^2.8.12",
|
|
23
|
+
"@blocklet/meta": "1.16.18-beta-41b7fdb1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"jest": "^27.5.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ade7738760a74e941d0d64da880c1f9d369e5e4f"
|
|
29
29
|
}
|