@titaui/pc 1.10.18 → 1.10.21-bete.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/communication/index.css +4 -5
- package/lib/components/communication/style.js +1 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +6 -10
- package/lib/components/dynamic/components/first-level-tabs/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +5 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.css +11 -16
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share-content/index.js +42 -0
- package/lib/components/dynamic/dynamic-item/index.js +18 -4
- package/lib/components/menus/export-modules/demo-menus/menus.js +14 -14
- package/lib/components/nav-top/components/menu/index.css +12 -8
- package/lib/components/nav-top/components/menu/index.js +4 -4
- package/lib/components/superset-charts/components/index.js +64 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/init/index.js +42 -0
- package/lib/components/superset-charts/init/insert-assets.js +101 -0
- package/lib/components/superset-charts/init/use-get-assets.js +193 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +90 -0
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +82 -0
- package/lib/components/video-modal/index.js +172 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +16 -0
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.titaui-communication__communication-content__user-link {
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
font-weight: 600;
|
|
31
|
-
color: #
|
|
31
|
+
color: #3f4755;
|
|
32
32
|
line-height: 22px;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.titaui-communication__communication-time {
|
|
48
48
|
font-size: 12px;
|
|
49
49
|
font-weight: 400;
|
|
50
|
-
color: #
|
|
50
|
+
color: #89919f;
|
|
51
51
|
line-height: 18px;
|
|
52
52
|
margin-left: 12px;
|
|
53
53
|
}
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
|
|
74
74
|
.titaui-communication__communication-total-icon {
|
|
75
75
|
margin-left: 4px;
|
|
76
|
-
margin-top: -2px;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
.titaui-communication__reply-container-text {
|
|
@@ -93,13 +92,13 @@
|
|
|
93
92
|
flex: 1;
|
|
94
93
|
cursor: text;
|
|
95
94
|
font-size: 12px;
|
|
96
|
-
color: #
|
|
95
|
+
color: #bfc7d5;
|
|
97
96
|
line-height: 22px;
|
|
98
97
|
margin-left: 12px;
|
|
99
98
|
height: 32px;
|
|
100
99
|
border-radius: 16px;
|
|
101
100
|
border-radius: 16px;
|
|
102
|
-
border: 1px solid #
|
|
101
|
+
border: 1px solid #e9ecf0;
|
|
103
102
|
display: flex;
|
|
104
103
|
align-items: center;
|
|
105
104
|
box-sizing: border-box;
|
|
@@ -19,7 +19,7 @@ var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (
|
|
|
19
19
|
|
|
20
20
|
exports.CommunicationWrapper = CommunicationWrapper;
|
|
21
21
|
|
|
22
|
-
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size:
|
|
22
|
+
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n line-height: 22px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n"])));
|
|
23
23
|
|
|
24
24
|
exports.CommunicationRecordTotal = CommunicationRecordTotal;
|
|
25
25
|
|
|
@@ -37,18 +37,14 @@
|
|
|
37
37
|
border-radius: 2px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.titaui-dynamic-first-level-tabs__tab--
|
|
40
|
+
.titaui-dynamic-first-level-tabs__tab--point {
|
|
41
41
|
position: absolute;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
width: 8px;
|
|
43
|
+
height: 8px;
|
|
44
44
|
background: #f05e5e;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
color: #ffffff;
|
|
50
|
-
line-height: 18px;
|
|
51
|
-
padding: 0 4px;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
right: -2px;
|
|
47
|
+
top: 22px;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.titaui-dynamic-first-level-tabs__hide-first-level-tabs {
|
|
@@ -120,8 +120,8 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}, item.MenuName, item.CodeId === 1001 && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
-
className: "".concat(prefix, "__tab--
|
|
124
|
-
}
|
|
123
|
+
className: "".concat(prefix, "__tab--point")
|
|
124
|
+
}));
|
|
125
125
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
126
|
className: "".concat(prefix, "__fold-tab")
|
|
127
127
|
}, renderFoldFirstLevelTab));
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
15
|
+
|
|
16
|
+
var _dynamicShareContent = _interopRequireDefault(require("../dynamic-share-content"));
|
|
17
|
+
|
|
18
|
+
var _context = require("../../context");
|
|
19
|
+
|
|
20
|
+
var _tools = require("../../../../utils/tools");
|
|
21
|
+
|
|
22
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var _excluded = ["data"];
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
+
|
|
36
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
37
|
+
|
|
38
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
|
+
|
|
40
|
+
var systemPublisher = {
|
|
41
|
+
avatar: {
|
|
42
|
+
big: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_b.png",
|
|
43
|
+
color: "#f0c75a",
|
|
44
|
+
hasAvatar: true,
|
|
45
|
+
large: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_l.png",
|
|
46
|
+
medium: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_m.png",
|
|
47
|
+
normal: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_n.png",
|
|
48
|
+
original: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_o.png",
|
|
49
|
+
small: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_s.png"
|
|
50
|
+
},
|
|
51
|
+
blessingType: 0,
|
|
52
|
+
decorationType: 0,
|
|
53
|
+
departmentId: 0,
|
|
54
|
+
departmentName: null,
|
|
55
|
+
jobState: 0,
|
|
56
|
+
medalPosition: null,
|
|
57
|
+
medalUrl: null,
|
|
58
|
+
name: "Tita小助手",
|
|
59
|
+
postition: null,
|
|
60
|
+
praiseType: 0,
|
|
61
|
+
tag: null,
|
|
62
|
+
userId: 100000,
|
|
63
|
+
userMark: null,
|
|
64
|
+
userType: 0
|
|
65
|
+
};
|
|
66
|
+
var prefixCls = "titaui-dynamic-chart";
|
|
67
|
+
|
|
68
|
+
var DynamicChart = function DynamicChart(_ref) {
|
|
69
|
+
var data = _ref.data,
|
|
70
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
71
|
+
|
|
72
|
+
var contentRef = (0, _react.useRef)();
|
|
73
|
+
|
|
74
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
75
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
76
|
+
|
|
77
|
+
(0, _react.useEffect)(function () {
|
|
78
|
+
(0, _tools.highLightWord)({
|
|
79
|
+
parentDom: contentRef.current,
|
|
80
|
+
keyWord: searchKeyWord
|
|
81
|
+
});
|
|
82
|
+
}, [data, searchKeyWord]);
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: (0, _classnames["default"])(prefixCls)
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
86
|
+
data: data
|
|
87
|
+
}, restProps, {
|
|
88
|
+
user: systemPublisher,
|
|
89
|
+
desc: /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
+
style: {
|
|
91
|
+
marginLeft: "4px",
|
|
92
|
+
color: "#89919f"
|
|
93
|
+
}
|
|
94
|
+
}, "\u63A8\u9001\u4E86\u6D88\u606F")
|
|
95
|
+
})), /*#__PURE__*/_react["default"].createElement(_dynamicShareContent["default"], {
|
|
96
|
+
prefix: prefixCls,
|
|
97
|
+
content: data.content,
|
|
98
|
+
contentRef: contentRef
|
|
99
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "".concat(prefixCls, "__charts")
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], {
|
|
102
|
+
chartId: data.biId
|
|
103
|
+
})));
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var _default = DynamicChart;
|
|
107
|
+
exports["default"] = _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css
RENAMED
|
File without changes
|
package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js
RENAMED
|
@@ -56,7 +56,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
56
56
|
var prefix = "titaui-dynamic-share-to-dynamic";
|
|
57
57
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var DynamicLearning = function DynamicLearning(_ref) {
|
|
60
60
|
var data = _ref.data,
|
|
61
61
|
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
62
62
|
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
@@ -103,8 +103,9 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
103
103
|
}, [data, searchKeyWord]);
|
|
104
104
|
(0, _react.useEffect)(function () {
|
|
105
105
|
if (data.shareContent && typeof data.shareContent === "string" && data.shareContent.substr(0, 1) === "{") {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
var shareContent = JSON.parse(data.shareContent);
|
|
107
|
+
setTitle(shareContent.title);
|
|
108
|
+
setContent(htmlToText(shareContent.content));
|
|
108
109
|
}
|
|
109
110
|
}, []);
|
|
110
111
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -139,5 +140,5 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
139
140
|
}, content))));
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
var _default =
|
|
143
|
+
var _default = DynamicLearning;
|
|
143
144
|
exports["default"] = _default;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.titaui-dynamic-reply-item__detail {
|
|
15
|
-
margin-top:
|
|
15
|
+
margin-top: 12px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.titaui-dynamic-reply-item__detail-gain {
|
|
@@ -27,21 +27,25 @@
|
|
|
27
27
|
margin-bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.titaui-dynamic-reply-item__detail-tasks {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
31
35
|
display: flex;
|
|
32
36
|
align-items: center;
|
|
33
|
-
margin-left: 8px;
|
|
34
37
|
font-size: 14px;
|
|
35
38
|
color: #6f7886;
|
|
36
39
|
line-height: 22px;
|
|
40
|
+
margin-top: 8px;
|
|
37
41
|
cursor: pointer;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
41
45
|
content: '';
|
|
42
46
|
display: inline-block;
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
47
|
+
width: 5px;
|
|
48
|
+
height: 5px;
|
|
45
49
|
background: #2879ff;
|
|
46
50
|
border-radius: 50%;
|
|
47
51
|
margin-right: 6px;
|
|
@@ -69,18 +73,9 @@
|
|
|
69
73
|
font-weight: 600;
|
|
70
74
|
color: #3f4755;
|
|
71
75
|
line-height: 22px;
|
|
72
|
-
margin-left: 8px;
|
|
73
76
|
white-space: pre-wrap;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
77
|
-
content: '';
|
|
78
|
-
display: inline-block;
|
|
79
|
-
width: 6px;
|
|
80
|
-
height: 6px;
|
|
81
|
-
background: #2879ff;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
margin-right: 6px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
margin-top: 16px;
|
|
84
79
|
}
|
|
85
80
|
|
|
86
81
|
.titaui-dynamic-reply-item__detail-block-content {
|
|
@@ -97,7 +92,7 @@
|
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
100
|
-
margin-left:
|
|
95
|
+
margin-left: 12px;
|
|
101
96
|
}
|
|
102
97
|
|
|
103
98
|
.titaui-dynamic-reply-item__object-name {
|
|
@@ -163,7 +163,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
163
163
|
className: "".concat(prefix, "__detail-tasks")
|
|
164
164
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
165
|
className: "".concat(prefix, "__detail-block-title")
|
|
166
|
-
}, "\
|
|
166
|
+
}, "\u6539\u8FDB\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
167
167
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
168
|
key: task.taskId,
|
|
169
169
|
className: "".concat(prefix, "__detail-tasks-item"),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
13
|
+
|
|
14
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var DynamicShareContent = function DynamicShareContent(_ref) {
|
|
21
|
+
var prefix = _ref.prefix,
|
|
22
|
+
content = _ref.content,
|
|
23
|
+
contentRef = _ref.contentRef;
|
|
24
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
25
|
+
className: "".concat(prefix, "__content")
|
|
26
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
27
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--left")),
|
|
28
|
+
src: _dynamicLeftQuoto["default"],
|
|
29
|
+
alt: "left"
|
|
30
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
ref: contentRef
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
33
|
+
htmlText: content
|
|
34
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
35
|
+
className: (0, _classnames["default"])("".concat(prefix, "__content-quoto"), "".concat(prefix, "__content-quoto--right")),
|
|
36
|
+
src: _dynamicRightQuoto["default"],
|
|
37
|
+
alt: "right"
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _default = DynamicShareContent;
|
|
42
|
+
exports["default"] = _default;
|
|
@@ -23,6 +23,8 @@ var _dynamicAssessment = _interopRequireDefault(require("./dynamic-assessment"))
|
|
|
23
23
|
|
|
24
24
|
var _dynamicShare = _interopRequireDefault(require("./dynamic-share"));
|
|
25
25
|
|
|
26
|
+
var _dynamicChart = _interopRequireDefault(require("./dynamic-chart"));
|
|
27
|
+
|
|
26
28
|
var _dynamicAnnouncement = _interopRequireDefault(require("./dynamic-announcement"));
|
|
27
29
|
|
|
28
30
|
var _dynamicReply = _interopRequireDefault(require("./dynamic-reply"));
|
|
@@ -47,7 +49,7 @@ var _dynamicReward = _interopRequireDefault(require("./dynamic-reward"));
|
|
|
47
49
|
|
|
48
50
|
var _dynamicMilestone = _interopRequireDefault(require("./dynamic-milestone"));
|
|
49
51
|
|
|
50
|
-
var
|
|
52
|
+
var _dynamicLearning = _interopRequireDefault(require("./dynamic-learning"));
|
|
51
53
|
|
|
52
54
|
var _bsGlobal = require("../../../utils/bs-global");
|
|
53
55
|
|
|
@@ -241,15 +243,27 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
241
243
|
|
|
242
244
|
case _constant.EFeedType.Share:
|
|
243
245
|
if (data.shareType === 0) {
|
|
246
|
+
// TODO 需要后端新增shareType
|
|
247
|
+
if (data.biId) {
|
|
248
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicChart["default"], {
|
|
249
|
+
data: data,
|
|
250
|
+
onDeleteFeed: onDeleteFeed
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
244
254
|
return /*#__PURE__*/_react["default"].createElement(_dynamicShare["default"], {
|
|
245
255
|
data: data,
|
|
246
256
|
onDeleteFeed: onDeleteFeed,
|
|
247
257
|
hasDynamicOpereateAuth: hasDynamicOpereateAuth,
|
|
248
258
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
249
259
|
});
|
|
250
|
-
}
|
|
260
|
+
} // if (data.shareType === ) {
|
|
261
|
+
// // 图表类型分享
|
|
262
|
+
// return <DynamicChart data={data} onDeleteFeed={onDeleteFeed} />;
|
|
263
|
+
// }
|
|
264
|
+
|
|
251
265
|
|
|
252
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
266
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
|
|
253
267
|
data: data
|
|
254
268
|
});
|
|
255
269
|
|
|
@@ -371,7 +385,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
371
385
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
|
|
372
386
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
373
387
|
onClick: handlePayReward,
|
|
374
|
-
className: (0, _classnames["default"])("tu-icon-
|
|
388
|
+
className: (0, _classnames["default"])("tu-icon-redenvelopes", "".concat(prefix, "__footer-icon"))
|
|
375
389
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
376
390
|
onClick: handleCommentClick,
|
|
377
391
|
className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
|
|
@@ -88,14 +88,6 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
88
88
|
href: "#/demofree/list?selected=ignore",
|
|
89
89
|
isShow: this.isManager === EManagerType.Manager
|
|
90
90
|
}]
|
|
91
|
-
}, {
|
|
92
|
-
icon: "KH-help",
|
|
93
|
-
label: "预约演示报表",
|
|
94
|
-
key: "charts",
|
|
95
|
-
href: "#/demofree/charts",
|
|
96
|
-
isShow: this.isManager === EManagerType.Manager,
|
|
97
|
-
children: [],
|
|
98
|
-
type: _index.MENU_ITEM_NOE
|
|
99
91
|
}, {
|
|
100
92
|
icon: "KH-help",
|
|
101
93
|
label: "客户续费",
|
|
@@ -108,19 +100,27 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
108
100
|
key: PAGE_RECHARGE_LIST,
|
|
109
101
|
href: "#/demofree/recharge/list",
|
|
110
102
|
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
111
|
-
}, {
|
|
112
|
-
icon: "",
|
|
113
|
-
label: "数据统计",
|
|
114
|
-
key: PAGE_RECHARGE_STATISTICS,
|
|
115
|
-
href: "#/demofree/recharge/statistics",
|
|
116
|
-
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
117
103
|
}, {
|
|
118
104
|
icon: "",
|
|
119
105
|
label: "续费状态",
|
|
120
106
|
key: PAGE_RECHARGE_STATUS,
|
|
121
107
|
href: "#/demofree/recharge/status",
|
|
122
108
|
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
109
|
+
}, {
|
|
110
|
+
icon: "",
|
|
111
|
+
label: "数据统计",
|
|
112
|
+
key: PAGE_RECHARGE_STATISTICS,
|
|
113
|
+
href: "#/demofree/recharge/statistics",
|
|
114
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
123
115
|
}]
|
|
116
|
+
}, {
|
|
117
|
+
icon: "KH-help",
|
|
118
|
+
label: "预约演示报表",
|
|
119
|
+
key: "charts",
|
|
120
|
+
href: "#/demofree/charts",
|
|
121
|
+
isShow: this.isManager === EManagerType.Manager,
|
|
122
|
+
children: [],
|
|
123
|
+
type: _index.MENU_ITEM_NOE
|
|
124
124
|
}];
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -39,16 +39,20 @@
|
|
|
39
39
|
transform: translate(-50%, 0);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.titaui-nav-top-menu__menu--
|
|
43
|
-
|
|
42
|
+
.titaui-nav-top-menu__menu--hasNum {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
44
45
|
position: absolute;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
right: 4px;
|
|
47
|
+
top: 6px;
|
|
47
48
|
background: #f05e5e;
|
|
48
|
-
|
|
49
|
-
border-radius:
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
box-shadow: 0px 2px 4px 0px rgba(240, 94, 94, 0.6), inset 0px 0px 2px 1px rgba(255, 255, 255, 0.4);
|
|
50
|
+
border-radius: 8px;
|
|
51
|
+
height: 16px;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
line-height: 18px;
|
|
55
|
+
padding: 0 4px;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
.titaui-nav-top-menu__hide-menus {
|
|
@@ -89,20 +89,20 @@ var Menu = function Menu(_ref) {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
var renderRawItem = function renderRawItem(menu) {
|
|
92
|
-
var _classNames;
|
|
93
|
-
|
|
94
92
|
return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
|
|
95
93
|
component: "span"
|
|
96
94
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
97
95
|
condition: menu.title !== "Learning"
|
|
98
96
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
99
|
-
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), (
|
|
97
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
100
98
|
href: "".concat(menu.href),
|
|
101
99
|
target: "_self",
|
|
102
100
|
onClick: function onClick() {
|
|
103
101
|
return handleTracker(menu);
|
|
104
102
|
}
|
|
105
|
-
}, menu.title
|
|
103
|
+
}, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: "".concat(prefix, "__menu--hasNum")
|
|
105
|
+
}, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
106
106
|
condition: menu.title === "Learning"
|
|
107
107
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
108
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _init = require("../init");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
|
|
22
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
23
|
+
|
|
24
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
25
|
+
|
|
26
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
27
|
+
|
|
28
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
|
+
|
|
30
|
+
var lazyOnce = (0, _init.lazyLoad)();
|
|
31
|
+
|
|
32
|
+
var Chart = function Chart(_ref) {
|
|
33
|
+
var _window, _window$SupersetChart;
|
|
34
|
+
|
|
35
|
+
var chartId = _ref.chartId,
|
|
36
|
+
_ref$height = _ref.height,
|
|
37
|
+
height = _ref$height === void 0 ? 300 : _ref$height,
|
|
38
|
+
_ref$width = _ref.width,
|
|
39
|
+
width = _ref$width === void 0 ? 800 : _ref$width;
|
|
40
|
+
|
|
41
|
+
var _useState = (0, _react.useState)(true),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
loading = _useState2[0],
|
|
44
|
+
setLoading = _useState2[1];
|
|
45
|
+
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
var _lazyOnce;
|
|
48
|
+
|
|
49
|
+
(_lazyOnce = lazyOnce()) === null || _lazyOnce === void 0 ? void 0 : _lazyOnce.then(function () {
|
|
50
|
+
setLoading(false);
|
|
51
|
+
});
|
|
52
|
+
}, []); // @ts-ignore
|
|
53
|
+
|
|
54
|
+
var Chart = (_window = window) === null || _window === void 0 ? void 0 : (_window$SupersetChart = _window.SupersetChart) === null || _window$SupersetChart === void 0 ? void 0 : _window$SupersetChart.SupersetChart;
|
|
55
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, Chart && !loading && chartId && /*#__PURE__*/_react["default"].createElement(Chart, {
|
|
56
|
+
id: chartId,
|
|
57
|
+
height: height,
|
|
58
|
+
width: width,
|
|
59
|
+
layout: "feed-card"
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var _default = Chart;
|
|
64
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _components = _interopRequireDefault(require("./components"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _components["default"];
|
|
13
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SingleInsert = SingleInsert;
|
|
7
|
+
exports.lazyLoad = void 0;
|
|
8
|
+
|
|
9
|
+
var _insertAssets = _interopRequireDefault(require("./insert-assets"));
|
|
10
|
+
|
|
11
|
+
var _useGetAssets = require("./use-get-assets");
|
|
12
|
+
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
|
|
15
|
+
function SingleInsert() {
|
|
16
|
+
var instance;
|
|
17
|
+
return function insert(assets) {
|
|
18
|
+
if (!instance) {
|
|
19
|
+
var _insert = new _insertAssets["default"]();
|
|
20
|
+
|
|
21
|
+
_insert.setAssets(assets);
|
|
22
|
+
|
|
23
|
+
instance = _insert.insertAssetsList();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return instance;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var lazyLoad = function lazyLoad() {
|
|
31
|
+
var Single;
|
|
32
|
+
(0, _useGetAssets.getAssets)().then(function (res) {
|
|
33
|
+
Single = SingleInsert()(res);
|
|
34
|
+
});
|
|
35
|
+
return function () {
|
|
36
|
+
return Single;
|
|
37
|
+
}; // return () => {
|
|
38
|
+
// return Single
|
|
39
|
+
// }
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.lazyLoad = lazyLoad;
|