@titaui/pc 1.11.59 → 1.11.60
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/contact-kefu/index.css +10 -0
- package/lib/components/contact-kefu/index.js +2 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +79 -0
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -14
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +95 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.titaui-pc-dynamic-quick-operation {
|
|
2
|
+
width: 278px;
|
|
3
|
+
height: 126px;
|
|
4
|
+
padding: 0 5px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background: #ffffff;
|
|
9
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
color: #3f4755;
|
|
13
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes dynamicQuickOperationRubberBand {
|
|
17
|
+
0% {
|
|
18
|
+
-webkit-transform: scaleX(1);
|
|
19
|
+
transform: scaleX(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
30% {
|
|
23
|
+
-webkit-transform: scale3d(1.25, 0.75, 1);
|
|
24
|
+
transform: scale3d(1.25, 0.75, 1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
40% {
|
|
28
|
+
-webkit-transform: scale3d(0.75, 1.25, 1);
|
|
29
|
+
transform: scale3d(0.75, 1.25, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
50% {
|
|
33
|
+
-webkit-transform: scale3d(1.15, 0.85, 1);
|
|
34
|
+
transform: scale3d(1.15, 0.85, 1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
65% {
|
|
38
|
+
-webkit-transform: scale3d(0.95, 1.05, 1);
|
|
39
|
+
transform: scale3d(0.95, 1.05, 1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
75% {
|
|
43
|
+
-webkit-transform: scale3d(1.05, 0.95, 1);
|
|
44
|
+
transform: scale3d(1.05, 0.95, 1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
to {
|
|
48
|
+
-webkit-transform: scaleX(1);
|
|
49
|
+
transform: scaleX(1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
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 _createOkr = _interopRequireDefault(require("./components/create-okr"));
|
|
13
|
+
|
|
14
|
+
var _createTask = _interopRequireDefault(require("./components/create-task"));
|
|
15
|
+
|
|
16
|
+
var _createShare = _interopRequireDefault(require("./components/create-share"));
|
|
17
|
+
|
|
18
|
+
var _createAnnouncement = _interopRequireDefault(require("./components/create-announcement"));
|
|
19
|
+
|
|
20
|
+
var _auth = require("../../../utils/auth");
|
|
21
|
+
|
|
22
|
+
var _createOkrModal = _interopRequireDefault(require("../../create-okr-modal"));
|
|
23
|
+
|
|
24
|
+
var _publishDynamicModal = _interopRequireDefault(require("../../publish-dynamic-modal/publish-dynamic-modal"));
|
|
25
|
+
|
|
26
|
+
var _toast = _interopRequireDefault(require("../../toast"));
|
|
27
|
+
|
|
28
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
29
|
+
|
|
30
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
31
|
+
|
|
32
|
+
require("./index.css");
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
var prefix = "titaui-pc-dynamic-quick-operation";
|
|
41
|
+
|
|
42
|
+
var DynamicQuickOperation = function DynamicQuickOperation(_ref) {
|
|
43
|
+
var _ref$showCreateOKr = _ref.showCreateOKr,
|
|
44
|
+
showCreateOKr = _ref$showCreateOKr === void 0 ? true : _ref$showCreateOKr,
|
|
45
|
+
_ref$showCreateTask = _ref.showCreateTask,
|
|
46
|
+
showCreateTask = _ref$showCreateTask === void 0 ? true : _ref$showCreateTask,
|
|
47
|
+
_ref$showCreateShare = _ref.showCreateShare,
|
|
48
|
+
showCreateShare = _ref$showCreateShare === void 0 ? true : _ref$showCreateShare,
|
|
49
|
+
_ref$showCreateAnnoun = _ref.showCreateAnnouncement,
|
|
50
|
+
showCreateAnnouncement = _ref$showCreateAnnoun === void 0 ? true : _ref$showCreateAnnoun;
|
|
51
|
+
var hasDynamicAnnouncementAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
52
|
+
var createTaskDivRef = (0, _react.useRef)(document.createElement("div"));
|
|
53
|
+
var isNewUI = (0, _bsGlobal.getBSGlobal)("tenantInfo").isNewIndex;
|
|
54
|
+
var newNavigation = (0, _bsGlobal.getBSGlobal)("newNavigation") || [];
|
|
55
|
+
var hasOKRApp = newNavigation.find(function (item) {
|
|
56
|
+
return item.appId === 113;
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var handleShowCreateOKrModal = function handleShowCreateOKrModal() {
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
window.showCreateOkrModal && window.showCreateOkrModal();
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var handleShowCreateAnnouncement = function handleShowCreateAnnouncement() {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
window.showPublishAnnouncementDynamicModal && window.showPublishAnnouncementDynamicModal();
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var handleShowCreatShare = function handleShowCreatShare() {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
window.showPublishShareDynamicModal && window.showPublishShareDynamicModal();
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
window.openCreateTaskPop(createTaskDivRef.current, {
|
|
77
|
+
createParams: {
|
|
78
|
+
objId: "",
|
|
79
|
+
objType: 4,
|
|
80
|
+
AppId: 1,
|
|
81
|
+
AppType: 1,
|
|
82
|
+
TaskType: 0
|
|
83
|
+
}
|
|
84
|
+
}).then(function () {
|
|
85
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_tag_pop_Pubsuc"), {
|
|
86
|
+
canClose: false
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
setTimeout(function () {
|
|
90
|
+
// @ts-ignore 跳到我的发布页签
|
|
91
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
92
|
+
}, 2000);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
var handleAfterSuccess = function handleAfterSuccess() {
|
|
97
|
+
setTimeout(function () {
|
|
98
|
+
// @ts-ignore 跳到我的发布页签
|
|
99
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
100
|
+
}, 2000);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: prefix
|
|
105
|
+
}, showCreateOKr && (isNewUI && hasOKRApp || !isNewUI && (0, _bsGlobal.hasWebHead)("okr")) && /*#__PURE__*/_react["default"].createElement(_createOkr["default"], {
|
|
106
|
+
onClick: handleShowCreateOKrModal
|
|
107
|
+
}), showCreateTask && /*#__PURE__*/_react["default"].createElement(_createTask["default"], {
|
|
108
|
+
onClick: handleCreateTaskClick,
|
|
109
|
+
ref: createTaskDivRef
|
|
110
|
+
}), showCreateShare && /*#__PURE__*/_react["default"].createElement(_createShare["default"], {
|
|
111
|
+
onClick: handleShowCreatShare
|
|
112
|
+
}), showCreateAnnouncement && hasDynamicAnnouncementAuth && /*#__PURE__*/_react["default"].createElement(_createAnnouncement["default"], {
|
|
113
|
+
onClick: handleShowCreateAnnouncement
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_createOkrModal["default"], {
|
|
115
|
+
onSuccess: handleAfterSuccess
|
|
116
|
+
}), /*#__PURE__*/_react["default"].createElement(_publishDynamicModal["default"], null));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var _default = DynamicQuickOperation;
|
|
120
|
+
exports["default"] = _default;
|
|
@@ -3,44 +3,105 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.topDynamic = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
6
|
+
exports.topDynamic = exports.getRanking = exports.getPraise = exports.getMenu = exports.getLeastPariseInfo = exports.getDynamicFeedList = exports.getAdvertise = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
+
|
|
14
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
|
|
10
16
|
// @ts-ignore
|
|
11
17
|
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
12
18
|
|
|
13
19
|
var topDynamic = function topDynamic(_ref) {
|
|
14
20
|
var feedId = _ref.feedId;
|
|
15
|
-
return (0, _request.rget)(
|
|
21
|
+
return (0, _request.rget)("v2")("user/feednew/setTop?feedId=".concat(feedId));
|
|
16
22
|
};
|
|
17
23
|
|
|
18
24
|
exports.topDynamic = topDynamic;
|
|
19
25
|
|
|
20
26
|
var cancelTopDynamic = function cancelTopDynamic(_ref2) {
|
|
21
27
|
var feedId = _ref2.feedId;
|
|
22
|
-
return (0, _request.rget)(
|
|
28
|
+
return (0, _request.rget)("v2")("user/feednew/cancelTop?feedId=".concat(feedId));
|
|
23
29
|
};
|
|
24
30
|
|
|
25
31
|
exports.cancelTopDynamic = cancelTopDynamic;
|
|
26
32
|
|
|
27
33
|
var collectDynamic = function collectDynamic(_ref3) {
|
|
28
34
|
var feedId = _ref3.feedId;
|
|
29
|
-
return (0, _request.rput)(
|
|
35
|
+
return (0, _request.rput)("v2")("user/feed/Collect?feed_id=".concat(feedId));
|
|
30
36
|
};
|
|
31
37
|
|
|
32
38
|
exports.collectDynamic = collectDynamic;
|
|
33
39
|
|
|
34
40
|
var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
|
|
35
41
|
var feedId = _ref4.feedId;
|
|
36
|
-
return (0, _request.rdelete)(
|
|
42
|
+
return (0, _request.rdelete)("v2")("user/feed/CancelCollect?feed_id=".concat(feedId));
|
|
37
43
|
};
|
|
38
44
|
|
|
39
45
|
exports.cancelCollectDynamic = cancelCollectDynamic;
|
|
40
46
|
|
|
41
47
|
var deleteDynamic = function deleteDynamic(_ref5) {
|
|
42
48
|
var feedId = _ref5.feedId;
|
|
43
|
-
return (0, _request.rdelete)(
|
|
49
|
+
return (0, _request.rdelete)("v2")("user/feed/Delete?feed_id=".concat(feedId));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.deleteDynamic = deleteDynamic;
|
|
53
|
+
|
|
54
|
+
var getPraise = function getPraise(_ref6) {
|
|
55
|
+
var objId = _ref6.objId,
|
|
56
|
+
_ref6$start = _ref6.start,
|
|
57
|
+
start = _ref6$start === void 0 ? "" : _ref6$start,
|
|
58
|
+
_ref6$count = _ref6.count,
|
|
59
|
+
count = _ref6$count === void 0 ? 5 : _ref6$count,
|
|
60
|
+
_ref6$objType = _ref6.objType,
|
|
61
|
+
objType = _ref6$objType === void 0 ? 10 : _ref6$objType;
|
|
62
|
+
return (0, _request.rget)("v1")("praise/get?objId=".concat(objId, "&start=&count=").concat(count, "&objType=").concat(objType));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.getPraise = getPraise;
|
|
66
|
+
|
|
67
|
+
var getRanking = function getRanking(data) {
|
|
68
|
+
return (0, _request.rpost)("v1")("praise/getRanking", data);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.getRanking = getRanking;
|
|
72
|
+
|
|
73
|
+
var getLeastPariseInfo = function getLeastPariseInfo() {
|
|
74
|
+
return (0, _request.rget)("v1")("praise/getLeastPariseInfo?count=10");
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.getLeastPariseInfo = getLeastPariseInfo;
|
|
78
|
+
|
|
79
|
+
var getMenu = function getMenu() {
|
|
80
|
+
return (0, _request.rget)("v2")("feed/FeedTabMenus");
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
exports.getMenu = getMenu;
|
|
84
|
+
|
|
85
|
+
var getDynamicFeedList = function getDynamicFeedList() {
|
|
86
|
+
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
87
|
+
PageSize: 20,
|
|
88
|
+
PageNum: 1,
|
|
89
|
+
KeyWord: "",
|
|
90
|
+
ChannelIds: "",
|
|
91
|
+
Domain: "",
|
|
92
|
+
TitaHost: "",
|
|
93
|
+
RequestSource: 0,
|
|
94
|
+
CommentCount: 3
|
|
95
|
+
};
|
|
96
|
+
return (0, _request.rpost)("v2")("feed/feeds", _objectSpread(_objectSpread({}, data), {}, {
|
|
97
|
+
CommentCount: 3
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.getDynamicFeedList = getDynamicFeedList;
|
|
102
|
+
|
|
103
|
+
var getAdvertise = function getAdvertise() {
|
|
104
|
+
return (0, _request.rget)("v1")("operationAd/getByTerminalType?terminalType=1");
|
|
44
105
|
};
|
|
45
106
|
|
|
46
|
-
exports.
|
|
107
|
+
exports.getAdvertise = getAdvertise;
|
|
@@ -27,12 +27,12 @@ var _version = _interopRequireDefault(require("./components/version"));
|
|
|
27
27
|
|
|
28
28
|
var _utils = require("./utils");
|
|
29
29
|
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
30
32
|
var _request = require("../../utils/request");
|
|
31
33
|
|
|
32
34
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
33
35
|
|
|
34
|
-
require("./index.css");
|
|
35
|
-
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
37
|
|
|
38
38
|
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); }
|
|
@@ -41,9 +41,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
|
44
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); }
|
|
45
|
+
|
|
44
46
|
var prefix = "publish-dynamic-modal";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
|
|
48
|
+
var PublishDynamicModal = function PublishDynamicModal(_ref) {
|
|
49
|
+
_objectDestructuringEmpty(_ref);
|
|
47
50
|
|
|
48
51
|
var _useState = (0, _react.useState)(false),
|
|
49
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -79,10 +82,10 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
79
82
|
localStorage.removeItem("mblogLocalStroage_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
80
83
|
setVisible(false);
|
|
81
84
|
setSubmitStatus(1);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
85
|
+
setTimeout(function () {
|
|
86
|
+
// @ts-ignore 跳到我的发布页签
|
|
87
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
88
|
+
}, 2000);
|
|
86
89
|
} else {
|
|
87
90
|
_toast["default"].Error(resp.Message, {
|
|
88
91
|
canClose: false
|
|
@@ -143,13 +146,6 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
143
146
|
setVisible(true);
|
|
144
147
|
};
|
|
145
148
|
|
|
146
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
147
|
-
return {
|
|
148
|
-
hide: hidePublishDynamicModal,
|
|
149
|
-
showShareModal: showPublishShareDynamicModal,
|
|
150
|
-
showAnnouncementModal: showPublishAnnouncementDynamicModal
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
149
|
(0, _react.useEffect)(function () {
|
|
154
150
|
// @ts-ignore
|
|
155
151
|
window.hidePublishDynamicModal = hidePublishDynamicModal; // @ts-ignore
|
|
@@ -192,9 +188,7 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
192
188
|
,
|
|
193
189
|
onMblogSubmit: onMblogSubmit
|
|
194
190
|
})));
|
|
195
|
-
});
|
|
196
|
-
PublishDynamicModal.defaultProps = {
|
|
197
|
-
onSubmitSuccess: function onSubmitSuccess() {}
|
|
198
191
|
};
|
|
192
|
+
|
|
199
193
|
var _default = PublishDynamicModal;
|
|
200
194
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.60",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"react-transition-group": "4.4.2",
|
|
145
145
|
"resize-observer-polyfill": "1.5.1",
|
|
146
146
|
"slick-carousel": "1.8.1",
|
|
147
|
-
"tita-ui": "1.2.
|
|
147
|
+
"tita-ui": "1.2.52",
|
|
148
148
|
"url-parse": "1.5.1",
|
|
149
149
|
"uuid": "3.1.0",
|
|
150
150
|
"viewerjs": "1.10.1",
|