|
|
|
|
@ -73,6 +73,8 @@ var es_button = __webpack_require__(3113);
|
|
|
|
|
/* harmony default export */ var Commentmodules = ({"flex_box_center":"flex_box_center___Cr67s","flex_space_between":"flex_space_between___yz6wQ","flex_box_vertical_center":"flex_box_vertical_center___TIsXG","flex_box_center_end":"flex_box_center_end___FBLGZ","flex_box_column":"flex_box_column___gRE9O","reply":"reply___IBOn9","replyList":"replyList___kTYWa","comment":"comment___Gxxyf","content":"content___Hq8yF","commentItem":"commentItem___U16wJ","commentParItem":"commentParItem___oYqHD","submitStyle":"submitStyle___QdfDF"});
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/forums.ts
|
|
|
|
|
var forums = __webpack_require__(19471);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/broadcast.ts
|
|
|
|
|
var broadcast = __webpack_require__(69630);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Magazine/Detail/Comment/components/Second.tsx
|
|
|
|
|
@ -88,6 +90,8 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dayjs_min_default().locale("ZH-cn");
|
|
|
|
|
function second(_ref) {
|
|
|
|
|
var user = _ref.user,
|
|
|
|
|
@ -101,7 +105,7 @@ function second(_ref) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: Commentmodules.comment,
|
|
|
|
|
children: vlist.map(function (val, key) {
|
|
|
|
|
var _user$userInfo, _user$userInfo2;
|
|
|
|
|
var _user$userInfo, _user$userInfo2, _user$userInfo3;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: Commentmodules.commentItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
@ -125,7 +129,83 @@ function second(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: val.time
|
|
|
|
|
})]
|
|
|
|
|
}), (val.can_delete || val.user_id === ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) || val.user_login === ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login)) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
}), val.user_id != ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: "forums-comment-par-delete",
|
|
|
|
|
style: {
|
|
|
|
|
display: 'none'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: "\u8BBE\u7F6E",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shezhi8 mr20 font14",
|
|
|
|
|
style: {
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var is_forbid_msg = false;
|
|
|
|
|
(0,broadcast/* forbid_msg_status */.CR)({
|
|
|
|
|
id: params === null || params === void 0 ? void 0 : params.id,
|
|
|
|
|
user_id: val === null || val === void 0 ? void 0 : val.user_id
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
is_forbid_msg = res !== null && res !== void 0 && res.forbid_msg_status ? true : false;
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
icon: null,
|
|
|
|
|
title: '禁言设置',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
|
|
|
|
|
defaultChecked: is_forbid_msg,
|
|
|
|
|
checkedChildren: "\u662F",
|
|
|
|
|
unCheckedChildren: "\u5426",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
is_forbid_msg = e;
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
(0,broadcast/* forbid_msg */.eh)({
|
|
|
|
|
id: params === null || params === void 0 ? void 0 : params.id,
|
|
|
|
|
user_id: val === null || val === void 0 ? void 0 : val.user_id,
|
|
|
|
|
is_forbid_msg: is_forbid_msg
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
return onOk;
|
|
|
|
|
}()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), (val.can_delete || val.user_id === ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id) || val.user_login === ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login)) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: "forums-comment-delete",
|
|
|
|
|
style: {
|
|
|
|
|
display: 'none'
|
|
|
|
|
@ -146,18 +226,18 @@ function second(_ref) {
|
|
|
|
|
children: "\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var res, filterData;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,forums/* deleteForums */.sW)({
|
|
|
|
|
id: val.id,
|
|
|
|
|
memo_type: 'magazine'
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
filterData = memo_replies.find(function (x) {
|
|
|
|
|
return x.id === id;
|
|
|
|
|
}).children.filter(function (y) {
|
|
|
|
|
@ -175,12 +255,12 @@ function second(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk.apply(this, arguments);
|
|
|
|
|
return _onOk2.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
return onOk;
|
|
|
|
|
}()
|
|
|
|
|
@ -226,6 +306,7 @@ var util = __webpack_require__(27876);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dayjs_min_default().locale("ZH-cn");
|
|
|
|
|
var Comment = function Comment(_ref, ref) {
|
|
|
|
|
@ -374,7 +455,7 @@ var Comment = function Comment(_ref, ref) {
|
|
|
|
|
},
|
|
|
|
|
children: v.time
|
|
|
|
|
})]
|
|
|
|
|
}), v.user_id == ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
}), v.user_id != ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: "forums-comment-par-delete",
|
|
|
|
|
style: {
|
|
|
|
|
display: 'none'
|
|
|
|
|
@ -387,45 +468,65 @@ var Comment = function Comment(_ref, ref) {
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
icon: null,
|
|
|
|
|
title: '禁言设置',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
|
|
|
|
|
checkedChildren: "\u662F",
|
|
|
|
|
unCheckedChildren: "\u5426",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
var is_forbid_msg = false;
|
|
|
|
|
(0,broadcast/* forbid_msg_status */.CR)({
|
|
|
|
|
id: params === null || params === void 0 ? void 0 : params.id,
|
|
|
|
|
user_id: v === null || v === void 0 ? void 0 : v.user_id
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
is_forbid_msg = res !== null && res !== void 0 && res.forbid_msg_status ? true : false;
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
okText: '确定',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
icon: null,
|
|
|
|
|
title: '禁言设置',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
|
|
|
|
|
defaultChecked: is_forbid_msg,
|
|
|
|
|
checkedChildren: "\u662F",
|
|
|
|
|
unCheckedChildren: "\u5426",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
is_forbid_msg = e;
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
(0,broadcast/* forbid_msg */.eh)({
|
|
|
|
|
id: params === null || params === void 0 ? void 0 : params.id,
|
|
|
|
|
user_id: v === null || v === void 0 ? void 0 : v.user_id,
|
|
|
|
|
is_forbid_msg: is_forbid_msg
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
return onOk;
|
|
|
|
|
}()
|
|
|
|
|
return onOk;
|
|
|
|
|
}()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
@ -752,8 +853,6 @@ var Comment = function Comment(_ref, ref) {
|
|
|
|
|
}, null, null, {
|
|
|
|
|
forwardRef: true
|
|
|
|
|
})( /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(Comment)));
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/broadcast.ts
|
|
|
|
|
var broadcast = __webpack_require__(69630);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
|
|
|
|
|
var PreviewAll = __webpack_require__(89976);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Magazine/Detail/index.tsx
|
|
|
|
|
@ -876,7 +975,7 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
centered: true,
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: '是否删除该广播消息',
|
|
|
|
|
content: '是否删除该稿件',
|
|
|
|
|
icon: null,
|
|
|
|
|
okText: '确认',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
@ -1101,12 +1200,14 @@ var PollDetail = function PollDetail(_ref) {
|
|
|
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
|
|
|
|
|
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
|
|
|
|
|
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
|
|
|
|
|
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
|
|
|
|
|
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
|
|
|
|
|
/* harmony export */ To: function() { return /* binding */ apply_public; },
|
|
|
|
|
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
|
|
|
|
|
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
|
|
|
|
|
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
|
|
|
|
|
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
|
|
|
|
|
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
@ -1295,6 +1396,8 @@ function _cancel_public() {
|
|
|
|
|
function magazine_cates_query() {
|
|
|
|
|
return _magazine_cates_query.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询禁言状态
|
|
|
|
|
function _magazine_cates_query() {
|
|
|
|
|
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
@ -1311,6 +1414,48 @@ function _magazine_cates_query() {
|
|
|
|
|
}));
|
|
|
|
|
return _magazine_cates_query.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function forbid_msg_status(_x9) {
|
|
|
|
|
return _forbid_msg_status.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 禁言/取消禁言
|
|
|
|
|
function _forbid_msg_status() {
|
|
|
|
|
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}));
|
|
|
|
|
return _forbid_msg_status.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function forbid_msg(_x10) {
|
|
|
|
|
return _forbid_msg.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _forbid_msg() {
|
|
|
|
|
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
return _forbid_msg.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|