mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-23 15:08:11 +08:00
8 lines
55 KiB
JavaScript
8 lines
55 KiB
JavaScript
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIStandalonePreset=t():e.SwaggerUIStandalonePreset=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="/dist",t(0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=o(2),i=r(n);o(33);var a=o(37),s=r(a),l=[s.default,function(){return{components:{StandaloneLayout:i.default}}}];e.exports=l},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(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}function a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),l=o(3),p=r(l),u=function(e){function t(){return n(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.getComponent,o=e.specSelectors,r=t("Container"),n=t("Row"),i=t("Col"),a=t("Topbar",!0),s=t("BaseLayout",!0),l=t("onlineValidatorBadge",!0),u=o.loadingStatus();return p.default.createElement(r,{className:"swagger-ui"},a?p.default.createElement(a,null):null,"loading"===u&&p.default.createElement("div",{className:"info"},p.default.createElement("h4",{className:"title"},"Loading...")),"failed"===u&&p.default.createElement("div",{className:"info"},p.default.createElement("h4",{className:"title"},"Failed to load spec.")),"failedConfig"===u&&p.default.createElement("div",{className:"info",style:{maxWidth:"880px",marginLeft:"auto",marginRight:"auto",textAlign:"center"}},p.default.createElement("h4",{className:"title"},"Failed to load config.")),!u||"success"===u&&p.default.createElement(s,null),p.default.createElement(n,null,p.default.createElement(i,null,p.default.createElement(l,null))))}}]),t}(p.default.Component);u.propTypes={errSelectors:l.PropTypes.object.isRequired,errActions:l.PropTypes.object.isRequired,specActions:l.PropTypes.object.isRequired,specSelectors:l.PropTypes.object.isRequired,layoutSelectors:l.PropTypes.object.isRequired,layoutActions:l.PropTypes.object.isRequired,getComponent:l.PropTypes.func.isRequired},t.default=u},function(e,t,o){"use strict";e.exports=o(4)},function(e,t,o){"use strict";var r=o(5),n=o(6),i=o(19),a=o(22),s=o(23),l=o(25),p=o(10),u=o(26),c=o(31),f=o(32),d=(o(12),p.createElement),g=p.createFactory,b=p.cloneElement,m=r,x={Children:{map:n.map,forEach:n.forEach,count:n.count,toArray:n.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:b,isValidElement:p.isValidElement,PropTypes:u,createClass:s.createClass,createFactory:g,createMixin:function(e){return e},DOM:l,version:c,__spread:m};e.exports=x},function(e,t){/*
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/
|
||
|
"use strict";function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,s,l=o(e),p=1;p<arguments.length;p++){r=Object(arguments[p]);for(var u in r)i.call(r,u)&&(l[u]=r[u]);if(n){s=n(r);for(var c=0;c<s.length;c++)a.call(r,s[c])&&(l[s[c]]=r[s[c]])}}return l}},function(e,t,o){"use strict";function r(e){return(""+e).replace(y,"$&/")}function n(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,o){var r=e.func,n=e.context;r.call(n,t,e.count++)}function a(e,t,o){if(null==e)return e;var r=n.getPooled(t,o);x(e,i,r),n.release(r)}function s(e,t,o,r){this.result=e,this.keyPrefix=t,this.func=o,this.context=r,this.count=0}function l(e,t,o){var n=e.result,i=e.keyPrefix,a=e.func,s=e.context,l=a.call(s,t,e.count++);Array.isArray(l)?p(l,n,o,m.thatReturnsArgument):null!=l&&(b.isValidElement(l)&&(l=b.cloneAndReplaceKey(l,i+(!l.key||t&&t.key===l.key?"":r(l.key)+"/")+o)),n.push(l))}function p(e,t,o,n,i){var a="";null!=o&&(a=r(o)+"/");var p=s.getPooled(t,a,n,i);x(e,l,p),s.release(p)}function u(e,t,o){if(null==e)return e;var r=[];return p(e,r,null,t,o),r}function c(e,t,o){return null}function f(e,t){return x(e,c,null)}function d(e){var t=[];return p(e,t,null,m.thatReturnsArgument),t}var g=o(7),b=o(10),m=o(13),x=o(16),w=g.twoArgumentPooler,h=g.fourArgumentPooler,y=/\/+/g;n.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},g.addPoolingTo(n,w),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},g.addPoolingTo(s,h);var k={forEach:a,map:u,mapIntoWithKeyPrefixInternal:p,count:f,toArray:d};e.exports=k},function(e,t,o){"use strict";var r=o(8),n=(o(9),function(e){var t=this;if(t.instancePool.length){var o=t.instancePool.pop();return t.call(o,e),o}return new t(e)}),i=function(e,t){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t),r}return new o(e,t)},a=function(e,t,o){var r=this;if(r.instancePool.length){var n=r.instancePool.pop();return r.call(n,e,t,o),n}return new r(e,t,o)},s=function(e,t,o,r){var n=this;if(n.instancePool.length){var i=n.instancePool.pop();return n.call(i,e,t,o,r),i}return new n(e,t,o,r)},l=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},p=10,u=n,c=function(e,t){var o=e;return o.instancePool=[],o.getPooled=t||u,o.poolSize||(o.poolSize=p),o.release=l,o},f={addPoolingTo:c,oneArgumentPooler:n,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};e.exports=f},function(e,t){"use strict";function o(e){for(var t=arguments.length-1,o="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)o+="&args[]="+encodeURIComponent(arguments[r+1]);o+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var n=new Error(o);throw n.name="Invariant Violation",n.framesToPop=1,n}e.exports=o},function(e,t,o){"use strict";function r(e,t,o,r,i,a,s,l){if(n(t),!e){var p;if(void 0===t)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,a,s,l],c=0;p=new Error(t.replace(/%s/g,function(){return u[c++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}}var n=function(e){};e.exports=r},function(e,t,o){"use strict";function r(e){return void 0
|
||
|
},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var o=this[t];o[2]?e.push("@media "+o[2]+"{"+o[1]+"}"):e.push(o[1])}return e.join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},n=0;n<this.length;n++){var i=this[n][0];"number"==typeof i&&(r[i]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&r[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},function(e,t,o){function r(e,t){for(var o=0;o<e.length;o++){var r=e[o],n=d[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(p(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(p(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:a}}}}function n(e){for(var t=[],o={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1],s=n[2],l=n[3],p={css:a,media:s,sourceMap:l};o[i]?o[i].parts.push(p):t.push(o[i]={id:i,parts:[p]})}return t}function i(e,t){var o=m(),r=h[h.length-1];if("top"===e.insertAt)r?r.nextSibling?o.insertBefore(t,r.nextSibling):o.appendChild(t):o.insertBefore(t,o.firstChild),h.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");o.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function p(e,t){var o,r,n;if(t.singleton){var i=w++;o=x||(x=s(t)),r=u.bind(null,o,i,!1),n=u.bind(null,o,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=l(t),r=f.bind(null,o),n=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=s(t),r=c.bind(null,o),n=function(){a(o)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}function u(e,t,o,r){var n=o?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,n);else{var i=document.createTextNode(n),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var o=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}function f(e,t){var o=t.css,r=(t.media,t.sourceMap);r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var n=new Blob([o],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(n),i&&URL.revokeObjectURL(i)}var d={},g=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=g(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=g(function(){return document.head||document.getElementsByTagName("head")[0]}),x=null,w=0,h=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var o=n(e);return r(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var s=o[a],l=d[s.id];l.refs--,i.push(l)}if(e){var p=n(e);r(p,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete d[l.id]}}}};var y=function(){var e=[];return function(t,o){return e[t]=o,e.filter(Boolean).join("\n")}}()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{components:{Topbar:i.default}}};var n=o(38),i=r(n)},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(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}function a(e,t){if("functi
|
||
|
//# sourceMappingURL=swagger-ui-standalone-preset.js.map
|