@titaui/pc 1.9.86 → 1.9.87
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/.eslintrc.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +1 -1
- package/lib/components/change-okr-modal/Item.js +121 -91
- package/lib/components/change-okr-modal/filterTab.js +1 -1
- package/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/communication/CommunicationAttachments.js +1 -1
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +1 -1
- package/lib/components/create-okr-modal/objectType.js +1 -1
- package/lib/components/date-picker/BodyItem.js +1 -1
- package/lib/components/date-picker/CalendarBody.js +1 -1
- package/lib/components/date-picker/CalendarHeader.js +1 -1
- package/lib/components/date-picker/index.js +1 -1
- package/lib/components/date-range-picker/index.js +1 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +1 -1
- package/lib/components/eReport/eReportLists/reportList.js +1 -1
- package/lib/components/eReport/eReportShare/index.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
- package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
- package/lib/components/emotions-selector/selector-content.js +1 -1
- package/lib/components/emotions-selector/selector-pop.js +1 -1
- package/lib/components/ereport-list/index.js +1 -1
- package/lib/components/error-boundary/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +1 -1
- package/lib/components/mblog/components/MblogContent.js +1 -1
- package/lib/components/mblog/index.js +1 -1
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
- package/lib/components/okr-period-selector/select-cycle.js +7 -0
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
- package/lib/components/okr-review/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +1 -1
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/point-demo/input/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +1 -1
- package/lib/components/praise-record/index.js +1 -1
- package/lib/components/range-picker-pop/index.js +1 -1
- package/lib/components/range-selector-pop/RangeList.js +1 -1
- package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
- package/lib/components/select/Option.js +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +1 -1
- package/lib/components-v1/animate/animate.js +1 -1
- package/lib/components-v1/avatar/index.js +1 -1
- package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
- package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
- package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/placement/placement.js +1 -1
- package/lib/components-v1/placement/placementInner.js +1 -1
- package/lib/components-v1/pop/Pop.js +1 -1
- package/lib/components-v1/pop/PopInner.js +1 -1
- package/lib/components-v1/portals/Portals.js +1 -1
- package/lib/components-v1/progress/CircleProgress.js +1 -1
- package/lib/components-v1/progress/LineProgress.js +1 -1
- package/lib/components-v1/progress/index.js +1 -1
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/search/index.js +1 -1
- package/lib/components-v1/select/Option.js +1 -1
- package/lib/components-v1/select/index.js +1 -1
- package/lib/components-v1/tabs/index.js +1 -1
- package/lib/components-v1/textarea/index.js +1 -1
- package/lib/components-v1/transition/index.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
- package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/components/UserItem.js +1 -1
- package/lib/components-v1/userSelector/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +1 -1
- package/lib/pages/new-okr-list/init-cycle-setting.js +4 -2
- package/lib/pages/new-okr-list/request-api.js +32 -57
- package/lib/utils/auth.js +1 -1
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +84 -45
- package/src/components/okr-period-selector/select-cycle.tsx +5 -0
- package/src/pages/new-okr-list/init-cycle-setting.tsx +10 -7
- package/src/pages/new-okr-list/request-api.ts +11 -11
- package/yarn-error.log +103 -0
|
@@ -26,9 +26,41 @@ const colorMap = {
|
|
|
26
26
|
4: "12,192,201",
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
const formatKeywordsFunc = (str: string, key: string) => {
|
|
30
|
+
const reg = new RegExp(`(${key})`, "g");
|
|
31
|
+
const newstr = str.replace(reg, `<span style="color: #2879ff;">${key}</span>`);
|
|
32
|
+
return newstr;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const unFormatKeywordsFunc = (str: string, key: string) => {
|
|
36
|
+
const regExpKey = `<span style="color: #2879ff;">${key}</span>`;
|
|
37
|
+
const reg = new RegExp(`(${regExpKey})`, "g");
|
|
38
|
+
const newstr = str.replace(reg, key);
|
|
39
|
+
return newstr;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const htmlToText = (text) => {
|
|
43
|
+
const div = document.createElement("div");
|
|
44
|
+
div.innerHTML = text;
|
|
45
|
+
const newtext = div.innerText || div.textContent;
|
|
46
|
+
return newtext;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const dealOkrData = (data: OkrData, keyWords: string) => {
|
|
50
|
+
const newData = data;
|
|
51
|
+
if (keyWords) {
|
|
52
|
+
newData.workName = formatKeywordsFunc(data.workName, keyWords);
|
|
53
|
+
newData.Krs = newData.Krs.map((item) => ({
|
|
54
|
+
...item,
|
|
55
|
+
mileStoneName: formatKeywordsFunc(item.mileStoneName, keyWords),
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
return data;
|
|
59
|
+
};
|
|
29
60
|
export default class Item extends PureComponent<Props, State> {
|
|
30
61
|
// @ts-ignore
|
|
31
62
|
isObjectiveRelevanceKr: boolean = window.BSGlobal.OkrAdvancedSetting.KRSetting.ObjectiveRelevanceKr;
|
|
63
|
+
// const {data,keywords} = props
|
|
32
64
|
|
|
33
65
|
constructor(props: Props) {
|
|
34
66
|
super(props);
|
|
@@ -45,19 +77,19 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
45
77
|
this.isExtend();
|
|
46
78
|
}
|
|
47
79
|
|
|
48
|
-
onSelect = (e: any,
|
|
80
|
+
onSelect = (e: any, pdata: any) => {
|
|
49
81
|
e.stopPropagation();
|
|
50
82
|
e.nativeEvent.stopImmediatePropagation();
|
|
51
|
-
const { keywords } = this.props;
|
|
52
|
-
const unFormatData = { ...
|
|
83
|
+
const { keywords, onSelect, data } = this.props;
|
|
84
|
+
const unFormatData = { ...pdata };
|
|
53
85
|
if (keywords) {
|
|
54
86
|
if (unFormatData.workName) {
|
|
55
|
-
unFormatData.workName =
|
|
87
|
+
unFormatData.workName = unFormatKeywordsFunc(unFormatData.workName, keywords);
|
|
56
88
|
} else {
|
|
57
|
-
unFormatData.mileStoneName =
|
|
89
|
+
unFormatData.mileStoneName = unFormatKeywordsFunc(unFormatData.mileStoneName, keywords);
|
|
58
90
|
}
|
|
59
91
|
}
|
|
60
|
-
|
|
92
|
+
onSelect({ selectData: unFormatData, okrInfo: data });
|
|
61
93
|
};
|
|
62
94
|
|
|
63
95
|
// 判断是否展开KR
|
|
@@ -72,13 +104,6 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
72
104
|
}
|
|
73
105
|
};
|
|
74
106
|
|
|
75
|
-
htmlToText = (text) => {
|
|
76
|
-
const div = document.createElement("div");
|
|
77
|
-
div.innerHTML = text;
|
|
78
|
-
const newtext = div.innerText || div.textContent;
|
|
79
|
-
return newtext;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
107
|
getCycleText = () => {
|
|
83
108
|
const { data } = this.props;
|
|
84
109
|
const hzNum = [
|
|
@@ -97,35 +122,48 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
97
122
|
}
|
|
98
123
|
};
|
|
99
124
|
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
item.
|
|
125
|
+
renderItemKr = () => {
|
|
126
|
+
const {
|
|
127
|
+
data, active, isShowKr, keywords,
|
|
128
|
+
} = this.props;
|
|
129
|
+
const okrData: any = dealOkrData(data, keywords);
|
|
130
|
+
if (okrData.Krs.length > 0) {
|
|
131
|
+
return okrData.Krs.map((item: any, index: number) => {
|
|
132
|
+
if (this.isObjectiveRelevanceKr) {
|
|
133
|
+
return (
|
|
134
|
+
<ItemTop key={item.mileStoneId}>
|
|
135
|
+
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId === (active.workId || active.mileStoneId)} />
|
|
136
|
+
<WorkNameWrapper isShowKr={isShowKr}>
|
|
137
|
+
<Tooltip placement="top" overlay={htmlToText(item.mileStoneName)}>
|
|
138
|
+
<OkrName isKr isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }} />
|
|
139
|
+
</Tooltip>
|
|
140
|
+
</WorkNameWrapper>
|
|
141
|
+
</ItemTop>
|
|
142
|
+
);
|
|
143
|
+
} if (active && item.mileStoneId === (active.workId || active.mileStoneId)) {
|
|
144
|
+
return (
|
|
145
|
+
<ItemTop key={item.mileStoneId}>
|
|
146
|
+
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId === (active.workId || active.mileStoneId)} />
|
|
147
|
+
<WorkNameWrapper isShowKr={isShowKr}>
|
|
148
|
+
<Tooltip placement="top" overlay={htmlToText(item.mileStoneName)}>
|
|
149
|
+
<OkrName isKr isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }} />
|
|
150
|
+
</Tooltip>
|
|
151
|
+
</WorkNameWrapper>
|
|
152
|
+
</ItemTop>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
return "";
|
|
119
156
|
});
|
|
120
157
|
}
|
|
121
|
-
return
|
|
158
|
+
return <span />;
|
|
122
159
|
};
|
|
123
160
|
|
|
124
|
-
okrData: any = this.dealOkrData(this.props.data, this.props.keywords);
|
|
125
|
-
|
|
126
161
|
render() {
|
|
127
|
-
const {
|
|
162
|
+
const {
|
|
163
|
+
data, active, isShowKr, keywords,
|
|
164
|
+
} = this.props;
|
|
128
165
|
const { isExpand } = this.state;
|
|
166
|
+
const okrData: any = dealOkrData(data, keywords);
|
|
129
167
|
return (
|
|
130
168
|
<ItemWrapper>
|
|
131
169
|
<ItemObjectiveContainer onClick={() => this.setState({ isExpand: !isExpand })}>
|
|
@@ -133,11 +171,11 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
133
171
|
<Radio onClick={(e: any) => this.onSelect(e, data)} active={active && data.workId === active.workId} />
|
|
134
172
|
<Tag color={colorMap[data.cycleType] || colorMap[4]}>{this.getCycleText()}</Tag>
|
|
135
173
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
136
|
-
<Tooltip placement="top" overlay={
|
|
137
|
-
<OkrName isKr={false} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html:
|
|
174
|
+
<Tooltip placement="top" overlay={htmlToText(okrData.workName)}>
|
|
175
|
+
<OkrName isKr={false} isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: okrData.workName }} />
|
|
138
176
|
</Tooltip>
|
|
139
177
|
</WorkNameWrapper>
|
|
140
|
-
{this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && <span className={`${
|
|
178
|
+
{this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && <span className={`${isExpand ? "tu-icon-arrow-up" : "tu-icon-arrow-down"}`} />}
|
|
141
179
|
</ItemTop>
|
|
142
180
|
<ItemBottom>
|
|
143
181
|
{
|
|
@@ -162,14 +200,14 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
162
200
|
</ItemBottom>
|
|
163
201
|
</ItemObjectiveContainer>
|
|
164
202
|
{
|
|
165
|
-
isShowKr && (this.isObjectiveRelevanceKr || (!this.isObjectiveRelevanceKr &&
|
|
203
|
+
isShowKr && (this.isObjectiveRelevanceKr || (!this.isObjectiveRelevanceKr && okrData.hasSub)) && (
|
|
166
204
|
<ItemKrContainer className={`${isExpand ? "slideIn" : "slideOut"}`}>
|
|
167
|
-
{
|
|
168
|
-
|
|
205
|
+
{/* {
|
|
206
|
+
okrData.Krs.length > 0 && okrData.Krs.map((item: any, index: number) => (this.isObjectiveRelevanceKr ? (
|
|
169
207
|
<ItemTop key={item.mileStoneId}>
|
|
170
208
|
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId === (active.workId || active.mileStoneId)} />
|
|
171
209
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
172
|
-
<Tooltip placement="top" overlay={
|
|
210
|
+
<Tooltip placement="top" overlay={htmlToText(item.mileStoneName)}>
|
|
173
211
|
<OkrName isKr isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }} />
|
|
174
212
|
</Tooltip>
|
|
175
213
|
</WorkNameWrapper>
|
|
@@ -178,13 +216,14 @@ export default class Item extends PureComponent<Props, State> {
|
|
|
178
216
|
<ItemTop key={item.mileStoneId}>
|
|
179
217
|
<Radio onClick={(e: any) => this.onSelect(e, data.Krs[index])} active={active && item.mileStoneId === (active.workId || active.mileStoneId)} />
|
|
180
218
|
<WorkNameWrapper isShowKr={isShowKr}>
|
|
181
|
-
<Tooltip placement="top" overlay={
|
|
219
|
+
<Tooltip placement="top" overlay={htmlToText(item.mileStoneName)}>
|
|
182
220
|
<OkrName isKr isShowKr={isShowKr} dangerouslySetInnerHTML={{ __html: `KR${index + 1}:${item.mileStoneName}` }} />
|
|
183
221
|
</Tooltip>
|
|
184
222
|
</WorkNameWrapper>
|
|
185
223
|
</ItemTop>
|
|
186
224
|
) : ""))
|
|
187
|
-
}
|
|
225
|
+
} */}
|
|
226
|
+
{this.renderItemKr()}
|
|
188
227
|
</ItemKrContainer>
|
|
189
228
|
)
|
|
190
229
|
}
|
|
@@ -66,6 +66,11 @@ export function CreateCycle({
|
|
|
66
66
|
const [cycleSetting, setCycleSetting] = useState<any>();
|
|
67
67
|
|
|
68
68
|
useEffect(() => {
|
|
69
|
+
const settings = localStorage.getItem("OKR_CYCLE_SETTING");
|
|
70
|
+
if (settings) {
|
|
71
|
+
setCycleSetting(JSON.parse(settings));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
69
74
|
const url = getApiUrl("okr/cycleSetting");
|
|
70
75
|
taker(url, "GET").then((res) => {
|
|
71
76
|
if (res.Code == 1) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { useEffect, useState } from
|
|
2
|
-
import { getUserInfo } from
|
|
3
|
-
import { getCycleSetting } from
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
|
+
import { getUserInfo } from '../../utils/bs-global'
|
|
3
|
+
import { getCycleSetting } from './request-api'
|
|
4
4
|
|
|
5
5
|
function InitCycleSetting(props) {
|
|
6
6
|
const { SetCycleModal } = props;
|
|
@@ -8,10 +8,13 @@ function InitCycleSetting(props) {
|
|
|
8
8
|
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
if (
|
|
11
|
-
localStorage.getItem(`cycle_setting_stop_show${getUserInfo().Id}`)
|
|
12
|
-
|
|
13
|
-
)
|
|
11
|
+
localStorage.getItem(`cycle_setting_stop_show${getUserInfo().Id}`) ==
|
|
12
|
+
'true'
|
|
13
|
+
)
|
|
14
|
+
return
|
|
15
|
+
localStorage.removeItem("OKR_CYCLE_SETTING");
|
|
14
16
|
getCycleSetting().then((res) => {
|
|
17
|
+
localStorage.setItem("OKR_CYCLE_SETTING", JSON.stringify(res?.Data || {}));
|
|
15
18
|
const { hasSetting } = res.Data;
|
|
16
19
|
if (!hasSetting) setVisible(true);
|
|
17
20
|
});
|
|
@@ -21,7 +24,7 @@ function InitCycleSetting(props) {
|
|
|
21
24
|
<SetCycleModal
|
|
22
25
|
visible={visible}
|
|
23
26
|
onCancel={() => setVisible(false)}
|
|
24
|
-
onRefresh={() => location.reload()}
|
|
27
|
+
onRefresh={() => window.location.reload()}
|
|
25
28
|
/>
|
|
26
29
|
);
|
|
27
30
|
}
|
|
@@ -42,9 +42,6 @@ export const okrCrowd = async (param: ListParam) => {
|
|
|
42
42
|
export const getOkrInfoWithListData = async function (okrId) {
|
|
43
43
|
return rget("v1")(`okr/list/specificOkr?okrId=${okrId}`);
|
|
44
44
|
};
|
|
45
|
-
export const getOkrSetting = async function () {
|
|
46
|
-
return rget("v1")("okr/cycleSetting").then((res) => res.Data);
|
|
47
|
-
};
|
|
48
45
|
|
|
49
46
|
export const okrList = async (param: ListParam) => {
|
|
50
47
|
const res = await rpost("v1")(`okr/list?toUserId=${param.toUserId}`, {
|
|
@@ -65,12 +62,15 @@ export const visitOkrCyclePag = async function (toUserId) {
|
|
|
65
62
|
};
|
|
66
63
|
|
|
67
64
|
export const getCycleSetting = async (): Promise<{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
65
|
+
Code: number;
|
|
66
|
+
Data: {
|
|
67
|
+
hasSetting: boolean;
|
|
68
|
+
isOpenCustom: boolean;
|
|
69
|
+
isOpenMonth: boolean;
|
|
70
|
+
isOpenQuarter: boolean;
|
|
71
|
+
isOpenYear: boolean;
|
|
72
|
+
isOpenBimonthly: boolean;
|
|
73
|
+
isOpenHalfYear: boolean;
|
|
74
|
+
yearStartMonth: number;
|
|
75
|
+
}
|
|
76
76
|
}> => rget("v1")("okr/cycleSetting");
|
package/yarn-error.log
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
/usr/local/bin/node /usr/local/bin/yarn
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.10
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
12.22.1
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
darwin x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
|
|
22
|
+
at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "@titaui/pc",
|
|
27
|
+
<<<<<<< HEAD
|
|
28
|
+
"version": "1.2.22",
|
|
29
|
+
=======
|
|
30
|
+
"version": "1.2.13",
|
|
31
|
+
>>>>>>> master
|
|
32
|
+
"nameCN": "",
|
|
33
|
+
"description": "",
|
|
34
|
+
"main": "src/index.js",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"storybook": "start-storybook -p 6006 --no-dll",
|
|
37
|
+
"start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
|
|
38
|
+
"build-storybook": "build-storybook --docs --no-dll",
|
|
39
|
+
"build:es": "babel src -d es --ignore **/__tests__",
|
|
40
|
+
"build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
|
|
41
|
+
"build:umd": "webpack --config ./.scripts/webpack.umd.js",
|
|
42
|
+
"build": "npm run build:lib && npm run build:es && npm run build:umd"
|
|
43
|
+
},
|
|
44
|
+
"author": "",
|
|
45
|
+
"license": "ISC",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"del": "^6.0.0",
|
|
48
|
+
"gulp": "^3.x",
|
|
49
|
+
"gulp-autoprefixer": "^7.0.1",
|
|
50
|
+
"gulp-babel": "^8.0.0",
|
|
51
|
+
"gulp-concat": "^2.6.1",
|
|
52
|
+
"gulp-cssbeautify": "^3.0.0",
|
|
53
|
+
"gulp-cssnano": "^2.1.3",
|
|
54
|
+
"gulp-filesize": "0.0.6",
|
|
55
|
+
"gulp-postcss": "^9.0.0",
|
|
56
|
+
"gulp-rename": "^2.0.0",
|
|
57
|
+
"gulp-replace": "^1.0.0",
|
|
58
|
+
"gulp-sass": "^4.1.0",
|
|
59
|
+
"gulp-sourcemaps": "^2.6.5",
|
|
60
|
+
"sass-resources-loader": "^2.2.1"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@titaui/dagre": "^0.8.8-pre",
|
|
64
|
+
"@titaui/rc-tree2": "^4.1.15",
|
|
65
|
+
"@titaui/rc-trigger": "^5.2.5",
|
|
66
|
+
"@titaui/react-flow-renderer": "9.5.4",
|
|
67
|
+
"@titaui/toast": "^1.0.0",
|
|
68
|
+
"axios": "^0.21.1",
|
|
69
|
+
"classnames": "^2.2.6",
|
|
70
|
+
"clone-deep": "^4.0.1",
|
|
71
|
+
"d3-cloud": "^1.2.5",
|
|
72
|
+
"dayjs": "^1.10.4",
|
|
73
|
+
"html2canvas": "^1.0.0-rc.7",
|
|
74
|
+
"moment": "^2.29.1",
|
|
75
|
+
"qs": "^6.10.1",
|
|
76
|
+
"rc-checkbox": "^2.3.2",
|
|
77
|
+
"rc-dialog": "8.5.2",
|
|
78
|
+
"rc-drawer": "^4.3.1",
|
|
79
|
+
"rc-input-number": "^5.0.0",
|
|
80
|
+
"rc-pagination": "^3.1.6",
|
|
81
|
+
"rc-queue-anim": "1.4.1",
|
|
82
|
+
"rc-select": "^12.1.7",
|
|
83
|
+
"rc-switch": "^3.2.2",
|
|
84
|
+
"rc-table": "^7.13.2",
|
|
85
|
+
"rc-tabs": "^11.7.3",
|
|
86
|
+
"rc-tooltip": "^5.1.1",
|
|
87
|
+
"rc-tree": "^4.1.5",
|
|
88
|
+
"rc-trigger": "^5.2.3",
|
|
89
|
+
"rc-upload": "^4.2.0-alpha.0",
|
|
90
|
+
"rc-util": "^5.13.1",
|
|
91
|
+
"react-collapse": "^5.1.0",
|
|
92
|
+
"react-perfect-scrollbar": "^1.5.2",
|
|
93
|
+
"url-parse": "^1.5.1",
|
|
94
|
+
"uuid": "^3.1.0",
|
|
95
|
+
"wordcloud": "^1.2.2"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
yarn manifest:
|
|
100
|
+
No manifest
|
|
101
|
+
|
|
102
|
+
Lockfile:
|
|
103
|
+
No lockfile
|