|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78746],{
|
|
|
|
|
|
/***/ 10906:
|
|
|
/*!******************************************************************************************************!*\
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js + 1 modules ***!
|
|
|
\******************************************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ icons_FormOutlined; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.3@@babel/runtime/helpers/esm/extends.js
|
|
|
var esm_extends = __webpack_require__(71409);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FormOutlined.js
|
|
|
// This icon file is generated automatically.
|
|
|
var FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" };
|
|
|
/* harmony default export */ var asn_FormOutlined = (FormOutlined);
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FormOutlined_FormOutlined = function FormOutlined(props, ref) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
ref: ref,
|
|
|
icon: asn_FormOutlined
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/** */
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FormOutlined_FormOutlined);
|
|
|
if (false) {}
|
|
|
/* harmony default export */ var icons_FormOutlined = (RefIcon);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 47073:
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./src/pages/Forums/Index/components/Drop/index.tsx + 1 modules ***!
|
|
|
\**********************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ Drop; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/notification/index.js + 5 modules
|
|
|
var notification = __webpack_require__(28909);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
var modal = __webpack_require__(43418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
|
|
var es_menu = __webpack_require__(20834);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
|
|
|
var dropdown = __webpack_require__(38854);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react-router-dom@6.3.0@react-router-dom/index.js
|
|
|
var _react_router_dom_6_3_0_react_router_dom = __webpack_require__(32451);
|
|
|
// EXTERNAL MODULE: ./src/service/forums.ts
|
|
|
var forums = __webpack_require__(11996);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/Drop/index.less
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/Drop/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// permission = {
|
|
|
// admin://管理员
|
|
|
// banned_permission://管理员、且有置顶、推荐权限
|
|
|
// is_currentUser: true, #是否为当前用户,判断是否显示编辑/删除,并隐藏其他的
|
|
|
// is_fine: true, #是否精华帖子
|
|
|
// sticky: true, #是否置顶
|
|
|
// memo_watched: true, #是否收藏
|
|
|
// is_deleted:true#是否已经申请删除
|
|
|
// }
|
|
|
|
|
|
|
|
|
/* harmony default export */ var Drop = (function (_ref) {
|
|
|
var id = _ref.id,
|
|
|
permission = _ref.permission,
|
|
|
calbackFunc = _ref.calbackFunc;
|
|
|
// 置顶、取消置顶
|
|
|
function changeSticky(s) {
|
|
|
var sticky = s ? 0 : 1; //1为置顶,0为取消置顶
|
|
|
var params = {
|
|
|
id: id,
|
|
|
sticky: sticky
|
|
|
};
|
|
|
(0,forums/* changeTopOrDown */.rK)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
calbackFunc && calbackFunc();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
// 推荐、取消推荐
|
|
|
function changeFine(f) {
|
|
|
var is_fine = f ? 0 : 1; //1表示加精,0表示取消加精
|
|
|
var params = {
|
|
|
id: id,
|
|
|
is_fine: is_fine
|
|
|
};
|
|
|
(0,forums/* changeIsFine */.d6)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
calbackFunc && calbackFunc();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 关注、取消关注
|
|
|
function changeMemoWatched(m) {
|
|
|
var is_watch = m ? 0 : 1; //1为添加关注,0为取消关注
|
|
|
var params = {
|
|
|
id: id,
|
|
|
is_watch: is_watch
|
|
|
};
|
|
|
(0,forums/* changeWatchMemo */.FF)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
calbackFunc && calbackFunc();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
// 管理员直接删除帖子
|
|
|
function deleteForum() {
|
|
|
modal/* default */.Z.confirm({
|
|
|
content: '确认删除帖子?',
|
|
|
title: '提示',
|
|
|
icon: null,
|
|
|
onOk: function onOk() {
|
|
|
(0,forums/* deleteMemosForum */.ok)(id).then(function (res) {
|
|
|
if (res.status !== -1) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
calbackFunc && calbackFunc();
|
|
|
window.location.href = "/forums";
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 发布者申请删除、撤销申请删除
|
|
|
function sendDeleteForum(d) {
|
|
|
var is_apply = d ? 0 : 1; //1为申请删除,0为撤销申请删除
|
|
|
var params = {
|
|
|
id: id,
|
|
|
is_apply: is_apply
|
|
|
};
|
|
|
modal/* default */.Z.confirm({
|
|
|
content: '确认申请删帖?',
|
|
|
title: '提示',
|
|
|
icon: null,
|
|
|
onOk: function onOk() {
|
|
|
(0,forums/* confirmDelete */.j3)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
calbackFunc && calbackFunc();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
var menu = permission && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_menu/* default */.Z, {
|
|
|
style: {
|
|
|
minWidth: "100px",
|
|
|
textAlign: 'center'
|
|
|
},
|
|
|
children: [permission.banned_permission && /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
onClick: function onClick() {
|
|
|
return changeSticky(permission.sticky);
|
|
|
},
|
|
|
children: permission.sticky ? "取消置顶" : "置顶"
|
|
|
}), permission.banned_permission && /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
onClick: function onClick() {
|
|
|
return changeFine(permission.is_fine);
|
|
|
},
|
|
|
children: permission.is_fine ? "取消推荐" : "推荐"
|
|
|
}), permission.login && /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
onClick: function onClick() {
|
|
|
return changeMemoWatched(permission.memo_watched);
|
|
|
},
|
|
|
children: permission.memo_watched ? "取消收藏" : "收藏"
|
|
|
}), (permission.admin || permission.is_currentUser) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_react_router_dom_6_3_0_react_router_dom/* Link */.rU, {
|
|
|
to: "/forums/".concat(id, "/edit"),
|
|
|
children: "\u7F16\u8F91"
|
|
|
})
|
|
|
}), permission.admin ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
onClick: function onClick() {
|
|
|
return deleteForum();
|
|
|
},
|
|
|
children: "\u5220\u9664"
|
|
|
}) : permission.is_currentUser ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
|
|
onClick: function onClick() {
|
|
|
return sendDeleteForum(permission.is_deleted);
|
|
|
},
|
|
|
children: permission.is_deleted ? "撤销申请" : "申请删帖"
|
|
|
}) : ""]
|
|
|
});
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
|
|
overlay: menu,
|
|
|
align: "center",
|
|
|
placement: "bottomCenter",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "gengduo icon-gengduo1"
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1491:
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./src/pages/Forums/Index/components/ListItem/index.tsx + 1 modules ***!
|
|
|
\**************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ components_ListItem; }
|
|
|
});
|
|
|
|
|
|
// 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);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/ListItem/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var ListItemmodules = ({"flex":"flex___eARTA","gMAmTc":"gMAmTc___lGbG_","kJYYQv":"kJYYQv___QtsiV","kTLhbM":"kTLhbM___LsxGI","listPagin":"listPagin___AANwv","iwMcWy":"iwMcWy___ZYE3E","kgxtyB":"kgxtyB___tIUuB","cPointer":"cPointer___Kz_aU","forumList":"forumList___lFpN6","cOuXkk":"cOuXkk___NaYdD","tag":"tag___FmK71","tagRed":"tagRed___iYUXx","tagOrange":"tagOrange___iiaBw","tagBlue":"tagBlue___iV1_Z","tag_Red":"tag_Red___R1aSz","tag_Orange":"tag_Orange___xkdLE","tag_Blue":"tag_Blue___TaePK","orange":"orange___g238b","blue":"blue___HqZNF","iconWrap":"iconWrap____jGlq","spanText":"spanText___AlivR","dGqnMq":"dGqnMq___Hp9vj","dicrWo":"dicrWo___o1yQM","task-hide":"task-hide___oGAxf","textTitle":"textTitle___n_yp2","textType":"textType___XlSnX"});
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
|
|
var EyeOutlined = __webpack_require__(15277);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/LikeOutlined.js + 1 modules
|
|
|
var LikeOutlined = __webpack_require__(63524);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/MessageOutlined.js + 1 modules
|
|
|
var MessageOutlined = __webpack_require__(13133);
|
|
|
// EXTERNAL MODULE: ./src/pages/Forums/Index/components/Drop/index.tsx + 1 modules
|
|
|
var Drop = __webpack_require__(47073);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(67390);
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
var _umi_production_exports = __webpack_require__(80184);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/ListItem/index.tsx
|
|
|
|
|
|
var _excluded = ["user"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ListItem = function ListItem(_ref) {
|
|
|
var user = _ref.user,
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
var current_user = user.userInfo;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
className: ListItemmodules.forumList,
|
|
|
children: props.memos.map(function (item, key) {
|
|
|
var permission = {
|
|
|
index: key,
|
|
|
admin: current_user && current_user.admin,
|
|
|
banned_permission: item.banned_permission,
|
|
|
login: current_user && current_user.login,
|
|
|
is_currentUser: current_user && item.user_login === current_user.login,
|
|
|
is_fine: item.is_fine,
|
|
|
sticky: item.sticky,
|
|
|
memo_watched: item.memo_watched,
|
|
|
user_banned_permission: item.banned_permission,
|
|
|
is_deleted: item.apply_destroy
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.cOuXkk,
|
|
|
style: {
|
|
|
lineHeight: "36px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.kTLhbM,
|
|
|
style: {
|
|
|
marginLeft: "-8px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: item.tag_name == '交流' ? ListItemmodules.blue : ListItemmodules.orange,
|
|
|
children: ["\u3010", item.tag_name, "\u3011"]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/".concat(item.id),
|
|
|
className: "".concat(ListItemmodules.taskHide, " ").concat(ListItemmodules.textTitle),
|
|
|
children: item.subject
|
|
|
}), item.sticky === true ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(ListItemmodules.tag, " ").concat(ListItemmodules.tagRed),
|
|
|
children: "\u7F6E\u9876"
|
|
|
}) : "", item.is_original === true ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(ListItemmodules.tag, " ").concat(ListItemmodules.tagOrange),
|
|
|
children: "\u539F\u521B"
|
|
|
}) : "", item.is_fine === true ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(ListItemmodules.tag, " ").concat(ListItemmodules.tagBlue),
|
|
|
children: "\u7CBE\u534E"
|
|
|
}) : ""]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.kTLhbM,
|
|
|
children: [item.apply_destroy ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(ListItemmodules.orange, " mr10"),
|
|
|
style: {
|
|
|
fontSize: "12px"
|
|
|
},
|
|
|
children: "\u5DF2\u7533\u8BF7\u5220\u5E16"
|
|
|
}) : "", current_user && current_user.login ? /*#__PURE__*/(0,jsx_runtime.jsx)(Drop/* default */.Z, {
|
|
|
permission: permission,
|
|
|
id: item.id,
|
|
|
calbackFunc: props.calbackFunc
|
|
|
}) : ""]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.cOuXkk,
|
|
|
style: {
|
|
|
marginTop: "8px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.kTLhbM,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/accounts/".concat(item.user_login, "/memos"),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: ListItemmodules.kTLhbM,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
src: env/* default */.Z.IMG_SERVER + '/images/' + item.image_url,
|
|
|
alt: "",
|
|
|
className: ListItemmodules.dGqnMq
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: ListItemmodules.dicrWo,
|
|
|
children: item.username
|
|
|
})]
|
|
|
})
|
|
|
}), item.forum_section_title ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "",
|
|
|
className: "".concat(ListItemmodules.iwMcWy, " ").concat(ListItemmodules.textType),
|
|
|
children: item.forum_section_title
|
|
|
}) : "", item.published_time ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: ListItemmodules.iwMcWy,
|
|
|
children: item.published_time
|
|
|
}) : ""]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: ListItemmodules.iconWrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(EyeOutlined/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: ListItemmodules.spanText,
|
|
|
children: item.viewed_count
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: ListItemmodules.iconWrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LikeOutlined/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: ListItemmodules.spanText,
|
|
|
children: item.praises_count
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: ListItemmodules.iconWrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(MessageOutlined/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: ListItemmodules.spanText,
|
|
|
children: item.replies_count
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}, item.id);
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var components_ListItem = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
var user = _ref2.user;
|
|
|
return {
|
|
|
user: user
|
|
|
};
|
|
|
})(ListItem));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 71280:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./src/pages/Forums/Index/components/Search/index.tsx + 1 modules ***!
|
|
|
\************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ components_Search; }
|
|
|
});
|
|
|
|
|
|
// 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);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/Search/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Searchmodules = ({"greenbtn":"greenbtn___Gyway","writeBtn":"writeBtn___NtBAF"});
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
|
var input = __webpack_require__(10249);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
|
var es_button = __webpack_require__(3113);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js + 1 modules
|
|
|
var FormOutlined = __webpack_require__(10906);
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
var _umi_production_exports = __webpack_require__(80184);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/Search/index.tsx
|
|
|
|
|
|
var _excluded = ["globalSetting", "user", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Search = input/* default */.Z.Search;
|
|
|
var SearchInput = function SearchInput(_ref) {
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
user = _ref.user,
|
|
|
dispatch = _ref.dispatch,
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
var current_user = user.userInfo;
|
|
|
function onClick() {
|
|
|
var _globalSetting$settin;
|
|
|
current_user && current_user.login ? _umi_production_exports.history.push("/forums/new") : window.location.href = globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.sso_url;
|
|
|
}
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "bg-white",
|
|
|
style: {
|
|
|
padding: "20px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
|
|
|
onSearch: function onSearch(value) {
|
|
|
props.onSearch.onSearch(value);
|
|
|
},
|
|
|
allowClear: true
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
className: "".concat(Searchmodules.writeBtn, " ").concat(Searchmodules.greenbtn),
|
|
|
onClick: onClick,
|
|
|
type: "primary",
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(FormOutlined/* default */.Z, {}),
|
|
|
children: "\u5199\u70B9\u4EC0\u4E48"
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var components_Search = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
var user = _ref2.user,
|
|
|
globalSetting = _ref2.globalSetting;
|
|
|
return {
|
|
|
user: user,
|
|
|
globalSetting: globalSetting
|
|
|
};
|
|
|
})(SearchInput));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 77206:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./src/pages/Forums/Subject/index.tsx + 7 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 */ Subject; }
|
|
|
});
|
|
|
|
|
|
// 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/objectWithoutProperties.js
|
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
|
// 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__(80184);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react-router-dom@6.3.0@react-router-dom/index.js
|
|
|
var _react_router_dom_6_3_0_react_router_dom = __webpack_require__(32451);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
|
|
|
var breadcrumb = __webpack_require__(66104);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
|
|
var menu = __webpack_require__(20834);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
|
var spin = __webpack_require__(71418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
|
var pagination = __webpack_require__(58421);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/notification/index.js + 5 modules
|
|
|
var notification = __webpack_require__(28909);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
|
var es_button = __webpack_require__(3113);
|
|
|
// EXTERNAL MODULE: ./src/service/forums.ts
|
|
|
var forums = __webpack_require__(11996);
|
|
|
// EXTERNAL MODULE: ./src/assets/images/forums/radius.png
|
|
|
var radius = __webpack_require__(57377);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/components/Top/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Topmodules = ({"flex":"flex___UPsCr","gMAmTc":"gMAmTc___t0oxM","kJYYQv":"kJYYQv___ZULe6","kTLhbM":"kTLhbM___LkX9d","listPagin":"listPagin___Q155Z","iwMcWy":"iwMcWy___l6hlJ","kgxtyB":"kgxtyB___TMVlv","cPointer":"cPointer___UEHoD","subject":"subject___MQJgq","introduce":"introduce___OLCQk","gTAsMD":"gTAsMD___ag8d3","gcTjcF":"gcTjcF___zCvOG","cOuXkk":"cOuXkk___DjVGP","eHDXvH":"eHDXvH___CePTF","fontsize":"fontsize___M9_3G","fWeJrv":"fWeJrv___Y00yI"});
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(67390);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/components/Top/index.tsx
|
|
|
|
|
|
|
|
|
var _excluded = ["globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var subject = function subject(_ref) {
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
loading = _ref.loading,
|
|
|
dispatch = _ref.dispatch,
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
section = _useState2[0],
|
|
|
setSection = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
sectionUser = _useState4[0],
|
|
|
setSectionUser = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
forumModers = _useState6[0],
|
|
|
setForumModers = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(props.headData && props.headData.watched),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
watched = _useState8[0],
|
|
|
setWacth = _useState8[1];
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (props.headData) {
|
|
|
setSection(props.headData.forum_section);
|
|
|
setSectionUser(props.headData.forum_section_user);
|
|
|
setForumModers(props.headData.forum_moders);
|
|
|
setWacth(props.headData.watched);
|
|
|
}
|
|
|
}, [props.headData]);
|
|
|
|
|
|
// 收藏、取消收藏
|
|
|
function saveForum(id) {
|
|
|
if (id) {
|
|
|
(0,forums/* saveCollectionTheme */.zg)({
|
|
|
id: id,
|
|
|
is_watch: watched ? 0 : 1
|
|
|
}).then(function (res) {
|
|
|
if (res && res.status != -1) {
|
|
|
setWacth(!watched);
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
function toManage(id) {
|
|
|
_umi_production_exports.history.push("/forums/manage/".concat(section && section.id));
|
|
|
}
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Topmodules.introduce,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
src: section && section.picture ? env/* default */.Z.API_SERVER + section.picture : radius,
|
|
|
alt: "",
|
|
|
className: Topmodules.gTAsMD
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
flex: "1 1"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Topmodules.cOuXkk,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
className: Topmodules.fWeJrv,
|
|
|
children: section && section.title
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
onClick: function onClick() {
|
|
|
return saveForum(section && section.id);
|
|
|
},
|
|
|
style: {
|
|
|
marginLeft: "30px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: watched ? "iconfont icon-pingfen-xian" : "iconfont icon-pingfen-xian"
|
|
|
}), watched ? "取消收藏" : "收藏"]
|
|
|
})
|
|
|
})]
|
|
|
}), section && section.description ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
className: Topmodules.eHDXvH,
|
|
|
children: section.description
|
|
|
}) : "", /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Topmodules.cOuXkk,
|
|
|
style: {
|
|
|
marginTop: "10px",
|
|
|
lineHeight: "28px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: "".concat(Topmodules.gcTjcF, " ").concat(Topmodules.banzhu),
|
|
|
children: ["\u7248\u4E3B: \xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/accounts/".concat(sectionUser && sectionUser.user_login, "/memos"),
|
|
|
children: sectionUser && sectionUser.username
|
|
|
})]
|
|
|
}), forumModers && forumModers.length > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Topmodules.gcTjcF,
|
|
|
children: ["\u7BA1\u7406\u5458\uFF1A", forumModers.map(function (item, key) {
|
|
|
return key < forumModers.length - 1 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/accounts/".concat(item.user_login, "/memos"),
|
|
|
children: item.username
|
|
|
}, key), "\u3001"]
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/accounts/".concat(item.user_login, "/memos"),
|
|
|
children: item.username
|
|
|
}, key);
|
|
|
})]
|
|
|
}) : ""]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Topmodules.gcTjcF,
|
|
|
style: {
|
|
|
marginLeft: "30px",
|
|
|
marginRight: 0
|
|
|
},
|
|
|
children: ["\u677F\u5757\u4E3B\u9898: \xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
|
style: {
|
|
|
color: 'rgb(51, 51, 51)'
|
|
|
},
|
|
|
children: section && section.memos_count
|
|
|
})]
|
|
|
}), section && section.publish_today_coun ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Topmodules.gcTjcF,
|
|
|
style: {
|
|
|
marginLeft: "30px",
|
|
|
marginRight: 0
|
|
|
},
|
|
|
children: ["\u4ECA\u65E5\u53D1\u5E16\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
|
style: {
|
|
|
color: 'rgb(51, 51, 51)'
|
|
|
},
|
|
|
children: section.publish_today_count
|
|
|
})]
|
|
|
}) : "", section && section.replies_today_count ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Topmodules.gcTjcF,
|
|
|
style: {
|
|
|
marginLeft: "30px",
|
|
|
marginRight: 0
|
|
|
},
|
|
|
children: ["\u4ECA\u65E5\u56DE\u5E16\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
|
style: {
|
|
|
color: 'rgb(51, 51, 51)'
|
|
|
},
|
|
|
children: section.replies_today_count
|
|
|
})]
|
|
|
}) : ""]
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Top = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
var loading = _ref2.loading,
|
|
|
globalSetting = _ref2.globalSetting;
|
|
|
return {
|
|
|
globalSetting: globalSetting,
|
|
|
loading: loading.effects
|
|
|
};
|
|
|
})(subject));
|
|
|
// EXTERNAL MODULE: ./src/pages/Forums/Index/components/Search/index.tsx + 1 modules
|
|
|
var Search = __webpack_require__(71280);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
|
var input = __webpack_require__(10249);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
var modal = __webpack_require__(43418);
|
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
|
var NoData = __webpack_require__(46172);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/components/Right/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Rightmodules = ({"flex":"flex___d3hws","gMAmTc":"gMAmTc___bIk2m","kJYYQv":"kJYYQv___dOVky","kTLhbM":"kTLhbM___utRCv","listPagin":"listPagin___TOQ6t","iwMcWy":"iwMcWy___KARZi","kgxtyB":"kgxtyB___KOWiK","cPointer":"cPointer___tTri6","subject":"subject___cGcIW","introduce":"introduce___wp17a","gTAsMD":"gTAsMD___ikWO7","gcTjcF":"gcTjcF___KFIHK","cOuXkk":"cOuXkk___QNRbs","eHDXvH":"eHDXvH___HULi9","fontsize":"fontsize___YNdYb","wrap":"wrap___iojxr","myModule":"myModule___pTX2k","BestUl":"BestUl___Y0Wu2","leZGks":"leZGks___XW159","cBZjMI":"cBZjMI___rsphl","BestModalUl":"BestModalUl___atsnS","eKzhkv":"eKzhkv___Tr3Bf","dyKuue":"dyKuue___pPLXD","commColor":"commColor___XVqXa","sizeAndColor":"sizeAndColor___Qx9UK","authorUl":"authorUl___Fiz05","igfjXB":"igfjXB___rY6Rx","username":"username___wLyTH","taskHide":"taskHide___ZkGwv","titleCon":"titleCon___gdcWV","binaji":"binaji___KiT3Z","pr":"pr___isCbT","annBtn":"annBtn___yCYKs","annContent":"annContent___xwC9m","annWords":"annWords___i8lJl"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/components/Right/Announcement.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TextArea = input/* default */.Z.TextArea;
|
|
|
var Announcement = function Announcement(props) {
|
|
|
var content = props.content;
|
|
|
var plateId = props.plateId;
|
|
|
var operation = props.operation;
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
word = _useState2[0],
|
|
|
setWord = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
editWord = _useState4[0],
|
|
|
setEditWord = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
show = _useState6[0],
|
|
|
setShow = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
visible = _useState8[0],
|
|
|
setVisible = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(1),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
AnnModalType = _useState10[0],
|
|
|
setAnnModalType = _useState10[1]; //默认为1:查看,否则为编辑
|
|
|
|
|
|
var child = document.getElementById("annWords") && document.getElementById("annWords").offsetHeight;
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (content) {
|
|
|
setWord(content.notice);
|
|
|
}
|
|
|
}, [content]);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
changeShow();
|
|
|
}, [word, child, content]);
|
|
|
|
|
|
// 保存公告
|
|
|
function saveAnn() {
|
|
|
setWord(editWord);
|
|
|
setVisible(false);
|
|
|
// 调用保存接口
|
|
|
if (editWord) {
|
|
|
var params = {
|
|
|
plateId: plateId,
|
|
|
content: editWord
|
|
|
};
|
|
|
(0,forums/* saveForumSections */.th)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
notification/* default */.Z.open({
|
|
|
message: "提示",
|
|
|
description: res.message
|
|
|
});
|
|
|
changeShow();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
function changeShow() {
|
|
|
var p = document.getElementById("annContent") && document.getElementById("annContent").offsetHeight;
|
|
|
var c = document.getElementById("annWords") && document.getElementById("annWords").offsetHeight;
|
|
|
if (c > p) {
|
|
|
setShow(true);
|
|
|
} else {
|
|
|
setShow(false);
|
|
|
}
|
|
|
}
|
|
|
// 取消编辑公告
|
|
|
function cancelAnn() {
|
|
|
setEditWord(word);
|
|
|
setVisible(false);
|
|
|
}
|
|
|
|
|
|
// 查看(1)或者编辑(2)
|
|
|
function changeAnnModalType(type) {
|
|
|
setAnnModalType(type);
|
|
|
setVisible(true);
|
|
|
setEditWord(word);
|
|
|
}
|
|
|
function changeText(e) {
|
|
|
setEditWord(e.target.value);
|
|
|
}
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
visible: visible,
|
|
|
title: "\u516C\u544A",
|
|
|
closable: true,
|
|
|
onCancel: function onCancel() {
|
|
|
return setVisible(false);
|
|
|
},
|
|
|
footer: AnnModalType === 1 ? false : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
onClick: cancelAnn,
|
|
|
children: "\u53D6\u6D88"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
onClick: saveAnn,
|
|
|
type: "primary",
|
|
|
children: "\u53D1\u5E03"
|
|
|
})]
|
|
|
}),
|
|
|
children: AnnModalType === 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
style: {
|
|
|
maxHeight: "100px",
|
|
|
overflowY: "auto"
|
|
|
},
|
|
|
children: word
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
|
|
|
placeholder: "\u586B\u5199\u516C\u544A\uFF0C1\uFF5E600\u5B57",
|
|
|
value: editWord,
|
|
|
rows: 5,
|
|
|
onChange: changeText
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Rightmodules.titleCon,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u516C\u544A"
|
|
|
}), operation ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
onClick: function onClick() {
|
|
|
return changeAnnModalType(2);
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "".concat(Rightmodules.binaji, " icon-bianji3")
|
|
|
})
|
|
|
}) : ""]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
padding: "10px 30px"
|
|
|
},
|
|
|
className: Rightmodules.pr,
|
|
|
children: [word ? /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
id: "annContent",
|
|
|
className: Rightmodules.annContent,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
id: "annWords",
|
|
|
className: "annWords",
|
|
|
children: word
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
color: "#888"
|
|
|
},
|
|
|
children: ["\u7248\u4E3B\uFF1A", content.name]
|
|
|
})]
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
|
customText: "\u6682\u65E0\u516C\u544A",
|
|
|
styles: {
|
|
|
height: "150px"
|
|
|
}
|
|
|
}), word && show === true ? /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
|
className: Rightmodules.annBtn,
|
|
|
onClick: function onClick() {
|
|
|
return changeAnnModalType(1);
|
|
|
},
|
|
|
children: ["\u2026", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#21B350!important",
|
|
|
marginLeft: "4px"
|
|
|
},
|
|
|
children: "\u67E5\u770B"
|
|
|
})]
|
|
|
}) : ""]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/components/Right/index.tsx
|
|
|
|
|
|
|
|
|
var Right_excluded = ["globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Right_subject = function subject(_ref) {
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
loading = _ref.loading,
|
|
|
dispatch = _ref.dispatch,
|
|
|
props = objectWithoutProperties_default()(_ref, Right_excluded);
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
content = _useState2[0],
|
|
|
setContent = _useState2[1]; //公告
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
recommand = _useState4[0],
|
|
|
setRecommand = _useState4[1]; //推荐版块
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
author = _useState6[0],
|
|
|
setAuthor = _useState6[1]; //推荐作者
|
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (props.plateId) {
|
|
|
(0,forums/* getForumMemosRight */.Nv)(props.plateId).then(function (res) {
|
|
|
if (res) {
|
|
|
setContent({
|
|
|
notice: res.notice,
|
|
|
login: res.user_login,
|
|
|
name: res.username
|
|
|
});
|
|
|
setRecommand(res.recommend_forum_sections);
|
|
|
setAuthor(res.active_users);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, [props.plateId]);
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Rightmodules.leZGks,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Rightmodules.cBZjMI,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Search/* default */.Z, {
|
|
|
onSearch: props
|
|
|
}), content && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Rightmodules.kJYYQv,
|
|
|
style: {
|
|
|
marginTop: "20px"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Announcement, {
|
|
|
plateId: props.plateId,
|
|
|
content: content,
|
|
|
operation: props.operation
|
|
|
})
|
|
|
}), author && author.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Rightmodules.kJYYQv,
|
|
|
style: {
|
|
|
marginTop: "20px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Rightmodules.gMAmTc,
|
|
|
children: "\u7248\u5757\u6D3B\u8DC3\u4F5C\u8005"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
className: Rightmodules.authorUl,
|
|
|
children: author.map(function (item, key) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: "/forums/accounts/".concat(item.login, "/memos"),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Rightmodules.igfjXB,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
src: env/* default */.Z.IMG_SERVER + '/images/' + item.image_url,
|
|
|
alt: ""
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(Rightmodules.commColor, " ").concat(Rightmodules.username, " ").concat(Rightmodules.taskHide),
|
|
|
children: item.username
|
|
|
})]
|
|
|
})
|
|
|
}, key);
|
|
|
})
|
|
|
})]
|
|
|
}), recommand && recommand.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Rightmodules.kJYYQv,
|
|
|
style: {
|
|
|
marginTop: "20px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Rightmodules.gMAmTc,
|
|
|
children: "\u7CBE\u9009\u677F\u5757"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
className: Rightmodules.BestModalUl,
|
|
|
children: recommand.map(function (item, key) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Rightmodules.kTLhbM,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
className: Rightmodules.eKzhkv,
|
|
|
src: item.picture ? env/* default */.Z.IMG_SERVER + '' + item.picture : radius
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
flex: "1 1",
|
|
|
padding: "5px 0"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
className: Rightmodules.commColor,
|
|
|
href: "/forums/subject/".concat(item.id),
|
|
|
children: item.title
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
className: Rightmodules.dyKuue,
|
|
|
children: item.description || "暂无描述~"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: Rightmodules.sizeAndColor,
|
|
|
children: [item.watchers_count, "\u4EBA\u6536\u85CF", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: "ml15",
|
|
|
children: [item.memos_count, "\u4E2A\u8BDD\u9898"]
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}, key);
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Right = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
var loading = _ref2.loading,
|
|
|
globalSetting = _ref2.globalSetting;
|
|
|
return {
|
|
|
globalSetting: globalSetting,
|
|
|
loading: loading.effects
|
|
|
};
|
|
|
})(Right_subject));
|
|
|
// EXTERNAL MODULE: ./src/pages/Forums/Index/components/ListItem/index.tsx + 1 modules
|
|
|
var ListItem = __webpack_require__(1491);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Subjectmodules = ({"flex":"flex___CV41D","gMAmTc":"gMAmTc___ldsIB","kJYYQv":"kJYYQv___H0Qkw","kTLhbM":"kTLhbM___Lhcqk","listPagin":"listPagin___eIlPC","iwMcWy":"iwMcWy___IG9f8","kgxtyB":"kgxtyB___ohnYj","cPointer":"cPointer___GUrow","subject":"subject___XO4ID","introduce":"introduce___JCsi1","gTAsMD":"gTAsMD___F4ODX","gcTjcF":"gcTjcF____N2E3","cOuXkk":"cOuXkk___SbTc5","eHDXvH":"eHDXvH___O2wey","fontsize":"fontsize___ipfLj"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/Theme.less
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Forums/Subject/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Subject_excluded = ["globalSetting", "loading", "user", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Subject_subject = function subject(_ref) {
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
loading = _ref.loading,
|
|
|
user = _ref.user,
|
|
|
dispatch = _ref.dispatch,
|
|
|
props = objectWithoutProperties_default()(_ref, Subject_excluded);
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
operation = _useState2[0],
|
|
|
setOperation = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)("all"),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
menuKey = _useState4[0],
|
|
|
setMenuKey = _useState4[1]; //tab
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(""),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
search = _useState6[0],
|
|
|
setSearch = _useState6[1]; //搜索内容
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(true),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
listSpin = _useState8[0],
|
|
|
setListSpin = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)("published_at"),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
sort = _useState10[0],
|
|
|
setSort = _useState10[1]; //排序
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
pageSize = _useState12[0],
|
|
|
setPageSize = _useState12[1]; //每页条数
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(1),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
page = _useState14[0],
|
|
|
setPage = _useState14[1];
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
total = _useState16[0],
|
|
|
setTotal = _useState16[1];
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
memos = _useState18[0],
|
|
|
setMemos = _useState18[1]; //帖子列表
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
breadCrumb = _useState20[0],
|
|
|
setBreadCrumb = _useState20[1];
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
headData = _useState22[0],
|
|
|
setHeadData = _useState22[1]; // 头部信息
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
var plateMainId = params === null || params === void 0 ? void 0 : params.plateMainId;
|
|
|
var current_user = user.userInfo;
|
|
|
console.log('----', params);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
// 获取主题顶部数据
|
|
|
if (plateMainId && current_user) {
|
|
|
(0,forums/* getForumMemosHead */.F0)(plateMainId).then(function (res) {
|
|
|
if (res) {
|
|
|
setBreadCrumb(res.bread_crumb.forum_tag);
|
|
|
setHeadData(res);
|
|
|
filterUsers(current_user, res.forum_moders, res.forum_section_user);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, [plateMainId, current_user]);
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (plateMainId) {
|
|
|
InitList();
|
|
|
}
|
|
|
}, [plateMainId, page, search, menuKey, sort]);
|
|
|
function InitList() {
|
|
|
return _InitList.apply(this, arguments);
|
|
|
} // 判断当前用户是否是版主或者管理员
|
|
|
function _InitList() {
|
|
|
_InitList = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
var params;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
setListSpin(true);
|
|
|
params = {
|
|
|
id: plateMainId,
|
|
|
page: page,
|
|
|
search: search,
|
|
|
sort: sort,
|
|
|
select_type: menuKey
|
|
|
};
|
|
|
(0,forums/* getForumMemosList */.MM)(params).then(function (res) {
|
|
|
if (res) {
|
|
|
setMemos(res.memos);
|
|
|
setTotal(res.memos_count);
|
|
|
setListSpin(false);
|
|
|
setPageSize(res.limit);
|
|
|
}
|
|
|
});
|
|
|
case 3:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return _InitList.apply(this, arguments);
|
|
|
}
|
|
|
function filterUsers(currentUser, moders, users) {
|
|
|
if (currentUser) {
|
|
|
var admin = moders && moders.filter(function (item) {
|
|
|
return item.user_login === current_user.login;
|
|
|
}); //管理员
|
|
|
var creater = users && users.user_login === current_user.login; //版主
|
|
|
setOperation(admin && admin.length > 0 || creater);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 搜索
|
|
|
function onSearch(e) {
|
|
|
setSearch(e);
|
|
|
}
|
|
|
// 翻页
|
|
|
function changePage(page) {
|
|
|
setPage(page);
|
|
|
}
|
|
|
function changeMenu(e) {
|
|
|
setMenuKey(e.key);
|
|
|
}
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Subjectmodules.subject,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
|
|
|
separator: ">",
|
|
|
style: {
|
|
|
marginBottom: "10px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_react_router_dom_6_3_0_react_router_dom/* Link */.rU, {
|
|
|
to: "/forums",
|
|
|
children: "\u8BBA\u575B\u4EA4\u6D41"
|
|
|
})
|
|
|
}), breadCrumb && breadCrumb.title ? /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_react_router_dom_6_3_0_react_router_dom/* Link */.rU, {
|
|
|
to: "/forums/subject/".concat(breadCrumb.id),
|
|
|
children: breadCrumb.title
|
|
|
})
|
|
|
}) : "", breadCrumb && breadCrumb.children_bread_crumb ? /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
children: breadCrumb.children_bread_crumb && breadCrumb.children_bread_crumb.title
|
|
|
}) : ""]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Top, {
|
|
|
headData: headData,
|
|
|
operation: operation,
|
|
|
plateMainId: plateMainId
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "".concat(Subjectmodules.kgxtyB, " ").concat(Subjectmodules.kJYYQv),
|
|
|
style: {
|
|
|
marginBottom: "15px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Subjectmodules.cOuXkk,
|
|
|
style: {
|
|
|
borderBottom: "1px solid #eee"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z, {
|
|
|
className: "unlow newMenu",
|
|
|
selectedKeys: [menuKey],
|
|
|
onClick: changeMenu,
|
|
|
mode: "horizontal",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
children: "\u5168\u90E8"
|
|
|
}, "all"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
children: "\u63A8\u8350\u7CBE\u534E"
|
|
|
}, "is_fine"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
children: "\u6211\u7684\u8BDD\u9898"
|
|
|
}, "my_memos"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
children: "\u6211\u53C2\u4E0E\u7684\u8BDD\u9898"
|
|
|
}, "my_topics")]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "".concat(Subjectmodules.kTLhbM, " ").concat(Subjectmodules.fontsize),
|
|
|
style: {
|
|
|
marginRight: "30px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: Subjectmodules.cPointer,
|
|
|
onClick: function onClick() {
|
|
|
setSort("published_at");
|
|
|
},
|
|
|
style: {
|
|
|
color: sort === "published_at" ? '#21b350' : ""
|
|
|
},
|
|
|
children: "\u6700\u65B0"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(Subjectmodules.iwMcWy, " ").concat(Subjectmodules.cPointer, " ").concat(Subjectmodules.fontsize),
|
|
|
style: {
|
|
|
color: sort === "replies_count" ? '#21b350' : ""
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
setSort("replies_count");
|
|
|
},
|
|
|
children: "\u6700\u70ED"
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
spinning: listSpin,
|
|
|
children: memos && memos.length > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
minHeight: "400px"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ListItem/* default */.Z, {
|
|
|
memos: memos,
|
|
|
calbackFunc: InitList
|
|
|
})
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
|
customText: "\u6682\u65E0\u5E16\u5B50",
|
|
|
styles: {
|
|
|
height: "400px"
|
|
|
}
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Subjectmodules.listPagin,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
|
showQuickJumper: true,
|
|
|
current: page,
|
|
|
onChange: changePage,
|
|
|
total: total,
|
|
|
pageSize: pageSize
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Right, {
|
|
|
onSearch: onSearch,
|
|
|
operation: operation,
|
|
|
plateId: plateMainId
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Subject = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
var loading = _ref2.loading,
|
|
|
user = _ref2.user,
|
|
|
globalSetting = _ref2.globalSetting;
|
|
|
return {
|
|
|
globalSetting: globalSetting,
|
|
|
user: user,
|
|
|
loading: loading.effects
|
|
|
};
|
|
|
})(Subject_subject));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 66104:
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
|
|
|
\**************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
Z: function() { return /* binding */ breadcrumb; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
|
|
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
|
|
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/Children/toArray.js
|
|
|
var toArray = __webpack_require__(11592);
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/pickAttrs.js
|
|
|
var pickAttrs = __webpack_require__(26112);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
|
|
var reactNode = __webpack_require__(92343);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
|
|
var context = __webpack_require__(36355);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
|
|
var DownOutlined = __webpack_require__(84105);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
|
|
var dropdown = __webpack_require__(91857);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
const BreadcrumbSeparator = _ref => {
|
|
|
let {
|
|
|
children
|
|
|
} = _ref;
|
|
|
const {
|
|
|
getPrefixCls
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
const prefixCls = getPrefixCls('breadcrumb');
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
|
|
|
className: `${prefixCls}-separator`,
|
|
|
"aria-hidden": "true"
|
|
|
}, children === '' ? children : children || '/');
|
|
|
};
|
|
|
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
|
|
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
|
|
|
"use client";
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function getBreadcrumbName(route, params) {
|
|
|
if (route.title === undefined || route.title === null) {
|
|
|
return null;
|
|
|
}
|
|
|
const paramsKeys = Object.keys(params).join('|');
|
|
|
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
|
|
|
}
|
|
|
function renderItem(prefixCls, item, children, href) {
|
|
|
if (children === null || children === undefined) {
|
|
|
return null;
|
|
|
}
|
|
|
const {
|
|
|
className,
|
|
|
onClick
|
|
|
} = item,
|
|
|
restItem = __rest(item, ["className", "onClick"]);
|
|
|
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
|
|
|
data: true,
|
|
|
aria: true
|
|
|
})), {
|
|
|
onClick
|
|
|
});
|
|
|
if (href !== undefined) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
|
|
|
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
|
|
|
href: href
|
|
|
}), children);
|
|
|
}
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
|
|
|
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
|
|
|
}), children);
|
|
|
}
|
|
|
function useItemRender(prefixCls, itemRender) {
|
|
|
const mergedItemRender = (item, params, routes, path, href) => {
|
|
|
if (itemRender) {
|
|
|
return itemRender(item, params, routes, path);
|
|
|
}
|
|
|
const name = getBreadcrumbName(item, params);
|
|
|
return renderItem(prefixCls, item, name, href);
|
|
|
};
|
|
|
return mergedItemRender;
|
|
|
}
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
|
|
|
"use client";
|
|
|
|
|
|
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const InternalBreadcrumbItem = props => {
|
|
|
const {
|
|
|
prefixCls,
|
|
|
separator = '/',
|
|
|
children,
|
|
|
menu,
|
|
|
overlay,
|
|
|
dropdownProps,
|
|
|
href
|
|
|
} = props;
|
|
|
// Warning for deprecated usage
|
|
|
if (false) {}
|
|
|
/** If overlay is have Wrap a Dropdown */
|
|
|
const renderBreadcrumbNode = breadcrumbItem => {
|
|
|
if (menu || overlay) {
|
|
|
const mergeDropDownProps = Object.assign({}, dropdownProps);
|
|
|
if (menu) {
|
|
|
const _a = menu || {},
|
|
|
{
|
|
|
items
|
|
|
} = _a,
|
|
|
menuProps = BreadcrumbItem_rest(_a, ["items"]);
|
|
|
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
|
|
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
|
|
|
var {
|
|
|
key,
|
|
|
title,
|
|
|
label,
|
|
|
path
|
|
|
} = _a,
|
|
|
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
|
|
|
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
|
|
if (path) {
|
|
|
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
|
|
|
href: `${href}${path}`
|
|
|
}, mergedLabel);
|
|
|
}
|
|
|
return Object.assign(Object.assign({}, itemProps), {
|
|
|
key: key !== null && key !== void 0 ? key : index,
|
|
|
label: mergedLabel
|
|
|
});
|
|
|
})
|
|
|
});
|
|
|
} else if (overlay) {
|
|
|
mergeDropDownProps.overlay = overlay;
|
|
|
}
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
|
|
|
placement: "bottom"
|
|
|
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
className: `${prefixCls}-overlay-link`
|
|
|
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
|
|
|
}
|
|
|
return breadcrumbItem;
|
|
|
};
|
|
|
// wrap to dropDown
|
|
|
const link = renderBreadcrumbNode(children);
|
|
|
if (link !== undefined && link !== null) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
|
|
|
}
|
|
|
return null;
|
|
|
};
|
|
|
const BreadcrumbItem = props => {
|
|
|
const {
|
|
|
prefixCls: customizePrefixCls,
|
|
|
children,
|
|
|
href
|
|
|
} = props,
|
|
|
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
|
|
|
const {
|
|
|
getPrefixCls
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
|
|
|
prefixCls: prefixCls
|
|
|
}), renderItem(prefixCls, restProps, children, href));
|
|
|
};
|
|
|
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
|
|
|
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
|
|
|
var style = __webpack_require__(17313);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
|
|
|
var genComponentStyleHook = __webpack_require__(83116);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
|
|
|
var statistic = __webpack_require__(37613);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
|
|
|
|
|
|
|
|
|
const genBreadcrumbStyle = token => {
|
|
|
const {
|
|
|
componentCls,
|
|
|
iconCls
|
|
|
} = token;
|
|
|
return {
|
|
|
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
|
|
color: token.itemColor,
|
|
|
fontSize: token.fontSize,
|
|
|
[iconCls]: {
|
|
|
fontSize: token.iconFontSize
|
|
|
},
|
|
|
ol: {
|
|
|
display: 'flex',
|
|
|
flexWrap: 'wrap',
|
|
|
margin: 0,
|
|
|
padding: 0,
|
|
|
listStyle: 'none'
|
|
|
},
|
|
|
a: Object.assign({
|
|
|
color: token.linkColor,
|
|
|
transition: `color ${token.motionDurationMid}`,
|
|
|
padding: `0 ${token.paddingXXS}px`,
|
|
|
borderRadius: token.borderRadiusSM,
|
|
|
height: token.lineHeight * token.fontSize,
|
|
|
display: 'inline-block',
|
|
|
marginInline: -token.marginXXS,
|
|
|
'&:hover': {
|
|
|
color: token.linkHoverColor,
|
|
|
backgroundColor: token.colorBgTextHover
|
|
|
}
|
|
|
}, (0,style/* genFocusStyle */.Qy)(token)),
|
|
|
[`li:last-child`]: {
|
|
|
color: token.lastItemColor
|
|
|
},
|
|
|
[`${componentCls}-separator`]: {
|
|
|
marginInline: token.separatorMargin,
|
|
|
color: token.separatorColor
|
|
|
},
|
|
|
[`${componentCls}-link`]: {
|
|
|
[`
|
|
|
> ${iconCls} + span,
|
|
|
> ${iconCls} + a
|
|
|
`]: {
|
|
|
marginInlineStart: token.marginXXS
|
|
|
}
|
|
|
},
|
|
|
[`${componentCls}-overlay-link`]: {
|
|
|
borderRadius: token.borderRadiusSM,
|
|
|
height: token.lineHeight * token.fontSize,
|
|
|
display: 'inline-block',
|
|
|
padding: `0 ${token.paddingXXS}px`,
|
|
|
marginInline: -token.marginXXS,
|
|
|
[`> ${iconCls}`]: {
|
|
|
marginInlineStart: token.marginXXS,
|
|
|
fontSize: token.fontSizeIcon
|
|
|
},
|
|
|
'&:hover': {
|
|
|
color: token.linkHoverColor,
|
|
|
backgroundColor: token.colorBgTextHover,
|
|
|
a: {
|
|
|
color: token.linkHoverColor
|
|
|
}
|
|
|
},
|
|
|
a: {
|
|
|
'&:hover': {
|
|
|
backgroundColor: 'transparent'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
// rtl style
|
|
|
[`&${token.componentCls}-rtl`]: {
|
|
|
direction: 'rtl'
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
};
|
|
|
// ============================== Export ==============================
|
|
|
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
|
|
|
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
|
|
|
return [genBreadcrumbStyle(BreadcrumbToken)];
|
|
|
}, token => ({
|
|
|
itemColor: token.colorTextDescription,
|
|
|
lastItemColor: token.colorText,
|
|
|
iconFontSize: token.fontSize,
|
|
|
linkColor: token.colorTextDescription,
|
|
|
linkHoverColor: token.colorText,
|
|
|
separatorColor: token.colorTextDescription,
|
|
|
separatorMargin: token.marginXS
|
|
|
})));
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
|
|
|
var useItems_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
function route2item(route) {
|
|
|
const {
|
|
|
breadcrumbName,
|
|
|
children
|
|
|
} = route,
|
|
|
rest = useItems_rest(route, ["breadcrumbName", "children"]);
|
|
|
const clone = Object.assign({
|
|
|
title: breadcrumbName
|
|
|
}, rest);
|
|
|
if (children) {
|
|
|
clone.menu = {
|
|
|
items: children.map(_a => {
|
|
|
var {
|
|
|
breadcrumbName: itemBreadcrumbName
|
|
|
} = _a,
|
|
|
itemProps = useItems_rest(_a, ["breadcrumbName"]);
|
|
|
return Object.assign(Object.assign({}, itemProps), {
|
|
|
title: itemBreadcrumbName
|
|
|
});
|
|
|
})
|
|
|
};
|
|
|
}
|
|
|
return clone;
|
|
|
}
|
|
|
function useItems(items, routes) {
|
|
|
return (0,_react_17_0_2_react.useMemo)(() => {
|
|
|
if (items) {
|
|
|
return items;
|
|
|
}
|
|
|
if (routes) {
|
|
|
return routes.map(route2item);
|
|
|
}
|
|
|
return null;
|
|
|
}, [items, routes]);
|
|
|
}
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
|
|
|
"use client";
|
|
|
|
|
|
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getPath = (params, path) => {
|
|
|
if (path === undefined) {
|
|
|
return path;
|
|
|
}
|
|
|
let mergedPath = (path || '').replace(/^\//, '');
|
|
|
Object.keys(params).forEach(key => {
|
|
|
mergedPath = mergedPath.replace(`:${key}`, params[key]);
|
|
|
});
|
|
|
return mergedPath;
|
|
|
};
|
|
|
const Breadcrumb = props => {
|
|
|
const {
|
|
|
prefixCls: customizePrefixCls,
|
|
|
separator = '/',
|
|
|
style,
|
|
|
className,
|
|
|
rootClassName,
|
|
|
routes: legacyRoutes,
|
|
|
items,
|
|
|
children,
|
|
|
itemRender,
|
|
|
params = {}
|
|
|
} = props,
|
|
|
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
|
|
const {
|
|
|
getPrefixCls,
|
|
|
direction,
|
|
|
breadcrumb
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
let crumbs;
|
|
|
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
|
|
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
|
|
|
const mergedItems = useItems(items, legacyRoutes);
|
|
|
if (false) {}
|
|
|
const mergedItemRender = useItemRender(prefixCls, itemRender);
|
|
|
if (mergedItems && mergedItems.length > 0) {
|
|
|
// generated by route
|
|
|
const paths = [];
|
|
|
const itemRenderRoutes = items || legacyRoutes;
|
|
|
crumbs = mergedItems.map((item, index) => {
|
|
|
const {
|
|
|
path,
|
|
|
key,
|
|
|
type,
|
|
|
menu,
|
|
|
overlay,
|
|
|
onClick,
|
|
|
className: itemClassName,
|
|
|
separator: itemSeparator,
|
|
|
dropdownProps
|
|
|
} = item;
|
|
|
const mergedPath = getPath(params, path);
|
|
|
if (mergedPath !== undefined) {
|
|
|
paths.push(mergedPath);
|
|
|
}
|
|
|
const mergedKey = key !== null && key !== void 0 ? key : index;
|
|
|
if (type === 'separator') {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
|
|
|
key: mergedKey
|
|
|
}, itemSeparator);
|
|
|
}
|
|
|
const itemProps = {};
|
|
|
const isLastItem = index === mergedItems.length - 1;
|
|
|
if (menu) {
|
|
|
itemProps.menu = menu;
|
|
|
} else if (overlay) {
|
|
|
itemProps.overlay = overlay;
|
|
|
}
|
|
|
let {
|
|
|
href
|
|
|
} = item;
|
|
|
if (paths.length && mergedPath !== undefined) {
|
|
|
href = `#/${paths.join('/')}`;
|
|
|
}
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
|
|
|
key: mergedKey
|
|
|
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
|
|
|
data: true,
|
|
|
aria: true
|
|
|
}), {
|
|
|
className: itemClassName,
|
|
|
dropdownProps: dropdownProps,
|
|
|
href: href,
|
|
|
separator: isLastItem ? '' : separator,
|
|
|
onClick: onClick,
|
|
|
prefixCls: prefixCls
|
|
|
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
|
|
|
});
|
|
|
} else if (children) {
|
|
|
const childrenLength = (0,toArray/* default */.Z)(children).length;
|
|
|
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
|
|
|
if (!element) {
|
|
|
return element;
|
|
|
}
|
|
|
// =================== Warning =====================
|
|
|
if (false) {}
|
|
|
false ? 0 : void 0;
|
|
|
const isLastItem = index === childrenLength - 1;
|
|
|
return (0,reactNode/* cloneElement */.Tm)(element, {
|
|
|
separator: isLastItem ? '' : separator,
|
|
|
key: index
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
|
|
|
[`${prefixCls}-rtl`]: direction === 'rtl'
|
|
|
}, className, rootClassName, hashId);
|
|
|
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
|
|
|
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
|
|
|
className: breadcrumbClassName,
|
|
|
style: mergedStyle
|
|
|
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
|
|
|
};
|
|
|
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
|
|
|
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
|
|
|
if (false) {}
|
|
|
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 57377:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/forums/radius.png ***!
|
|
|
\*********************************************/
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAGHklEQVRoQ+WbTWwbRRTH/2/87cZO7JA0sUOTSi1I3BAcQJS2qkTVSoDUA0KUCyck4EKlcgCJExIXKpULIHGBC0WIQw9FauFQ0Q8+Dki9IUGrxgl24jSN7cSOP9f70Gxiy0kc7+x6a7fy3Cy/j/ntzM6892aW8IDawsJCsBbkF3SdnxVET4D5SRBNAAgxOCTdEigPIA/mNIj+0Zn/FYL+8hTpt1gsVnwQXSMnjabz6fGSpp0WTKd06M8RyGvHPoOrAuJPnfhiwO2+MBGauGfHTjsdR4DnswuHGXyWmU8CcDvVuU07GhFdJtC5fZHY9W5tdwX8X3bxaJ3rnwA41G1HFPVvusj18eORyV8V5XeI2QJOLCcmhcdzjhlvMLMtG7Y7TMRE+F6v1c7OjM0sWrVjubNzK8nXWOBrMEasOnNUnpAjHW9Pj079aMWuMjAze+eyqfNE9E6vR3U3ICJiZv5qOhI/Q0RVFXAl4Nsrt8NeEbzIzMdUjPZahoiuVvXiqYOjB9fMfJsC30nfGXd7/VcAPG1mrM//39Kq5RMHJg503MI6AsuR9VBArogPO2zjWd+qcelop5HeFVi+s/O5hcsP6zTu8F5f3TcSO7nbO70rcCKT/ALAu32epnbdfzkTnXpPOdKSWw8E/fCwrMZWqeXqDZ1fb7dl7RhhGVTA7f677/ssgD3eALwuD2p1DYWqxVyCkIOmPbU9ONkBPJ9LfafrfNrqU3VSnkAYG4oi4PE3zVa0Ku4VVqCzruxKCLqwbyT+ZqvCFmAZG+vQr/ZzKkvY8aFR+D2+HWBVrYolC9ByaguIY62x9xbgRCZ5w0oi4BYuDPvD8LjcMrfd9cnXuY61cgFlrdJxdDrBNhRtQN+YjsQPN/SbvZQpns76NdX5IkggFh6HS7iUVJgZy+sZlGrltvIqsHahBYkjjdSyCZzIJC8BeFmp9wCG/SGMBMKq4oacfA/T+eUdOlZgbUL/NBOdekXqGsCyUlGuaSkryXs0OIKQb48lYE2vI7Wa3qJjB7YVOp2/Dwab9UPze9xxWTkxgGezyfeJcd5Mq/V/p4AjgTDCfqPEZautlvPIlUxzBjDhzP7I1OcG8FwmdY3BzRdbxbNTwPHhCcjFz27b7TXZbo9A16ej8SMkq4sVfz1rteDmFHAsvNdY5e22YrVkLIZmTRYGfWVXhO6uzB8XJH42U9j+v1PAch2Qtuw0ufLLRbBarympk6DjNJtJfkjAp0oaLUJOAUuTo8EIhnxBS10wtrlCBiWt/TbXzhgDH9FcNvUNM79lyRtgjIoTq3TDrxVoO7DSDxF9S3OZ5O8MPN9vYNWRtgtrAAN/UCKTmgV4xirwiD+M4YC17aSq1bCY73yI0Gmku4Hd4KOEnNLLzPyYVWC3cBuhJZFpWaxpOlPMIV9ZN3XVDrp7WGNK36dENlkGY2dqYtotwOf2Gu+yR7g7gtf1jeRhrVJQsLohIsPWsG/IsCsjtJX1rGnyYWqcUOkK2NRBlwIy7JRBSU3XurS0qS6B7U5pZ3rQWyvGlJ7Lpu4y8/7euu6PNyKatb0t9afL3Xk1tiW7gYd07VTFQ67zMmOSNaxOlROZBhZrJWMBtNOMwMNuaOlkxWNsTxRBb0CZoVBZx0oxpyzfENwILXOpl1jnX6xqO1XxkJmSzJistuRqGnK7s9KM5KHf6aHf7cPekOW4B4tr95SzJPlQmumh/NHPAkCvgJsFAAnczxJPr4C3lHj6WcTrEfDWIp4cZatlWqfy4V4AE9Gl6Uj8VclpuxD/KAG3LcRvjrLyUcsjBHxzJjr1YmP7sn2Y9igAmx6myaegelzqVMVDnv9OhsetxA+GbGp1CZpJ2mh6XGpMa8UDcScrHhOhMaOYoNrKtQqWCvc7i6seiBuBiOKVB6cqHi4SRuXE7/FDdCgZycPwUrWMTGm148G4pSsPjcc2UJdajNhz0K4tSeiBupjWmNoDdfWwAT1Ql0ub1YJBuj7cuuENzAXxVuiB+gSgFXxgPvLYHtNt3vH6AMAJKzeBFENJec5yRZD4rO+f8Wzv8MB8qNVupGQ1tOzTDhGJZxqf4jFokghDrZ/iMaNA4MVefYr3P8ho3IGRR4W+AAAAAElFTkSuQmCC";
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |