@abtnode/router-templates 1.8.33 → 1.8.34

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: '404 Not Found',
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
+ };
package/lib/common.js CHANGED
@@ -116,7 +116,7 @@ module.exports = ({
116
116
  const defaultExtra = `
117
117
  <div class="buttons">
118
118
  <a class="button" href="/${(adminPath || '').replace(/^\//, '')}">Dashboard</a>
119
- <a class="button" href="https://docs.arcblock.io/en/abtnode/">Documentation</a>
119
+ <a class="button" href="https://developer.blocklet.io/docs">Documentation</a>
120
120
  ${
121
121
  refreshButton
122
122
  ? '<a class="button" href="javascript:void(0)" onclick="javascript:window.location.reload(true)">Refresh</a>'
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.33",
6
+ "version": "1.8.34",
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": "MIT",
21
21
  "dependencies": {
22
- "@arcblock/result-html-pages": "^2.4.47",
23
- "@blocklet/meta": "1.8.33"
22
+ "@arcblock/result-html-pages": "^2.4.49",
23
+ "@blocklet/meta": "1.8.34"
24
24
  },
25
25
  "devDependencies": {
26
26
  "jest": "^27.5.1"
27
27
  },
28
- "gitHead": "bb8223a5dd84536f2843391c59c0a8ac4398c6f2"
28
+ "gitHead": "c5fbb8e57493db62f212217cfde1980c82f00297"
29
29
  }