1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[98],{"+hnl":function(e,t,n){},"4sU/":function(e,t){e.exports="data:image/png;base64,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"},MKzF:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("+hnl")},QV3M:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(r=(u=l.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n("q1tI"),a=l(o),u=l(n("R6/p"));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,o.useState)(!1),l=r(t,2),c=l[0],i=l[1],s=e.match.params,f=s.owner,p=s.projectsId,d=(0,o.useState)(!1),y=r(d,2),v=y[0],b=y[1],h=e.current_user,m=e.resetUserInfo;function g(){v?e.history.push("/"+f+"/"+p+"/server/1"):i(!0)}return(0,o.useEffect)((function(){h&&b(h.has_trace_user)}),[h]),a.default.createElement("div",null,a.default.createElement(u.default,{visible:c,onCancel:function(){return i(!1)},onOk:function(){i(!1),m&&m(),e.history.push("/"+f+"/"+p+"/server/1")}}),a.default.createElement("ul",{className:"serverlist"},a.default.createElement("li",null,a.default.createElement("span",{className:"servername"},a.default.createElement("img",{src:n("4sU/"),alt:""}),a.default.createElement("a",{onClick:g},"重晴鸟代码溯源系统")),a.default.createElement("p",{className:"task-hide-2 serverdesc"},"支持软件源代码的溯源分析、自主度评估、开源漏洞检测、开源许可证合规性分析等"),a.default.createElement("span",{className:"serverbtn"},a.default.createElement("a",{onClick:g,className:"btnhover"},"查看详情")))))}},"R6/p":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("kLXV")),o=i(n("kaz8")),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(r=(u=l.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("k3Gp"),n("MKzF");var u=n("q1tI"),l=i(u),c=i(n("vDqi"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.visible,n=e.onCancel,i=e.onOk,s=(0,u.useState)(!1),f=a(s,2),p=f[0],d=f[1];return l.default.createElement(r.default,{visible:t,title:"用户协议及声明条款",onCancel:n,onOk:i,className:"agreementModal",width:"700px",footer:l.default.createElement("div",{className:"agreeBtn"},l.default.createElement("a",{onClick:function(){d(!1),n()}},"不同意"),l.default.createElement("a",{className:p?"agree btnhover":"notagree",onClick:function(){c.default.post("/traces/trace_users.json").then((function(e){e&&(p&&i(),d(!1))})).catch((function(e){}))}},"同意协议"))},l.default.createElement("div",{className:"agreementCon"},l.default.createElement("div",{className:"agreementDesc"},l.default.createElement("p",null,"在使用本系统前,请您务必仔细阅读下列条款: 本系统的资料、信息及其他内容均由国家超级计算无锡中心、中国科学院计算技术研究所、清华大学和北京大学提供,任何人进入本系统、阅读本系统所载任何内容、从本系统下载任何资料或使用本系统提供的任何资料,即表示同意遵守这些条款。如果您不同意遵守这些条款,请勿继续使用本系统。提供方有权对这些条款不时进行更新,前述更新之后的条款将在本系统进行公布,并自公布之日起生效。"),l.default.createElement("p",{className:"blod"},"版权声明"),l.default.createElement("p",null,"本系统所提供任何内容,包括但不限于数据、文字、图表或图象,其所有权、著作权及其他权利均由提供方享有。前述权利受中华人民共和国的法律、法规、规章、规范性法律文件及相关国际条约的保护;对前述权利的任何侵犯行为均有可能导致民事、行政或刑事责任,一切后果均由侵权行为人承担。未经提供方事先书面许可,您不得以任何方式复制、修改、传播、出版、转载或展示本系统的任何内容。"),l.default.createElement("p",null,"本系统采用但非本系统原创的所有内容,其版权归版权所有人所有;转载的部分内容源自其他系统,因无法和版权权利人联系,如果您是前述内容的版权权利人,请与我们联系并提供证明材料和详实说明,我们将及时加注版权信息;如果您提出异议,我们将立即撤除任何涉及版权问题的内容。对于独家授权本系统提供的任何内容,如您需要转载,应当事先得到本系统和版权所有人的同意。"),l.default.createElement("p",{className:"blod"},"引用本系统内容"),l.default.createElement("p",null,"1. 在遵守国家法律以及本协议的情况下,您可以出于非商业目的浏览、下载本系统的内容。如出于商业目的使用(如:拷贝、下载、存储、通过硬盘拷贝或电子抓取系统发送、转换、演示、传播、出版本系统的任何内容,或创造与前述内容有关的演绎作品或衍生产品),则必须事先经过提供方的书面许可,并在使用时注明来源和版权标记。"),l.default.createElement("p",null,"2. 如果您需要使用本系统包含的由任何其他主体提供的内容,请直接与版权权利人联系。"),l.default.createElement("p",{className:"blod"},"免责条款"),l.default.createElement("p",null,"对本系统的内容,我们已尽最大努力审核,但对于内容的正确性、完整性、及时性、有效性、稳定性、可用性、不侵犯他人权利等方面,不提供任何形式(无论明示或默示)的保证。我们不保证服务器的稳定性,任何由于黑客入侵或攻击、计算机病毒侵入或发作、因政府管制而造成的暂时性关闭等影响网络正常经营的不可抗力而造成的资料泄露、丢失、被盗用或被篡改等,本系统均得免责。我们不保证您在任何时候均可浏览、阅读、使用本系统;不保证本系统的内容不存在打印、复制及其他输入方面的错误。提供方有权随时更改本系统任何内容。 在任何情况下,对于无法进入本系统或无法使用本系统内容而导致的任何直接的、间接的、附带的、给第三人造成的损失(包括但不限于,利润损失、信息数据丢失、财产毁坏损失),提供方均不承担任何责任。 本系统提供的站外链接仅为用户提供方便,但链接的系统不属于本系统的控制范围或管理范畴,故提供方对链接系统所传送或登载的任何形式的内容不承担任何责任。 任何用户在本系统发表的商业信息、个人信息、留言以及其他信息,均不代表本系统以及提供方的立场,且与本系统与提供方无关,相关责任由作者完全承担;本系统有权对上述商业信息、个人信息、留言以及其他信息随时进行删除。"),l.default.createElement("p",null,"本系统支持用户在使用本系统系统过程中的合法经营行为,但因用户的作为或不作为所造成的后果概由用户自行承担。"),l.default.createElement("p",{className:"blod"},"隐私保护声明"),l.default.createElement("p",null,"本系统承诺按照相关法律的规定、本系统的隐私政策,保护本系统收集的用户个人信息。我们建议您认真阅读本隐私保护声明。"),l.default.createElement("p",{className:"blod"},"适用法律与争议解决"),l.default.createElement("p",null,"因本公告或使用本系统所发生的争议适用中华人民共和国法律。因本公告或使用本系统发生争议,应当协商解决,协商不成的,由本公司所在地人民法院受理解决。"),l.default.createElement("p",{className:"blod"},"终止协议或退出服务"),l.default.createElement("p",null,"如果您希望不再使用本系统提供的服务,或者您不同意上述条款及更新内容,您可以选择终止协议或者退出服务具体请联系客服人员。")),l.default.createElement(o.default,{checked:p,onChange:function(e){d(e.target.checked)}},"我已阅读并同意《用户协议及声明条款》")))}},kaz8:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("17x9"),a=n("VCL8"),u=n("TSYQ"),l=n.n(u),c=n("x1Ya"),i=n("Gytx"),s=n.n(i),f=n("H84U"),p=n("6CfX");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 y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return(v=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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},E=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&&m(e,t)}(u,e);var t,n,o,a=g(u);function u(){var e;return b(this,u),(e=a.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,a=k(e),u=a.props,i=a.context,s=u.prefixCls,f=u.className,p=u.children,d=u.indeterminate,b=u.style,h=u.onMouseEnter,m=u.onMouseLeave,g=C(u,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),O=i.checkboxGroup,x=o("checkbox",s),E=v({},g);O&&(E.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),O.toggleOption({label:p,value:u.value})},E.name=O.name,E.checked=-1!==O.value.indexOf(u.value),E.disabled=u.disabled||O.disabled);var j=l()(f,(y(n={},"".concat(x,"-wrapper"),!0),y(n,"".concat(x,"-wrapper-checked"),E.checked),y(n,"".concat(x,"-wrapper-disabled"),E.disabled),n)),A=l()(y({},"".concat(x,"-indeterminate"),d));return r.createElement("label",{className:j,style:b,onMouseEnter:h,onMouseLeave:m},r.createElement(c.a,v({},E,{prefixCls:x,className:A,ref:e.saveCheckbox})),void 0!==p&&r.createElement("span",null,p))},e}return t=u,(n=[{key:"componentDidMount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.registerValue&&n.registerValue(e),Object(p.a)("checked"in this.props||(this.context||{}).checkboxGroup||!("value"in this.props),"Checkbox","`value` is not validate prop, do you mean `checked`?")}},{key:"shouldComponentUpdate",value:function(e,t,n){return!s()(this.props,e)||!s()(this.state,t)||!s()(this.context.checkboxGroup,n.checkboxGroup)}},{key:"componentDidUpdate",value:function(e){var t=e.value,n=this.props.value,r=(this.context||{}).checkboxGroup,o=void 0===r?{}:r;n!==t&&o.registerValue&&o.cancelValue&&(o.cancelValue(t),o.registerValue(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.cancelValue&&n.cancelValue(e)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderCheckbox)}}])&&h(t.prototype,n),o&&h(t,o),u}(r.Component);E.__ANT_CHECKBOX=!0,E.defaultProps={indeterminate:!1},E.contextTypes={checkboxGroup:o.any},Object(a.polyfill)(E);var j=E,A=n("BGR+");function w(e){return(w="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 S(){return(S=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 P(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)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(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 V(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 N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(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=U(e);if(t){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},I=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&&N(e,t)}(u,e);var t,n,o,a=G(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(P(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=P(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var a=t.props.onChange;if(a){var u=t.getOptions();a(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return u.findIndex((function(t){return t.value===e}))-u.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=M(t),a=o.props,u=o.state,c=a.prefixCls,i=a.className,s=a.style,f=a.options,p=F(a,["prefixCls","className","style","options"]),d=n("checkbox",c),y="".concat(d,"-group"),v=Object(A.default)(p,["children","defaultValue","value","onChange","disabled"]),b=a.children;f&&f.length>0&&(b=t.getOptions().map((function(e){return r.createElement(j,{prefixCls:d,key:e.value.toString(),disabled:"disabled"in e?e.disabled:a.disabled,value:e.value,checked:-1!==u.value.indexOf(e.value),onChange:e.onChange,className:"".concat(y,"-item")},e.label)})));var h=l()(y,i);return r.createElement("div",S({className:h,style:s},v),b)},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=u,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getChildContext",value:function(){return{checkboxGroup:{toggleOption:this.toggleOption,value:this.state.value,disabled:this.props.disabled,name:this.props.name,registerValue:this.registerValue,cancelValue:this.cancelValue}}}},{key:"shouldComponentUpdate",value:function(e,t){return!s()(this.props,e)||!s()(this.state,t)}},{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderGroup)}}])&&V(t.prototype,n),o&&V(t,o),u}(r.Component);I.defaultProps={options:[]},I.propTypes={defaultValue:o.array,value:o.array,options:o.array.isRequired,onChange:o.func},I.childContextTypes={checkboxGroup:o.any},Object(a.polyfill)(I);var H=I;j.Group=H;t.default=j}}]); |