@blocklet/ui-react 2.4.29 → 2.4.30
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/Dashboard/index.js
CHANGED
|
@@ -153,7 +153,8 @@ function Dashboard(_ref) {
|
|
|
153
153
|
title: appName,
|
|
154
154
|
fullWidth: true,
|
|
155
155
|
sidebarWidth: 128,
|
|
156
|
-
legacy: false
|
|
156
|
+
legacy: false,
|
|
157
|
+
links: localizedNav
|
|
157
158
|
}, rest), {}, {
|
|
158
159
|
headerProps: _objectSpread({
|
|
159
160
|
brand: appName,
|
|
@@ -179,8 +180,7 @@ function Dashboard(_ref) {
|
|
|
179
180
|
})
|
|
180
181
|
}),
|
|
181
182
|
addons: _headerAddons
|
|
182
|
-
}, rest.headerProps)
|
|
183
|
-
links: localizedNav
|
|
183
|
+
}, rest.headerProps)
|
|
184
184
|
}));
|
|
185
185
|
}
|
|
186
186
|
|
|
@@ -137,8 +137,9 @@ function InternalFooter(props) {
|
|
|
137
137
|
data: props
|
|
138
138
|
}, rest)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
139
139
|
position: "absolute",
|
|
140
|
-
right:
|
|
140
|
+
right: 16,
|
|
141
141
|
bottom: 0,
|
|
142
|
+
fontSize: 12,
|
|
142
143
|
sx: {
|
|
143
144
|
color: 'transparent',
|
|
144
145
|
'::selection': {
|
|
@@ -95,7 +95,8 @@ function HeaderAddons(_ref) {
|
|
|
95
95
|
addonsArray.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_SessionManager.default, _objectSpread({
|
|
96
96
|
session: sessionCtx.session,
|
|
97
97
|
locale: locale,
|
|
98
|
-
menu: menu
|
|
98
|
+
menu: menu,
|
|
99
|
+
showRole: true
|
|
99
100
|
}, sessionManagerProps), "session-manager"));
|
|
100
101
|
} // 在内置 addons 基础上定制 addons
|
|
101
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.30",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/did-connect": "^2.4.
|
|
34
|
-
"@arcblock/ux": "^2.4.
|
|
33
|
+
"@arcblock/did-connect": "^2.4.30",
|
|
34
|
+
"@arcblock/ux": "^2.4.30",
|
|
35
35
|
"@emotion/react": "^11.10.0",
|
|
36
36
|
"@emotion/styled": "^11.10.0",
|
|
37
37
|
"@iconify/iconify": "^2.2.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
54
54
|
"jest": "^28.1.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ac31e48f3f02a3bfe0de05c41bea6fd55d3c03e1"
|
|
57
57
|
}
|
package/src/Dashboard/index.js
CHANGED
|
@@ -94,6 +94,7 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
|
|
|
94
94
|
fullWidth
|
|
95
95
|
sidebarWidth={128}
|
|
96
96
|
legacy={false}
|
|
97
|
+
links={localizedNav}
|
|
97
98
|
{...rest}
|
|
98
99
|
headerProps={{
|
|
99
100
|
brand: appName,
|
|
@@ -115,7 +116,6 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
|
|
|
115
116
|
addons: _headerAddons,
|
|
116
117
|
...rest.headerProps,
|
|
117
118
|
}}
|
|
118
|
-
links={localizedNav}
|
|
119
119
|
/>
|
|
120
120
|
);
|
|
121
121
|
}
|
|
@@ -71,8 +71,9 @@ function InternalFooter(props) {
|
|
|
71
71
|
<LayoutComponent elements={elements} data={props} {...rest} />
|
|
72
72
|
<Box
|
|
73
73
|
position="absolute"
|
|
74
|
-
right={
|
|
74
|
+
right={16}
|
|
75
75
|
bottom={0}
|
|
76
|
+
fontSize={12}
|
|
76
77
|
sx={{ color: 'transparent', '::selection': { background: '#000', color: '#fff' } }}>
|
|
77
78
|
{window?.blocklet?.version}
|
|
78
79
|
</Box>
|