proxy-based Twister client written with react-js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

1 lines
5.3 KiB

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/NavItem"),require("react-bootstrap/lib/ListGroupItem")):"function"==typeof define&&define.amd?define(["react","react-bootstrap/lib/Button","react-bootstrap/lib/MenuItem","react-bootstrap/lib/NavItem","react-bootstrap/lib/ListGroupItem"],e):"object"==typeof exports?exports.ReactRouterBootstrap=e(require("react"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/NavItem"),require("react-bootstrap/lib/ListGroupItem")):t.ReactRouterBootstrap=e(t.React,t.ReactBootstrap.Button,t.ReactBootstrap.MenuItem,t.ReactBootstrap.NavItem,t.ReactBootstrap.ListGroupItem)}(this,function(t,e,r,o,s){return function(t){function e(o){if(r[o])return r[o].exports;var s=r[o]={exports:{},id:o,loaded:!1};return t[o].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var o=r(1),s=r(2),i=r(3),n=r(4);t.exports={ButtonLink:o,MenuItemLink:s,NavItemLink:i,ListGroupItemLink:n}},function(t,e,r){var o=r(5),s=r(6),i=r(10),n=o.createClass({displayName:"ButtonLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"button"}),this.props.children)}});t.exports=n},function(t,e,r){var o=r(5),s=r(11),i=r(7),n=r(10),a=r(12),p=o.createClass({displayName:"MenuItemLink",mixins:[n],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,n=t.query,p=t.active,c=t.className,u=(t.onSelect,function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1,className:1,onSelect:1}));return void 0===this.props.active&&(p=this.context.router.isActive(e,r,n)),o.createElement(i,o.__spread({},u,{href:this.getHref(),className:a(c,s({active:p})),onClick:this.handleRouteTo,ref:"menuItem"}),this.props.children)}});t.exports=p},function(t,e,r){var o=r(5),s=r(8),i=r(10),n=o.createClass({displayName:"NavItemLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"navItem"}),this.props.children)}});t.exports=n},function(t,e,r){var o=r(5),s=r(9),i=r(10),n=o.createClass({displayName:"LinkGroupItemLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"listGroupItem"}),this.props.children)}});t.exports=n},function(e,r,o){e.exports=t},function(t,r,o){t.exports=e},function(t,e,o){t.exports=r},function(t,e,r){t.exports=o},function(t,e,r){t.exports=s},function(t,e,r){function o(t){return 0===t.button}function s(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var i=r(5),n=r(11);t.exports={propTypes:{activeClassName:i.PropTypes.string.isRequired,to:i.PropTypes.string.isRequired,params:i.PropTypes.object,query:i.PropTypes.object,onClick:i.PropTypes.func},contextTypes:{router:i.PropTypes.func.isRequired},getDefaultProps:function(){return{activeClassName:"active"}},getHref:function(){return this.context.router.makeHref(this.props.to,this.props.params,this.props.query)},getClassName:function(){var t={};return this.props.className&&(t[this.props.className]=!0),this.context.router.isActive(this.props.to,this.props.params,this.props.query)&&(t[this.props.activeClassName]=!0),n(t)},handleRouteTo:function(t){var e,r=!0;this.props.onClick&&(e=this.props.onClick(t)),!s(t)&&o(t)&&((e===!1||t.defaultPrevented===!0)&&(r=!1),t.preventDefault(),r&&this.context.router.transitionTo(this.props.to,this.props.params,this.props.query))}}},function(t,e,r){function o(){for(var t,e="",r=0;r<arguments.length;r++)if(t=arguments[r])if("string"==typeof t||"number"==typeof t)e+=" "+t;else if("[object Array]"===Object.prototype.toString.call(t))e+=" "+o.apply(null,t);else if("object"==typeof t)for(var s in t)t.hasOwnProperty(s)&&t[s]&&(e+=" "+s);return e.substr(1)}"undefined"!=typeof t&&t.exports&&(t.exports=o)},function(t,e,r){"use strict";function o(t){t||(t="");var e,r=arguments.length;if(r>1)for(var o=1;r>o;o++)e=arguments[o],e&&(t=(t?t+" ":"")+e);return t}t.exports=o}])});