@abtnode/router-templates 1.8.17 → 1.8.20

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.
@@ -0,0 +1,13 @@
1
+ const getCommonTemplate = require('./common');
2
+
3
+ module.exports = (blocklet, nodeInfo) => {
4
+ return getCommonTemplate({
5
+ title: '403 Forbidden',
6
+ icon: '<img src="/.well-known/service/blocklet/logo/" />',
7
+ appName: blocklet?.meta?.title,
8
+ pageTitle: `Error - ${blocklet?.meta?.title}`,
9
+ content: '',
10
+ extra: null,
11
+ nodeInfo,
12
+ });
13
+ };
@@ -5,7 +5,7 @@ module.exports = (blocklet, nodeInfo) => {
5
5
  title: 'Blocklet is under maintenance',
6
6
  icon: '<img src="/.well-known/service/blocklet/logo/" />',
7
7
  appName: blocklet?.meta?.title,
8
- pageTitle: 'Maintenance - Blocklet Server',
8
+ pageTitle: `Maintenance - ${blocklet?.meta?.title}`,
9
9
  content: 'Please come back later',
10
10
  extra: null,
11
11
  nodeInfo,
@@ -5,7 +5,7 @@ module.exports = (blocklet, nodeInfo) => {
5
5
  title: 'Blocklet is not running',
6
6
  icon: '<img src="/.well-known/service/blocklet/logo/" />',
7
7
  appName: blocklet?.meta?.title,
8
- pageTitle: 'Error - Blocklet Server',
8
+ pageTitle: `Error - ${blocklet?.meta?.title}`,
9
9
  content: 'Please come back later',
10
10
  extra: null,
11
11
  nodeInfo,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.17",
6
+ "version": "1.8.20",
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.23",
23
- "@blocklet/meta": "1.8.17"
23
+ "@blocklet/meta": "1.8.20"
24
24
  },
25
25
  "devDependencies": {
26
26
  "jest": "^27.5.1"
27
27
  },
28
- "gitHead": "aa1854b3b71a6250182bfcad794235099f38a514"
28
+ "gitHead": "abe47e26c9583bfe5c4969e19cd36574f436a515"
29
29
  }