@titaui/pc 1.12.8 → 1.12.9-beta.3
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/create-okr-modal/fields/okr-case.js +7 -5
- package/lib/components/create-okr-modal/index.js +29 -21
- package/lib/components/create-okr-modal/kr-items/krDatas.js +3 -2
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +11 -8
- package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/nav-top/components/app-center/images/chart.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +1 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +1 -0
- package/lib/components/nav-top/components/app-center/index.css +91 -0
- package/lib/components/nav-top/components/app-center/index.js +123 -0
- package/lib/components/nav-top/components/menu/index.js +2 -6
- package/lib/components/nav-top/index.css +41 -6
- package/lib/components/nav-top/index.js +69 -35
- package/lib/components/nav-top/utils.js +453 -5
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +51 -8
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +2 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/request-apis.js +20 -5
- package/lib/components/user-selector/searched-panel/index.js +5 -1
- package/lib/pages/aha2021/index.js +5 -5
- package/lib/pages/aha2021/new-menu-switcher/index.css +41 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +81 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/package.json +1 -1
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -43,7 +43,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
43
43
|
|
|
44
44
|
function OkrCase(_ref) {
|
|
45
45
|
var onOkrApply = _ref.onOkrApply,
|
|
46
|
-
okrTemplateEnabled = _ref.okrTemplateEnabled
|
|
46
|
+
okrTemplateEnabled = _ref.okrTemplateEnabled,
|
|
47
|
+
onVisibleChange = _ref.onVisibleChange;
|
|
47
48
|
|
|
48
49
|
var _useState = (0, _react.useState)(false),
|
|
49
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -52,6 +53,7 @@ function OkrCase(_ref) {
|
|
|
52
53
|
|
|
53
54
|
var okrCaseClickHandler = function okrCaseClickHandler() {
|
|
54
55
|
setVisible(true);
|
|
56
|
+
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(true);
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
var onCasesCloseHandler = function onCasesCloseHandler() {
|
|
@@ -62,13 +64,13 @@ function OkrCase(_ref) {
|
|
|
62
64
|
onOkrApply === null || onOkrApply === void 0 ? void 0 : onOkrApply(data);
|
|
63
65
|
setVisible(false);
|
|
64
66
|
|
|
65
|
-
_toast["default"].Success(
|
|
67
|
+
_toast["default"].Success('成功套用');
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
return /*#__PURE__*/_react["default"].createElement(_style.Line, null, okrTemplateEnabled && !(0, _helpers.isLocal)() && !(0, _helpers.isTencentHr)() ? /*#__PURE__*/_react["default"].createElement(_style.CaseLink, {
|
|
69
71
|
onClick: okrCaseClickHandler,
|
|
70
72
|
className: "tu-icon-shoushi"
|
|
71
|
-
}, (0, _getLocale.getLocale)(
|
|
73
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Butt_AddfromOKR')) : null, okrTemplateEnabled && /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
72
74
|
zIndex: 1200,
|
|
73
75
|
noHeadLine: true,
|
|
74
76
|
visible: visible,
|
|
@@ -78,8 +80,8 @@ function OkrCase(_ref) {
|
|
|
78
80
|
noCloseIcon: true,
|
|
79
81
|
destroyOnClose: true,
|
|
80
82
|
style: {
|
|
81
|
-
width:
|
|
82
|
-
height:
|
|
83
|
+
width: '100%',
|
|
84
|
+
height: '100%'
|
|
83
85
|
},
|
|
84
86
|
maskClosable: true
|
|
85
87
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -613,32 +613,35 @@ function CreateOkrModal(_ref, ref) {
|
|
|
613
613
|
|
|
614
614
|
|
|
615
615
|
var OnOkRApplyTplHandler = function OnOkRApplyTplHandler(data) {
|
|
616
|
-
setRichEditorStatus('refresh');
|
|
617
616
|
var name = data.name,
|
|
618
617
|
subelements = data.subelements;
|
|
619
|
-
setOkrNameData({
|
|
620
|
-
mentionUsers: [],
|
|
621
|
-
pureText: name,
|
|
622
|
-
pureTextExcludeAt: name,
|
|
623
|
-
richText: (0, _richEditor.TitaRichEditorInitTextState)(name)
|
|
624
|
-
});
|
|
625
|
-
setKrDatas(subelements.map(function (s) {
|
|
618
|
+
setOkrNameData(function () {
|
|
626
619
|
return {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
krWeight: (0, _roundWeight.RoundWeight)(100 / subelements.length),
|
|
632
|
-
mileStoneName: s.name,
|
|
633
|
-
mileStoneNamePureTextExcludeAt: s.name,
|
|
634
|
-
mileStoneNameRichText: (0, _richEditor.TitaRichEditorInitTextState)(s.name),
|
|
635
|
-
aiteUsers: [],
|
|
636
|
-
confidenceIndex: 5
|
|
620
|
+
mentionUsers: [],
|
|
621
|
+
pureText: name,
|
|
622
|
+
pureTextExcludeAt: name,
|
|
623
|
+
richText: (0, _richEditor.TitaRichEditorInitTextState)(name)
|
|
637
624
|
};
|
|
638
|
-
})
|
|
625
|
+
});
|
|
626
|
+
setKrDatas(function () {
|
|
627
|
+
return subelements.map(function (s) {
|
|
628
|
+
return {
|
|
629
|
+
uuid: _uuid["default"].v1(),
|
|
630
|
+
principalId: Id,
|
|
631
|
+
principalName: Name,
|
|
632
|
+
userAvatar: UserAvatar,
|
|
633
|
+
krWeight: (0, _roundWeight.RoundWeight)(100 / subelements.length),
|
|
634
|
+
mileStoneName: s.name,
|
|
635
|
+
mileStoneNamePureTextExcludeAt: s.name,
|
|
636
|
+
mileStoneNameRichText: (0, _richEditor.TitaRichEditorInitTextState)(s.name),
|
|
637
|
+
aiteUsers: [],
|
|
638
|
+
confidenceIndex: 5
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
});
|
|
639
642
|
setIsCustomWeight(false);
|
|
640
643
|
setIsApplyTpl(true);
|
|
641
|
-
setRichEditorStatus('
|
|
644
|
+
setRichEditorStatus('refresh');
|
|
642
645
|
};
|
|
643
646
|
|
|
644
647
|
(0, _react.useEffect)(function () {
|
|
@@ -795,7 +798,11 @@ function CreateOkrModal(_ref, ref) {
|
|
|
795
798
|
className: "create-modal__title"
|
|
796
799
|
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Title_Newobjective')), /*#__PURE__*/_react["default"].createElement(_okrCase["default"], {
|
|
797
800
|
okrTemplateEnabled: true,
|
|
798
|
-
onOkrApply: OnOkRApplyTplHandler
|
|
801
|
+
onOkrApply: OnOkRApplyTplHandler,
|
|
802
|
+
onVisibleChange: function onVisibleChange() {
|
|
803
|
+
setIsApplyTpl(false);
|
|
804
|
+
setRichEditorStatus('initialization');
|
|
805
|
+
}
|
|
799
806
|
}));
|
|
800
807
|
}, []);
|
|
801
808
|
var krCheckFinalResult = (0, _react.useMemo)(function () {
|
|
@@ -917,6 +924,7 @@ function CreateOkrModal(_ref, ref) {
|
|
|
917
924
|
setONameCheckResult: setONameCheckResult,
|
|
918
925
|
setIsInputContent: setIsInputContent
|
|
919
926
|
}), /*#__PURE__*/_react["default"].createElement(_krDatas["default"], {
|
|
927
|
+
isApplyTpl: isApplyTpl,
|
|
920
928
|
isCustomWeight: isCustomWeight,
|
|
921
929
|
wrapperRef: wrapperRef,
|
|
922
930
|
krDatas: krDatas,
|
|
@@ -62,7 +62,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
64
|
function KrDatas(props) {
|
|
65
|
-
var
|
|
65
|
+
var isApplyTpl = props.isApplyTpl,
|
|
66
|
+
isCustomWeight = props.isCustomWeight,
|
|
66
67
|
wrapperRef = props.wrapperRef,
|
|
67
68
|
setKrDatas = props.setKrDatas,
|
|
68
69
|
krDatas = props.krDatas,
|
|
@@ -286,7 +287,7 @@ function KrDatas(props) {
|
|
|
286
287
|
}, [inputKrInfo, setIsInputContent]);
|
|
287
288
|
(0, _react.useEffect)(function () {
|
|
288
289
|
krDatasRef.current = krDatas;
|
|
289
|
-
}, []);
|
|
290
|
+
}, [isApplyTpl]);
|
|
290
291
|
return /*#__PURE__*/_react["default"].createElement("div", null, krDatasRef.current.map(function (kr, index) {
|
|
291
292
|
return /*#__PURE__*/_react["default"].createElement(_krItem["default"], {
|
|
292
293
|
key: kr === null || kr === void 0 ? void 0 : kr.uuid,
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.titaui-drawer.drawer-open.drawer-top .drawer-content-wrapper {
|
|
14
|
+
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.titaui-drawer-content {
|
|
14
18
|
height: 100%;
|
|
15
19
|
display: flex;
|
|
@@ -203,3 +207,8 @@
|
|
|
203
207
|
.drawer-right .drawer-content {
|
|
204
208
|
border-radius: 24px 0 0 24px;
|
|
205
209
|
}
|
|
210
|
+
|
|
211
|
+
.drawer-top .drawer-content-wrapper,
|
|
212
|
+
.drawer-top .drawer-content {
|
|
213
|
+
border-radius: 0 0 24px 24px;
|
|
214
|
+
}
|
|
@@ -56,7 +56,7 @@ var Drawer = function Drawer(props) {
|
|
|
56
56
|
|
|
57
57
|
var visible = props.visible,
|
|
58
58
|
_props$placement = props.placement,
|
|
59
|
-
placement = _props$placement === void 0 ?
|
|
59
|
+
placement = _props$placement === void 0 ? "right" : _props$placement,
|
|
60
60
|
children = props.children,
|
|
61
61
|
_props$mask = props.mask,
|
|
62
62
|
mask = _props$mask === void 0 ? false : _props$mask,
|
|
@@ -94,27 +94,30 @@ var Drawer = function Drawer(props) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
var autoClose = function autoClose(e) {
|
|
97
|
-
if ((0, _dom.hasAncestorElement)(e.target,
|
|
97
|
+
if ((0, _dom.hasAncestorElement)(e.target, "document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add")) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
98
101
|
onClose();
|
|
99
102
|
};
|
|
100
103
|
|
|
101
104
|
(0, _react.useEffect)(function () {
|
|
102
105
|
if (autoClosable) {
|
|
103
|
-
document.addEventListener(
|
|
106
|
+
document.addEventListener("mousedown", autoClose);
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
return function () {
|
|
107
|
-
document.removeEventListener(
|
|
110
|
+
document.removeEventListener("mousedown", autoClose);
|
|
108
111
|
};
|
|
109
112
|
}, []);
|
|
110
113
|
return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
|
|
111
114
|
value: {
|
|
112
115
|
close: function close() {
|
|
113
|
-
|
|
116
|
+
onClose();
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
117
|
-
className: (0, _classnames["default"])(
|
|
120
|
+
className: (0, _classnames["default"])("titaui-drawer", "document-mouse-event-ignore", className),
|
|
118
121
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
119
122
|
zIndex: zIndex
|
|
120
123
|
})
|
|
@@ -167,7 +170,7 @@ function DrawerHeader(_ref) {
|
|
|
167
170
|
onClick: manager && manager.goBack
|
|
168
171
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
169
172
|
className: "tu-icon-fanhui"
|
|
170
|
-
}), (0, _getLocale.getLocale)(
|
|
173
|
+
}), (0, _getLocale.getLocale)("Mod_Back")), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
174
|
className: "titaui-drawer-header-divider"
|
|
172
175
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
176
|
style: {
|
|
@@ -178,7 +181,7 @@ function DrawerHeader(_ref) {
|
|
|
178
181
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
179
182
|
approvalSetting: approvalSetting,
|
|
180
183
|
detailInfo: detailInfo,
|
|
181
|
-
title: (0, _getLocale.getLocale)(
|
|
184
|
+
title: (0, _getLocale.getLocale)("Mod_MoreOperate"),
|
|
182
185
|
icon: "tu-icon-10",
|
|
183
186
|
children: collapsedActions
|
|
184
187
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -29,6 +29,8 @@ var _precls = _interopRequireDefault(require("../../precls"));
|
|
|
29
29
|
|
|
30
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
31
|
|
|
32
|
+
var _tools = require("../../../../utils/tools");
|
|
33
|
+
|
|
32
34
|
require("../../index.css");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
@@ -81,30 +83,45 @@ function AppraisalMenus(props) {
|
|
|
81
83
|
okrMenusData.current = new _menus["default"]();
|
|
82
84
|
return okrMenusData.current.getMenus();
|
|
83
85
|
}),
|
|
84
|
-
_useState6 = _slicedToArray(_useState5,
|
|
85
|
-
menus = _useState6[0]
|
|
86
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
87
|
+
menus = _useState6[0],
|
|
88
|
+
setMenus = _useState6[1];
|
|
86
89
|
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
91
|
+
okrMenusData.current = new _menus["default"]();
|
|
92
|
+
var newMenus = okrMenusData.current.getMenus();
|
|
93
|
+
setMenus(newMenus);
|
|
94
|
+
|
|
95
|
+
var _getQueryString = (0, _tools.getQueryString)(),
|
|
96
|
+
_getQueryString$react = _getQueryString.reactRouterName,
|
|
97
|
+
reactRouterName = _getQueryString$react === void 0 ? "" : _getQueryString$react;
|
|
98
|
+
|
|
99
|
+
if (!reactRouterName) {
|
|
100
|
+
window.location.href = newMenus[0].data.href;
|
|
101
|
+
}
|
|
102
|
+
}, [history.location.pathname]); // 判断路由高亮菜单
|
|
87
103
|
|
|
88
104
|
(0, _react.useEffect)(function () {
|
|
89
105
|
var menuHighlight = new _menuHighlight["default"](history);
|
|
90
106
|
menuHighlight.highlight(function (menu) {
|
|
91
|
-
|
|
107
|
+
setSelectedMenuKeys([menu]);
|
|
92
108
|
});
|
|
93
|
-
}, [history.location.pathname, history.location.search]);
|
|
109
|
+
}, [history.location.pathname, history.location.search, menus]);
|
|
94
110
|
|
|
95
111
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
96
112
|
var node = _ref.node;
|
|
97
113
|
onSelect(node); // 处理菜单选中
|
|
98
114
|
|
|
99
115
|
if (!selectedKyes.length) return;
|
|
100
|
-
setSelectedMenuKeys(selectedKyes);
|
|
101
|
-
|
|
102
|
-
window.titaTracker
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
116
|
+
setSelectedMenuKeys(selectedKyes);
|
|
117
|
+
|
|
118
|
+
if (window.titaTracker) {
|
|
119
|
+
window.titaTracker("action").record({
|
|
120
|
+
actionName: "\u7EE9\u6548\u8003\u6838__".concat(node.title),
|
|
121
|
+
actionGroup: (0, _getLocale.getLocale)("Menu_Title_Performance"),
|
|
122
|
+
productName: (0, _getLocale.getLocale)("Menu_Title_Performance")
|
|
123
|
+
});
|
|
124
|
+
}
|
|
108
125
|
};
|
|
109
126
|
|
|
110
127
|
var collapseMenu = function collapseMenu(isHide) {
|
|
@@ -117,6 +134,7 @@ function AppraisalMenus(props) {
|
|
|
117
134
|
|
|
118
135
|
(0, _react.useEffect)(function () {
|
|
119
136
|
var obs = new _resizeObserverPolyfill["default"](function (entries) {
|
|
137
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
120
138
|
var _iterator = _createForOfIteratorHelper(entries),
|
|
121
139
|
_step;
|
|
122
140
|
|
|
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
key: "highlight",
|
|
26
26
|
value: function highlight(cb) {
|
|
27
27
|
if (this.isMy()) cb(_menus.PAGE_MY_APPRAISAL);else if (this.isEvaluate()) cb(_menus.PAGE_EVALUATE_APPRAISAL);else if (this.isSubordinate()) cb(_menus.PAGE_SUBORDINATE_APPRAISAL);else if (this.isDepart()) cb(_menus.PAGE_DEPART_APPRAISAL);else if (this.isManage()) cb(_menus.PAGE_MANAGE_APPRAISAL);else if (this.isLibrary()) cb(_menus.PAGE_LIBRARY_APPRAISAL); // template library 正则匹配优先级
|
|
28
|
-
else if (this.isTemplate()) cb(_menus.PAGE_TEMPLATE_APPRAISAL);else if (this.isScore()) cb(_menus.PAGE_SCORE_APPRAISAL);else if (this.isHelp()) cb(_menus.PAGE_HELP_APPRAISAL);
|
|
28
|
+
else if (this.isTemplate()) cb(_menus.PAGE_TEMPLATE_APPRAISAL);else if (this.isDashboard()) cb(_menus.PAGE_DASHBOARD_APPRAISAL);else if (this.isReport()) cb(_menus.PAGE_STATISTICS_APPRAISAL);else if (this.isScore()) cb(_menus.PAGE_SCORE_APPRAISAL);else if (this.isHelp()) cb(_menus.PAGE_HELP_APPRAISAL);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isMy",
|
|
@@ -84,19 +84,35 @@ var _default = /*#__PURE__*/function () {
|
|
|
84
84
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?templateLibrary/);
|
|
85
85
|
}
|
|
86
86
|
}, {
|
|
87
|
-
key: "
|
|
88
|
-
value: function
|
|
87
|
+
key: "isDashboard",
|
|
88
|
+
value: function isDashboard() {
|
|
89
89
|
var _this$history$locatio8 = this.history.location,
|
|
90
90
|
pathname = _this$history$locatio8.pathname,
|
|
91
91
|
search = _this$history$locatio8.search;
|
|
92
|
-
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?
|
|
92
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?dashboard/);
|
|
93
93
|
}
|
|
94
94
|
}, {
|
|
95
|
-
key: "
|
|
96
|
-
value: function
|
|
95
|
+
key: "isReport",
|
|
96
|
+
value: function isReport() {
|
|
97
97
|
var _this$history$locatio9 = this.history.location,
|
|
98
98
|
pathname = _this$history$locatio9.pathname,
|
|
99
99
|
search = _this$history$locatio9.search;
|
|
100
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?report/);
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "isScore",
|
|
104
|
+
value: function isScore() {
|
|
105
|
+
var _this$history$locatio10 = this.history.location,
|
|
106
|
+
pathname = _this$history$locatio10.pathname,
|
|
107
|
+
search = _this$history$locatio10.search;
|
|
108
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?setting/);
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "isHelp",
|
|
112
|
+
value: function isHelp() {
|
|
113
|
+
var _this$history$locatio11 = this.history.location,
|
|
114
|
+
pathname = _this$history$locatio11.pathname,
|
|
115
|
+
search = _this$history$locatio11.search;
|
|
100
116
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?help/);
|
|
101
117
|
}
|
|
102
118
|
}]);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_TEMPLATE_APPRAISAL = exports.PAGE_SUBORDINATE_APPRAISAL = exports.PAGE_SCORE_APPRAISAL = exports.PAGE_MY_APPRAISAL = exports.PAGE_MANAGE_APPRAISAL = exports.PAGE_LIBRARY_APPRAISAL = exports.PAGE_HELP_APPRAISAL = exports.PAGE_EVALUATE_APPRAISAL = exports.PAGE_DEPART_APPRAISAL = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_TEMPLATE_APPRAISAL = exports.PAGE_SUBORDINATE_APPRAISAL = exports.PAGE_STATISTICS_APPRAISAL = exports.PAGE_SCORE_APPRAISAL = exports.PAGE_MY_APPRAISAL = exports.PAGE_MANAGE_APPRAISAL = exports.PAGE_LIBRARY_APPRAISAL = exports.PAGE_HELP_APPRAISAL = exports.PAGE_EVALUATE_APPRAISAL = exports.PAGE_DEPART_APPRAISAL = exports.PAGE_DASHBOARD_APPRAISAL = void 0;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../../../utils/bs-global");
|
|
9
9
|
|
|
@@ -60,6 +60,10 @@ var PAGE_SCORE_APPRAISAL = "score-appraisal";
|
|
|
60
60
|
exports.PAGE_SCORE_APPRAISAL = PAGE_SCORE_APPRAISAL;
|
|
61
61
|
var PAGE_HELP_APPRAISAL = "help-appraisal";
|
|
62
62
|
exports.PAGE_HELP_APPRAISAL = PAGE_HELP_APPRAISAL;
|
|
63
|
+
var PAGE_DASHBOARD_APPRAISAL = "dashboard-appraisal";
|
|
64
|
+
exports.PAGE_DASHBOARD_APPRAISAL = PAGE_DASHBOARD_APPRAISAL;
|
|
65
|
+
var PAGE_STATISTICS_APPRAISAL = "statistics-appraisal";
|
|
66
|
+
exports.PAGE_STATISTICS_APPRAISAL = PAGE_STATISTICS_APPRAISAL;
|
|
63
67
|
|
|
64
68
|
var AppraisalMenus = /*#__PURE__*/function () {
|
|
65
69
|
function AppraisalMenus() {
|
|
@@ -113,13 +117,13 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
113
117
|
}, {
|
|
114
118
|
icon: "yibiao",
|
|
115
119
|
label: _i18n.locale.menu_dashboard_ass,
|
|
116
|
-
key:
|
|
120
|
+
key: PAGE_DASHBOARD_APPRAISAL,
|
|
117
121
|
href: "#/performance?reactRouterName=dashboard",
|
|
118
122
|
isShow: performanceStatisticsAuthority
|
|
119
123
|
}, {
|
|
120
124
|
icon: "baobiao",
|
|
121
125
|
label: _i18n.locale.menu_statistics_ass,
|
|
122
|
-
key:
|
|
126
|
+
key: PAGE_STATISTICS_APPRAISAL,
|
|
123
127
|
href: "#/performance?reactRouterName=report",
|
|
124
128
|
isShow: performanceStatisticsAuthority
|
|
125
129
|
}, {
|
|
@@ -148,21 +152,112 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
148
152
|
href: "#/performance?reactRouterName=help",
|
|
149
153
|
isShow: IsAssessManager
|
|
150
154
|
}];
|
|
155
|
+
this.newMenus = {
|
|
156
|
+
myPerformance: [{
|
|
157
|
+
icon: "kaohe",
|
|
158
|
+
label: _i18n.locale.menu_myass,
|
|
159
|
+
key: PAGE_MY_APPRAISAL,
|
|
160
|
+
href: "#/performance/my?reactRouterName=self",
|
|
161
|
+
isShow: true
|
|
162
|
+
}, {
|
|
163
|
+
icon: "mypingjia",
|
|
164
|
+
label: _i18n.locale.menu_evaluated_ass,
|
|
165
|
+
key: PAGE_EVALUATE_APPRAISAL,
|
|
166
|
+
href: "#/performance/my?reactRouterName=evaluated",
|
|
167
|
+
isShow: true
|
|
168
|
+
}, {
|
|
169
|
+
icon: "caidan-xiashu",
|
|
170
|
+
label: _i18n.locale.menu_subordinate_ass,
|
|
171
|
+
key: PAGE_SUBORDINATE_APPRAISAL,
|
|
172
|
+
href: "#/performance/my?reactRouterName=subordinate",
|
|
173
|
+
isShow: HasSub
|
|
174
|
+
}, {
|
|
175
|
+
icon: "bumen",
|
|
176
|
+
label: _i18n.locale.menu_department_ass,
|
|
177
|
+
key: PAGE_DEPART_APPRAISAL,
|
|
178
|
+
href: "#/performance/my?reactRouterName=department",
|
|
179
|
+
isShow: IsLeader || IsHrbp
|
|
180
|
+
}],
|
|
181
|
+
performanceManage: [{
|
|
182
|
+
icon: "uniEA10",
|
|
183
|
+
label: _i18n.locale.menu_template_ass,
|
|
184
|
+
key: PAGE_TEMPLATE_APPRAISAL,
|
|
185
|
+
type: _index.MENU_ASSESS_TEMPLATE,
|
|
186
|
+
href: "#/performance/manage?reactRouterName=template",
|
|
187
|
+
isShow: performanceManageAuthority
|
|
188
|
+
}, {
|
|
189
|
+
icon: "untitled",
|
|
190
|
+
label: _i18n.locale.menu_management_ass,
|
|
191
|
+
key: PAGE_MANAGE_APPRAISAL,
|
|
192
|
+
type: _index.MENU_ASSESS_MANAGE,
|
|
193
|
+
href: "#/performance/manage?reactRouterName=manage",
|
|
194
|
+
isShow: performanceManageAuthority
|
|
195
|
+
}, {
|
|
196
|
+
icon: "",
|
|
197
|
+
label: _i18n.locale.menu_basesetting,
|
|
198
|
+
key: "base-appraisal-group",
|
|
199
|
+
type: _index.GROUP_NAME_NODE,
|
|
200
|
+
href: "",
|
|
201
|
+
isShow: performanceManageAuthority || IsAssessManager
|
|
202
|
+
}, {
|
|
203
|
+
icon: "ZBmuban",
|
|
204
|
+
label: _i18n.locale.menu_library_ass,
|
|
205
|
+
key: PAGE_LIBRARY_APPRAISAL,
|
|
206
|
+
href: "#/performance/manage?reactRouterName=templateLibrary",
|
|
207
|
+
isShow: performanceManageAuthority
|
|
208
|
+
}, {
|
|
209
|
+
icon: "PF-shezhi",
|
|
210
|
+
label: _i18n.locale.menu_score_ass,
|
|
211
|
+
key: PAGE_SCORE_APPRAISAL,
|
|
212
|
+
href: "#/performance/manage?reactRouterName=setting",
|
|
213
|
+
isShow: IsAssessManager
|
|
214
|
+
}],
|
|
215
|
+
performanceDashboard: [{
|
|
216
|
+
icon: "yibiao",
|
|
217
|
+
label: _i18n.locale.menu_dashboard_ass,
|
|
218
|
+
key: "dashboard-appraisal",
|
|
219
|
+
href: "#/performance/dashboard?reactRouterName=dashboard",
|
|
220
|
+
isShow: performanceStatisticsAuthority
|
|
221
|
+
}, {
|
|
222
|
+
icon: "baobiao",
|
|
223
|
+
label: _i18n.locale.menu_statistics_ass,
|
|
224
|
+
key: "statistics-appraisal",
|
|
225
|
+
href: "#/performance/dashboard?reactRouterName=report",
|
|
226
|
+
isShow: performanceStatisticsAuthority
|
|
227
|
+
}]
|
|
228
|
+
};
|
|
151
229
|
}
|
|
152
230
|
|
|
153
231
|
_createClass(AppraisalMenus, [{
|
|
154
232
|
key: "getMenus",
|
|
155
233
|
value: function getMenus() {
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
234
|
+
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
235
|
+
var menus = this.menus;
|
|
236
|
+
|
|
237
|
+
if (isUseNewMenu) {
|
|
238
|
+
var hash = window.location.hash.split("?")[0] || "";
|
|
239
|
+
|
|
240
|
+
if (hash) {
|
|
241
|
+
if (hash.includes("performance/my")) {
|
|
242
|
+
menus = this.newMenus.myPerformance;
|
|
243
|
+
} else if (hash.includes("performance/manage")) {
|
|
244
|
+
menus = this.newMenus.performanceManage;
|
|
245
|
+
} else {
|
|
246
|
+
menus = this.newMenus.performanceDashboard;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
return this.formateToTreeNodeData(menus);
|
|
252
|
+
} // eslint-disable-next-line class-methods-use-this
|
|
253
|
+
|
|
159
254
|
}, {
|
|
160
255
|
key: "formateToTreeNodeData",
|
|
161
|
-
value: function formateToTreeNodeData() {
|
|
256
|
+
value: function formateToTreeNodeData(menus) {
|
|
162
257
|
var treeNodes = [];
|
|
163
258
|
|
|
164
|
-
for (var i = 0; i <
|
|
165
|
-
var menu =
|
|
259
|
+
for (var i = 0; i < menus.length; i += 1) {
|
|
260
|
+
var menu = menus[i];
|
|
166
261
|
|
|
167
262
|
if (menu.isShow) {
|
|
168
263
|
treeNodes.push({
|
|
@@ -78,6 +78,7 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
78
78
|
hasDashboardAuth = true;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
81
82
|
this.menus = [{
|
|
82
83
|
icon: "okr",
|
|
83
84
|
label: _i18n.locale.menu_myokr,
|
|
@@ -132,20 +133,22 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
132
133
|
label: _i18n.locale.menu_okrmap,
|
|
133
134
|
key: PAGE_OKR_MAP,
|
|
134
135
|
type: _index.MENU_ITEM_NOE,
|
|
135
|
-
href: "#/okr/map"
|
|
136
|
+
href: "#/okr/map",
|
|
137
|
+
isShow: !isUseNewMenu
|
|
136
138
|
}, {
|
|
137
139
|
icon: "panel",
|
|
138
140
|
label: _i18n.locale.menu_okr_working_method,
|
|
139
141
|
type: _index.MENU_ITEM_NOE,
|
|
140
142
|
key: PAGE_OKR_FUNCTION,
|
|
141
|
-
href: "#/okr/panel"
|
|
143
|
+
href: "#/okr/panel",
|
|
144
|
+
isShow: !isUseNewMenu
|
|
142
145
|
}, {
|
|
143
146
|
icon: "yibiao",
|
|
144
147
|
label: _i18n.locale.menu_okrdashboard,
|
|
145
148
|
key: PAGE_OKR_DASHBOARD,
|
|
146
149
|
type: _index.MENU_ITEM_NOE,
|
|
147
150
|
href: "#/okr/chart?iTalentFrameType=iframe&iTalentFrame=%2F%2Fwww.tita.gift%2Fmenuroute%3FmenuId%3D44269%26roleId%3D",
|
|
148
|
-
isShow: hasDashboardAuth
|
|
151
|
+
isShow: hasDashboardAuth && !isUseNewMenu
|
|
149
152
|
}, {
|
|
150
153
|
icon: "cases",
|
|
151
154
|
label: _i18n.locale.menu_okrcases,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><filter id="d" width="130%" height="245.6%" x="-15%" y="-72.8%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><filter id="g" width="115.4%" height="115.4%" x="-7.7%" y="-7.7%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1.5"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/></filter><filter id="i" width="180%" height="180%" x="-40%" y="-20%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0.839215686 0 0 0 0 0.521568627 0 0 0 0.8 0"/></filter><filter id="k" width="216.4%" height="222.6%" x="-58.2%" y="-30.6%" filterUnits="objectBoundingBox"><feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0.839215686 0 0 0 0 0.521568627 0 0 0 0.8 0"/></filter><filter id="m" width="274.5%" height="283.9%" x="-87.3%" y="-61.3%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" values="0 0 0 0 1 0 0 0 0 0.650980392 0 0 0 0 0 0 0 0 0.8 0"/><feGaussianBlur in="SourceAlpha" result="shadowBlurInner2" stdDeviation="1"/><feOffset dy="1" in="shadowBlurInner2" result="shadowOffsetInner2"/><feComposite in="shadowOffsetInner2" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner2"/><feColorMatrix in="shadowInnerInner2" result="shadowMatrixInner2" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/><feMerge><feMergeNode in="shadowMatrixInner1"/><feMergeNode in="shadowMatrixInner2"/></feMerge></filter><path id="e" d="M13.549913,3.49982102 L13.549913,17.0131558 C13.549913,18.0829702 14.4168508,18.9500677 15.4865054,18.9502274 L15.4865054,18.9502274 L29,18.9502274 C28.4758756,26.9042658 21.5497983,33.109093 13.3243527,32.4520606 C6.29923326,31.8907156 0.609265141,26.2007475 0.0477603845,19.1753086 C-0.609272066,10.9500227 5.59555518,4.02394537 13.549913,3.49982102 L13.549913,3.49982102 Z M15.5004019,0 C24.61508,0.60081322 31.8995887,7.88491998 32.5,17 L32.5,17 L16.7203139,17 C16.046667,16.9997782 15.5006237,16.4537349 15.5004019,15.7800879 L15.5004019,15.7800879 Z"/><path id="h" d="M19.2338693,14.3160985 L28.5160376,14.3160985 C28.1628545,8.9542867 23.8778494,4.66951802 18.516274,4.31609848 L18.516274,13.5985031 C18.5164045,13.994766 18.8376064,14.315968 19.2338693,14.3160985 Z"/><path id="j" d="M22.7587362,8.06750316 L22.9574566,8.04310336 C23.8451051,7.93411384 24.6530398,8.56534162 24.7620293,9.45299008 C24.8710189,10.3406385 24.2397911,11.1485733 23.3521426,11.2575628 L23.1534222,11.2819626 C22.2657738,11.3909521 21.457839,10.7597243 21.3488495,9.87207586 C21.23986,8.98442741 21.8710878,8.17649269 22.7587362,8.06750316 Z"/><radialGradient id="f" cx="67.721%" cy="77.736%" r="72.815%" fx="67.721%" fy="77.736%"><stop offset="0%" stop-color="#00D685"/><stop offset="100%" stop-color="#75EBBE"/></radialGradient><radialGradient id="l" cx="50%" cy="70.049%" r="64.997%" fx="50%" fy="70.049%" gradientTransform="scale(-.9493 -1) rotate(54.194 1.356 -1.003)"><stop offset="0%" stop-color="#F6BD16"/><stop offset="100%" stop-color="#FFE18B"/></radialGradient><linearGradient id="c" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#00D685"/><stop offset="100%" stop-color="#00D685" stop-opacity="0"/></linearGradient><polygon id="a" points="0 0 52 0 52 52 0 52"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><path fill="#00D685" fill-opacity=".16" d="M11.1333518,2.31108338 C20.3778302,-0.770361126 29.6221698,-0.770361126 38.8666482,2.31108338 C42.5641899,3.6827713 47.3171222,8.43583913 48.6888111,12.1333784 C51.7703963,21.3777119 51.7703963,30.6221841 48.6888111,39.8666563 C47.3171222,43.5640569 42.5641899,48.3171247 38.8666482,49.6888126 C29.6221698,52.7703958 20.3778302,52.7703958 11.1333518,49.6888126 C7.43594875,48.3171247 2.68287776,43.5640569 1.31118892,39.8666563 C-1.77039631,30.6221841 -1.77039631,21.3777119 1.31118892,12.1333784 C2.68287776,8.43583913 7.43594875,3.6827713 11.1333518,2.31108338" mask="url(#b)"/><path fill="url(#c)" fill-opacity=".5" d="M36,44.5 C36,43.6715729 31.5228475,41 26,41 C20.4771525,41 16,43.6715729 16,44.5 C16,45.3284271 36,45.3284271 36,44.5 Z" filter="url(#d)" mask="url(#b)"/><g fill-rule="nonzero" transform="translate(9.484 9.484)"><use xlink:href="#e" fill="url(#f)"/><use xlink:href="#e" fill="#000" filter="url(#g)"/><use xlink:href="#h" fill="#000" filter="url(#i)"/><use xlink:href="#h" fill="#FFF" fill-opacity=".4"/><g transform="rotate(7 23.055 9.663)"><use xlink:href="#j" fill="#000" filter="url(#k)"/><use xlink:href="#j" fill="url(#l)"/><use xlink:href="#j" fill="#000" filter="url(#m)"/></g></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><filter id="d" width="130%" height="245.6%" x="-15%" y="-72.8%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><filter id="f" width="112.3%" height="116.3%" x="-6.1%" y="-8.2%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1.5"/><feOffset dy="1" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="i" width="149.1%" height="175%" x="-24.6%" y="-37.5%" filterUnits="objectBoundingBox"><feOffset in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="2"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0.908599411 0 0 0 0 0.38063485 0 0 0 0 0 0 0 0 1 0"/></filter><filter id="k" width="157.3%" height="187.5%" x="-28.7%" y="-43.8%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="2"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="n" width="118.5%" height="128.2%" x="-9.2%" y="-14.1%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="2"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="p" width="170.2%" height="225%" x="-35.1%" y="-37.5%" filterUnits="objectBoundingBox"><feOffset dy="3" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="2"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 1 0 0 0 0 0.521568627 0 0 0 0 0 0 0 0 1 0"/></filter><filter id="r" width="300%" height="176.8%" x="-50%" y="-38.4%" filterUnits="objectBoundingBox"><feOffset dx="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 1 0 0 0 0 0.521568627 0 0 0 0 0 0 0 0 0.6 0"/></filter><filter id="t" width="300%" height="176.8%" x="-50%" y="-38.4%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1"/><feOffset dx="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" values="0 0 0 0 1 0 0 0 0 0.650980392 0 0 0 0 0 0 0 0 0.5 0"/><feGaussianBlur in="SourceAlpha" result="shadowBlurInner2" stdDeviation="1"/><feOffset in="shadowBlurInner2" result="shadowOffsetInner2"/><feComposite in="shadowOffsetInner2" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner2"/><feColorMatrix in="shadowInnerInner2" result="shadowMatrixInner2" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0"/><feMerge><feMergeNode in="shadowMatrixInner1"/><feMergeNode in="shadowMatrixInner2"/></feMerge></filter><path id="e" d="M5.07018892,0 L10.3519294,0 C11.5344466,-2.17224891e-16 12.6497987,0.549600188 13.3702523,1.48730682 C14.0907078,2.42501607 15.2060546,2.9746285 16.3885751,2.97465383 L28.2675029,2.97490832 C30.6309074,2.97505063 32.5467985,4.89098273 32.5468902,7.25438723 L32.5468902,24.5340909 L32.5468902,24.5340909 L4.18016823,24.5340909 L0.851596575,4.99815956 C0.454629578,2.66829534 2.02155237,0.457761878 4.35141659,0.0607948817 C4.5888694,0.0203371906 4.82931414,-8.43930441e-16 5.07018892,0 Z"/><path id="h" d="M9.93098306,6.49090909 L23.7614371,6.49090909 C26.1248774,6.49090909 28.0408243,8.40685601 28.0408243,10.7702963 C28.0408243,11.0394099 28.0154392,11.3079236 27.9650063,11.5722693 L26.5453409,19.0134949 C26.160377,21.0312962 24.3959672,22.4909091 22.3417716,22.4909091 L9.22115032,22.4909091 C6.85771001,22.4909091 4.94176309,20.5749622 4.94176309,18.2115219 C4.94176309,18.0758338 4.94821655,17.9402225 4.9611016,17.8051477 L5.67093435,10.3639221 C5.88042009,8.16786865 7.7249606,6.49090909 9.93098306,6.49090909 Z"/><path id="l" d="M9.48442219,11.7068182 L30.8269894,11.7068182 C33.1904297,11.7068182 35.1063766,13.6227651 35.1063766,15.9862054 C35.1063766,16.255319 35.0809915,16.5238327 35.0305586,16.7881784 L32.6092781,29.479404 C32.2243142,31.4972053 30.4599044,32.9568182 28.4057088,32.9568182 L8.2737819,32.9568182 C5.91034159,32.9568182 3.99439467,31.0408713 3.99439467,28.6774309 C3.99439467,28.5417429 4.00084813,28.4061316 4.01373318,28.2710568 L5.22437347,15.5798312 C5.43385921,13.3837777 7.27839972,11.7068182 9.48442219,11.7068182 Z"/><path id="o" d="M12.2247335,16.3318182 L27.9731633,16.3318182 C29.0777328,16.3318182 29.9731633,17.2272487 29.9731633,18.3318182 C29.9731633,18.4779715 29.9571428,18.6236846 29.9253889,18.7663468 L28.1447398,26.7663468 C27.9411325,27.6811022 27.1296554,28.3318182 26.1925142,28.3318182 L11.334409,28.3318182 C10.2298395,28.3318182 9.33440902,27.4363877 9.33440902,26.3318182 C9.33440902,26.2579096 9.33850588,26.1840578 9.34668073,26.1106028 L10.2370053,18.1106028 C10.3497104,17.097892 11.2057705,16.3318182 12.2247335,16.3318182 Z"/><path id="q" d="M19.8947368,16.7894737 C20.9993063,16.7894737 21.8947368,17.6849042 21.8947368,18.7894737 L21.8947368,25.2105263 C21.8947368,26.3150958 20.9993063,27.2105263 19.8947368,27.2105263 C18.7901673,27.2105263 17.8947368,26.3150958 17.8947368,25.2105263 L17.8947368,18.7894737 C17.8947368,17.6849042 18.7901673,16.7894737 19.8947368,16.7894737 Z"/><radialGradient id="j" cx="26.486%" cy="8.756%" r="64.32%" fx="26.486%" fy="8.756%" gradientTransform="matrix(.41553 .77316 -.50657 .6342 .2 -.173)"><stop offset="0%" stop-color="#FFD48F"/><stop offset="100%" stop-color="#FFA81C"/></radialGradient><radialGradient id="m" cx="26.486%" cy="8.756%" r="64.32%" fx="26.486%" fy="8.756%" gradientTransform="matrix(.41553 .77316 -.50657 .6342 .2 -.173)"><stop offset="0%" stop-color="#FFD48F"/><stop offset="100%" stop-color="#FFA81C"/></radialGradient><radialGradient id="s" cx="50%" cy="70.049%" r="161.643%" fx="50%" fy="70.049%" gradientTransform="matrix(.22412 -.37407 .97456 .08602 -.295 .827)"><stop offset="0%" stop-color="#FFCC37"/><stop offset="100%" stop-color="#FFE18B"/></radialGradient><linearGradient id="c" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFA81C"/><stop offset="100%" stop-color="#FFA81C" stop-opacity="0"/></linearGradient><polygon id="a" points="0 0 52 0 52 52 0 52"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><path fill="#F0A326" fill-opacity=".16" d="M12.1333518,2.31108338 C21.3778302,-0.770361126 30.6221698,-0.770361126 39.8666482,2.31108338 C43.5641899,3.6827713 48.3171222,8.43583913 49.6888111,12.1333784 C52.7703963,21.3777119 52.7703963,30.6221841 49.6888111,39.8666563 C48.3171222,43.5640569 43.5641899,48.3171247 39.8666482,49.6888126 C30.6221698,52.7703958 21.3778302,52.7703958 12.1333518,49.6888126 C8.43594875,48.3171247 3.68287776,43.5640569 2.31118892,39.8666563 C-0.770396306,30.6221841 -0.770396306,21.3777119 2.31118892,12.1333784 C3.68287776,8.43583913 8.43594875,3.6827713 12.1333518,2.31108338" mask="url(#b)"/><path fill="url(#c)" fill-opacity=".6" d="M36,44.5 C36,43.6715729 31.5228475,41 26,41 C20.4771525,41 16,43.6715729 16,44.5 C16,45.3284271 36,45.3284271 36,44.5 Z" filter="url(#d)" mask="url(#b)"/><g mask="url(#b)"><g transform="translate(8 9)"><rect width="32.433" height="34" x="3.567" fill="#000" fill-rule="nonzero" opacity="0"/><g transform="translate(0 5.216)"><mask id="g" fill="#fff"><use xlink:href="#e"/></mask><g fill-rule="nonzero"><use xlink:href="#e" fill="#FF9D00"/><use xlink:href="#e" fill="#000" filter="url(#f)"/></g><g fill-rule="nonzero" mask="url(#g)"><use xlink:href="#h" fill="#000" filter="url(#i)"/><use xlink:href="#h" fill="url(#j)"/><use xlink:href="#h" fill="#000" filter="url(#k)"/></g></g><g fill-rule="nonzero"><use xlink:href="#l" fill="url(#m)"/><use xlink:href="#l" fill="#000" filter="url(#n)"/></g><g fill-rule="nonzero"><use xlink:href="#o" fill="#000" filter="url(#p)"/><use xlink:href="#o" fill="#FFF" fill-opacity=".4"/></g><g fill-rule="nonzero" transform="rotate(90 19.895 22)"><use xlink:href="#q" fill="#000" filter="url(#r)"/><use xlink:href="#q" fill="url(#s)"/><use xlink:href="#q" fill="#000" filter="url(#t)"/></g></g></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><filter id="d" width="137.5%" height="245.6%" x="-18.8%" y="-72.8%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><filter id="f" width="150%" height="294.1%" x="-25%" y="-97.1%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><filter id="i" width="129.9%" height="129.9%" x="-14.9%" y="-14.9%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1.5"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="l" width="135.7%" height="135.7%" x="-17.9%" y="-11.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1.5"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0.941176471 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter><filter id="m" width="135.7%" height="135.7%" x="-17.9%" y="-11.4%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1.5"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="o" width="116.2%" height="116.2%" x="-8.1%" y="-8.1%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1.5"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/></filter><filter id="q" width="148.3%" height="148.3%" x="-24.2%" y="-15.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1.5"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0.94 0 0 0 0 0.1786 0 0 0 0 0.1786 0 0 0 1 0"/></filter><filter id="s" width="187.6%" height="275.3%" x="-43.8%" y="-43.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0.941176471 0 0 0 0 0.367058824 0 0 0 0 0.367058824 0 0 0 0.6 0"/></filter><filter id="u" width="187.6%" height="275.3%" x="-43.8%" y="-43.8%" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" result="shadowBlurInner1" stdDeviation="1"/><feOffset dy="-2" in="shadowBlurInner1" result="shadowOffsetInner1"/><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" values="0 0 0 0 1 0 0 0 0 0.650980392 0 0 0 0 0 0 0 0 1 0"/><feGaussianBlur in="SourceAlpha" result="shadowBlurInner2" stdDeviation="1"/><feOffset dy="1" in="shadowBlurInner2" result="shadowOffsetInner2"/><feComposite in="shadowOffsetInner2" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner2"/><feColorMatrix in="shadowInnerInner2" result="shadowMatrixInner2" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"/><feMerge><feMergeNode in="shadowMatrixInner1"/><feMergeNode in="shadowMatrixInner2"/></feMerge></filter><path id="g" d="M8.37121212,0 C12.9921212,0 16.7424242,3.70168683 16.7424242,8.27229065 C16.7424242,11.5336592 14.7433788,14.3647549 11.6468674,15.8849411 C10.3702576,16.5119341 8.20127652,16.7881794 5.10476516,16.7362788 L4.72806062,16.7279077 L3.94953789,16.7036316 L3.54604545,16.6868895 L2.71394698,16.6433599 C2.45245136,16.6277491 2.22641188,16.4554362 2.14208585,16.2074228 C2.05775983,15.9594093 2.13192135,15.6850298 2.32970834,15.5132656 C2.61935229,15.2621335 2.83867803,15.0444857 2.98517425,14.8695303 L3.05214394,14.7858197 L3.10823107,14.7037832 L2.86714016,14.5045517 C1.19301872,13.0684315 0.166487342,11.0196269 0.0184166732,8.81892149 L0.00418561914,8.54100198 L0,8.27229065 C0,3.70168683 3.75030303,0 8.37121212,0 Z"/><path id="k" d="M21.430303,-15.4030303 C29.9327758,-15.4030303 36.8333333,-8.59192653 36.8333333,-0.182015503 C36.8333333,5.81890269 33.1550897,11.0281187 27.4575088,13.8252612 C25.1085467,14.9789285 21.1176215,15.4872198 15.4200406,15.3917227 L14.7269043,15.3763199 L13.2944224,15.3316519 L12.5519964,15.3008464 L11.0209352,15.220752 C10.5397832,15.192028 10.1238706,14.8749724 9.9687107,14.4186276 C9.81355081,13.9622828 9.95000801,13.4574246 10.3139361,13.1413784 C10.8468809,12.6792953 11.2504403,12.2788234 11.5199934,11.9569055 L11.6432176,11.8028779 L11.7464179,11.6519307 L11.3028106,11.2853449 C8.22242718,8.64288364 6.33360944,4.87308312 6.06115941,0.823785236 L6.03497427,0.312413332 L6.02727273,-0.182015503 C6.02727273,-8.59192653 12.9278303,-15.4030303 21.430303,-15.4030303 Z"/><path id="n" d="M21.430303,0 C29.9327758,0 36.8333333,6.81110377 36.8333333,15.2210148 C36.8333333,21.221933 33.1550897,26.431149 27.4575088,29.2282915 C25.1085467,30.3819588 21.1176215,30.8902501 15.4200406,30.794753 L14.7269043,30.7793502 L13.2944224,30.7346822 L12.5519964,30.7038767 L11.0209352,30.6237823 C10.5397832,30.5950583 10.1238706,30.2780027 9.9687107,29.8216579 C9.81355081,29.3653131 9.95000801,28.8604549 10.3139361,28.5444087 C10.8468809,28.0823256 11.2504403,27.6818537 11.5199934,27.3599358 L11.6432176,27.2059082 L11.7464179,27.054961 L11.3028106,26.6883752 C8.22242718,24.0459139 6.33360944,20.2761134 6.06115941,16.2268155 L6.03497427,15.7154436 L6.02727273,15.2210148 C6.02727273,6.81110377 12.9278303,0 21.430303,0 Z"/><path id="p" d="M21.430303,4.01818182 C27.7147394,4.01818182 32.8151515,9.05247591 32.8151515,15.2684971 C32.8151515,19.7039584 30.0964497,23.5542484 25.8851942,25.6217016 C24.1490048,26.4744122 21.1991906,26.8501058 16.9879352,26.779521 L16.475617,26.7681363 L15.4168261,26.7351208 L14.8680764,26.7123515 L13.7364224,26.6531513 C13.3807884,26.6319206 13.0733747,26.3975751 12.9586913,26.0602768 C12.8440079,25.7229784 12.9448676,25.3498224 13.2138579,25.116223 C13.6077737,24.7746834 13.9060567,24.4786824 14.1052915,24.2407431 L14.1963703,24.1268966 L14.2726488,24.0153269 L13.9447652,23.7443722 C11.66796,21.7912486 10.2718773,19.0048743 10.0705012,16.011915 L10.051147,15.6339445 L10.0454545,15.2684971 C10.0454545,9.05247591 15.1458667,4.01818182 21.430303,4.01818182 Z"/><path id="r" d="M25.0542392,16.606252 C24.6934328,16.4256274 24.2756542,16.3957968 23.8928529,16.5233257 C23.5100516,16.6508547 23.193601,16.9252912 23.0131493,17.2862341 C22.8428049,17.6254646 22.1735952,17.9662163 21.3309992,17.9662163 C20.4884032,17.9662163 19.8191934,17.6254646 19.65037,17.2862341 C19.407209,16.7998222 18.9230694,16.4801079 18.3803218,16.4475245 C17.8375742,16.4149411 17.3186749,16.6744388 17.0190882,17.1282673 C16.7195016,17.5820958 16.6847419,18.1613077 16.9279029,18.6477196 C17.6655546,20.11569 19.4207094,21.008642 21.3309992,21.008642 C23.2443309,21.008642 24.9979647,20.1156901 25.7340955,18.6477196 C25.9146867,18.2868465 25.9445118,17.8689906 25.8170064,17.4861184 C25.6895011,17.1032463 25.4151154,16.7867372 25.0542392,16.606252 Z"/><radialGradient id="h" cx="73.195%" cy="18.576%" r="55.879%" fx="73.195%" fy="18.576%"><stop offset="0%" stop-color="#FFB0B0"/><stop offset="100%" stop-color="#FF6464"/></radialGradient><radialGradient id="t" cx="50%" cy="70.049%" r="94.37%" fx="50%" fy="70.049%" gradientTransform="scale(.5 1) rotate(-39.847 .75 .01)"><stop offset="0%" stop-color="#F6BD16"/><stop offset="100%" stop-color="#FFE18B"/></radialGradient><linearGradient id="c" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FF6464"/><stop offset="100%" stop-color="#FF6464" stop-opacity="0"/></linearGradient><linearGradient id="e" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FF6464"/><stop offset="100%" stop-color="#FF6464" stop-opacity="0"/></linearGradient><polygon id="a" points="0 0 52 0 52 52 0 52"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><path fill="#F05E5E" fill-opacity=".16" d="M12.1333518,2.31108338 C21.3778302,-0.770361126 30.6221698,-0.770361126 39.8666482,2.31108338 C43.5641899,3.6827713 48.3171222,8.43583913 49.6888111,12.1333784 C52.7703963,21.3777119 52.7703963,30.6221841 49.6888111,39.8666563 C48.3171222,43.5640569 43.5641899,48.3171247 39.8666482,49.6888126 C30.6221698,52.7703958 21.3778302,52.7703958 12.1333518,49.6888126 C8.43594875,48.3171247 3.68287776,43.5640569 2.31118892,39.8666563 C-0.770396306,30.6221841 -0.770396306,21.3777119 2.31118892,12.1333784 C3.68287776,8.43583913 8.43594875,3.6827713 12.1333518,2.31108338" mask="url(#b)"/><path fill="url(#c)" fill-opacity=".5" d="M39,43.5 C39,42.6715729 35.418278,40 31,40 C26.581722,40 23,42.6715729 23,43.5 C23,44.3284271 39,44.3284271 39,43.5 Z" filter="url(#d)" mask="url(#b)"/><path fill="url(#e)" fill-opacity=".5" d="M23,44.140165 C23,43.5188447 20.3137085,41.515165 17,41.515165 C13.6862915,41.515165 11,43.5188447 11,44.140165 C11,44.7614854 23,44.7614854 23,44.140165 Z" filter="url(#f)" mask="url(#b)"/><g mask="url(#b)"><g transform="translate(7.918 9.927)"><g transform="translate(0 15.403)"><mask id="j" fill="#fff"><use xlink:href="#g"/></mask><g fill-rule="nonzero"><use xlink:href="#g" fill="url(#h)"/><use xlink:href="#g" fill="#000" filter="url(#i)"/></g><g fill-rule="nonzero" mask="url(#j)" transform="matrix(-1 0 0 1 42.86 0)"><use xlink:href="#k" fill="#000" filter="url(#l)"/><use xlink:href="#k" fill="url(#h)"/><use xlink:href="#k" fill="#000" filter="url(#m)"/></g></g><g fill-rule="nonzero" transform="matrix(-1 0 0 1 42.86 0)"><use xlink:href="#n" fill="url(#h)"/><use xlink:href="#n" fill="#000" filter="url(#o)"/></g><g fill-rule="nonzero" transform="matrix(-1 0 0 1 42.86 0)"><use xlink:href="#p" fill="#000" filter="url(#q)"/><use xlink:href="#p" fill="#FFF" fill-opacity=".4"/></g><g fill-rule="nonzero" transform="matrix(-1 0 0 1 42.662 0)"><use xlink:href="#r" fill="#000" filter="url(#s)"/><use xlink:href="#r" fill="url(#t)"/><use xlink:href="#r" fill="#000" filter="url(#u)"/></g></g></g></g></svg>
|