@titaui/pc 1.11.52-beta.3 → 1.11.52-beta.4

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.
Files changed (170) hide show
  1. package/lib/components/change-okr-modal/Item.js +19 -18
  2. package/lib/components/change-okr-modal/styledComponents.js +9 -9
  3. package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
  4. package/lib/components/create-okr-modal/fields/index.css +14 -3
  5. package/lib/components/create-okr-modal/fields/o-new-name.js +25 -19
  6. package/lib/components/create-okr-modal/index.js +75 -35
  7. package/lib/components/create-okr-modal/kr-items/index.css +12 -1
  8. package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
  9. package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
  10. package/lib/components/date-picker/BodyItem.js +3 -3
  11. package/lib/components/date-picker/CalendarHeader.js +3 -3
  12. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  13. package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
  14. package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
  15. package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
  16. package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
  17. package/lib/components/dynamic/advertise/index.css +21 -0
  18. package/lib/components/dynamic/advertise/index.js +126 -0
  19. package/lib/components/dynamic/advertise/interface.js +5 -0
  20. package/lib/components/dynamic/advertise/util.js +28 -0
  21. package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
  22. package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
  23. package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
  24. package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
  25. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  26. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  27. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  28. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  29. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
  30. package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
  31. package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
  32. package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
  33. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  34. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  35. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  36. package/lib/components/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
  37. package/lib/components/dynamic/dynamic-liking/item.js +75 -0
  38. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  39. package/lib/components/dynamic/dynamic-list/index.js +7 -14
  40. package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
  41. package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
  42. package/lib/components/dynamic/dynamic-topping/index.css +141 -0
  43. package/lib/components/dynamic/dynamic-topping/index.js +82 -0
  44. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  45. package/lib/components/dynamic/dynamic-topping/item.js +153 -0
  46. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  47. package/lib/components/dynamic/dynamic.css +173 -0
  48. package/lib/components/dynamic/dynamic.js +428 -0
  49. package/lib/components/dynamic/export-module/index.js +37 -0
  50. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  51. package/lib/components/dynamic/index.js +12 -9
  52. package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
  53. package/lib/components/dynamic/my-team/img/line.png +0 -0
  54. package/lib/components/dynamic/my-team/img/team.png +0 -0
  55. package/lib/components/dynamic/my-team/index.css +184 -0
  56. package/lib/components/dynamic/my-team/index.js +263 -0
  57. package/lib/components/dynamic/my-team/request-api.js +52 -0
  58. package/lib/components/dynamic/my-team/util.js +20 -0
  59. package/lib/components/dynamic/new-ui.css +192 -0
  60. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
  61. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
  62. package/lib/components/dynamic/online-broadcast/data.js +95 -0
  63. package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
  64. package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
  65. package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
  66. package/lib/components/dynamic/online-broadcast/index.css +46 -0
  67. package/lib/components/dynamic/online-broadcast/index.js +61 -0
  68. package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
  69. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  70. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
  71. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  72. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
  73. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  74. package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
  75. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  76. package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
  77. package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
  78. package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
  79. package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
  80. package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
  81. package/lib/components/dynamic/quick-operation/index.css +51 -0
  82. package/lib/components/dynamic/quick-operation/index.js +120 -0
  83. package/lib/components/dynamic/request-api.js +68 -7
  84. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  85. package/lib/components/emotions-selector/selector-pop.js +3 -3
  86. package/lib/components/ereport-list/index.js +3 -3
  87. package/lib/components/mblog/components/MblogAction.js +3 -3
  88. package/lib/components/nav-top/index.js +2 -2
  89. package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
  90. package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -1
  91. package/lib/components/okr-detail/components/header/edit-name.js +86 -40
  92. package/lib/components/okr-detail/components/header/index.css +118 -40
  93. package/lib/components/okr-detail/components/header/index.js +36 -46
  94. package/lib/components/okr-detail/components/header/o-classify.js +151 -0
  95. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
  96. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +54 -4
  97. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +105 -57
  98. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  99. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
  100. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +5 -9
  101. package/lib/components/okr-detail/detail-header/index.js +6 -4
  102. package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
  103. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +63 -39
  104. package/lib/components/okr-detail/request-apis.js +73 -69
  105. package/lib/components/okr-flow/child-node/kr-node.js +3 -1
  106. package/lib/components/okr-flow/child-node/work-node.js +3 -1
  107. package/lib/components/okr-progress-detail/index.js +3 -1
  108. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
  109. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  110. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  111. package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
  112. package/lib/components/okr-share/common-painter/utils.js +183 -36
  113. package/lib/components/okr-share/index.css +5 -4
  114. package/lib/components/okr-share/pink-card/card.js +3 -3
  115. package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
  116. package/lib/components/okr-share/pink-card/index.js +20 -12
  117. package/lib/components/open-data-painter/index.js +6 -5
  118. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
  119. package/lib/components/radio/index.css +3 -3
  120. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  121. package/lib/components/rich-editor/models/schema.js +6 -6
  122. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  123. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  124. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  125. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  126. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  127. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  128. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  129. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  130. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  131. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  132. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  133. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  134. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  135. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  136. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  137. package/lib/components/select/Option.js +3 -3
  138. package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
  139. package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
  140. package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
  141. package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
  142. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
  143. package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
  144. package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
  145. package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
  146. package/lib/components/textarea/index.js +35 -38
  147. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  148. package/lib/components/wechat-btn/index.css +4 -1
  149. package/lib/components-v1/animate/AnimateChild.js +3 -3
  150. package/lib/components-v1/avatar/index.js +3 -3
  151. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  152. package/lib/components-v1/progress/CircleProgress.js +3 -3
  153. package/lib/components-v1/select/Option.js +3 -3
  154. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  155. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  156. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  157. package/lib/index.js +0 -8
  158. package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
  159. package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
  160. package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
  161. package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
  162. package/lib/pages/aha2021/index.css +26 -1
  163. package/lib/pages/aha2021/index.js +82 -3
  164. package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
  165. package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
  166. package/lib/pages/new-okr-list/header/index.css +1 -1
  167. package/lib/utils/open-data.js +213 -65
  168. package/package.json +3 -2
  169. package/lib/components/contact-kefu/img/notice.png +0 -0
  170. package/lib/components/contact-kefu/index.css +0 -85
