@blocklet/ui-react 2.13.50 → 2.13.52
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/UserCenter/components/user-center.js +6 -3
- package/lib/UserCenter/components/user-info/link-preview-input.js +1 -1
- package/lib/UserCenter/libs/locales.d.ts +2 -0
- package/lib/UserCenter/libs/locales.js +2 -0
- package/package.json +4 -4
- package/src/UserCenter/components/user-center.tsx +8 -4
- package/src/UserCenter/components/user-info/link-preview-input.tsx +1 -1
- package/src/UserCenter/libs/locales.ts +2 -0
|
@@ -529,9 +529,12 @@ export default function UserCenter({
|
|
|
529
529
|
return null;
|
|
530
530
|
}
|
|
531
531
|
if (embed || onlyProfile) {
|
|
532
|
-
return /* @__PURE__ */ jsxs(
|
|
533
|
-
|
|
534
|
-
|
|
532
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
533
|
+
/* @__PURE__ */ jsx(Header, { style: { display: "none" } }),
|
|
534
|
+
/* @__PURE__ */ jsxs(Main, { children: [
|
|
535
|
+
content,
|
|
536
|
+
confirmHolder
|
|
537
|
+
] })
|
|
535
538
|
] });
|
|
536
539
|
}
|
|
537
540
|
return /* @__PURE__ */ jsxs(
|
|
@@ -68,7 +68,7 @@ function DynamicLinkForm({ links = [], onChange }) {
|
|
|
68
68
|
onChange(updatedLinks);
|
|
69
69
|
};
|
|
70
70
|
return /* @__PURE__ */ jsxs(Box, { width: "100%", children: [
|
|
71
|
-
/* @__PURE__ */ jsx(Box, { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 1, children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", gutterBottom: true, sx: { mb: 0, fontSize: "12px", color: "text.primary" }, children: "
|
|
71
|
+
/* @__PURE__ */ jsx(Box, { display: "flex", justifyContent: "space-between", alignItems: "center", gap: 1, children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", gutterBottom: true, sx: { mb: 0, fontSize: "12px", color: "text.primary" }, children: t("profile.socialMedia") }) }),
|
|
72
72
|
links.map((link, index) => (
|
|
73
73
|
// eslint-disable-next-line react/no-array-index-key
|
|
74
74
|
/* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "flex-start", mb: 1, children: [
|
|
@@ -140,6 +140,7 @@ export declare const translations: {
|
|
|
140
140
|
selectEndTime: string;
|
|
141
141
|
pleaseSelectTime: string;
|
|
142
142
|
invalidURL: string;
|
|
143
|
+
socialMedia: string;
|
|
143
144
|
timezonePhase: {
|
|
144
145
|
dawn: string;
|
|
145
146
|
morning: string;
|
|
@@ -311,6 +312,7 @@ export declare const translations: {
|
|
|
311
312
|
cleanStatus: string;
|
|
312
313
|
quickSettings: string;
|
|
313
314
|
invalidURL: string;
|
|
315
|
+
socialMedia: string;
|
|
314
316
|
timezonePhase: {
|
|
315
317
|
dawn: string;
|
|
316
318
|
morning: string;
|
|
@@ -140,6 +140,7 @@ export const translations = {
|
|
|
140
140
|
selectEndTime: "\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
|
|
141
141
|
pleaseSelectTime: "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
|
142
142
|
invalidURL: "\u65E0\u6548\u7684 URL",
|
|
143
|
+
socialMedia: "\u793E\u4EA4\u94FE\u63A5",
|
|
143
144
|
timezonePhase: {
|
|
144
145
|
dawn: "\u51CC\u6668",
|
|
145
146
|
morning: "\u4E0A\u5348",
|
|
@@ -311,6 +312,7 @@ export const translations = {
|
|
|
311
312
|
cleanStatus: "Clean status",
|
|
312
313
|
quickSettings: "Quick Settings",
|
|
313
314
|
invalidURL: "Invalid URL",
|
|
315
|
+
socialMedia: "Social Media",
|
|
314
316
|
timezonePhase: {
|
|
315
317
|
dawn: "AM",
|
|
316
318
|
morning: "AM",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.52",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@abtnode/constant": "^1.16.43",
|
|
36
36
|
"@abtnode/util": "^1.16.43",
|
|
37
|
-
"@arcblock/bridge": "^2.13.
|
|
38
|
-
"@arcblock/react-hooks": "^2.13.
|
|
37
|
+
"@arcblock/bridge": "^2.13.52",
|
|
38
|
+
"@arcblock/react-hooks": "^2.13.52",
|
|
39
39
|
"@arcblock/ws": "^1.20.11",
|
|
40
40
|
"@blocklet/constant": "^1.16.43",
|
|
41
41
|
"@blocklet/did-space-react": "^1.0.56",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"jest": "^29.7.0",
|
|
95
95
|
"unbuild": "^2.0.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "93f8622a2df8d7408d16ea1432e28a419f051c61"
|
|
98
98
|
}
|
|
@@ -623,10 +623,14 @@ export default function UserCenter({
|
|
|
623
623
|
// 嵌入其它页面内时,只展示 content
|
|
624
624
|
if (embed || onlyProfile) {
|
|
625
625
|
return (
|
|
626
|
-
|
|
627
|
-
{
|
|
628
|
-
{
|
|
629
|
-
|
|
626
|
+
<>
|
|
627
|
+
{/* 在 Arcsphere 中,需要渲染 header 用于注入某些 bridge 方法,设置为隐藏状态 */}
|
|
628
|
+
<Header style={{ display: 'none' }} />
|
|
629
|
+
<Main>
|
|
630
|
+
{content}
|
|
631
|
+
{confirmHolder}
|
|
632
|
+
</Main>
|
|
633
|
+
</>
|
|
630
634
|
);
|
|
631
635
|
}
|
|
632
636
|
|
|
@@ -99,7 +99,7 @@ function DynamicLinkForm({ links = [], onChange }: { links: string[]; onChange:
|
|
|
99
99
|
<Box width="100%">
|
|
100
100
|
<Box display="flex" justifyContent="space-between" alignItems="center" gap={1}>
|
|
101
101
|
<Typography variant="subtitle1" gutterBottom sx={{ mb: 0, fontSize: '12px', color: 'text.primary' }}>
|
|
102
|
-
|
|
102
|
+
{t('profile.socialMedia')}
|
|
103
103
|
</Typography>
|
|
104
104
|
</Box>
|
|
105
105
|
{links.map((link, index) => (
|
|
@@ -142,6 +142,7 @@ export const translations = {
|
|
|
142
142
|
selectEndTime: '选择结束时间',
|
|
143
143
|
pleaseSelectTime: '请选择时间',
|
|
144
144
|
invalidURL: '无效的 URL',
|
|
145
|
+
socialMedia: '社交链接',
|
|
145
146
|
timezonePhase: {
|
|
146
147
|
dawn: '凌晨',
|
|
147
148
|
morning: '上午',
|
|
@@ -316,6 +317,7 @@ export const translations = {
|
|
|
316
317
|
cleanStatus: 'Clean status',
|
|
317
318
|
quickSettings: 'Quick Settings',
|
|
318
319
|
invalidURL: 'Invalid URL',
|
|
320
|
+
socialMedia: 'Social Media',
|
|
319
321
|
timezonePhase: {
|
|
320
322
|
dawn: 'AM',
|
|
321
323
|
morning: 'AM',
|