@abtnode/router-templates 1.8.45 → 1.8.46
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
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
|
+
const getIcon = require('./util/get-icon');
|
|
2
3
|
|
|
3
4
|
module.exports = (blocklet, nodeInfo) => {
|
|
4
5
|
return getCommonTemplate({
|
|
5
6
|
title: '403 Forbidden',
|
|
6
|
-
icon:
|
|
7
|
+
icon: getIcon(blocklet),
|
|
7
8
|
appName: blocklet?.meta?.title,
|
|
8
9
|
pageTitle: `Error - ${blocklet?.meta?.title}`,
|
|
9
10
|
content: '',
|
package/lib/blocklet-404.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
|
+
const getIcon = require('./util/get-icon');
|
|
2
3
|
|
|
3
4
|
module.exports = (blocklet, nodeInfo) => {
|
|
4
5
|
return getCommonTemplate({
|
|
5
6
|
title: '404 Not Found',
|
|
6
|
-
icon:
|
|
7
|
+
icon: getIcon(blocklet),
|
|
7
8
|
appName: blocklet?.meta?.title,
|
|
8
9
|
pageTitle: `Error - ${blocklet?.meta?.title}`,
|
|
9
10
|
content: '',
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
|
+
const getIcon = require('./util/get-icon');
|
|
2
3
|
|
|
3
4
|
module.exports = (blocklet, nodeInfo) => {
|
|
4
5
|
return getCommonTemplate({
|
|
5
6
|
title: 'Blocklet is under maintenance',
|
|
6
|
-
icon:
|
|
7
|
+
icon: getIcon(blocklet),
|
|
7
8
|
appName: blocklet?.meta?.title,
|
|
8
|
-
pageTitle:
|
|
9
|
+
pageTitle: `${blocklet?.meta?.title}`,
|
|
9
10
|
content: 'Please come back later',
|
|
10
11
|
extra: null,
|
|
11
12
|
nodeInfo,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
const getCommonTemplate = require('./common');
|
|
2
|
+
const getIcon = require('./util/get-icon');
|
|
2
3
|
|
|
3
4
|
module.exports = (blocklet, nodeInfo) => {
|
|
4
5
|
return getCommonTemplate({
|
|
5
6
|
title: 'Blocklet is not running',
|
|
6
|
-
icon:
|
|
7
|
+
icon: getIcon(blocklet),
|
|
7
8
|
appName: blocklet?.meta?.title,
|
|
8
|
-
pageTitle:
|
|
9
|
+
pageTitle: `${blocklet?.meta?.title}`,
|
|
9
10
|
content: 'Please come back later',
|
|
10
11
|
extra: null,
|
|
11
12
|
nodeInfo,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.46",
|
|
7
7
|
"description": "Provide page templates for ABT Node router",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@arcblock/result-html-pages": "^2.4.58",
|
|
23
|
-
"@blocklet/meta": "1.8.
|
|
23
|
+
"@blocklet/meta": "1.8.46"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"jest": "^27.5.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6b6ea0378d4334b808ec0102cd00e8e59833fb52"
|
|
29
29
|
}
|