component-shipinlv 2.2.5 → 2.2.7
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/dist/ActiveAccountMode/task/index.js +40 -25
- package/dist/UI/Money/index.css.js +1 -1
- package/dist/UI/Money/index.js +18 -14
- package/dist/UI/PageContentWarp.js +2 -2
- package/dist/UI/PageContentWarp.less +9 -1
- package/dist/VideoPublish/account-manage/home.js +4 -0
- package/dist/VideoPublish/account-manage/list.d.ts +1 -0
- package/dist/VideoPublish/account-manage/list.js +5 -2
- package/dist/VideoPublish/account-manage/setting/index.js +42 -3
- package/dist/VideoPublish/task-list/plan/list.js +2 -0
- package/dist/VideoPublish/task-list/plan/operate.js +2 -1
- package/dist/VideoPublish/task-list/plan/query.js +41 -1
- package/dist/VideoPublish/task-list/plan/query.less +6 -0
- package/dist/VideoPublish/task-list/plan/status.js +1 -1
- package/dist/VideoPublish/video-account/base-info.d.ts +1 -0
- package/dist/VideoPublish/video-account/base-info.js +6 -2
- package/dist/VideoPublish/video-account/create.js +2 -2
- package/dist/VideoPublish/video-account/index.js +13 -9
- package/dist/VideoPublish/video-account/index.less +10 -0
- package/dist/VideoPublish/video-account/query.js +21 -0
- package/dist/VideoPublish/video-account/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.d.ts +9 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/kind.d.ts +16 -0
- package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +41 -3
- package/dist/component/AccountBan/index.d.ts +7 -0
- package/dist/component/AccountBan/index.js +10 -0
- package/dist/component/AccountBan/index.less +12 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/accountManageSettingConfig.js +2 -2
- package/dist/lib/fs.js +2 -1
- package/dist/lib/notification.js +1 -0
- package/dist/lib/save-path.js +19 -15
- package/dist/lib/save-path.less +2 -2
- package/dist/service/api/VideoPublishStatisticOperationController.d.ts +5 -0
- package/dist/service/api/VideoPublishStatisticOperationController.js +23 -0
- package/dist/types/VideoPublish.d.ts +1 -0
- package/dist/types/VideoPublishStatisticOperation.d.ts +7 -0
- package/dist/types/VideoPublishTaskPlan.d.ts +2 -0
- package/dist/types/VideoPublishVideoAccount.d.ts +2 -0
- package/dist/typings/VideoPublishAccountManageSetting.d.ts +2 -0
- package/package.json +3 -2
@@ -0,0 +1,173 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
4
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
5
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
6
|
+
import React, { useState } from 'react';
|
7
|
+
import * as VideoPublishStatisticOperationController from "../../../service/api/VideoPublishStatisticOperationController";
|
8
|
+
import { useRequest } from "@umijs/hooks";
|
9
|
+
import dayjs from "dayjs";
|
10
|
+
import "./index.less";
|
11
|
+
import PageContentWarp from "../../../UI/PageContentWarp";
|
12
|
+
import VideoPublishStatisticAccountTrendQuery from "./query";
|
13
|
+
import { Line } from '@ant-design/plots';
|
14
|
+
import VideoPublishStatisticOperationKindListPage from "./kind-list";
|
15
|
+
import sleep from "../../../lib/sleep";
|
16
|
+
import { VideoPublishStatisticOperationKindDict } from "../kind";
|
17
|
+
import { Empty } from "antd";
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
19
|
+
// const ChartBoxId = 'video-publish-statistic-account-trend';
|
20
|
+
var VideoPublishStatisticAccountTrend = function VideoPublishStatisticAccountTrend(_ref) {
|
21
|
+
var accountId = _ref.accountId,
|
22
|
+
env = _ref.env;
|
23
|
+
var _useState = useState({
|
24
|
+
time: Date.now()
|
25
|
+
}),
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
27
|
+
query = _useState2[0],
|
28
|
+
setQuery = _useState2[1];
|
29
|
+
var _useState3 = useState('play'),
|
30
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
31
|
+
kind = _useState4[0],
|
32
|
+
setKind = _useState4[1];
|
33
|
+
var _useState5 = useState([]),
|
34
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
35
|
+
listData = _useState6[0],
|
36
|
+
setListData = _useState6[1];
|
37
|
+
var _useState7 = useState([]),
|
38
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
39
|
+
dataList = _useState8[0],
|
40
|
+
setDataList = _useState8[1];
|
41
|
+
var _useState9 = useState(false),
|
42
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
43
|
+
isShowChart = _useState10[0],
|
44
|
+
setIsShowChart = _useState10[1];
|
45
|
+
var config = {
|
46
|
+
xField: 'day',
|
47
|
+
yField: 'value',
|
48
|
+
colorField: 'kindName',
|
49
|
+
point: {
|
50
|
+
shapeField: 'circle',
|
51
|
+
sizeField: 4
|
52
|
+
},
|
53
|
+
interaction: {
|
54
|
+
tooltip: {
|
55
|
+
marker: false
|
56
|
+
}
|
57
|
+
},
|
58
|
+
style: {
|
59
|
+
lineWidth: 2
|
60
|
+
},
|
61
|
+
// label: {
|
62
|
+
// // 可手动配置 label 数据标签位置
|
63
|
+
// // position: 'middle',
|
64
|
+
// // 'top', 'bottom', 'middle',
|
65
|
+
// // 配置样式
|
66
|
+
// style: {
|
67
|
+
// fill: '#FFFFFF',
|
68
|
+
// opacity: 0.6,
|
69
|
+
// },
|
70
|
+
// },
|
71
|
+
xAxis: {
|
72
|
+
label: {
|
73
|
+
autoHide: false,
|
74
|
+
autoRotate: false
|
75
|
+
}
|
76
|
+
},
|
77
|
+
// yAxis: {
|
78
|
+
// min: 1,
|
79
|
+
// },
|
80
|
+
meta: {
|
81
|
+
day: {
|
82
|
+
alias: '日期',
|
83
|
+
min: 1
|
84
|
+
},
|
85
|
+
value: {
|
86
|
+
alias: '值'
|
87
|
+
// min: 0,
|
88
|
+
}
|
89
|
+
}
|
90
|
+
};
|
91
|
+
|
92
|
+
var _useRequest = useRequest(function () {
|
93
|
+
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
94
|
+
return VideoPublishStatisticOperationController.accountTrend({
|
95
|
+
year: postQuery.time > 100000 ? dayjs(postQuery.time).year() : new Date().getFullYear(),
|
96
|
+
month: postQuery.time > 100000 ? parseInt(dayjs(postQuery.time).format('MM')) : 1,
|
97
|
+
accountId: accountId
|
98
|
+
}, {
|
99
|
+
env: env
|
100
|
+
});
|
101
|
+
}, {
|
102
|
+
onSuccess: function () {
|
103
|
+
var _onSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) {
|
104
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
105
|
+
while (1) switch (_context.prev = _context.next) {
|
106
|
+
case 0:
|
107
|
+
// 补齐 日期
|
108
|
+
result.forEach(function (items, i) {
|
109
|
+
items.kindName = VideoPublishStatisticOperationKindDict[items.kind].title || items.kind;
|
110
|
+
});
|
111
|
+
setListData(_toConsumableArray(result));
|
112
|
+
onDataList(result);
|
113
|
+
_context.next = 5;
|
114
|
+
return sleep(500);
|
115
|
+
case 5:
|
116
|
+
setIsShowChart(true);
|
117
|
+
case 6:
|
118
|
+
case "end":
|
119
|
+
return _context.stop();
|
120
|
+
}
|
121
|
+
}, _callee);
|
122
|
+
}));
|
123
|
+
function onSuccess(_x) {
|
124
|
+
return _onSuccess.apply(this, arguments);
|
125
|
+
}
|
126
|
+
return onSuccess;
|
127
|
+
}()
|
128
|
+
}),
|
129
|
+
run = _useRequest.run,
|
130
|
+
loading = _useRequest.loading,
|
131
|
+
error = _useRequest.error;
|
132
|
+
var onDataList = function onDataList() {
|
133
|
+
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : listData;
|
134
|
+
var currentKind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : kind;
|
135
|
+
var dataList = [];
|
136
|
+
list.forEach(function (item) {
|
137
|
+
if (currentKind !== item.kind) {
|
138
|
+
return;
|
139
|
+
}
|
140
|
+
dataList.push(item);
|
141
|
+
});
|
142
|
+
console.log('dataList:', list, dataList);
|
143
|
+
setDataList([].concat(dataList));
|
144
|
+
};
|
145
|
+
var _onQuery = function onQuery(query) {
|
146
|
+
setQuery(_objectSpread({}, query));
|
147
|
+
console.log('on query:', query);
|
148
|
+
run(query);
|
149
|
+
};
|
150
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
151
|
+
className: "videoPublishStatisticAccountTrend",
|
152
|
+
title: /*#__PURE__*/_jsx(VideoPublishStatisticOperationKindListPage, {
|
153
|
+
kind: kind,
|
154
|
+
onChange: function onChange(kind) {
|
155
|
+
setKind(kind);
|
156
|
+
onDataList(listData, kind);
|
157
|
+
}
|
158
|
+
}),
|
159
|
+
extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticAccountTrendQuery, {
|
160
|
+
loading: loading,
|
161
|
+
defaultQuery: query,
|
162
|
+
onQuery: function onQuery(query) {
|
163
|
+
return _onQuery(query);
|
164
|
+
}
|
165
|
+
}),
|
166
|
+
children: dataList.length == 0 ? /*#__PURE__*/_jsx(Empty, {
|
167
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
168
|
+
}) : isShowChart && /*#__PURE__*/_jsx(Line, _objectSpread(_objectSpread({}, config), {}, {
|
169
|
+
data: dataList
|
170
|
+
}))
|
171
|
+
});
|
172
|
+
};
|
173
|
+
export default VideoPublishStatisticAccountTrend;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface Props {
|
3
|
+
kind: VideoPublishStatisticOperation.Kind;
|
4
|
+
onChange: (kind: VideoPublishStatisticOperation.Kind) => void;
|
5
|
+
}
|
6
|
+
declare const VideoPublishStatisticOperationKindListPage: React.FC<Props>;
|
7
|
+
export default VideoPublishStatisticOperationKindListPage;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { VideoPublishStatisticOperationKindList } from "../kind";
|
2
|
+
import { Radio } from "antd";
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
+
var VideoPublishStatisticOperationKindListPage = function VideoPublishStatisticOperationKindListPage(_ref) {
|
5
|
+
var kind = _ref.kind,
|
6
|
+
_onChange = _ref.onChange;
|
7
|
+
return /*#__PURE__*/_jsx("div", {
|
8
|
+
children: /*#__PURE__*/_jsx(Radio.Group, {
|
9
|
+
value: kind,
|
10
|
+
onChange: function onChange(e) {
|
11
|
+
return _onChange(e.target.value);
|
12
|
+
},
|
13
|
+
children: VideoPublishStatisticOperationKindList.map(function (items) {
|
14
|
+
return /*#__PURE__*/_jsx(Radio.Button, {
|
15
|
+
value: items.kind,
|
16
|
+
children: items.title
|
17
|
+
}, items.kind);
|
18
|
+
})
|
19
|
+
})
|
20
|
+
});
|
21
|
+
};
|
22
|
+
export default VideoPublishStatisticOperationKindListPage;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './query.less';
|
3
|
+
interface Props {
|
4
|
+
loading: boolean;
|
5
|
+
defaultQuery: VideoPublishStatisticOperation.ListQuery;
|
6
|
+
onQuery: (query: VideoPublishStatisticOperation.ListQuery) => void;
|
7
|
+
}
|
8
|
+
declare const VideoPublishStatisticAccountTrendQuery: React.FC<Props>;
|
9
|
+
export default VideoPublishStatisticAccountTrendQuery;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import React from 'react';
|
3
|
+
import { Button, DatePicker, Form, Space } from "antd";
|
4
|
+
import "./query.less";
|
5
|
+
import dayjs from "dayjs";
|
6
|
+
import { SearchOutlined } from "@ant-design/icons";
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
var VideoPublishStatisticAccountTrendQuery = function VideoPublishStatisticAccountTrendQuery(_ref) {
|
10
|
+
var loading = _ref.loading,
|
11
|
+
defaultQuery = _ref.defaultQuery,
|
12
|
+
_ref$onQuery = _ref.onQuery,
|
13
|
+
onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
|
14
|
+
var _Form$useForm = Form.useForm(),
|
15
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
16
|
+
form = _Form$useForm2[0];
|
17
|
+
var onFinish = function onFinish() {
|
18
|
+
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
19
|
+
onQuery({
|
20
|
+
time: values.time.valueOf()
|
21
|
+
});
|
22
|
+
};
|
23
|
+
return /*#__PURE__*/_jsx("div", {
|
24
|
+
className: "videoPublishStatisticVaccountTrendQuery",
|
25
|
+
children: /*#__PURE__*/_jsx(Form, {
|
26
|
+
form: form,
|
27
|
+
initialValues: {
|
28
|
+
time: dayjs(defaultQuery.time)
|
29
|
+
},
|
30
|
+
disabled: loading,
|
31
|
+
onFinish: onFinish,
|
32
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
33
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
34
|
+
name: "time",
|
35
|
+
children: /*#__PURE__*/_jsx(DatePicker
|
36
|
+
// defaultValue={ dayjs( defaultQuery.time ) }
|
37
|
+
, {
|
38
|
+
allowClear: false,
|
39
|
+
picker: "month"
|
40
|
+
})
|
41
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
42
|
+
children: /*#__PURE__*/_jsx(Button, {
|
43
|
+
icon: /*#__PURE__*/_jsx(SearchOutlined, {}),
|
44
|
+
type: "primary",
|
45
|
+
htmlType: "submit",
|
46
|
+
loading: loading,
|
47
|
+
children: "\u641C\u7D22"
|
48
|
+
})
|
49
|
+
})]
|
50
|
+
})
|
51
|
+
})
|
52
|
+
});
|
53
|
+
};
|
54
|
+
export default VideoPublishStatisticAccountTrendQuery;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface Props {
|
3
|
+
kind: VideoPublishStatisticOperation.Kind;
|
4
|
+
}
|
5
|
+
interface VideoPublishStatisticOperationKindDict {
|
6
|
+
[kind: string]: VideoPublishStatisticOperationKindList;
|
7
|
+
}
|
8
|
+
interface VideoPublishStatisticOperationKindList {
|
9
|
+
kind: VideoPublishStatisticOperation.Kind;
|
10
|
+
title: string;
|
11
|
+
color: string;
|
12
|
+
}
|
13
|
+
export declare const VideoPublishStatisticOperationKindList: VideoPublishStatisticOperationKindList[];
|
14
|
+
export declare const VideoPublishStatisticOperationKindDict: VideoPublishStatisticOperationKindDict;
|
15
|
+
declare const VideoPublishStatisticOperationKind: React.FC<Props>;
|
16
|
+
export default VideoPublishStatisticOperationKind;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
// 'cancel-fans' | 'comment' | 'digg' | 'homepage-view' | 'net-fans' | 'play' | 'share' | 'total-fans';
|
4
|
+
export var VideoPublishStatisticOperationKindList = [{
|
5
|
+
kind: 'play',
|
6
|
+
title: '播放',
|
7
|
+
color: '#F60'
|
8
|
+
}, {
|
9
|
+
kind: 'digg',
|
10
|
+
title: '点赞',
|
11
|
+
color: ''
|
12
|
+
}, {
|
13
|
+
kind: 'share',
|
14
|
+
title: '分享',
|
15
|
+
color: '#F60'
|
16
|
+
}, {
|
17
|
+
// ENUM('wait', 'progress', 'finish', 'fail')
|
18
|
+
kind: 'comment',
|
19
|
+
title: '评论数',
|
20
|
+
color: 'blue'
|
21
|
+
}, {
|
22
|
+
kind: 'net-fans',
|
23
|
+
title: '净增粉丝',
|
24
|
+
color: '#F60'
|
25
|
+
}, {
|
26
|
+
kind: 'cancel-fans',
|
27
|
+
title: '掉粉',
|
28
|
+
color: 'green'
|
29
|
+
}, {
|
30
|
+
kind: 'homepage-view',
|
31
|
+
title: '主页访问',
|
32
|
+
color: 'red'
|
33
|
+
}, {
|
34
|
+
kind: 'total-fans',
|
35
|
+
title: '总粉丝数',
|
36
|
+
color: '#F60'
|
37
|
+
}];
|
38
|
+
export var VideoPublishStatisticOperationKindDict = function () {
|
39
|
+
var dict = {};
|
40
|
+
VideoPublishStatisticOperationKindList.forEach(function (items) {
|
41
|
+
dict[items.kind] = items;
|
42
|
+
});
|
43
|
+
return dict;
|
44
|
+
}();
|
45
|
+
var VideoPublishStatisticOperationKind = function VideoPublishStatisticOperationKind(_ref) {
|
46
|
+
var kind = _ref.kind;
|
47
|
+
var itemData = VideoPublishStatisticOperationKindDict[kind] || {
|
48
|
+
icon: '',
|
49
|
+
title: '',
|
50
|
+
color: ''
|
51
|
+
};
|
52
|
+
return kind ? /*#__PURE__*/_jsx("span", {
|
53
|
+
color: itemData.color,
|
54
|
+
children: itemData.title || kind
|
55
|
+
}) : null;
|
56
|
+
};
|
57
|
+
export default VideoPublishStatisticOperationKind;
|
@@ -5,13 +5,17 @@ import React, { useState } from "react";
|
|
5
5
|
import "./list.less";
|
6
6
|
import { useRequest } from "@umijs/hooks";
|
7
7
|
import * as VideoPublishStatisticOperationController from "../../../service/api/VideoPublishStatisticOperationController";
|
8
|
-
import { Table } from "antd";
|
8
|
+
import { Button, Table, Tag } from "antd";
|
9
9
|
import VideoPublishVideoAccountBaseInfo from "../../video-account/base-info";
|
10
10
|
import LayoutContent from "../../../UI/LayoutContent";
|
11
11
|
import VideoPublishStatisticOperationListQuery from "./query";
|
12
12
|
import dayjs from "dayjs";
|
13
13
|
import Money from "../../../UI/Money";
|
14
|
+
import Tool from "../../../lib/Tool";
|
15
|
+
import VideoPublishStatisticAccountTrend from "../account-trend";
|
14
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
19
|
var VideoPublishStatisticOperationList = function VideoPublishStatisticOperationList(_ref) {
|
16
20
|
var env = _ref.env;
|
17
21
|
var _useState = useState([]),
|
@@ -109,11 +113,12 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
|
|
109
113
|
pre: "",
|
110
114
|
end: "",
|
111
115
|
value: netFans,
|
112
|
-
precision: 0
|
116
|
+
precision: 0,
|
117
|
+
color: netFans < 0 ? '#C00' : ''
|
113
118
|
});
|
114
119
|
}
|
115
120
|
}, {
|
116
|
-
title: '
|
121
|
+
title: '掉粉',
|
117
122
|
dataIndex: 'cancelFans',
|
118
123
|
key: 'cancelFans',
|
119
124
|
render: function render(cancelFans) {
|
@@ -148,6 +153,21 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
|
|
148
153
|
precision: 0
|
149
154
|
});
|
150
155
|
}
|
156
|
+
}, {
|
157
|
+
title: '操作',
|
158
|
+
dataIndex: '_',
|
159
|
+
key: '_',
|
160
|
+
render: function render(_, record) {
|
161
|
+
return /*#__PURE__*/_jsx(Button, {
|
162
|
+
type: "link",
|
163
|
+
size: "small",
|
164
|
+
onClick: function onClick() {
|
165
|
+
var _record$accountInfo;
|
166
|
+
return onDetail((record === null || record === void 0 || (_record$accountInfo = record.accountInfo) === null || _record$accountInfo === void 0 ? void 0 : _record$accountInfo.id) || 0, (record === null || record === void 0 ? void 0 : record.accountInfo.nickname) || '');
|
167
|
+
},
|
168
|
+
children: "\u8D8B\u52BF\u56FE"
|
169
|
+
});
|
170
|
+
}
|
151
171
|
}];
|
152
172
|
var _onQuery = function onQuery(query) {
|
153
173
|
setQuery(_objectSpread({}, query));
|
@@ -167,6 +187,9 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
|
|
167
187
|
});
|
168
188
|
}, {
|
169
189
|
onSuccess: function onSuccess(result) {
|
190
|
+
result.list.sort(function (a, b) {
|
191
|
+
return b.accountInfo.id - a.accountInfo.id;
|
192
|
+
});
|
170
193
|
setListData(_toConsumableArray(result.list));
|
171
194
|
// setPagination( result.pagination );
|
172
195
|
}
|
@@ -174,6 +197,21 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
|
|
174
197
|
runTaskList = _useRequest.run,
|
175
198
|
loadingTaskList = _useRequest.loading,
|
176
199
|
errorTaskList = _useRequest.error;
|
200
|
+
var onDetail = function onDetail(accountId, nickname) {
|
201
|
+
Tool.drawer({
|
202
|
+
title: /*#__PURE__*/_jsxs(_Fragment, {
|
203
|
+
children: ["\u8D8B\u52BF\u56FE\uFF1A ", /*#__PURE__*/_jsx(Tag, {
|
204
|
+
color: "blue",
|
205
|
+
children: nickname
|
206
|
+
})]
|
207
|
+
}),
|
208
|
+
width: 980,
|
209
|
+
content: /*#__PURE__*/_jsx(VideoPublishStatisticAccountTrend, {
|
210
|
+
accountId: accountId,
|
211
|
+
env: env
|
212
|
+
})
|
213
|
+
});
|
214
|
+
};
|
177
215
|
return /*#__PURE__*/_jsx(LayoutContent, {
|
178
216
|
loading: loadingTaskList,
|
179
217
|
error: errorTaskList,
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
var AccountBan = function AccountBan(_ref) {
|
4
|
+
var isBan = _ref.isBan;
|
5
|
+
return isBan ? /*#__PURE__*/_jsx("span", {
|
6
|
+
className: "account-ban",
|
7
|
+
children: "\u88AB\u7981"
|
8
|
+
}) : null;
|
9
|
+
};
|
10
|
+
export default AccountBan;
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "success" | "error" | "warning" | "info", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -2,12 +2,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import store from "./store";
|
3
3
|
var AccountManageSettingConfigKey = 'account-manage-setting';
|
4
4
|
var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
|
5
|
-
var _window$getBridge, _window, _window$getBridge$
|
5
|
+
var _window$getBridge, _window, _window$getBridge$get;
|
6
6
|
if (data) {
|
7
7
|
store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
|
8
8
|
return data;
|
9
9
|
}
|
10
|
-
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge
|
10
|
+
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$get = _window$getBridge.getChromiumPath) === null || _window$getBridge$get === void 0 ? void 0 : _window$getBridge$get.call(_window$getBridge)) || '';
|
11
11
|
|
12
12
|
// console.log('AccountManageSettingConfig get:', chromePath );
|
13
13
|
|
package/dist/lib/fs.js
CHANGED
@@ -4,7 +4,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import { VideoMineType } from "./allow-mine-type";
|
5
5
|
import getFileExt from "./getFileExt";
|
6
6
|
export var fs = function fs() {
|
7
|
-
|
7
|
+
var _window$getBridge;
|
8
|
+
return (_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.fs;
|
8
9
|
};
|
9
10
|
var path = function path() {
|
10
11
|
return window.getBridge().path;
|
package/dist/lib/notification.js
CHANGED
@@ -4,6 +4,7 @@ import Tool from "./Tool";
|
|
4
4
|
var notification = {
|
5
5
|
notification: function notification(type, message, description) {
|
6
6
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
7
|
+
// @ts-ignore
|
7
8
|
Notification[type](_objectSpread(_objectSpread({}, options), {}, {
|
8
9
|
message: message,
|
9
10
|
description: description
|
package/dist/lib/save-path.js
CHANGED
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
5
|
-
import { Input, Button, Space } from 'antd';
|
5
|
+
import { Input, Button, Space, Tooltip } from 'antd';
|
6
6
|
import "./save-path.less";
|
7
7
|
import { FolderOpenOutlined, FolderOutlined } from '@ant-design/icons';
|
8
8
|
import Tool from "./Tool";
|
@@ -149,20 +149,24 @@ var SavePath = function SavePath(_ref) {
|
|
149
149
|
}), /*#__PURE__*/_jsx("div", {
|
150
150
|
className: "option",
|
151
151
|
children: /*#__PURE__*/_jsxs(Space, {
|
152
|
-
children: [/*#__PURE__*/_jsx(
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
152
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
153
|
+
title: path ? '更改' : '选择',
|
154
|
+
children: /*#__PURE__*/_jsx(Button, {
|
155
|
+
size: size,
|
156
|
+
onClick: onSelectDir,
|
157
|
+
loading: loadingSelectDir,
|
158
|
+
disabled: disabled,
|
159
|
+
children: /*#__PURE__*/_jsx(FolderOutlined, {})
|
160
|
+
})
|
161
|
+
}), !hiddenOpenDir && /*#__PURE__*/_jsx(Tooltip, {
|
162
|
+
title: "\u6253\u5F00",
|
163
|
+
children: /*#__PURE__*/_jsx(Button, {
|
164
|
+
size: size,
|
165
|
+
onClick: onOpenDir,
|
166
|
+
loading: loadingOpenDir,
|
167
|
+
disabled: !path || disabled,
|
168
|
+
children: /*#__PURE__*/_jsx(FolderOpenOutlined, {})
|
169
|
+
})
|
166
170
|
})]
|
167
171
|
})
|
168
172
|
})]
|
package/dist/lib/save-path.less
CHANGED
@@ -5,3 +5,8 @@ export declare function list(body: {
|
|
5
5
|
current: number;
|
6
6
|
pageSize: number;
|
7
7
|
}, options?: Global.RequestOptions): Promise<VideoPublishStatisticOperation.ListResult>;
|
8
|
+
export declare function accountTrend(body: {
|
9
|
+
accountId: number;
|
10
|
+
year: number;
|
11
|
+
month: number;
|
12
|
+
}, options?: Global.RequestOptions): Promise<VideoPublishStatisticOperation.AccountTrend[]>;
|
@@ -25,4 +25,27 @@ function _list() {
|
|
25
25
|
}, _callee);
|
26
26
|
}));
|
27
27
|
return _list.apply(this, arguments);
|
28
|
+
}
|
29
|
+
export function accountTrend(_x3, _x4) {
|
30
|
+
return _accountTrend.apply(this, arguments);
|
31
|
+
}
|
32
|
+
function _accountTrend() {
|
33
|
+
_accountTrend = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
|
34
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
35
|
+
while (1) switch (_context2.prev = _context2.next) {
|
36
|
+
case 0:
|
37
|
+
return _context2.abrupt("return", request(PublishDomainApi("user/videoAccountStatisticOperation/accountTrend", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
38
|
+
method: 'POST',
|
39
|
+
headers: {
|
40
|
+
'Content-Type': 'application/json'
|
41
|
+
},
|
42
|
+
data: _objectSpread({}, body)
|
43
|
+
}, options || {})));
|
44
|
+
case 1:
|
45
|
+
case "end":
|
46
|
+
return _context2.stop();
|
47
|
+
}
|
48
|
+
}, _callee2);
|
49
|
+
}));
|
50
|
+
return _accountTrend.apply(this, arguments);
|
28
51
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
declare namespace VideoPublishStatisticOperation {
|
2
|
+
type Kind = 'cancel-fans' | 'comment' | 'digg' | 'homepage-view' | 'net-fans' | 'play' | 'share' | 'total-fans';
|
2
3
|
interface List {
|
3
4
|
accountInfo: VideoPublishVideoAccount.BaseInfo;
|
4
5
|
}
|
@@ -9,4 +10,10 @@ declare namespace VideoPublishStatisticOperation {
|
|
9
10
|
interface ListQuery {
|
10
11
|
time: number;
|
11
12
|
}
|
13
|
+
interface AccountTrend {
|
14
|
+
kind: string;
|
15
|
+
value: number;
|
16
|
+
day: number;
|
17
|
+
kindName?: string;
|
18
|
+
}
|
12
19
|
}
|