@abtnode/router-templates 1.16.24 → 1.16.25-beta-4f765cf3
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/common.js +11 -1
- package/package.json +4 -4
package/lib/common.js
CHANGED
|
@@ -107,10 +107,20 @@ module.exports = ({
|
|
|
107
107
|
})
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
const parsedIcon = icon
|
|
112
|
+
? icon.replace('></>', '/>').replace(
|
|
113
|
+
' />',
|
|
114
|
+
// eslint-disable-next-line quotes
|
|
115
|
+
`onerror="this.onerror = null; this.style.display = 'none'; document.getElementById('blocklet-server-logo').style.display = 'inline'" />`
|
|
116
|
+
)
|
|
117
|
+
: '';
|
|
118
|
+
|
|
110
119
|
// 未指定 status, 使用自定义样式 (如 maintenance/not-running/welcome)
|
|
111
120
|
const iconWrapper = `
|
|
112
121
|
<span class="icon-wrapper">
|
|
113
|
-
${
|
|
122
|
+
${parsedIcon || blockletServerLogo}
|
|
123
|
+
${parsedIcon && `<span id="blocklet-server-logo" style="display: none;">${blockletServerLogo}</span>`}
|
|
114
124
|
<span style="margin-top:8px;color:#555;font-weight:bold;">${appName || nodeInfo.name}</span>
|
|
115
125
|
</span>
|
|
116
126
|
`;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.25-beta-4f765cf3",
|
|
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.
|
|
23
|
-
"@blocklet/meta": "1.16.
|
|
22
|
+
"@arcblock/result-html-pages": "^2.9.42",
|
|
23
|
+
"@blocklet/meta": "1.16.25-beta-4f765cf3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"jest": "^29.7.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7783a4bf883bb44b4266651b04008ef65bf6c2ce"
|
|
29
29
|
}
|