@@ -0,0 +1,153 @@
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 _avatar = _interopRequireDefault(require("../../avatar"));
15
+
16
+ var _popup = _interopRequireDefault(require("../../popup"));
17
+
18
+ var _requestApi = require("./request-api");
19
+
20
+ var _auth = require("../../../utils/auth");
21
+
22
+ var _toast = _interopRequireDefault(require("../../toast"));
23
+
24
+ var _dangerousHtml = _interopRequireDefault(require("../../dangerous-html"));
25
+
26
+ var _getLocale = require("../../../utils/getLocale");
27
+
28
+ var _quotationMark = _interopRequireDefault(require("./image/quotation-mark.svg"));
29
+
30
+ require("./index.css");
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
+
34
+ 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); }
35
+
36
+ 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; }
37
+
38
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
+
40
+ 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."); }
41
+
42
+ 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); }
43
+
44
+ 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; }
45
+
46
+ 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; }
47
+
48
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
+
50
+ var preCls = "danamic-topping-item";
51
+ var dynamicManagerAuth = new _auth.DynamicManagerAuth();
52
+
53
+ var Item = function Item(_ref) {
54
+ var _ref$data = _ref.data,
55
+ data = _ref$data === void 0 ? {} : _ref$data,
56
+ refresh = _ref.refresh;
57
+
58
+ var _useState = (0, _react.useState)(function () {
59
+ if (!data) return {};
60
+ var publishUser = data.publishUser;
61
+ return {
62
+ name: publishUser.name,
63
+ avatar: publishUser.avatar,
64
+ userId: publishUser.userId,
65
+ userType: publishUser.userType
66
+ };
67
+ }),
68
+ _useState2 = _slicedToArray(_useState, 1),
69
+ user = _useState2[0];
70
+
71
+ var onHandlerCancel = function onHandlerCancel(userId) {
72
+ (0, _requestApi.delDynamicTop)(userId).then(function (res) {
73
+ if (res.Code === 1) {
74
+ _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"));
75
+
76
+ setTimeout(function () {
77
+ if (refresh) {
78
+ refresh();
79
+ }
80
+ }, 1000);
81
+ } else {
82
+ _toast["default"].Error(res.Message);
83
+ }
84
+ });
85
+ };
86
+
87
+ var popupContent = function popupContent() {
88
+ var preCla = "".concat(preCls, "-header-right-popup");
89
+ return /*#__PURE__*/_react["default"].createElement("div", {
90
+ className: (0, _classnames["default"])("".concat(preCla))
91
+ }, /*#__PURE__*/_react["default"].createElement("div", {
92
+ className: (0, _classnames["default"])("".concat(preCla, "-text")),
93
+ onClick: function onClick() {
94
+ return onHandlerCancel(data.feedId);
95
+ }
96
+ }, /*#__PURE__*/_react["default"].createElement("span", {
97
+ className: (0, _classnames["default"])("tu-icon-zhiding ".concat(preCla, "-text-zhiding"))
98
+ }), (0, _getLocale.getLocale)("OKR_MyO_Unpinned")));
99
+ }; // const url = getUrlForUserPage({
100
+ // userId: user.userId,
101
+ // userType: user.userType || 2,
102
+ // });
103
+ // const handleOpenUserPage = () => {
104
+ // window.open(url, "_blank");
105
+ // };
106
+
107
+
108
+ return /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: (0, _classnames["default"])("".concat(preCls))
110
+ }, /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: (0, _classnames["default"])("".concat(preCls, "-header"))
112
+ }, /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: (0, _classnames["default"])("".concat(preCls, "-header-left"))
114
+ }, /*#__PURE__*/_react["default"].createElement("div", {
115
+ className: (0, _classnames["default"])("".concat(preCls, "-header-left-avatar")) // onClick={handleOpenUserPage}
116
+
117
+ }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
118
+ size: {
119
+ width: 28,
120
+ textNum: 1,
121
+ fontSize: 14
122
+ },
123
+ name: user.name,
124
+ src: user.avatar.small,
125
+ color: user.avatar.color,
126
+ userId: user.userId
127
+ })), /*#__PURE__*/_react["default"].createElement("div", {
128
+ className: (0, _classnames["default"])("".concat(preCls, "-header-left-name"))
129
+ }, /*#__PURE__*/_react["default"].createElement("div", {
130
+ className: (0, _classnames["default"])("".concat(preCls, "-header-left-name-text")) // onClick={handleOpenUserPage}
131
+
132
+ }, data.publishUser.name), /*#__PURE__*/_react["default"].createElement("div", {
133
+ className: (0, _classnames["default"])("".concat(preCls, "-header-left-time"))
134
+ }, data.createDate))), dynamicManagerAuth.hasAuth() && /*#__PURE__*/_react["default"].createElement("div", {
135
+ className: (0, _classnames["default"])("".concat(preCls, "-header-right"))
136
+ }, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
137
+ key: data.feedId,
138
+ popup: popupContent()
139
+ }, /*#__PURE__*/_react["default"].createElement("span", {
140
+ className: (0, _classnames["default"])("tu-icon-diot ".concat(preCls, "-header-right-diot"))
141
+ })))), /*#__PURE__*/_react["default"].createElement("img", {
142
+ className: (0, _classnames["default"])("".concat(preCls, "-mark")),
143
+ src: _quotationMark["default"],
144
+ alt: ""
145
+ }), /*#__PURE__*/_react["default"].createElement("div", {
146
+ className: (0, _classnames["default"])("".concat(preCls, "-content"))
147
+ }, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
148
+ htmlText: data.content
149
+ })));
150
+ };
151
+
152
+ var _default = Item;
153
+ exports["default"] = _default;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDynamicTop = exports.delDynamicTop = void 0;
7
+
8
+ var _axios = _interopRequireDefault(require("axios"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ // import { translateDepartsToTreeNode, translateUsersToTreeNode } from './utils';
13
+ // import { getSource } from '../../utils/open-data';
14
+ var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
15
+ var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
16
+
17
+ var requestDomain = function requestDomain() {
18
+ if (!window.location.hostname.match(/dev/)) return "";
19
+ return "".concat(location.protocol, "//www.tita.gift");
20
+ };
21
+
22
+ var getDynamicTop = function getDynamicTop() {
23
+ return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feednew/GetTopnew?count=3")).then(function (res) {
24
+ return res.data;
25
+ });
26
+ };
27
+
28
+ exports.getDynamicTop = getDynamicTop;
29
+
30
+ var delDynamicTop = function delDynamicTop(feedId) {
31
+ return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feednew/cancelTop?feedId=").concat(feedId)).then(function (res) {
32
+ return res.data;
33
+ });
34
+ };
35
+
36
+ exports.delDynamicTop = delDynamicTop;
@@ -0,0 +1,173 @@
1
+ .titaui-dynamic {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
6
+ min-width: 970px;
7
+ height: 100%;
8
+ margin-right: -12px;
9
+ }
10
+
11
+ .titaui-dynamic__header {
12
+ position: absolute;
13
+ display: flex;
14
+ justify-content: space-between;
15
+ height: 68px;
16
+ background: #ffffff;
17
+ box-shadow: 0px 0px 8px 0px #e9ecf0;
18
+ padding: 0 24px;
19
+ width: calc(100% - 14px);
20
+ box-sizing: border-box;
21
+ z-index: 3;
22
+ }
23
+
24
+ .titaui-dynamic__header--content-scroll {
25
+ background: rgba(255, 255, 255, 0.88);
26
+ backdrop-filter: blur(4px);
27
+ }
28
+
29
+ .titaui-dynamic__header-search {
30
+ display: flex;
31
+ align-items: center;
32
+ }
33
+
34
+ .titaui-dynamic__header-tabs {
35
+ display: flex;
36
+ }
37
+
38
+ .titaui-dynamic__content {
39
+ position: relative;
40
+ display: flex;
41
+ flex: 1;
42
+ overflow: auto;
43
+ overflow: overlay;
44
+ padding: 88px 22px 0 20px;
45
+ }
46
+
47
+ .titaui-dynamic__content-left {
48
+ display: flex;
49
+ flex-direction: column;
50
+ width: calc(100% - 288px);
51
+ }
52
+
53
+ .titaui-dynamic__content-left-tabs {
54
+ display: flex;
55
+ align-items: center;
56
+ min-height: 48px;
57
+ max-height: 48px;
58
+ background: #ffffff;
59
+ box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
60
+ border-radius: 12px;
61
+ padding-left: 20px;
62
+ margin-bottom: 10px;
63
+ }
64
+
65
+ .titaui-dynamic__content-left-tab {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ height: 30px;
69
+ padding: 4px 12px;
70
+ background: #ffffff;
71
+ border-radius: 15px;
72
+ font-size: 14px;
73
+ color: #3f4755;
74
+ line-height: 22px;
75
+ box-sizing: border-box;
76
+ cursor: pointer;
77
+ white-space: nowrap;
78
+ word-break: keep-all;
79
+ overflow: hidden;
80
+ text-overflow: ellipsis;
81
+ }
82
+
83
+ .titaui-dynamic__content-left-tab--active {
84
+ background: rgba(40, 121, 255, 0.1);
85
+ color: #2879ff;
86
+ }
87
+
88
+ .titaui-dynamic__content-left-loading {
89
+ margin: 0 auto;
90
+ background-image: url("./img/dynamic-loading.gif");
91
+ background-repeat: no-repeat;
92
+ background-size: 100px 40px;
93
+ padding-bottom: 60px;
94
+ width: 100px;
95
+ }
96
+
97
+ .titaui-dynamic__content-right {
98
+ margin-left: 10px;
99
+ background: #f0f4fa;
100
+ }
101
+
102
+ .titaui-dynamic__loading {
103
+ position: absolute;
104
+ width: 100%;
105
+ height: 100%;
106
+ z-index: 4;
107
+ background: #f0f4fa;
108
+ }
109
+
110
+ .titaui-dynamic__loading-img {
111
+ width: 100px;
112
+ position: relative;
113
+ top: 50%;
114
+ left: 50%;
115
+ transform: translate(-50%, -50%);
116
+ }
117
+
118
+ .titaui-dynamic__empty-loading-block {
119
+ height: 160px;
120
+ }
121
+
122
+ .titaui-dynamic__no-more-data {
123
+ display: flex;
124
+ justify-content: center;
125
+ align-items: center;
126
+ padding-bottom: 20px;
127
+ font-size: 14px;
128
+ color: #6f7886;
129
+ line-height: 22px;
130
+ }
131
+
132
+ .titaui-dynamic__no-more-data::before {
133
+ content: "";
134
+ display: inline-block;
135
+ margin-right: 12px;
136
+ width: 192px;
137
+ height: 2px;
138
+ background: linear-gradient(90deg, #f0f4fa 0%, #b8c3d5 100%);
139
+ border-radius: 1px;
140
+ }
141
+
142
+ .titaui-dynamic__no-more-data::after {
143
+ content: "";
144
+ display: inline-block;
145
+ margin-left: 12px;
146
+ width: 192px;
147
+ height: 2px;
148
+ background: linear-gradient(90deg, #b8c3d5 0%, #f0f4fa 100%);
149
+ border-radius: 1px;
150
+ }
151
+
152
+ .titaui-dynamic__go-to-top {
153
+ position: fixed;
154
+ bottom: 128px;
155
+ right: 24px;
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: center;
159
+ width: 42px;
160
+ height: 42px;
161
+ background: rgba(255, 255, 255, 0.86);
162
+ box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
163
+ border-radius: 50%;
164
+ cursor: pointer;
165
+ z-index: 1;
166
+ }
167
+
168
+ .titaui-dynamic__go-to-top-img {
169
+ display: inline-block;
170
+ width: 24px;
171
+ height: 24px;
172
+ background: url("./img/dynamic-top.svg") no-repeat;
173
+ }