build/static/js/134.2cf232f0.chunk.js

1 line
16 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[134],{"25NQ":function(e,t,n){(t=n("JPst")(!1)).push([e.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-breadcrumb {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-breadcrumb .anticon {\n font-size: 14px;\n}\n.ant-breadcrumb a {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-breadcrumb a:hover {\n color: #6e90ff;\n}\n.ant-breadcrumb > span:last-child {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-breadcrumb > span:last-child a {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-breadcrumb > span:last-child .ant-breadcrumb-separator {\n display: none;\n}\n.ant-breadcrumb-separator {\n margin: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-breadcrumb-link > .anticon + span {\n margin-left: 4px;\n}\n.ant-breadcrumb-overlay-link > .anticon {\n margin-left: 4px;\n}\n",""]),e.exports=t},AOa7:function(e,t,n){var r=n("25NQ");"string"==typeof r&&(r=[[e.i,r,""]]);n("aET+")(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},bE4q:function(e,t,n){"use strict";var r=n("cDcd"),a=n("17x9"),o=n("eHJ2"),c=n.n(o),i=n("Zm9Q"),l=n("BGR+"),u=n("XBQK"),s=n("CtXQ"),f=n("H84U");function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(o,e);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h(this,n)}}(o);function o(){var e;return y(this,o),(e=a.apply(this,arguments)).renderBreadcrumbItem=function(t){var n,a=t.getPrefixCls,o=e.props,c=o.prefixCls,i=o.separator,u=o.children,s=v(o,["prefixCls","separator","children"]),f=a("breadcrumb",c);return n="href"in e.props?r.createElement("a",m({className:"".concat(f,"-link")},Object(l.default)(s,["overlay"])),u):r.createElement("span",m({className:"".concat(f,"-link")},Object(l.default)(s,["overlay"])),u),n=e.renderBreadcrumbNode(n,f),u?r.createElement("span",null,n,i&&""!==i&&r.createElement("span",{className:"".concat(f,"-separator")},i)):null},e.renderBreadcrumbNode=function(t,n){var a=e.props.overlay;return a?r.createElement(u.a,{overlay:a,placement:"bottomCenter"},r.createElement("span",{className:"".concat(n,"-overlay-link")},t,r.createElement(s.a,{type:"down"}))):t},e}return t=o,(n=[{key:"render",value:function(){return r.createElement(f.a,null,this.renderBreadcrumbItem)}}])&&d(t.prototype,n),o}(r.Component);O.__ANT_BREADCRUMB_ITEM=!0,O.defaultProps={separator:"/"},O.propTypes={prefixCls:a.string,separator:a.oneOfType([a.string,a.element]),href:a.string};var E=n("BvKs"),w=n("6CfX");function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function B(e,t,n,a){var o=n.indexOf(e)===n.length-1,c=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return o?r.createElement("span",null,c):r.createElement("a",{href:"#/".concat(a.join("/"))},c)}function I(e){return Object(i.a)(e).map((function(e){return r.isValidElement(e)&&e.type===r.Fragment?e.props.children:e}))}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(o,e);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var a=N(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}(o);function o(){var e;return x(this,o),(e=a.apply(this,arguments)).getPath=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},e.addChildPath=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,a=S(t),o=e.getPath(n,r);return o&&a.push(o),a},e.genForRoutes=function(t){var n=t.routes,a=void 0===n?[]:n,o=t.params,c=void 0===o?{}:o,i=t.separator,l=t.itemRender,u=void 0===l?B:l,s=[];return a.map((function(t){var n=e.getPath(t.path,c);n&&s.push(n);var o=null;return t.children&&t.children.length&&(o=r.createElement(E.a,null,t.children.map((function(t){return r.createElement(E.a.Item,{key:t.breadcrumbName||t.path},u(t,c,a,e.addChildPath(s,t.path,c)))})))),r.createElement(O,{overlay:o,separator:i,key:t.breadcrumbName||n},u(t,c,a,s))}))},e.renderBreadcrumb=function(t){var n,a=t.getPrefixCls,o=e.props,i=o.prefixCls,u=o.separator,s=o.style,f=o.className,p=o.routes,m=o.children,y=C(o,["prefixCls","separator","style","className","routes","children"]),d=a("breadcrumb",i);return p&&p.length>0?n=e.genForRoutes(e.props):m&&(n=r.Children.map(I(m),(function(e,t){return e?(Object(w.a)(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),r.cloneElement(e,{separator:u,key:t})):e}))),r.createElement("div",A({className:c()(f,d),style:s},Object(l.default)(y,["itemRender","params"])),n)},e}return t=o,(n=[{key:"componentDidMount",value:function(){var e=this.props;Object(w.a)(!("linkRender"in e||"nameRender"in e),"Breadcrumb","`linkRender` and `nameRender` are removed, please use `itemRender` instead, see: https://u.ant.design/item-render.")}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderBreadcrumb)}}])&&P(t.prototype,n),o}(r.Component);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}T.defaultProps={separator:"/"},T.propTypes={prefixCls:a.string,separator:a.node,routes:a.array};var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(o,e);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return z(this,n)}}(o);function o(){var e;return M(this,o),(e=a.apply(this,arguments)).renderSeparator=function(t){var n=t.getPrefixCls,a=e.props.children,o=n("breadcrumb");return r.createElement("span",{className:"".concat(o,"-separator")},a||"/")},e}return t=o,(n=[{key:"render",value:function(){return r.createElement(f.a,null,this.renderSeparator)}}])&&U(t.prototype,n),o}(r.Component);K.__ANT_BREADCRUMB_SEPARATOR=!0,T.Item=O,T.Separator=K,t.a=T},sPJy:function(e,t,n){"use strict";n("cIOH"),n("AOa7"),n("lUTK"),n("qVdP")},"uy+K":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAASCAYAAABB7B6eAAAAAXNSR0IArs4c6QAAAY5JREFUOE/tlb1LW2EUxn9PvIGgDhkcHBwsOLhIsxYz6CYKotihgkvAP8CtHbqU/gMduuusQQSJOAgpmIBDBod2S/EODg6OgmKu9yk3aUr8DEGn4ru97/l4zsdzziuA7f3Dt3GkFUQeGAZGk3fjK1l1RM1o51f/dSl5n7hML8WxF4RyyGOgAByBTm2HKFUJxMbi7ORvbZWqX4U/J4bdjuFYJoMYv6Mb2kRSM7CgJXNy/6RiqeJujp+SRze8+zCfP0p0NjfLgxpIHwpyf23CZwM0rhtvlhenw3YQxb1KGTP1vwKYH7a/dNY8FkEfbCFlH+pFryWqYb53OhIEMf4mafAlAHomVDuD9fVyplCYvnrxJkduTARKf7Q9g1KrktceZ5G5IEWtMw3HBGpN+IPH9rmkobawOf0o8xhNN97P5Qt3PRVLlZP2+uixhrcHrRkN+nkrA57OoAvg8yf5FaDHnt5TT3pQ3YU4ZyuUqAMJzc46aDcKzoJGjJsfkVAou24p0f23SY2HZWdjNKLWR3TwB/7c87B94U4gAAAAAElFTkSuQmCC"},"yj+a":function(e,t,n){"use strict";n.r(t),n("T2oS");var r=n("W9HT"),a=(n("g9YV"),n("wCAj")),o=(n("sPJy"),n("bE4q")),c=(n("5Dmo"),n("3S7+")),i=n("zLi2"),l=n.n(i),u=n("cDcd"),s=n.n(u),f=n("uy+K"),p=n.n(f),m=(n("c2x/"),n("2iEm")),y=(n("sYIF"),n("TxSN")),d=[{title:"数据集名称数据集名称数据集名称数据集名称数据集名称",description:"描述描述内容",creator:{login:"innov",image_url:""},created_on:"2024-4-9 9:15",filesize:"15mb",url:"http://testforgeplus.trustie.net/"}];t.default=function(e){var t=e.match.params,n=t.deptId,i=t.datasetId,f=Object(u.useState)(void 0),b=l()(f,2),h=b[0],g=b[1],v=Object(u.useState)(d),O=l()(v,2),E=O[0],w=O[1],j=Object(u.useState)(0),A=l()(j,2),S=A[0],R=A[1],x=Object(u.useState)(1),P=l()(x,2),_=P[0],k=P[1],N=Object(u.useState)(!0),C=l()(N,2),B=C[0],I=C[1];Object(u.useEffect)((function(){window.scrollTo(0,0)}),[i]),Object(u.useEffect)((function(){Object(y.q)(i,{limit:10,page:_}).then((function(e){if(e&&e.data){var t=e.data.data;g(t),w(t.attachments),R(t.attachment_total_count),I(!1)}})).catch((function(e){}))}),[_]);var T=[{title:"文件名称",dataIndex:"title",key:1,ellipsis:!0,width:"25%"},{title:"描述",dataIndex:"description",key:2,ellipsis:!0,width:"27%",render:function(e){return s.a.createElement(c.a,{title:e},e)}},{title:"创建者",dataIndex:"creator",key:3,width:"10%",render:function(e,t){return s.a.createElement(m.a,{to:"/".concat(e.login)},s.a.createElement("img",{src:"".concat(e.image_url),alt:"",style:{borderRadius:"50%"},width:"32px",height:"32px"}))}},{title:"上传时间",dataIndex:"created_on",key:4,width:"15%"},{title:"大小",dataIndex:"filesize",key:5},{title:"操作",dataIndex:"url",key:6,width:"15%",render:function(e,t){return s.a.createElement("a",{href:e,className:"primaryColor",download:e},"下载")}}];return s.a.createElement("div",{style:{background:"#fff"}},s.a.createElement(r.a,{spinning:B},s.a.createElement("div",{className:"boxmain fileslist"},s.a.createElement(o.a,{separator:">"},s.a.createElement(o.a.Item,null,s.a.createElement(m.a,{className:"primaryColor",to:"/zone/".concat(n,"/dataset")},"数据集")),s.a.createElement(o.a.Item,null,"文件")),s.a.createElement("div",{className:"mnistData"},s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{style:{width:0,flex:1},className:"mr20"},s.a.createElement("div",{className:"df mb15",style:{alignItems:"center"}},s.a.createElement("p",{className:"font-16 weight500 task-hide"},h&&h.title),h&&h.license_name?s.a.createElement("span",{className:"license ml20"},"许可证 : ",h.license_name):""),s.a.createElement("p",{style:{wordBreak:"break-all"}},h&&h.description)),s.a.createElement("a",{href:h&&h.repository_url,className:"operateButton"},"进入项目"))),s.a.createElement(a.a,{className:"datasetTable",columns:T,dataSource:E,pagination:{total:S,pageSize:10,current:_,hideOnSinglePage:!0,onChange:function(e){return k(e)}}}),h&&h.paper_content?s.a.createElement("div",{className:"mt25"},s.a.createElement("p",{className:"mb15 df",style:{alignItems:"center"}},s.a.createElement("img",{src:p.a,width:24,className:"mr10",alt:""}),s.a.createElement("span",{className:"font-16"},"研究论文")),s.a.createElement("div",{className:"mnistData"},h&&h.paper_content)):"")))}}}]);