build/static/js/126.84d8c142.chunk.js

1 line
11 KiB
JavaScript
Raw Permalink Normal View History

2023-02-13 11:44:36 +08:00
(this.webpackJsonp=this.webpackJsonp||[]).push([[126],{"008G":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=a("q1tI"),r=(n=o)&&n.__esModule?n:{default:n},s=a("eO8H");function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}a("6JOy");var u=function(e){function t(){return c(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"render",value:function(){var e=this.props.match.params,t=e.projectsId,a=e.owner;return r.default.createElement("p",{className:"topWrapper_nav"},r.default.createElement(s.NavLink,{activeClassName:"active",className:"issue-type-button",to:"/"+a+"/"+t+"/issues/tags"},"标记"),r.default.createElement(s.NavLink,{activeClassName:"active",className:"issue-type-button",to:"/"+a+"/"+t+"/milestones"},"里程碑"))}}]),t}(o.Component);t.default=u},"6JOy":function(e,t,a){},DTGX:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=E(a("kLXV")),l=E(a("NUBc")),o=E(a("NJEC")),r=E(a("jsC+")),s=E(a("CtXQ")),c=E(a("Vl3Y")),i=E(a("5rEg")),u=E(a("BvKs")),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},p=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();a("k3Gp"),a("YQTV"),a("k994"),a("aIZi"),a("2oDE"),a("tULf"),a("1vPl"),a("2WkQ");var f=a("q1tI"),m=E(f),h=E(a("008G")),g=E(a("2CTR")),v=a("WFjJ"),y=E(a("/FUP")),b=E(a("vDqi"));function E(e){return e&&e.__esModule?e:{default:e}}var _=(0,y.default)({default:{color:{width:"20px",height:"20px",borderRadius:"2px",background:"rgba("+(void 0).state.color.r+", "+(void 0).state.color.g+", "+(void 0).state.color.b+", "+(void 0).state.color.a+")"},swatch:{padding:"5px",background:"#fff",borderRadius:"1px",width:"100px",marginTop:"5px",height:"28px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"flex",cursor:"pointer"},popover:{position:"absolute",zIndex:"2"},cover:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"},modalcolor:{width:"20px",height:"20px",borderRadius:"2px",background:(void 0).state.newcolor}}}),w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.componentDidMount=function(){a.getList()},a.getList=function(e,t,n){var l=a.props.match.params,o=l.projectsId,r=l.owner,s=a.state.limit,c="/projects/"+r+"/"+o+"/labels.json";b.default.get(c,{params:{page:e,limit:s,order_name:t,order_type:n}}).then((function(e){e&&a.setState({data:e.data})})).catch((function(e){console.log(e)}))},a.createtagpost=function(){a.props.form.validateFieldsAndScroll((function(e,t){if(!e){var n=a.props.match.params,l=n.projectsId,o="/projects/"+n.owner+"/"+l+"/labels.json";b.default.post(o,d({},t,{project_id:l,color:a.state.textcolor})).then((function(e){e&&(a.props.form.setFieldsValue({name:"",description:""}),a.setSt