You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1055 lines
49 KiB
1055 lines
49 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92501],{
|
|
|
|
/***/ 70089:
|
|
/*!******************************************************!*\
|
|
!*** ./src/components/Spinner/index.tsx + 1 modules ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ Spinner; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(97091);
|
|
;// CONCATENATED MODULE: ./src/components/Spinner/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Spinnermodules = ({"ldsRing":"ldsRing___mpBZC","idsRingWrapper":"idsRingWrapper___Of9_n","ldsring":"ldsring___o0w2t"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/components/Spinner/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var Spinner = (function (_ref) {
|
|
var message = _ref.message,
|
|
className = _ref.className,
|
|
children = _ref.children,
|
|
_ref$style = _ref.style,
|
|
style = _ref$style === void 0 ? {} : _ref$style;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(Spinnermodules.idsRingWrapper, " ").concat(className),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Spinnermodules.ldsRing,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
|
|
}), message ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
style: style,
|
|
children: message
|
|
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})]
|
|
});
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 41765:
|
|
/*!************************************************!*\
|
|
!*** ./src/pages/Search/index.tsx + 4 modules ***!
|
|
\************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ pages_Search; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(18030);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
var input = __webpack_require__(73782);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
|
|
var es_checkbox = __webpack_require__(24905);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
var pagination = __webpack_require__(27092);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules
|
|
var tag = __webpack_require__(12563);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
|
var SearchOutlined = __webpack_require__(42653);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(97091);
|
|
;// CONCATENATED MODULE: ./src/pages/Search/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Searchmodules = ({"flex_box_center":"flex_box_center___HEr9e","flex_space_between":"flex_space_between____iKBP","flex_box_vertical_center":"flex_box_vertical_center___OEtzz","flex_box_center_end":"flex_box_center_end___B6rgq","flex_box_column":"flex_box_column___QNsfK","search-container":"search-container___RW2SM","btn-search":"btn-search___YrTXV","navs-container":"navs-container___vuvs0","navs":"navs___FjRDm","active":"active___FwSXe","search-result-container":"search-result-container___yKXfF","search-panel":"search-panel___OJsfs","search-course-item":"search-course-item___K21lH","lock-search-course-item":"lock-search-course-item___Yy132","desc":"desc___OBHVW","title":"title___OG0X8","mt20":"mt20___etArC","detail":"detail___qf02i","info":"info___ZWG6X","sum":"sum___kgJ8Y","label-red":"label-red___mk7qt","search-footer":"search-footer___H2H20","search-result-body":"search-result-body___xkFWj","tip":"tip___UcZlD","authorname":"authorname___nsmz0","tooltip-content":"tooltip-content___oGakU"});
|
|
;// CONCATENATED MODULE: ./src/pages/Search/bg.jpg
|
|
var bg_namespaceObject = __webpack_require__.p + "static/bg.c9d9c3ca.jpg";
|
|
// EXTERNAL MODULE: ./src/assets/images/icons/lockclose.svg
|
|
var lockclose = __webpack_require__(32903);
|
|
// EXTERNAL MODULE: ./src/components/Spinner/index.tsx + 1 modules
|
|
var Spinner = __webpack_require__(70089);
|
|
// EXTERNAL MODULE: ./src/service/global.ts
|
|
var global = __webpack_require__(21530);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
;// CONCATENATED MODULE: ./src/pages/Search/components/ShixunFilter.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var ShixunFiltermodules = ({"flex_box_center":"flex_box_center___nD1UL","flex_space_between":"flex_space_between___YXIX3","flex_box_vertical_center":"flex_box_vertical_center___ILTuw","flex_box_center_end":"flex_box_center_end___shXFV","flex_box_column":"flex_box_column___MeD_p","wrp":"wrp___wu6nh","menu":"menu___bXfOC","actived":"actived___F7x5z","actived2":"actived2___HgeYt","subTag":"subTag___Mv0Xf","search":"search___k56jn"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Search/components/ShixunFilter.tsx
|
|
|
|
|
|
|
|
var _excluded = ["shixunsList", "dispatch", "location", "history", "onChange"];
|
|
|
|
|
|
|
|
|
|
|
|
var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
var shixunsList = _ref.shixunsList,
|
|
dispatch = _ref.dispatch,
|
|
location = _ref.location,
|
|
history = _ref.history,
|
|
onChange = _ref.onChange,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _useState = (0,_react_17_0_2_react.useState)({
|
|
diff: 0
|
|
}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
query = _useState2[0],
|
|
setQuery = _useState2[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
dispatch({
|
|
type: 'shixunsList/getMenus',
|
|
payload: {}
|
|
});
|
|
}, [shixunsList.name]);
|
|
var difficulty = [{
|
|
name: '全部',
|
|
id: 0
|
|
}, {
|
|
name: '初级',
|
|
id: 1
|
|
}, {
|
|
name: '中级',
|
|
id: 2
|
|
}, {
|
|
name: '中高级',
|
|
id: 3
|
|
}, {
|
|
name: '高级',
|
|
id: 4
|
|
}];
|
|
var dataType = [{
|
|
name: '最新',
|
|
id: 'new'
|
|
}, {
|
|
name: '最热',
|
|
id: 'hot'
|
|
}];
|
|
var menuChange = function menuChange(tag_level, sub_discipline_id, discipline_id) {
|
|
// query.tag_level = tag_level
|
|
// query.tag_id = tag_id
|
|
// query.page = 1
|
|
// query.current_id = current_id
|
|
// query.page = 1
|
|
// dispatch({
|
|
// type: 'shixunsList/getShixuns',
|
|
// payload: { ...query },
|
|
// })
|
|
setQuery({
|
|
tag_level: tag_level,
|
|
sub_discipline_id: sub_discipline_id,
|
|
discipline_id: discipline_id,
|
|
diff: query.diff
|
|
});
|
|
onChange({
|
|
tag_level: tag_level,
|
|
sub_discipline_id: sub_discipline_id,
|
|
discipline_id: discipline_id
|
|
});
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: ShixunFiltermodules.wrp,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "edu-container",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
className: ShixunFiltermodules.menu,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "mr10",
|
|
children: "\u65B9\u5411\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: !query.discipline_id ? ShixunFiltermodules.actived : '',
|
|
onClick: function onClick() {
|
|
menuChange(null, null, null);
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
children: "\u5168\u90E8"
|
|
})
|
|
}), shixunsList.menus && shixunsList.menus.map(function (v, k) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
className: query.discipline_id == v.id ? ShixunFiltermodules.actived : '',
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
onClick: function onClick() {
|
|
menuChange(1, null, v.id);
|
|
},
|
|
children: v.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: v.sub_repertoires.map(function (val, key) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "mt5",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: query.sub_discipline_id == val.id && query.tag_level == 2 ? "".concat(ShixunFiltermodules.actived2, " ").concat(ShixunFiltermodules.subTag) : ShixunFiltermodules.subTag,
|
|
onClick: function onClick() {
|
|
menuChange(2, val.id, v.id);
|
|
},
|
|
children: val.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: "mt5",
|
|
children: val.tags && val.tags.map(function (value, index) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: query.sub_discipline_id == value.id && query.tag_level == 3 ? ShixunFiltermodules.actived2 : '',
|
|
onClick: function onClick() {
|
|
menuChange(3, value.id, v.id);
|
|
},
|
|
children: value.name
|
|
}, index);
|
|
})
|
|
})]
|
|
}, key);
|
|
})
|
|
})]
|
|
}, k);
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
className: ShixunFiltermodules.menu,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "mr10",
|
|
children: "\u7B5B\u9009\uFF1A"
|
|
}), difficulty.map(function (v, k) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: query.diff === v.id ? ShixunFiltermodules.actived : '',
|
|
onClick: function onClick() {
|
|
query.diff = v.id;
|
|
setQuery(objectSpread2_default()({}, query));
|
|
onChange(objectSpread2_default()({}, query));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
children: v.name
|
|
})
|
|
}, k);
|
|
})]
|
|
})]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var ShixunFilter = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var shixunsList = _ref2.shixunsList;
|
|
return {
|
|
shixunsList: shixunsList
|
|
};
|
|
})(ShixunsListPage));
|
|
;// CONCATENATED MODULE: ./src/pages/Search/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Search = input/* default */.Z.Search;
|
|
var Navs = [{
|
|
id: 'subject',
|
|
title: '实践课程'
|
|
}, {
|
|
id: 'shixun',
|
|
title: '实践项目'
|
|
}, {
|
|
id: 'course',
|
|
title: '教学课堂'
|
|
}
|
|
// { id: 'memo', title: '交流问答' },
|
|
];
|
|
var Types = /*#__PURE__*/function (Types) {
|
|
Types[Types["GET_LIST"] = 0] = "GET_LIST";
|
|
Types[Types["CHANGE_PAGE"] = 1] = "CHANGE_PAGE";
|
|
Types[Types["CHANGE_KEYWORD"] = 2] = "CHANGE_KEYWORD";
|
|
Types[Types["CHANGE_TYPE"] = 3] = "CHANGE_TYPE";
|
|
Types[Types["CHANGE_All"] = 4] = "CHANGE_All";
|
|
Types[Types["SET_LOADING"] = 5] = "SET_LOADING";
|
|
return Types;
|
|
}(Types || {});
|
|
function getQueryString(name) {
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
var r = encodeURI(window.location.search).substr(1).match(reg);
|
|
if (r != null) return unescape(r[2]).replace(/\+/g, "%2B");
|
|
return null;
|
|
}
|
|
function reducer(state, action) {
|
|
switch (action.type) {
|
|
case Types.GET_LIST:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
|
|
case Types.CHANGE_PAGE:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
|
|
page: action.payload
|
|
});
|
|
case Types.CHANGE_KEYWORD:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
|
|
case Types.CHANGE_TYPE:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
|
|
case Types.CHANGE_All:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
|
|
case Types.SET_LOADING:
|
|
return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
|
|
loading: action.payload
|
|
});
|
|
default:
|
|
throw new Error();
|
|
}
|
|
}
|
|
/* harmony default export */ var pages_Search = (function () {
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var value = searchParams.get("value");
|
|
var tabs = searchParams.get("tabs");
|
|
var initialState = {
|
|
keyword: '',
|
|
page: 1,
|
|
list: [],
|
|
type: tabs || 'subject',
|
|
order_by: null,
|
|
sort_by: null,
|
|
can_copy: null,
|
|
loading: false,
|
|
count: 0,
|
|
searchIndex: 1
|
|
};
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
shixunQuery = _useState2[0],
|
|
setShixunQuery = _useState2[1];
|
|
var _useReducer = (0,_react_17_0_2_react.useReducer)(reducer, objectSpread2_default()(objectSpread2_default()({}, initialState), {}, {
|
|
keyword: value
|
|
})),
|
|
_useReducer2 = slicedToArray_default()(_useReducer, 2),
|
|
state = _useReducer2[0],
|
|
dispatch = _useReducer2[1];
|
|
var keyword = state.keyword,
|
|
page = state.page,
|
|
list = state.list,
|
|
type = state.type,
|
|
count = state.count,
|
|
loading = state.loading,
|
|
order_by = state.order_by,
|
|
sort_by = state.sort_by,
|
|
can_copy = state.can_copy,
|
|
searchIndex = state.searchIndex;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
state.type = tabs || 'subject';
|
|
dispatch({
|
|
type: Types.CHANGE_KEYWORD,
|
|
payload: {
|
|
keyword: getQueryString("value"),
|
|
page: 1,
|
|
searchIndex: searchIndex + 1
|
|
}
|
|
});
|
|
}, [value, tabs]);
|
|
var childPanel = {
|
|
subject: /*#__PURE__*/(0,jsx_runtime.jsx)(SubjectPanel, {
|
|
data: list
|
|
}),
|
|
memo: /*#__PURE__*/(0,jsx_runtime.jsx)(MemoPanel, {
|
|
data: list
|
|
}),
|
|
shixun: /*#__PURE__*/(0,jsx_runtime.jsx)(ShiXunPanel, {
|
|
data: list
|
|
}),
|
|
course: /*#__PURE__*/(0,jsx_runtime.jsx)(CoursePanel, {
|
|
data: list
|
|
})
|
|
};
|
|
var getData = function getData() {
|
|
var didCancel = false;
|
|
function init() {
|
|
return _init.apply(this, arguments);
|
|
}
|
|
function _init() {
|
|
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var response, results, count;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
dispatch({
|
|
type: Types.SET_LOADING,
|
|
payload: true
|
|
});
|
|
if (keyword) {
|
|
//记录搜索记录(作用类似埋点)
|
|
(0,global/* addSearchRecord */.tk)({
|
|
name: keyword,
|
|
copywriting: keyword,
|
|
position: state.type
|
|
});
|
|
}
|
|
_context.next = 4;
|
|
return (0,fetch/* get */.U2)("search.json", objectSpread2_default()({
|
|
keyword: encodeURIComponent(keyword),
|
|
page: page,
|
|
type: type,
|
|
order_by: order_by,
|
|
can_copy: can_copy,
|
|
sort_by: sort_by
|
|
}, shixunQuery));
|
|
case 4:
|
|
response = _context.sent;
|
|
results = response.results, count = response.count;
|
|
if (!didCancel) {
|
|
dispatch({
|
|
type: Types.GET_LIST,
|
|
payload: {
|
|
count: count,
|
|
list: results,
|
|
loading: false
|
|
}
|
|
});
|
|
}
|
|
case 7:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return _init.apply(this, arguments);
|
|
}
|
|
if (!didCancel) {
|
|
init();
|
|
}
|
|
return function () {
|
|
didCancel = true;
|
|
};
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getData();
|
|
}, [page, type, shixunQuery, order_by, sort_by, can_copy, searchIndex]);
|
|
function onChangeKeyword(value) {
|
|
dispatch({
|
|
type: Types.CHANGE_KEYWORD,
|
|
payload: {
|
|
keyword: value,
|
|
page: 1
|
|
}
|
|
});
|
|
}
|
|
function onChangeType(e) {
|
|
dispatch({
|
|
type: Types.CHANGE_TYPE,
|
|
payload: {
|
|
type: e.target.id,
|
|
page: 1
|
|
}
|
|
});
|
|
}
|
|
function onPageChange(value) {
|
|
dispatch({
|
|
type: Types.CHANGE_PAGE,
|
|
payload: value
|
|
});
|
|
}
|
|
function onChangeAll(val) {
|
|
dispatch({
|
|
type: Types.CHANGE_All,
|
|
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, state), val), {}, {
|
|
page: 1
|
|
})
|
|
});
|
|
}
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules['search-container'],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: bg_namespaceObject,
|
|
alt: "bg"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
|
|
className: Searchmodules["btn-search"],
|
|
value: keyword,
|
|
enterButton: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SearchOutlined/* default */.Z, {
|
|
style: {
|
|
fontSize: 18,
|
|
marginRight: 10
|
|
}
|
|
}), " \u641C\u7D22"]
|
|
}),
|
|
onChange: function onChange(e) {
|
|
onChangeKeyword(e.target.value);
|
|
},
|
|
onSearch: getData
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules["navs-container"],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: Searchmodules["navs"],
|
|
children: Navs.map(function (item) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
id: item.id,
|
|
className: item.id === type ? Searchmodules.active : '',
|
|
onClick: onChangeType,
|
|
children: item.title
|
|
})
|
|
}, item.id);
|
|
})
|
|
})
|
|
}), type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsx)(ShixunFilter, {
|
|
onChange: function onChange(p) {
|
|
onChangeAll({});
|
|
setShixunQuery(objectSpread2_default()({}, p));
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules["search-result-container"],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules["search-result-body"],
|
|
children: [loading && /*#__PURE__*/(0,jsx_runtime.jsx)(Spinner/* default */.Z, {
|
|
message: "\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u6570\u636E\u4E2D..."
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "current ml10",
|
|
onClick: function onClick() {
|
|
onChangeAll({
|
|
sort_by: "myshixuns_count",
|
|
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(sort_by === 'myshixuns_count' && !!order_by && 'c-light-primary', " font14"),
|
|
children: "\u70ED\u5EA6"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
className: "edu-sorter current ".concat(sort_by === 'myshixuns_count' && order_by),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-sanjiaoxing-up"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-sanjiaoxing-down"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "current ml40",
|
|
onClick: function onClick() {
|
|
onChangeAll({
|
|
sort_by: "averge_star",
|
|
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(sort_by === 'averge_star' && !!order_by && 'c-light-primary', " font14"),
|
|
children: "\u8BC4\u5206"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
className: "edu-sorter current ".concat(sort_by === 'averge_star' && order_by),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-sanjiaoxing-up"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-sanjiaoxing-down"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml100",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
onClick: function onClick(e) {
|
|
onChangeAll({
|
|
can_copy: e.target.checked ? true : null
|
|
});
|
|
},
|
|
children: "\u5141\u8BB8\u590D\u5236"
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
className: Searchmodules.tip,
|
|
children: ["\u5171\u627E\u5230\u76F8\u5173\u7ED3\u679C", /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [" ", count, " "]
|
|
}), "\u4E2A"]
|
|
})
|
|
})]
|
|
}), childPanel[type]]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules["search-footer"],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
showQuickJumper: true,
|
|
current: page,
|
|
onChange: onPageChange,
|
|
pageSize: 20,
|
|
showSizeChanger: false,
|
|
hideOnSinglePage: true,
|
|
total: count
|
|
})
|
|
})]
|
|
});
|
|
});
|
|
function Desc(_ref) {
|
|
var data = _ref.data;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
children: data ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.desc,
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (value) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: value
|
|
}
|
|
}, value);
|
|
})
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.desc
|
|
})
|
|
});
|
|
}
|
|
function MemoPanel(_ref2) {
|
|
var data = _ref2.data;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: Searchmodules["search-panel"],
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
var _item$content, _item$content2;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
target: "_blank",
|
|
to: "/forums/".concat(item.id),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.title,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item.title
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Desc, {
|
|
data: item.content.content
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.detail,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.sum,
|
|
children: [item !== null && item !== void 0 && (_item$content = item.content) !== null && _item$content !== void 0 && _item$content.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content2 = item.content) === null || _item$content2 === void 0 || (_item$content2 = _item$content2.author_name) === null || _item$content2 === void 0 ? void 0 : _item$content2[0]
|
|
}
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
children: item.author_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: ["\u8BBF\u95EE\u4EBA\u6570 \xA0", item.visits_count]
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
}, item.id);
|
|
})
|
|
});
|
|
}
|
|
function CoursePanel(_ref3) {
|
|
var data = _ref3.data;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: Searchmodules["search-panel"],
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
var _item$content3, _item$content4, _item$content5, _item$content6, _item$content7, _item$content8;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
className: Searchmodules["search-course-item"],
|
|
children: [!item.is_accessible && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules["lock-search-course-item"],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: lockclose/* default */.Z
|
|
}), "\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
target: "_blank",
|
|
to: "".concat(item === null || item === void 0 ? void 0 : item.first_category_url),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.title,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item.title
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Searchmodules["detail"], " mt20"),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.sum,
|
|
children: [item !== null && item !== void 0 && (_item$content3 = item.content) !== null && _item$content3 !== void 0 && _item$content3.member_user_names ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content4 = item.content) === null || _item$content4 === void 0 ? void 0 : _item$content4.member_user_names
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content5 = item.content) === null || _item$content5 === void 0 ? void 0 : _item$content5.member_user_names
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.member_user_names) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.member_user_names
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.member_user_names
|
|
})
|
|
}), item !== null && item !== void 0 && (_item$content6 = item.content) !== null && _item$content6 !== void 0 && _item$content6.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content7 = item.content) === null || _item$content7 === void 0 ? void 0 : _item$content7.author_school_name
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content8 = item.content) === null || _item$content8 === void 0 ? void 0 : _item$content8.author_school_name
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.author_school_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.author_school_name
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.author_school_name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u6210\u5458\u6570 \xA0", item.members_count]
|
|
})]
|
|
})
|
|
})]
|
|
})]
|
|
}, item.id);
|
|
})
|
|
});
|
|
}
|
|
function SubjectPanel(_ref4) {
|
|
var data = _ref4.data;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: Searchmodules["search-panel"],
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
var _item$content9, _item$content10, _item$content11, _item$content12, _item$content13, _item$content14;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
target: "_blank",
|
|
to: "/paths/".concat(item.identifier),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.title,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item.title
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Searchmodules["detail"], " mt20"),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.sum,
|
|
style: {
|
|
display: 'flex',
|
|
justifyContent: 'space-between'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [item !== null && item !== void 0 && (_item$content9 = item.content) !== null && _item$content9 !== void 0 && _item$content9.member_user_names ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content10 = item.content) === null || _item$content10 === void 0 ? void 0 : _item$content10.member_user_names
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content11 = item.content) === null || _item$content11 === void 0 ? void 0 : _item$content11.member_user_names
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.member_user_names) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.member_user_names
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.member_user_names
|
|
})
|
|
}), item !== null && item !== void 0 && (_item$content12 = item.content) !== null && _item$content12 !== void 0 && _item$content12.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content13 = item.content) === null || _item$content13 === void 0 ? void 0 : _item$content13.author_school_name
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content14 = item.content) === null || _item$content14 === void 0 ? void 0 : _item$content14.author_school_name
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.author_school_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.author_school_name
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.author_school_name
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "mr30",
|
|
children: ["\u6848\u4F8B\u6570 \xA0", item.shixuns_count]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", item.myshixuns_count]
|
|
})]
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
}, item.id);
|
|
})
|
|
});
|
|
}
|
|
function ShiXunPanel(_ref5) {
|
|
var data = _ref5.data;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
className: Searchmodules["search-panel"],
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
var _item$content15, _item$content16, _item$content17, _item$content18, _item$content19, _item$content20, _item$content21, _item$content22, _item$content23, _item$content24, _item$content25;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
target: "_blank",
|
|
to: "/shixuns/".concat(item.identifier, "/challenges "),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "flex-container",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Searchmodules.title,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item.title
|
|
}
|
|
}), item.is_jupyter ? /*#__PURE__*/(0,jsx_runtime.jsx)(tag/* default */.Z, {
|
|
color: "red",
|
|
className: "ml10",
|
|
children: "Jupyter"
|
|
})
|
|
// <span className="label-red">Jupyter</span>
|
|
: null, item.can_copy && /*#__PURE__*/(0,jsx_runtime.jsx)(tag/* default */.Z, {
|
|
color: "green",
|
|
className: "ml10",
|
|
children: "\u5141\u8BB8\u590D\u5236"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Desc, {
|
|
data: item === null || item === void 0 || (_item$content15 = item.content) === null || _item$content15 === void 0 ? void 0 : _item$content15.description
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.detail,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.info,
|
|
children: [!(item !== null && item !== void 0 && (_item$content16 = item.content) !== null && _item$content16 !== void 0 && _item$content16.challenge_names) ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
children: item === null || item === void 0 || (_item$content17 = item.content) === null || _item$content17 === void 0 || (_item$content17 = _item$content17.challenge_names) === null || _item$content17 === void 0 ? void 0 : _item$content17.map(function (value) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "flex-container",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: value
|
|
}
|
|
})
|
|
}, value);
|
|
})
|
|
}), !(item !== null && item !== void 0 && (_item$content18 = item.content) !== null && _item$content18 !== void 0 && _item$content18.tag_names) ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
children: item === null || item === void 0 || (_item$content19 = item.content) === null || _item$content19 === void 0 || (_item$content19 = _item$content19.tag_names) === null || _item$content19 === void 0 ? void 0 : _item$content19.map(function (value) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "flex-container",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u5173\u5361\u6807\u7B7E \xA0"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: value
|
|
}
|
|
})]
|
|
}, value);
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Searchmodules.sum,
|
|
style: {
|
|
display: 'flex',
|
|
justifyContent: 'space-between'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [item !== null && item !== void 0 && (_item$content20 = item.content) !== null && _item$content20 !== void 0 && _item$content20.member_user_names ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content21 = item.content) === null || _item$content21 === void 0 ? void 0 : _item$content21.member_user_names
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content22 = item.content) === null || _item$content22 === void 0 ? void 0 : _item$content22.member_user_names
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.member_user_names) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.member_user_names
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.member_user_names
|
|
})
|
|
}), item !== null && item !== void 0 && (_item$content23 = item.content) !== null && _item$content23 !== void 0 && _item$content23.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
overlayClassName: Searchmodules['tooltip-content'],
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content24 = item.content) === null || _item$content24 === void 0 ? void 0 : _item$content24.author_school_name
|
|
}
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
dangerouslySetInnerHTML: {
|
|
__html: item === null || item === void 0 || (_item$content25 = item.content) === null || _item$content25 === void 0 ? void 0 : _item$content25.author_school_name
|
|
}
|
|
})
|
|
}) : (item === null || item === void 0 ? void 0 : item.author_school_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: item.author_school_name
|
|
})
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Searchmodules.authorname,
|
|
children: item.author_school_name
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "mr30",
|
|
children: ["\u4EFB\u52A1 \xA0", item.challenges_count]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "mr30",
|
|
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", item.study_count]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u8BC4\u5206 \xA0", item.star]
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
})
|
|
}, item.id);
|
|
})
|
|
});
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 32903:
|
|
/*!***********************************************!*\
|
|
!*** ./src/assets/images/icons/lockclose.svg ***!
|
|
\***********************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* unused harmony export ReactComponent */
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var __defNormalProp = function __defNormalProp(obj, key, value) {
|
|
return key in obj ? __defProp(obj, key, {
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true,
|
|
value: value
|
|
}) : obj[key] = value;
|
|
};
|
|
var __spreadValues = function __spreadValues(a, b) {
|
|
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
if (__getOwnPropSymbols) {
|
|
var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
|
|
_step;
|
|
try {
|
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
var prop = _step.value;
|
|
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
}
|
|
} catch (err) {
|
|
_iterator.e(err);
|
|
} finally {
|
|
_iterator.f();
|
|
}
|
|
}
|
|
return a;
|
|
};
|
|
|
|
var SvgLockclose = function SvgLockclose(props) {
|
|
return /* @__PURE__ */React.createElement("svg", __spreadValues({
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
viewBox: "0 0 1024 1024",
|
|
style: {
|
|
enableBackground: "new 0 0 1024 1024"
|
|
},
|
|
xmlSpace: "preserve",
|
|
width: 60,
|
|
height: 80
|
|
}, props), /* @__PURE__ */React.createElement("path", {
|
|
fill: "#fff",
|
|
d: "M749.4 373.9H710v-78.8c0-108.7-88.2-197-197-197-108.7 0-197 88.2-197 197v78.8h-39.4c-43.5 0-78.8 35.3-78.8 78.8v393.9c0 43.5 35.3 78.8 78.8 78.8h472.7c43.5 0 78.8-35.3 78.8-78.8V452.7c.1-43.5-35.2-78.8-78.7-78.8zM513 728.5c-43.5 0-78.8-35.3-78.8-78.8s35.3-78.8 78.8-78.8 78.8 35.3 78.8 78.8-35.3 78.8-78.8 78.8zm122.1-354.6H390.9v-78.8c0-67.4 54.8-122.1 122.1-122.1 67.4 0 122.1 54.8 122.1 122.1v78.8zm0 0"
|
|
}));
|
|
};
|
|
|
|
/* harmony default export */ __webpack_exports__.Z = ("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMjQgMTAyNCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjgwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNzQ5LjQgMzczLjlINzEwdi03OC44YzAtMTA4LjctODguMi0xOTctMTk3LTE5Ny0xMDguNyAwLTE5NyA4OC4yLTE5NyAxOTd2NzguOGgtMzkuNGMtNDMuNSAwLTc4LjggMzUuMy03OC44IDc4Ljh2MzkzLjljMCA0My41IDM1LjMgNzguOCA3OC44IDc4LjhoNDcyLjdjNDMuNSAwIDc4LjgtMzUuMyA3OC44LTc4LjhWNDUyLjdjLjEtNDMuNS0zNS4yLTc4LjgtNzguNy03OC44ek01MTMgNzI4LjVjLTQzLjUgMC03OC44LTM1LjMtNzguOC03OC44czM1LjMtNzguOCA3OC44LTc4LjggNzguOCAzNS4zIDc4LjggNzguOC0zNS4zIDc4LjgtNzguOCA3OC44em0xMjIuMS0zNTQuNkgzOTAuOXYtNzguOGMwLTY3LjQgNTQuOC0xMjIuMSAxMjIuMS0xMjIuMSA2Ny40IDAgMTIyLjEgNTQuOCAxMjIuMSAxMjIuMXY3OC44em0wIDAiLz48L3N2Zz4=");
|
|
|
|
/***/ })
|
|
|
|
}]); |