@abtnode/router-templates 1.5.6 → 1.5.10
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/index.js +2 -0
- package/lib/welcome.js +42 -0
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -2,10 +2,12 @@ const template404 = require('./404');
|
|
|
2
2
|
const template502 = require('./502');
|
|
3
3
|
const template5xx = require('./5xx');
|
|
4
4
|
const templateCommon = require('./common');
|
|
5
|
+
const templateWelcome = require('./welcome');
|
|
5
6
|
|
|
6
7
|
module.exports = {
|
|
7
8
|
template404,
|
|
8
9
|
template502,
|
|
9
10
|
template5xx,
|
|
10
11
|
templateCommon,
|
|
12
|
+
templateWelcome,
|
|
11
13
|
};
|
package/lib/welcome.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module.exports = (nodeInfo = {}) => `<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Welcome - ABT Node</title>
|
|
7
|
+
<style>
|
|
8
|
+
html {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
font-family: 'Roboto';
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
h1 {
|
|
15
|
+
color: #00c2c4;
|
|
16
|
+
font-size: 3rem;
|
|
17
|
+
}
|
|
18
|
+
h2 {
|
|
19
|
+
font-size: 2rem;
|
|
20
|
+
}
|
|
21
|
+
a {
|
|
22
|
+
font-size: 2rem;
|
|
23
|
+
}
|
|
24
|
+
a:first-of-type {
|
|
25
|
+
margin-right: 2rem;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<center>
|
|
31
|
+
<h1>Congratulations!</h1>
|
|
32
|
+
<h2>Your ABT Node is up and running!</h2>
|
|
33
|
+
<div>
|
|
34
|
+
<a href="/${(nodeInfo.routing.adminPath || '').replace(/^\//, '')}">Node Dashboard</a>
|
|
35
|
+
<a href="https://docs.arcblock.io/en/abtnode/">Documentation</a>
|
|
36
|
+
</div>
|
|
37
|
+
<div style="margin-top: 100px;font-size: 12px;color: #fff;line-height: 1.4;">
|
|
38
|
+
<div>ABT Node version: ${nodeInfo.version}, mode: ${nodeInfo.mode}</div>
|
|
39
|
+
</div>
|
|
40
|
+
</center>
|
|
41
|
+
</body>
|
|
42
|
+
</html>`;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.10",
|
|
7
7
|
"description": "Provide page templates for ABT Node router",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@blocklet/meta": "1.5.
|
|
22
|
+
"@blocklet/meta": "1.5.10"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"jest": "^
|
|
25
|
+
"jest": "^27.3.1"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "0ae5695b42664d17758ab80e1bddc06d6a9b242a"
|
|
28
28
|
}
|