@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.
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +25 -19
- package/lib/components/create-okr-modal/index.js +75 -35
- package/lib/components/create-okr-modal/kr-items/index.css +12 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
- package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -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/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
- 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/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +118 -40
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +151 -0
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +54 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +105 -57
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +5 -9
- package/lib/components/okr-detail/detail-header/index.js +6 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +63 -39
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-progress-detail/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/textarea/index.js +35 -38
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/wechat-btn/index.css +4 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +0 -8
- package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +26 -1
- package/lib/pages/aha2021/index.js +82 -3
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.css +1 -1
- package/lib/utils/open-data.js +213 -65
- package/package.json +3 -2
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/components/contact-kefu/index.css +0 -85
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.dynamic-online-broadcast-item {
|
|
2
|
+
margin-top: 12px;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dynamic-online-broadcast-item__info {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dynamic-online-broadcast-item__order {
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
line-height: 18px;
|
|
14
|
+
color: #96a9c4;
|
|
15
|
+
margin-right: 8px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dynamic-online-broadcast-item__order--first {
|
|
19
|
+
color: #ff614d;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dynamic-online-broadcast-item__order--second {
|
|
23
|
+
color: #f0a326;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dynamic-online-broadcast-item__order--third {
|
|
27
|
+
color: #75aaff;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dynamic-online-broadcast-item__text {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
word-break: keep-all;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
margin-right: 4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dynamic-online-broadcast-item__text:hover {
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dynamic-online-broadcast-item__date {
|
|
44
|
+
margin-top: 4px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #89919f;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
margin-left: 16px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dynamic-online-broadcast-item__new, .dynamic-online-broadcast-item__preview {
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dynamic-online-broadcast-item__new-icon, .dynamic-online-broadcast-item__preview-icon {
|
|
56
|
+
width: 28px;
|
|
57
|
+
height: 14px;
|
|
58
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
|
+
|
|
14
|
+
var _new = _interopRequireDefault(require("../../img/new.png"));
|
|
15
|
+
|
|
16
|
+
var _preview = _interopRequireDefault(require("../../img/preview.png"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
var prefix = "dynamic-online-broadcast-item";
|
|
25
|
+
|
|
26
|
+
var BroadcastItem = function BroadcastItem(_ref) {
|
|
27
|
+
var _classNames;
|
|
28
|
+
|
|
29
|
+
var hasOnline = _ref.hasOnline,
|
|
30
|
+
preContent = _ref.preContent,
|
|
31
|
+
preHref = _ref.preHref,
|
|
32
|
+
isNew = _ref.isNew,
|
|
33
|
+
date = _ref.date,
|
|
34
|
+
index = _ref.index;
|
|
35
|
+
|
|
36
|
+
var handleClickItem = function handleClickItem() {
|
|
37
|
+
window.open(preHref, "_blank");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: prefix,
|
|
42
|
+
onClick: handleClickItem
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
+
className: "".concat(prefix, "__info")
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(prefix, "__order"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__order--first"), index === 1), _defineProperty(_classNames, "".concat(prefix, "__order--second"), index === 2), _defineProperty(_classNames, "".concat(prefix, "__order--third"), index === 3), _classNames))
|
|
47
|
+
}, index), /*#__PURE__*/_react["default"].createElement("span", {
|
|
48
|
+
className: "".concat(prefix, "__text")
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
50
|
+
isPercent: true,
|
|
51
|
+
text: preContent
|
|
52
|
+
})), isNew && hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
|
|
53
|
+
className: "".concat(prefix, "__new")
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
55
|
+
className: "".concat(prefix, "__new-icon"),
|
|
56
|
+
src: _new["default"]
|
|
57
|
+
})), isNew && !hasOnline && /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
+
className: "".concat(prefix, "__preview")
|
|
59
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
60
|
+
className: "".concat(prefix, "__preview-icon"),
|
|
61
|
+
src: _preview["default"]
|
|
62
|
+
}))), date && /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: "".concat(prefix, "__date")
|
|
64
|
+
}, date));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var _default = BroadcastItem;
|
|
68
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.onlineBroadcastData = exports["default"] = void 0;
|
|
7
|
+
// import { getBSGlobal } from "../../../utils/bs-global";
|
|
8
|
+
// 上线预报定义1
|
|
9
|
+
// const source = getBSGlobal("tenantInfo").Source;
|
|
10
|
+
// let href = "";
|
|
11
|
+
// if (source === 860) {
|
|
12
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697696";
|
|
13
|
+
// } else if (source === 861) {
|
|
14
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697725";
|
|
15
|
+
// } else if (source === 862) {
|
|
16
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697712";
|
|
17
|
+
// } else {
|
|
18
|
+
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
|
+
// }
|
|
20
|
+
var onlineBroadcastData = [{
|
|
21
|
+
hasOnline: true,
|
|
22
|
+
preContent: "「OKR」支持上级审批,管理更规范",
|
|
23
|
+
preHref: "https://wiki.tita.com/x/F4SeAQ",
|
|
24
|
+
isNew: true,
|
|
25
|
+
date: "5/05"
|
|
26
|
+
}, {
|
|
27
|
+
hasOnline: true,
|
|
28
|
+
preContent: "「考核」更多位置支持离职人员筛选啦",
|
|
29
|
+
preHref: "https://wiki.tita.com/x/pwDQAQ",
|
|
30
|
+
isNew: true,
|
|
31
|
+
date: "4/29"
|
|
32
|
+
}, {
|
|
33
|
+
hasOnline: true,
|
|
34
|
+
preContent: "「1 on 1」面谈全新上线",
|
|
35
|
+
preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=27165723",
|
|
36
|
+
isNew: true,
|
|
37
|
+
date: "4/27"
|
|
38
|
+
}, {
|
|
39
|
+
hasOnline: true,
|
|
40
|
+
preContent: "「考核」OKR 维度支持按 KR 评分啦",
|
|
41
|
+
preHref: "https://wiki.tita.com/x/JYOeAQ",
|
|
42
|
+
isNew: false,
|
|
43
|
+
date: "4/11"
|
|
44
|
+
}, {
|
|
45
|
+
hasOnline: true,
|
|
46
|
+
preContent: "「OKR 工作法」体验优化 ",
|
|
47
|
+
preHref: "https://wiki.tita.com/x/jIOeAQ",
|
|
48
|
+
isNew: false,
|
|
49
|
+
date: "3/29"
|
|
50
|
+
}, {
|
|
51
|
+
hasOnline: true,
|
|
52
|
+
preContent: "「考核」支持建立企业指标库",
|
|
53
|
+
preHref: "https://wiki.tita.com/x/vYGeAQ",
|
|
54
|
+
isNew: false,
|
|
55
|
+
date: "2/17"
|
|
56
|
+
}, {
|
|
57
|
+
hasOnline: true,
|
|
58
|
+
preContent: "「OKR」支持手动进行目标打分",
|
|
59
|
+
preHref: "https://wiki.tita.com/x/GYCeAQ",
|
|
60
|
+
isNew: false,
|
|
61
|
+
date: "1/12"
|
|
62
|
+
}, {
|
|
63
|
+
hasOnline: true,
|
|
64
|
+
preContent: "「考核」支持批量公布考核结果 ",
|
|
65
|
+
preHref: "https://wiki.tita.com/x/L4CeAQ",
|
|
66
|
+
isNew: false,
|
|
67
|
+
date: "1/11"
|
|
68
|
+
}, {
|
|
69
|
+
hasOnline: true,
|
|
70
|
+
preContent: "Tita「Learning」 全新上线",
|
|
71
|
+
preHref: "https://wiki.tita.com/x/doNrAQ",
|
|
72
|
+
isNew: false,
|
|
73
|
+
date: "12/26"
|
|
74
|
+
}, {
|
|
75
|
+
hasOnline: true,
|
|
76
|
+
preContent: "「OKR」支持设置子目标权重",
|
|
77
|
+
preHref: "https://wiki.tita.com/x/mIFrAQ",
|
|
78
|
+
isNew: false,
|
|
79
|
+
date: "12/18"
|
|
80
|
+
}, {
|
|
81
|
+
hasOnline: true,
|
|
82
|
+
preContent: "「OKR 」每周工作小结推送",
|
|
83
|
+
preHref: "https://wiki.tita.com/x/F4FrAQ",
|
|
84
|
+
isNew: false,
|
|
85
|
+
date: "12/8"
|
|
86
|
+
}, {
|
|
87
|
+
hasOnline: true,
|
|
88
|
+
preContent: "「OKR」新增管理规定,开启全员提醒",
|
|
89
|
+
preHref: "https://wiki.tita.com/x/6YBrAQ",
|
|
90
|
+
isNew: false,
|
|
91
|
+
date: "12/7"
|
|
92
|
+
}];
|
|
93
|
+
exports.onlineBroadcastData = onlineBroadcastData;
|
|
94
|
+
var _default = onlineBroadcastData;
|
|
95
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>上线</title>
|
|
4
|
+
<g id="动态" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g transform="translate(-922.000000, -729.000000)" id="编组-7">
|
|
6
|
+
<g transform="translate(906.000000, 711.000000)">
|
|
7
|
+
<g id="上线" transform="translate(16.000000, 18.000000)">
|
|
8
|
+
<circle id="椭圆形" fill="#F56868" cx="10" cy="10" r="10"></circle>
|
|
9
|
+
<path d="M11.8409601,5.02039481 C12.0607062,5.06789152 12.2513045,5.19521898 12.3708171,5.37436084 C12.4551761,5.50081575 12.5,5.64709197 12.5,5.79637754 L12.5,14.2038355 C12.5,14.4933736 12.3323006,14.7601176 12.0619452,14.9004804 C11.7915897,15.0408432 11.4612064,15.0327093 11.199096,14.8792372 L7.07387659,12.8671576 L6.19040457,12.8671576 C5.53296228,12.8671576 5,12.3679353 5,11.7521134 L5,8.24809964 C5,7.63227776 5.53296228,7.13305548 6.19040457,7.13305548 L7.07387659,7.13305548 L11.199096,5.1211008 C11.3903249,5.00912372 11.621214,4.9728981 11.8409601,5.02039481 Z M14.098818,7.2775841 C15.2999064,9.00639215 15.3004375,11.3014434 14.1001492,13.0308092 C13.9844061,13.1916195 13.7614463,13.2299439 13.598824,13.1169815 C13.4362017,13.0040191 13.3938229,12.7813824 13.5035352,12.616383 C14.5312451,11.1363956 14.5307622,9.17185423 13.502325,7.69237405 C13.3880073,7.52734138 13.4288592,7.30070687 13.5935719,7.18616299 C13.7582899,7.07162698 13.9844924,7.1125569 14.098818,7.2775841 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.dynamic-online-broadcast__container {
|
|
2
|
+
width: 278px;
|
|
3
|
+
border-radius: 12px;
|
|
4
|
+
box-shadow: 0px 2px 12px 0px rgba(127, 145, 180, 0.2);
|
|
5
|
+
background: #ffffff;
|
|
6
|
+
padding: 16px 16px 24px 16px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin-top: 10px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dynamic-online-broadcast__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
border-bottom: 1px solid #e9ecf0;
|
|
17
|
+
margin-bottom: 4px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dynamic-online-broadcast__header-left {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dynamic-online-broadcast__header-left-icon {
|
|
26
|
+
width: 20px;
|
|
27
|
+
height: 20px;
|
|
28
|
+
margin-right: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dynamic-online-broadcast__header-left-text {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
color: #3f4755;
|
|
35
|
+
line-height: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dynamic-online-broadcast__header-right {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
color: #2879ff;
|
|
41
|
+
line-height: 24px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dynamic-online-broadcast__header-right:hover {
|
|
45
|
+
color: #5c8eff;
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 _bsGlobal = require("../../../utils/bs-global");
|
|
11
|
+
|
|
12
|
+
var _broadcast = _interopRequireDefault(require("./img/broadcast.svg"));
|
|
13
|
+
|
|
14
|
+
var _data = require("./data");
|
|
15
|
+
|
|
16
|
+
var _broadcastItem = _interopRequireDefault(require("./components/broadcast-item"));
|
|
17
|
+
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
var prefix = "dynamic-online-broadcast";
|
|
27
|
+
var titaHost = (0, _bsGlobal.getBSGlobal)("titaHost"); // 飞书端不显示
|
|
28
|
+
|
|
29
|
+
var onlinePreHandler = titaHost.indexOf("tita") > -1 && window.BSGlobal.tenantInfo.Source != 862;
|
|
30
|
+
|
|
31
|
+
var OnlineBroadcast = function OnlineBroadcast() {
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: prefix
|
|
34
|
+
}, onlinePreHandler && _data.onlineBroadcastData.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
className: "".concat(prefix, "__container")
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
+
className: "".concat(prefix, "__header")
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
+
className: "".concat(prefix, "__header-left")
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
41
|
+
className: "".concat(prefix, "__header-left-icon"),
|
|
42
|
+
src: _broadcast["default"]
|
|
43
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
|
+
className: "".concat(prefix, "__header-left-text")
|
|
45
|
+
}, (0, _getLocale.getLocale)("Feed_Title_Onlinebroadcast"))), /*#__PURE__*/_react["default"].createElement("a", {
|
|
46
|
+
className: "".concat(prefix, "__header-right"),
|
|
47
|
+
href: "https://wiki.tita.com/pages/viewpage.action?pageId=15696164",
|
|
48
|
+
target: "_blank",
|
|
49
|
+
rel: "noreferrer"
|
|
50
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_More"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
+
className: "".concat(prefix, "__content")
|
|
52
|
+
}, _data.onlineBroadcastData.slice(0, 5).map(function (data, index) {
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement(_broadcastItem["default"], _extends({}, data, {
|
|
54
|
+
index: index + 1,
|
|
55
|
+
key: index
|
|
56
|
+
}));
|
|
57
|
+
}))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var _default = OnlineBroadcast;
|
|
61
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-announcement {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-announcement__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-announcement__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-announcement:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-announcement:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 _newAnnouncement = _interopRequireDefault(require("../../img/new-announcement.png"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-pc-create-announcement";
|
|
19
|
+
|
|
20
|
+
var CreateAnnouncement = function CreateAnnouncement(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateAnnouncementClick = function handleCreateAnnouncementClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateAnnouncementClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newAnnouncement["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Announcement")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateAnnouncement;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-okr {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-okr__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-okr__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-okr:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-okr:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 _newOkr = _interopRequireDefault(require("../../img/new-okr.png"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-pc-create-okr";
|
|
19
|
+
|
|
20
|
+
var CreateOKr = function CreateOKr(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateOKrClick = function handleCreateOKrClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateOKrClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newOkr["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_NewOKR")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateOKr;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-share {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-share__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-share__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-share:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-share:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 _newShare = _interopRequireDefault(require("../../img/new-share.png"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var prefix = "titaui-pc-create-share";
|
|
19
|
+
|
|
20
|
+
var CreateShare = function CreateShare(_ref) {
|
|
21
|
+
var onClick = _ref.onClick;
|
|
22
|
+
|
|
23
|
+
var handleCreateShareClick = function handleCreateShareClick() {
|
|
24
|
+
onClick && onClick();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: prefix,
|
|
29
|
+
onClick: handleCreateShareClick
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
31
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
32
|
+
src: _newShare["default"]
|
|
33
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: "".concat(prefix, "__text")
|
|
35
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Sendshare")));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = CreateShare;
|
|
39
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.titaui-pc-create-task {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-pc-create-task__img {
|
|
10
|
+
width: 44px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-pc-create-task__text {
|
|
15
|
+
margin-top: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-pc-create-task:hover {
|
|
19
|
+
color: #2879ff;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-pc-create-task:hover img {
|
|
24
|
+
animation: dynamicQuickOperationRubberBand 1s;
|
|
25
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 _newTask = _interopRequireDefault(require("../../img/new-task.png"));
|
|
13
|
+
|
|
14
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
var prefix = "titaui-pc-create-task";
|
|
25
|
+
var CreateTask = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
26
|
+
var onClick = _ref.onClick;
|
|
27
|
+
|
|
28
|
+
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
29
|
+
onClick && onClick();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: prefix,
|
|
34
|
+
onClick: handleCreateTaskClick,
|
|
35
|
+
ref: ref
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
37
|
+
className: "".concat(prefix, "__img animate__rubberBand"),
|
|
38
|
+
src: _newTask["default"]
|
|
39
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
className: "".concat(prefix, "__text")
|
|
41
|
+
}, (0, _getLocale.getLocale)("Feed_Set_Pop_Butt_Newtask")));
|
|
42
|
+
});
|
|
43
|
+
var _default = CreateTask;
|
|
44
|
+
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|