@zgfe/modules-settings 1.1.4 → 1.1.5
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/es/constants/icons/demo.css +0 -0
- package/es/constants/icons/demo_index.html +0 -0
- package/es/constants/icons/iconfont.css +0 -0
- package/es/constants/icons/iconfont.js +0 -0
- package/es/constants/icons/iconfont.json +0 -0
- package/es/constants/icons/iconfont.ttf +0 -0
- package/es/constants/icons/iconfont.woff +0 -0
- package/es/constants/icons/iconfont.woff2 +0 -0
- package/es/modules/companySetting/cost/index.less +0 -0
- package/es/modules/companySetting/wechatBinding/index.less +0 -0
- package/es/modules/systemSetting/index.d.ts +3 -1
- package/es/modules/systemSetting/index.js +16 -2
- package/package.json +3 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
2
|
import { DesktopOutlined } from '@ant-design/icons';
|
|
3
3
|
import Notice from './notice';
|
|
4
4
|
import SettingTabs from '../../components/settingTabs';
|
|
5
|
-
|
|
5
|
+
import { DemoManage } from '@zgfe/modules-demo-manage';
|
|
6
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
7
|
+
var SystemSetting = function SystemSetting(_ref) {
|
|
8
|
+
var appList = _ref.appList;
|
|
9
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
10
|
+
currentUser = _useContext.currentUser;
|
|
6
11
|
var title = /*#__PURE__*/React.createElement("div", {
|
|
7
12
|
className: "tab-header"
|
|
8
13
|
}, /*#__PURE__*/React.createElement(DesktopOutlined, null), /*#__PURE__*/React.createElement("span", {
|
|
@@ -13,6 +18,15 @@ var SystemSetting = function SystemSetting() {
|
|
|
13
18
|
label: '通知配置',
|
|
14
19
|
content: /*#__PURE__*/React.createElement(Notice, null)
|
|
15
20
|
}];
|
|
21
|
+
if (currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAdmin) {
|
|
22
|
+
items.push({
|
|
23
|
+
key: '2',
|
|
24
|
+
label: 'Demo管理',
|
|
25
|
+
content: /*#__PURE__*/React.createElement(DemoManage, {
|
|
26
|
+
appList: appList
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
16
30
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SettingTabs, {
|
|
17
31
|
typeName: "system",
|
|
18
32
|
items: items,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@umijs/fabric": "^2.8.1",
|
|
40
40
|
"@umijs/test": "^3.0.5",
|
|
41
41
|
"@zgfe/business-lib": "1.1.34-alpha.22",
|
|
42
|
+
"@zgfe/modules-demo-manage": "^1.0.1",
|
|
42
43
|
"antd": "4.22.6",
|
|
43
44
|
"dumi": "^1.1.0",
|
|
44
45
|
"father-build": "^1.17.2",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"umi-request": "^1.4.0",
|
|
51
52
|
"yorkie": "^2.0.0"
|
|
52
53
|
},
|
|
53
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "62e62c269a8b0fe1ec2ae15ff33a34bc6dd2551a",
|
|
54
55
|
"gitHooks": {
|
|
55
56
|
"pre-commit": "lint-staged"
|
|
56
57
|
}
|