@abtnode/router-templates 1.16.26-beta-cca12425 → 1.16.26-beta-63f52a83

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,13 +1,20 @@
1
1
  const getCommonTemplate = require('./common');
2
2
  const getIcon = require('./util/get-icon');
3
3
 
4
- module.exports = (blocklet, nodeInfo) => {
4
+ module.exports = (blocklet, nodeInfo, adminURL) => {
5
+ let content = 'Please come back later.';
6
+ if (adminURL) {
7
+ content = `${content} If you are an administrator, you can go to <a href="${
8
+ adminURL || '#'
9
+ }" alt="dashboard">dashboard</a> to manage the application.`;
10
+ }
11
+
5
12
  return getCommonTemplate({
6
13
  title: 'Under maintenance',
7
14
  icon: getIcon(blocklet),
8
15
  appName: blocklet?.meta?.title,
9
16
  pageTitle: `${blocklet?.meta?.title}`,
10
- content: 'Please come back later',
17
+ content,
11
18
  extra: `<p style="color:#999;font-size:0.875rem;font-family: Arial;text-align:center">
12
19
  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
20
  </p>`,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.26-beta-cca12425",
6
+ "version": "1.16.26-beta-63f52a83",
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.9.69",
23
- "@blocklet/meta": "1.16.26-beta-cca12425"
22
+ "@arcblock/result-html-pages": "^2.9.71",
23
+ "@blocklet/meta": "1.16.26-beta-63f52a83"
24
24
  },
25
25
  "devDependencies": {
26
26
  "jest": "^29.7.0"
27
27
  },
28
- "gitHead": "fc2804fa8010d4311f1c74e65fb98d117598df2a"
28
+ "gitHead": "ce04b1916e531d79d9535111cd370c69c04fcbc1"
29
29
  }