"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[4884],{ /***/ 9516: /*!*******************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_CheckOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // 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/CheckOutlined.js // This icon file is generated automatically. var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" }; /* harmony default export */ var asn_CheckOutlined = (CheckOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CheckOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_CheckOutlined })); }; /**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTBoLTY5LjljLTkuOCAwLTE5LjEgNC41LTI1LjEgMTIuMkw0MDQuNyA3MjQuNSAyMDcgNDc0YTMyIDMyIDAgMDAtMjUuMS0xMi4ySDExMmMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMjczLjkgMzQ3YzEyLjggMTYuMiAzNy40IDE2LjIgNTAuMyAwbDQ4OC40LTYxOC45YzQuMS01LjEuNC0xMi44LTYuMy0xMi44eiIgLz48L3N2Zz4=) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined); if (false) {} /* harmony default export */ var icons_CheckOutlined = (RefIcon); /***/ }), /***/ 62734: /*!**************************************************************************!*\ !*** ./src/pages/Shixuns/Detail/Repository/Commit/index.tsx + 1 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 */ Repository_Commit; } }); // 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__(80608); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Repository/Commit/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Commitmodules = ({"bg":"bg___GqpQF","wrap":"wrap___DbTSK","commitWrap":"commitWrap___amrYc","colorGray":"colorGray___Cz49B","content":"content___AIRyv","item":"item___AxLEf","itemContent":"itemContent___zj1HZ","itemEmail":"itemEmail___IqeJO","itemTitle":"itemTitle___lQYBA","itemTime":"itemTime___OFq07"}); // EXTERNAL MODULE: ./src/pages/Shixuns/Detail/components/Right/index.tsx + 4 modules var Right = __webpack_require__(77379); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js var jsx_runtime = __webpack_require__(37712); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Repository/Commit/index.tsx var _excluded = ["shixunsDetail", "globalSetting", "loading", "user", "dispatch"]; var Commit = function Commit(_ref) { var shixunsDetail = _ref.shixunsDetail, globalSetting = _ref.globalSetting, loading = _ref.loading, user = _ref.user, dispatch = _ref.dispatch, props = objectWithoutProperties_default()(_ref, _excluded); var params = (0,_umi_production_exports.useParams)(); var isRepository = (0,_react_17_0_2_react.useRef)(); var _useState = (0,_react_17_0_2_react.useState)([]), _useState2 = slicedToArray_default()(_useState, 2), commitList = _useState2[0], setCommitList = _useState2[1]; (0,_react_17_0_2_react.useEffect)(function () { getRepositoryCommit(); }, []); var getRepositoryCommit = /*#__PURE__*/function () { var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var _location$pathname; var res; return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: isRepository.current = ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]) === "repository"; _context.next = 3; return dispatch({ type: 'shixunsDetail/getRepositoryCommit', payload: { id: params.id, secret_repository: isRepository.current ? undefined : true } }); case 3: res = _context.sent; if (res) { setCommitList(res.commits || []); } case 5: case "end": return _context.stop(); } }, _callee); })); return function getRepositoryCommit() { return _ref2.apply(this, arguments); }; }(); return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", { className: Commitmodules.bg, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Commitmodules.wrap, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Commitmodules.commitWrap, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { className: "iconfont icon-tijiaojilu mr5" }), "\u63D0\u4EA4\u8BB0\u5F55"] }), /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, { to: "/shixuns/".concat(params.id, "/repository"), className: "".concat(Commitmodules.colorGray, " font14"), children: "\u8FD4\u56DE" })] }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Commitmodules.content, children: commitList === null || commitList === void 0 ? void 0 : commitList.map(function (item) { return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: "".concat(Commitmodules.item, " mb5"), children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Commitmodules.itemContent, children: [item.email && /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: Commitmodules.itemEmail, children: item.email }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: Commitmodules.itemTitle, children: item.title })] }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { className: Commitmodules.itemTime, children: item.time })] }, item.id); }) })] }), /*#__PURE__*/(0,jsx_runtime.jsx)(Right/* default */.Z, {})] }); }; /* harmony default export */ var Repository_Commit = ((0,_umi_production_exports.connect)(function (_ref3) { var shixunsDetail = _ref3.shixunsDetail, loading = _ref3.loading, globalSetting = _ref3.globalSetting, user = _ref3.user; return { shixunsDetail: shixunsDetail, globalSetting: globalSetting, user: user, loading: loading.models.index }; })(Commit)); /***/ }) }]);