@yeeyoon/library 2.3.7 → 2.4.1
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/components/Header/components/PlatformModal/index.jsx +1 -1
- package/lib/components/Header/components/ProductListMenu/index.jsx +1 -0
- package/lib/components/Header/index.jsx +10 -3
- package/lib/components/Notification/index.less +3 -3
- package/lib/config/env.js +9 -3
- package/lib/styles/design-system-overwrite.less +6 -6
- package/lib/styles/design-system-theme.js +1 -1
- package/package.json +1 -1
- package/src/pages/index.js +0 -2
@@ -59,8 +59,9 @@ const Header = (props) => {
|
|
59
59
|
const [systemUserInfo, setSystemUserInfo] = useState(null);
|
60
60
|
const [tenants, setTenants] = useState([]);
|
61
61
|
const [userId, setUserId] = useState([]);
|
62
|
-
const [productListMenuDrawerShow, setProductListMenuDrawerShow] =
|
63
|
-
|
62
|
+
const [productListMenuDrawerShow, setProductListMenuDrawerShow] = useState(
|
63
|
+
false
|
64
|
+
);
|
64
65
|
const [platformsModalShow, setPlatformsModalShow] = useState(false);
|
65
66
|
const [avatarProps, setAvatarProps] = useState({});
|
66
67
|
const [redirectUrl, setRedirectUrl] = useState('');
|
@@ -142,7 +143,12 @@ const Header = (props) => {
|
|
142
143
|
setTenants(tenants);
|
143
144
|
setUserId(id);
|
144
145
|
setAvatarProps(
|
145
|
-
data.headUrl
|
146
|
+
data.headUrl
|
147
|
+
? { src: data.headUrl }
|
148
|
+
: {
|
149
|
+
src:
|
150
|
+
'https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar3.png',
|
151
|
+
}
|
146
152
|
);
|
147
153
|
currentProduct = tenants[0].applications || [];
|
148
154
|
getProductList(id);
|
@@ -295,6 +301,7 @@ const Header = (props) => {
|
|
295
301
|
onCancel={() => {
|
296
302
|
setPlatformsModalShow(false);
|
297
303
|
}}
|
304
|
+
width={700}
|
298
305
|
>
|
299
306
|
<PlatformModal
|
300
307
|
platforms={platforms.filter((item) => {
|
package/lib/config/env.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// const REACT_APP_ENV = REACT_APP_ENV || '
|
1
|
+
// const REACT_APP_ENV = REACT_APP_ENV || 'staging';
|
2
2
|
|
3
3
|
const envApi = {
|
4
4
|
// IAM
|
@@ -59,10 +59,16 @@ function getEnvHost(product, path = '') {
|
|
59
59
|
}
|
60
60
|
if (product === 'official') {
|
61
61
|
product = '';
|
62
|
-
} else {
|
62
|
+
} else if (REACT_APP_ENV !== 'prod') {
|
63
63
|
product = `-${product}`;
|
64
64
|
}
|
65
|
-
|
65
|
+
if (REACT_APP_ENV === 'prod') {
|
66
|
+
return `${prefix}${product}${
|
67
|
+
product === '' ? suffix.substr(1) : suffix
|
68
|
+
}${path}`;
|
69
|
+
} else {
|
70
|
+
return `${prefix}${REACT_APP_ENV}${product}${suffix}${path}`;
|
71
|
+
}
|
66
72
|
}
|
67
73
|
|
68
74
|
function getEnvApi(product, path = '') {
|
@@ -44,18 +44,18 @@ body {
|
|
44
44
|
// :global {
|
45
45
|
// Scrollbar
|
46
46
|
::-webkit-scrollbar {
|
47
|
-
width: @border-radius-base;
|
48
|
-
height: @border-radius-base;
|
47
|
+
width: @border-radius-base !important;
|
48
|
+
height: @border-radius-base !important;
|
49
49
|
}
|
50
50
|
::-webkit-scrollbar-thumb {
|
51
|
-
background: @primary-color;
|
52
|
-
border-radius: @border-radius-base;
|
51
|
+
background: @primary-color !important;
|
52
|
+
border-radius: @border-radius-base !important;
|
53
53
|
}
|
54
54
|
::-webkit-scrollbar-track {
|
55
|
-
border-radius: @border-radius-base;
|
55
|
+
border-radius: @border-radius-base !important;
|
56
56
|
}
|
57
57
|
::-webkit-scrollbar-corner {
|
58
|
-
background: transparent;
|
58
|
+
background: transparent !important;
|
59
59
|
}
|
60
60
|
// Button
|
61
61
|
.ant-btn {
|
package/package.json
CHANGED
package/src/pages/index.js
CHANGED
@@ -12,8 +12,6 @@ export default function () {
|
|
12
12
|
productName="profile"
|
13
13
|
tenantId="053a033a063711ecb0c00c42a1ff8370"
|
14
14
|
token="ZmI1YzU4NzEyOTdlNDM2MTg2YjI0N2IyZGQzOGI3NDg1NDE2MzI2MjU4NjMzNzY="
|
15
|
-
avatar="https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar2.png"
|
16
|
-
userName="王甍"
|
17
15
|
/>
|
18
16
|
{/* <TenantSelector
|
19
17
|
tenantId="14bfb5d71d1011eca9820c42a1f6bf88"
|