@ -46,9 +46,9 @@ if (false) {}
/***/ } ) ,
/***/ 16542 :
/***/ 64104 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / pages / CloudStudy / Detail / index . tsx + 1 2 modules * * * !
! * * * . / src / pages / CloudStudy / Detail / index . tsx + 1 3 modules * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
@ -78,7 +78,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi _production _exports = _ _webpack _require _ _ ( 88271 ) ;
; // CONCATENATED MODULE: ./src/pages/CloudStudy/Detail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Detailmodules = ( { "page" : "page___EfVMq" , "body" : "body___RJ4X6" , "left" : "left___W8plP" , "dot" : "dot___HpN06" , "right" : "right___Gr7yE" , "btn" : "btn___A_riP" , "search" : "search___cg9mh" , "searchIcon" : "searchIcon___QCR8t" , "listWrap" : "listWrap___x2fwI" , "li" : "li___YwHKX" , "name" : "name___rb8tn" , "col" : "col___m90Jr" , "numTips" : "numTips___w4Sdu" }) ;
/* harmony default export */ var Detailmodules = ( { "page" : "page___EfVMq" , "body" : "body___RJ4X6" , "left" : "left___W8plP" , "dot" : "dot___HpN06" , "right" : "right___Gr7yE" , "btn" : "btn___A_riP" , "search" : "search___cg9mh" , "searchIcon" : "searchIcon___QCR8t" , "listWrap" : "listWrap___x2fwI" , "li" : "li___YwHKX" , "name" : "name___rb8tn" , "col" : "col___m90Jr" , "numTips" : "numTips___w4Sdu" ,"btnElse" : "btnElse___fpHce" }) ;
// EXTERNAL MODULE: ./src/components/HeaderNav/index.tsx + 4 modules
var HeaderNav = _ _webpack _require _ _ ( 59827 ) ;
// EXTERNAL MODULE: ./src/utils/util.tsx
@ -206,6 +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1cmwoI2MpIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI2QpIiB4bGluazpocmVmPSIjYiIvPjwvZz48L3N2Zz4=" ) ;
; // CONCATENATED MODULE: ./src/pages/CloudStudy/Detail/img/c.svg
function c _createForOfIteratorHelper ( o , allowArrayLike ) { var it = typeof Symbol !== "undefined" && o [ Symbol . iterator ] || o [ "@@iterator" ] ; if ( ! it ) { if ( Array . isArray ( o ) || ( it = c _unsupportedIterableToArray ( o ) ) || allowArrayLike && o && typeof o . length === "number" ) { if ( it ) o = it ; var i = 0 ; var F = function F ( ) { } ; return { s : F , n : function n ( ) { if ( i >= o . length ) return { done : true } ; return { done : false , value : o [ i ++ ] } ; } , e : function e ( _e ) { throw _e ; } , f : F } ; } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; } var normalCompletion = true , didErr = false , err ; return { s : function s ( ) { it = it . call ( o ) ; } , n : function n ( ) { var step = it . next ( ) ; normalCompletion = step . done ; return step ; } , e : function e ( _e2 ) { didErr = true ; err = _e2 ; } , f : function f ( ) { try { if ( ! normalCompletion && it [ "return" ] != null ) it [ "return" ] ( ) ; } finally { if ( didErr ) throw err ; } } } ; }
function c _unsupportedIterableToArray ( o , minLen ) { if ( ! o ) return ; if ( typeof o === "string" ) return c _arrayLikeToArray ( o , minLen ) ; var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ; if ( n === "Object" && o . constructor ) n = o . constructor . name ; if ( n === "Map" || n === "Set" ) return Array . from ( o ) ; if ( n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return c _arrayLikeToArray ( o , minLen ) ; }
function c _arrayLikeToArray ( arr , len ) { if ( len == null || len > arr . length ) len = arr . length ; for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) arr2 [ i ] = arr [ i ] ; return arr2 ; }
var c _defProp = Object . defineProperty ;
var c _getOwnPropSymbols = Object . getOwnPropertySymbols ;
var c _hasOwnProp = Object . prototype . hasOwnProperty ;
var c _propIsEnum = Object . prototype . propertyIsEnumerable ;
var c _defNormalProp = function _ _defNormalProp ( obj , key , value ) {
return key in obj ? c _defProp ( obj , key , {
enumerable : true ,
configurable : true ,
writable : true ,
value : value
} ) : obj [ key ] = value ;
} ;
var c _spreadValues = function _ _spreadValues ( a , b ) {
for ( var prop in b || ( b = { } ) ) if ( c _hasOwnProp . call ( b , prop ) ) c _defNormalProp ( a , prop , b [ prop ] ) ;
if ( c _getOwnPropSymbols ) {
var _iterator = c _createForOfIteratorHelper ( c _getOwnPropSymbols ( b ) ) ,
_step ;
try {
for ( _iterator . s ( ) ; ! ( _step = _iterator . n ( ) ) . done ; ) {
var prop = _step . value ;
if ( c _propIsEnum . call ( b , prop ) ) c _defNormalProp ( a , prop , b [ prop ] ) ;
}
} catch ( err ) {
_iterator . e ( err ) ;
} finally {
_iterator . f ( ) ;
}
}
return a ;
} ;
var SvgC = function SvgC ( props ) {
return /* @__PURE__ */ React . createElement ( "svg" , c _spreadValues ( {
width : 16 ,
height : 16 ,
xmlns : "http://www.w3.org/2000/svg"
} , props ) , /* @__PURE__ */ React . createElement ( "title" , null , "\u7F16\u7EC4" ) , /* @__PURE__ */ React . createElement ( "path" , {
d : "M11.556 0 16 4v11.206c0 .439-.396.794-.883.794H.883c-.486-.003-.88-.356-.883-.794V.794C0 .355.396 0 .883 0h10.673ZM7.11 7.2H4.444v1.6h2.667v2.4H8.89V8.8h2.667V7.2H8.889V4.8H7.11v2.4Z" ,
fill : "#FFF" ,
fillRule : "nonzero"
} ) ) ;
} ;
/* harmony default export */ var c = ( "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjU1NiAwIDE2IDR2MTEuMjA2YzAgLjQzOS0uMzk2Ljc5NC0uODgzLjc5NEguODgzYy0uNDg2LS4wMDMtLjg4LS4zNTYtLjg4My0uNzk0Vi43OTRDMCAuMzU1LjM5NiAwIC44ODMgMGgxMC42NzNaTTcuMTEgNy4ySDQuNDQ0djEuNmgyLjY2N3YyLjRIOC44OVY4LjhoMi42NjdWNy4ySDguODg5VjQuOEg3LjExdjIuNFoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==" ) ;
; // CONCATENATED MODULE: ./src/pages/CloudStudy/Detail/img/a1.png
var a1 _namespaceObject = _ _webpack _require _ _ . p + "static/a1.174334e8.png" ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
@ -572,6 +620,8 @@ var CustomTree = function CustomTree(_ref) {
} ) ;
} ;
/* harmony default export */ var CustomNewTree = ( CustomTree ) ;
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = _ _webpack _require _ _ ( 82710 ) ;
; // CONCATENATED MODULE: ./src/pages/CloudStudy/Detail/SuperiorTabs/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SuperiorTabsmodules = ( { "flex_box_center" : "flex_box_center___k9uze" , "flex_space_between" : "flex_space_between___Kqw0Q" , "flex_box_vertical_center" : "flex_box_vertical_center____t1ik" , "flex_box_center_end" : "flex_box_center_end___Il1_C" , "flex_box_column" : "flex_box_column___TaFiC" , "flex-col" : "flex-col___VLuAx" , "flex-row" : "flex-row___arZ7I" , "justify-start" : "justify-start___Ip7YL" , "justify-center" : "justify-center___j0FQo" , "justify-end" : "justify-end___HN4bB" , "justify-evenly" : "justify-evenly___VdXRg" , "justify-around" : "justify-around___taWpM" , "justify-between" : "justify-between___COXsk" , "align-start" : "align-start___QWnBl" , "align-center" : "align-center___Dm4tv" , "align-end" : "align-end___avv0V" , "tabs" : "tabs___OKFlW" , "active" : "active___KulhR" } ) ;
@ -608,6 +658,10 @@ var SuperiorTabs = function SuperiorTabs(_ref) {
/* harmony default export */ var Detail _SuperiorTabs = ( SuperiorTabs ) ;
// EXTERNAL MODULE: ./src/pages/Knowbase/components/UploadModal/index.tsx + 1 modules
var UploadModal = _ _webpack _require _ _ ( 15338 ) ;
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = _ _webpack _require _ _ ( 63017 ) ;
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = _ _webpack _require _ _ ( 97672 ) ;
; // CONCATENATED MODULE: ./src/pages/CloudStudy/Detail/index.tsx
@ -624,6 +678,11 @@ var UploadModal = __webpack_require__(15338);
@ -667,7 +726,7 @@ var CloudStudy = function CloudStudy(_ref) {
_useState16 = slicedToArray _default ( ) ( _useState15 , 2 ) ,
treeData = _useState16 [ 0 ] ,
setTreeData = _useState16 [ 1 ] ;
var _useState17 = ( 0 , _react _17 _0 _2 _react . useState ) ( ),
var _useState17 = ( 0 , _react _17 _0 _2 _react . useState ) ( {} ),
_useState18 = slicedToArray _default ( ) ( _useState17 , 2 ) ,
know = _useState18 [ 0 ] ,
setKnow = _useState18 [ 1 ] ;
@ -687,7 +746,19 @@ var CloudStudy = function CloudStudy(_ref) {
_useState26 = slicedToArray _default ( ) ( _useState25 , 2 ) ,
editData = _useState26 [ 0 ] ,
setEditData = _useState26 [ 1 ] ;
var _useState27 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
var _useState27 = ( 0 , _react _17 _0 _2 _react . useState ) ( false ) ,
_useState28 = slicedToArray _default ( ) ( _useState27 , 2 ) ,
showAddDirectory = _useState28 [ 0 ] ,
setShowAddDirectory = _useState28 [ 1 ] ;
var monacoValueRef = ( 0 , _react _17 _0 _2 _react . useRef ) ( ) ;
var _useState29 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
content : "" ,
type : ""
} ) ,
_useState30 = slicedToArray _default ( ) ( _useState29 , 2 ) ,
previewData = _useState30 [ 0 ] ,
setPreviewData = _useState30 [ 1 ] ;
var _useState31 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
keyword : '' ,
category : null ,
sort _by : 'created_at' ,
@ -695,9 +766,9 @@ var CloudStudy = function CloudStudy(_ref) {
page : 1 ,
limit : 12
} ) ,
_useState 28 = slicedToArray _default ( ) ( _useState 27 , 2 ) ,
params = _useState 28 [ 0 ] ,
setParams = _useState 28 [ 1 ] ;
_useState 3 2 = slicedToArray _default ( ) ( _useState 31 , 2 ) ,
params = _useState 3 2[ 0 ] ,
setParams = _useState 3 2[ 1 ] ;
( 0 , _react _17 _0 _2 _react . useEffect ) ( function ( ) {
getKnowDetail ( ) ;
_getKnowledgesFolders2 ( ) ;
@ -819,6 +890,41 @@ var CloudStudy = function CloudStudy(_ref) {
setParams ( objectSpread2 _default ( ) ( { } , params ) ) ;
getData ( ) ;
} ;
var preview = /*#__PURE__*/ function ( ) {
var _ref5 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee4 ( item ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee4$ ( _context4 ) {
while ( 1 ) switch ( _context4 . prev = _context4 . next ) {
case 0 :
if ( ! ( ( item === null || item === void 0 ? void 0 : item . file _type ) === "txt" ) ) {
_context4 . next = 5 ;
break ;
}
_context4 . next = 3 ;
return ( 0 , fetch /* default */ . ZP ) ( item === null || item === void 0 ? void 0 : item . url , {
method : "get" ,
headers : {
"Content-Type" : "application/xml"
}
} ) ;
case 3 :
res = _context4 . sent ;
monacoValueRef . current = res ;
case 5 :
setPreviewData ( {
type : item === null || item === void 0 ? void 0 : item . file _type ,
content : item === null || item === void 0 ? void 0 : item . url
} ) ;
case 6 :
case "end" :
return _context4 . stop ( ) ;
}
} , _callee4 ) ;
} ) ) ;
return function preview ( _x ) {
return _ref5 . apply ( this , arguments ) ;
} ;
} ( ) ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . page ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( HeaderNav /* default */ . Z , {
@ -831,19 +937,19 @@ var CloudStudy = function CloudStudy(_ref) {
className : Detailmodules . numTips ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ "\u76EE\u5F55" , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ 2 , "\u4E2A" ]
children : [ ( know === null || know === void 0 ? void 0 : know . folder _num ) || 0 , "\u4E2A" ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ "\u89C6\u9891" , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ 2 , "\u4E2A" ]
children : [ ( know === null || know === void 0 ? void 0 : know . video _num ) || 0 , "\u4E2A" ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ "\u8 9C6\u9891 ", /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ 2 , "\u4E2A" ]
children : [ "\u8 D44\u6599 ", /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ ( know === null || know === void 0 ? void 0 : know . information _num ) || 0 , "\u4E2A" ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ "\u67E5\u770B\u6B21\u6570" , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ 2 , "\u6B21" ]
children : [ ( know === null || know === void 0 ? void 0 : know . viewed _count ) || 0 , "\u6B21" ]
} ) ]
} ) ]
} ) ;
@ -865,6 +971,18 @@ var CloudStudy = function CloudStudy(_ref) {
color : '#fff'
} ,
children : "\u77E5\u8BC6\u76EE\u5F55"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . btnElse ,
onClick : function onClick ( ) {
setShowAddDirectory ( true ) ;
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
src : c ,
width : 16
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : "ml10" ,
children : "\u65B0\u5EFA\u76EE\u5F55"
} ) ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( spin /* default */ . Z , {
spinning : foldersLoading ,
@ -940,14 +1058,21 @@ var CloudStudy = function CloudStudy(_ref) {
children : "\u4E0A\u4F20\u8D44\u6599"
} ) ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( spin /* default */ . Z , {
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx s ) ( spin /* default */ . Z , {
spinning : loading ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
children : [ ! ( inforList !== null && inforList !== void 0 && inforList . length ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( NoData /* default */ . Z , { } ) , ! ! ( inforList !== null && inforList !== void 0 && inforList . length ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
className : Detailmodules . listWrap ,
children : inforList . map ( function ( item ) {
var _item$attachments ;
var _item$attachments 3 ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . li ,
onClick : function onClick ( ) {
var _item$attachments ;
if ( item !== null && item !== void 0 && ( _item$attachments = item . attachments ) !== null && _item$attachments !== void 0 && ( _item$attachments = _item$attachments [ 0 ] ) !== null && _item$attachments !== void 0 && _item$attachments . url ) {
var _item$attachments2 ;
preview ( item === null || item === void 0 || ( _item$attachments2 = item . attachments ) === null || _item$attachments2 === void 0 ? void 0 : _item$attachments2 [ 0 ] ) ;
}
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
src : a1 _namespaceObject
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( tooltip /* default */ . Z , {
@ -969,7 +1094,7 @@ var CloudStudy = function CloudStudy(_ref) {
className : Detailmodules . col ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
children : "\u8D44\u6E90\u5927\u5C0F"
} ) , item === null || item === void 0 || ( _item$attachments = item . attachments ) === null || _item$attachments === void 0 || ( _item$attachments = _item$attachments [ 0 ] ) === null || _item$attachments === void 0 ? void 0 : _item$attachments . filesize ]
} ) , item === null || item === void 0 || ( _item$attachments 3 = item . attachments ) === null || _item$attachments 3 === void 0 || ( _item$attachments 3 = _item$attachments 3 [ 0 ] ) === null || _item$attachments 3 === void 0 ? void 0 : _item$attachments 3 . filesize ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( row /* default */ . Z , {
align : "middle" ,
@ -979,17 +1104,17 @@ var CloudStudy = function CloudStudy(_ref) {
className : Detailmodules . col ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
children : "\u8D44\u6E90\u5B66\u4E60\u4EBA\u6570"
} ) , " 50 \u4EBA"]
} ) , item === null || item === void 0 ? void 0 : item . viewed _user _count , " \u4EBA"]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . col ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
children : "\u8D44\u6E90\u5B66\u4E60\u6B21\u6570"
} ) , "500 \u6B21"]
} ) , item === null || item === void 0 ? void 0 : item . viewed _count , " \u6B21"]
} ) ]
} ) ]
} , item . id ) ;
} )
} )
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
children : total > 0 ? /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
style : {
@ -1023,6 +1148,15 @@ var CloudStudy = function CloudStudy(_ref) {
} ) : ''
} ) ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( AddDirectoryModal /* default */ . Z , {
visible : showAddDirectory ,
onCancle : function onCancle ( ) {
return setShowAddDirectory ( false ) ;
} ,
onOk : function onOk ( ) {
_getKnowledgesFolders2 ( ) ;
} ,
treeData : treeData
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( UploadModal /* default */ . Z , {
visible : showUpload ,
isEdit : isUploadEdit ,
@ -1037,11 +1171,35 @@ var CloudStudy = function CloudStudy(_ref) {
getNewList ( ) ;
setShowUpload ( false ) ;
}
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( PreviewAll /* default */ . Z , {
close : true ,
data : previewData === null || previewData === void 0 ? void 0 : previewData . content ,
type : previewData === null || previewData === void 0 ? void 0 : previewData . type ,
hasMask : true ,
monacoEditor : {
value : monacoValueRef . current ,
language : "txt" ,
onChange : function onChange ( ) { } ,
options : {
readOnly : true ,
fontSize : 14 ,
minimap : {
enabled : false
}
}
} ,
onImgDimensions : null ,
onClose : function onClose ( ) {
setPreviewData ( {
content : "" ,
type : ""
} ) ;
}
} ) ]
} ) ;
} ;
/* harmony default export */ var Detail = ( ( 0 , _umi _production _exports . connect ) ( function ( _ref5 ) {
var user = _ref5 . user ;
/* harmony default export */ var Detail = ( ( 0 , _umi _production _exports . connect ) ( function ( _ref 6 ) {
var user = _ref 6 . user ;
return {
user : user
} ;