forgeplus/public/react/build/static/js/82.aa6ccc85.chunk.js

1 line
14 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[82],{"+hnl":function(e,t,n){},MKzF:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("+hnl")},ejHd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=m(n("2/Rp")),l=m(n("kaz8")),u=m(n("9yH6")),c=m(n("5rEg")),i=m(n("Vl3Y")),s=m(n("2fM7")),f=(r=["{\n padding:0px 30px\n}"],o=["{\n padding:0px 30px\n}"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}})));n("L/Qf"),n("MKzF"),n("K4yd"),n("1vPl"),n("tULf"),n("8QGh");var p=n("q1tI"),d=m(p),y=n("eO8H"),b=n("spEH"),h=m(n("ess8")),v=m(n("vOnD"));function m(e){return e&&e.__esModule?e:{default:e}}var g=s.default.Option,O=v.default.div(f),x={display:"block",height:"30px",lineHeight:"30px"};t.default=i.default.create()((0,p.forwardRef)((function(e){var t=e.form.getFieldDecorator,n=(0,p.useCallback)((function(e,n,r,o,a){return d.default.createElement(d.default.Fragment,null,d.default.createElement("span",{className:a?"required":""},e),d.default.createElement(i.default.Item,null,t(n,{rules:r,validateFirst:!0})(o)))}),[]);return d.default.createElement(b.WhiteBack,{className:"hooksNew"},d.default.createElement(h.default,null,d.default.createElement("span",null,"管理web钩子")),d.default.createElement(O,null,d.default.createElement("p",{className:"mt15 mb15 color-grey-8"},"Gitea 将向目标 URL 发送具有指定内容类型的 POST 请求。在 ",d.default.createElement(y.Link,{to:"",className:"color-blue"},"webhooks 指南")," 中阅读更多内容。"),n("目标URL","URL",[{required:!0,message:"请输入目标URL"}],d.default.createElement(c.default,{placeholder:"目标URL"}),!0),n("HTTP方法","HTTP",[],d.default.createElement(s.default,{placeholder:"HTTP方法"},d.default.createElement(g,{value:"0"},"请选择HTTP方法"))),n("POST Content Type","Type",[],d.default.createElement(s.default,{placeholder:"POST Content Type"},d.default.createElement(g,{value:"0"},"请选择POST Content Type"))),n("秘钥文本","passwordtext",[],d.default.createElement(c.default,{type:"password"})),n("触发条件:","condition",[],d.default.createElement(u.default.Group,null,d.default.createElement(u.default,{value:"0",style:x},"推送事件"),d.default.createElement(u.default,{value:"1",style:x},"所有事件"),d.default.createElement(u.default,{value:"2",style:x},"自定义事件"))),n("分支过滤","branch",[],d.default.createElement(c.default,{type:"password"})),d.default.createElement("p",{className:"font-12 mt10 pb15",style:{borderBottom:"1px solid #eee"}},"推送、创建,删除分支事件白名单,支持匹配符。如果为空或者 *,所有分支的事件均被触发。",d.default.createElement("br",null),"语法参见 ",d.default.createElement("a",{href:"http://github.com/gobwas/glob",className:"color-blue",target:"_blank"},"github.com/gobwas/glob")," 。示例: Master, $","{master,release*}","。"),n("","active",[],d.default.createElement(l.default,null,"激活",d.default.createElement("span",{className:"ml30 color-grey-8"},"触发事件的信息将发送到此 webhook 网址。"))),d.default.createElement("div",{className:"df pb30"},d.default.createElement(a.default,{type:"primary"},"保存"),d.default.createElement(b.Cancel,{className:"ml30"},"取消"))))})))},ess8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=(r=["{\n background-color:#fff;\n padding:20px 30px;\n border-bottom:1px solid #eee;\n font-size:16px;\n color:#333;\n display:flex;\n justify-content: space-between;\n align-items:center;\n}"],o=["{\n background-color:#fff;\n padding:20px 30px;\n border-bottom:1px solid #eee;\n font-size:16px;\n color:#333;\n display:flex;\n justify-content: space-between;\n align-items:center;\n}"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),l=u(n("q1tI"));function u(e){return e&&e.__esModule?e:{default:e}}var c=u(n("vOnD")).default.div(a);t.default=function(e){var t=e.children;return l.default.createElement(c,null,t)}},kaz8:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("17x9"),a=n("VCL8"),l=n("TSYQ"),u=n.n(l),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 b(){return(b=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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 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=k(e);if(t){var o=k(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?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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},w=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)}(l,e);var t,n,o,a=g(l);function l(){var e;return h(this,l),(e=a.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,a=x(e),l=a.props,i=a.context,s=l.prefixCls,f=l.className,p=l.children,d=l.indeterminate,h=l.style,v=l.onMouseEnter,m=l.onMouseLeave,g=E(l,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),O=i.checkboxGroup,k=o("checkbox",s),w=b({},g);O&&(w.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),O.toggleOption({label:p,value:l.value})},w.name=O.name,w.checked=-1!==O.value.indexOf(l.value),w.disabled=l.disabled||O.disabled);var j=u()(f,(y(n={},"".concat(k,"-wrapper"),!0),y(n,"".concat(k,"-wrapper-checked"),w.checked),y(n,"".concat(k,"-wrapper-disabled"),w.disabled),n)),C=u()(y({},"".concat(k,"-indeterminate"),d));return r.createElement("label",{className:j,style:h,onMouseEnter:v,onMouseLeave:m},r.createElement(c.a,b({},w,{prefixCls:k,className:C,ref:e.saveCheckbox})),void 0!==p&&r.createElement("span",null,p))},e}return t=l,(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)}}])&&v(t.prototype,n),o&&v(t,o),l}(r.Component);w.__ANT_CHECKBOX=!0,w.defaultProps={indeterminate:!1},w.contextTypes={checkboxGroup:o.any},Object(a.polyfill)(w);var j=w,C=n("BGR+");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 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 _(e){return function(e){if(Array.isArray(e))return T(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 T(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 T(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 T(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 R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(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=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==P(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 L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=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},H=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&&R(e,t)}(l,e);var t,n,o,a=N(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(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(_(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=_(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 l=t.getOptions();a(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return l.findIndex((function(t){return t.value===e}))-l.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=M(t),a=o.props,l=o.state,c=a.prefixCls,i=a.className,s=a.style,f=a.options,p=U(a,["prefixCls","className","style","options"]),d=n("checkbox",c),y="".concat(d,"-group"),b=Object(C.a)(p,["children","defaultValue","value","onChange","disabled"]),h=a.children;f&&f.length>0&&(h=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!==l.value.indexOf(e.value),onChange:e.onChange,className:"".concat(y,"-item")},e.label)})));var v=u()(y,i);return r.createElement("div",S({className:v,style:s},b),h)},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=l,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),l}(r.Component);H.defaultProps={options:[]},H.propTypes={defaultValue:o.array,value:o.array,options:o.array.isRequired,onChange:o.func},H.childContextTypes={checkboxGroup:o.any},Object(a.polyfill)(H);var I=H;j.Group=I;t.default=j}}]);