diff --git a/browser/app/js/components/Browse.js b/browser/app/js/components/Browse.js index f532c4a44..9f6f7b033 100644 --- a/browser/app/js/components/Browse.js +++ b/browser/app/js/components/Browse.js @@ -150,16 +150,21 @@ export default class Browse extends React.Component { if (prefix === currentPath) return browserHistory.push(utils.pathJoin(currentBucket, encPrefix)) } else { - // Download the selected file. - web.CreateURLToken() - .then(res => { - let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=${res.token}` - window.location = url - }) - .catch(err => dispatch(actions.showAlert({ - type: 'danger', - message: err.message - }))) + if (!web.LoggedIn()) { + let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=''` + window.location = url + } else { + // Download the selected file. + web.CreateURLToken() + .then(res => { + let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=${res.token}` + window.location = url + }) + .catch(err => dispatch(actions.showAlert({ + type: 'danger', + message: err.message + }))) + } } } @@ -421,18 +426,23 @@ export default class Browse extends React.Component { objects: this.props.checkedObjects, prefix: this.props.currentPath } + if (!web.LoggedIn()) { + let requestUrl = location.origin + "/minio/zip?token=''" + this.xhr = new XMLHttpRequest() + dispatch(actions.downloadSelected(requestUrl, req, this.xhr)) + } else { + web.CreateURLToken() + .then(res => { + let requestUrl = location.origin + "/minio/zip?token=" + res.token - web.CreateURLToken() - .then(res => { - let requestUrl = location.origin + "/minio/zip?token=" + res.token - - this.xhr = new XMLHttpRequest() - dispatch(actions.downloadSelected(requestUrl, req, this.xhr)) - }) - .catch(err => dispatch(actions.showAlert({ - type: 'danger', - message: err.message - }))) + this.xhr = new XMLHttpRequest() + dispatch(actions.downloadSelected(requestUrl, req, this.xhr)) + }) + .catch(err => dispatch(actions.showAlert({ + type: 'danger', + message: err.message + }))) + } } clearSelected() { diff --git a/browser/ui-assets.go b/browser/ui-assets.go index 23d7f1897..6cf509ba1 100644 --- a/browser/ui-assets.go +++ b/browser/ui-assets.go @@ -4,7 +4,7 @@ // production/favicon.ico // production/firefox.png // production/index.html -// production/index_bundle-2017-08-06T21-24-15Z.js +// production/index_bundle-2017-10-17T17-47-22Z.js // production/loader.css // production/logo.svg // production/safari.png @@ -65,7 +65,7 @@ func productionChromePng() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -82,7 +82,7 @@ func productionFaviconIco() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -99,7 +99,7 @@ func productionFirefoxPng() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -156,8 +156,8 @@ var _productionIndexHTML = []byte(` - - + + `) @@ -172,12 +172,12 @@ func productionIndexHTML() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/index.html", size: 1996, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/index.html", size: 1996, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _productionIndex_bundle20170806t212415zJs = []byte(`!function(A){function M(I){if(t[I])return t[I].exports;var g=t[I]={exports:{},id:I,loaded:!1};return A[I].call(g.exports,g,g.exports,M),g.loaded=!0,g.exports}var t={};return M.m=A,M.c=t,M.p="",M(0)}([function(A,M,t){A.exports=t(351)},function(A,M,t){var I=t(5),g=t(48),e=t(25),i=t(26),T=t(49),E="prototype",n=function(A,M,t){var N,o,c,C,a=A&n.F,D=A&n.G,r=A&n.S,B=A&n.P,Q=A&n.B,s=D?I:r?I[M]||(I[M]={}):(I[M]||{})[E],u=D?g:g[M]||(g[M]={}),x=u[E]||(u[E]={});D&&(t=M);for(N in t)o=!a&&s&&void 0!==s[N],c=(o?s:t)[N],C=Q&&o?T(c,I):B&&"function"==typeof c?T(Function.call,c):c,s&&i(s,N,c,A&n.U),u[N]!=c&&e(u,N,C),B&&x[N]!=c&&(x[N]=c)};I.core=g,n.F=1,n.G=2,n.S=4,n.P=8,n.B=16,n.W=32,n.U=64,n.R=128,A.exports=n},function(A,M,t){"use strict";A.exports=t(738)},function(A,M,t){"use strict";function I(A,M,t,I,g,e,i,T){if(!A){var E;if(void 0===M)E=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var n=[t,I,g,e,i,T],N=0;E=new Error(M.replace(/%s/g,function(){return n[N++]})),E.name="Invariant Violation"}throw E.framesToPop=1,E}}A.exports=I},function(A,M,t){var I=t(9);A.exports=function(A){if(!I(A))throw TypeError(A+" is not an object!");return A}},function(A,M){var t=A.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(A,M){A.exports=function(A){try{return!!A()}catch(A){return!0}}},function(A,M){"use strict";function t(A,M){if(null==A)throw new TypeError("Object.assign target cannot be null or undefined");for(var t=Object(A),I=Object.prototype.hasOwnProperty,g=1;g-1&&A%1==0&&A1)for(var t=1;tA.clientHeight}Object.defineProperty(M,"__esModule",{value:!0}),M.default=i;var T=t(120),E=I(T),n=t(100),N=I(n);A.exports=M.default},function(A,M){"use strict";function t(A,M){return A.classList?!!M&&A.classList.contains(M):(" "+A.className+" ").indexOf(" "+M+" ")!==-1}Object.defineProperty(M,"__esModule",{value:!0}),M.default=t,A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(87),e=I(g),i=function(){};e.default&&(i=function(){return document.addEventListener?function(A,M,t,I){return A.addEventListener(M,t,I||!1)}:document.attachEvent?function(A,M,t){return A.attachEvent("on"+M,function(M){M=M||window.event,M.target=M.target||M.srcElement,M.currentTarget=A,t.call(A,M)})}:void 0}()),M.default=i,A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}function g(A){var M=(0,N.default)(A),t=(0,E.default)(M),I=M&&M.documentElement,g={top:0,left:0,height:0,width:0};if(M)return(0,i.default)(I,A)?(void 0!==A.getBoundingClientRect&&(g=A.getBoundingClientRect()),g={top:g.top+(t.pageYOffset||I.scrollTop)-(I.clientTop||0),left:g.left+(t.pageXOffset||I.scrollLeft)-(I.clientLeft||0),width:(null==g.width?A.offsetWidth:g.width)||0,height:(null==g.height?A.offsetHeight:g.height)||0}):g}Object.defineProperty(M,"__esModule",{value:!0}),M.default=g;var e=t(182),i=I(e),T=t(120),E=I(T),n=t(100),N=I(n);A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}function g(A,M){var t=(0,i.default)(A);return void 0===M?t?"pageYOffset"in t?t.pageYOffset:t.document.documentElement.scrollTop:A.scrollTop:void(t?t.scrollTo("pageXOffset"in t?t.pageXOffset:t.document.documentElement.scrollLeft,M):A.scrollTop=M)}Object.defineProperty(M,"__esModule",{value:!0}),M.default=g;var e=t(120),i=I(e);A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}function g(){for(var A=document.createElement("div").style,M={O:function(A){return"o"+A.toLowerCase()},Moz:function(A){return A.toLowerCase()},Webkit:function(A){return"webkit"+A},ms:function(A){return"MS"+A}},t=Object.keys(M),I=void 0,g=void 0,e="",i=0;i>",E=i||I;if(null==t[I])return M?new Error("Required "+e+" ` + "`" + `"+E+"` + "`" + ` was not specified "+("in ` + "`" + `"+T+"` + "`" + `.")):null;for(var n=arguments.length,N=Array(n>6?n-6:0),o=6;o=0||Object.prototype.hasOwnProperty.call(A,I)&&(t[I]=A[I]);return t}function e(A){return 0===A.button}function i(A){return!!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)}function T(A){for(var M in A)if(Object.prototype.hasOwnProperty.call(A,M))return!1;return!0}function E(A,M){var t=M.query,I=M.hash,g=M.state;return t||I||g?{pathname:A,query:t,hash:I,state:g}:A}M.__esModule=!0;var n=Object.assign||function(A){for(var M=1;M=0;I--){var g=A[I],e=g.path||"";if(t=e.replace(/\/*$/,"/")+t,0===e.indexOf("/"))break}return"/"+t}},propTypes:{path:c,from:c,to:c.isRequired,query:C,state:C,onEnter:N.falsy,children:N.falsy},render:function(){(0,T.default)(!1)}});M.default=a,A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}M.__esModule=!0;var g=t(2),e=I(g),i=t(16),T=I(i),E=t(60),n=t(73),N=e.default.PropTypes,o=N.string,c=N.func,C=e.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:E.createRouteFromReactElement},propTypes:{path:o,component:n.component,components:n.components,getComponent:c,getComponents:c},render:function(){(0,T.default)(!1)}});M.default=C,A.exports=M.default},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}function g(A,M){var t={};for(var I in A)M.indexOf(I)>=0||Object.prototype.hasOwnProperty.call(A,I)&&(t[I]=A[I]);return t}function e(A){return!A||!A.__v2_compatible__}function i(A){return A&&A.getCurrentLocation}M.__esModule=!0;var T=Object.assign||function(A){for(var M=1;M=0&&0===window.sessionStorage.length)return;throw A}}function i(A){var M=void 0;try{M=window.sessionStorage.getItem(g(A))}catch(A){if(A.name===N)return null}if(M)try{return JSON.parse(M)}catch(A){}return null}M.__esModule=!0,M.saveState=e,M.readState=i;var T=t(46),E=(I(T),"@@History/"),n=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],N="SecurityError"},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}function g(A){function M(A){return E.canUseDOM?void 0:T.default(!1),t.listen(A)}var t=o.default(e({getUserConfirmation:n.getUserConfirmation},A,{go:n.go}));return e({},t,{listen:M})}M.__esModule=!0;var e=Object.assign||function(A){for(var M=1;M1?M-1:0),e=1;e=A.childNodes.length?null:A.childNodes.item(t);A.insertBefore(M,I)}var g=t(732),e=t(329),i=t(38),T=t(134),E=t(208),n=t(3),N={dangerouslyReplaceNodeWithMarkup:g.dangerouslyReplaceNodeWithMarkup,updateTextContent:E,processUpdates:function(A,M){for(var t,i=null,N=null,o=0;o-1?void 0:i(!1),!n.plugins[t]){M.extractEvents?void 0:i(!1),n.plugins[t]=M;var I=M.eventTypes;for(var e in I)g(I[e],M,e)?void 0:i(!1)}}}function g(A,M,t){n.eventNameDispatchConfigs.hasOwnProperty(t)?i(!1):void 0,n.eventNameDispatchConfigs[t]=A;var I=A.phasedRegistrationNames;if(I){for(var g in I)if(I.hasOwnProperty(g)){var T=I[g];e(T,M,t)}return!0}return!!A.registrationName&&(e(A.registrationName,M,t),!0)}function e(A,M,t){n.registrationNameModules[A]?i(!1):void 0,n.registrationNameModules[A]=M,n.registrationNameDependencies[A]=M.eventTypes[t].dependencies}var i=t(3),T=null,E={},n={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(A){T?i(!1):void 0,T=Array.prototype.slice.call(A),I()},injectEventPluginsByName:function(A){var M=!1;for(var t in A)if(A.hasOwnProperty(t)){var g=A[t];E.hasOwnProperty(t)&&E[t]===g||(E[t]?i(!1):void 0,E[t]=g,M=!0)}M&&I()},getPluginModuleForEvent:function(A){var M=A.dispatchConfig;if(M.registrationName)return n.registrationNameModules[M.registrationName]||null;for(var t in M.phasedRegistrationNames)if(M.phasedRegistrationNames.hasOwnProperty(t)){var I=n.registrationNameModules[M.phasedRegistrationNames[t]];if(I)return I}return null},_resetEventPlugins:function(){T=null;for(var A in E)E.hasOwnProperty(A)&&delete E[A];n.plugins.length=0;var M=n.eventNameDispatchConfigs;for(var t in M)M.hasOwnProperty(t)&&delete M[t];var I=n.registrationNameModules;for(var g in I)I.hasOwnProperty(g)&&delete I[g]}};A.exports=n},function(A,M,t){"use strict";function I(A){return(""+A).replace(u,"//")}function g(A,M){this.func=A,this.context=M,this.count=0}function e(A,M,t){var I=A.func,g=A.context;I.call(g,M,A.count++)}function i(A,M,t){if(null==A)return A;var I=g.getPooled(M,t);B(A,e,I),g.release(I)}function T(A,M,t,I){this.result=A,this.keyPrefix=M,this.func=t,this.context=I,this.count=0}function E(A,M,t){var g=A.result,e=A.keyPrefix,i=A.func,T=A.context,E=i.call(T,M,A.count++);Array.isArray(E)?n(E,g,t,r.thatReturnsArgument):null!=E&&(D.isValidElement(E)&&(E=D.cloneAndReplaceKey(E,e+(E!==M?I(E.key||"")+"/":"")+t)),g.push(E))}function n(A,M,t,g,e){var i="";null!=t&&(i=I(t)+"/");var n=T.getPooled(M,i,g,e);B(A,E,n),T.release(n)}function N(A,M,t){if(null==A)return A;var I=[];return n(A,I,null,M,t),I}function o(A,M,t){return null}function c(A,M){return B(A,o,null)}function C(A){var M=[];return n(A,M,null,r.thatReturnsArgument),M}var a=t(61),D=t(29),r=t(47),B=t(210),Q=a.twoArgumentPooler,s=a.fourArgumentPooler,u=/\/(?!\/)/g;g.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},a.addPoolingTo(g,Q),T.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},a.addPoolingTo(T,s);var x={forEach:i,map:N,mapIntoWithKeyPrefixInternal:n,count:c,toArray:C};A.exports=x},function(A,M,t){"use strict";function I(A,M){var t=y.hasOwnProperty(M)?y[M]:null;l.hasOwnProperty(M)&&(t!==u.OVERRIDE_BASE?r(!1):void 0),A.hasOwnProperty(M)&&(t!==u.DEFINE_MANY&&t!==u.DEFINE_MANY_MERGED?r(!1):void 0)}function g(A,M){if(M){"function"==typeof M?r(!1):void 0,c.isValidElement(M)?r(!1):void 0;var t=A.prototype;M.hasOwnProperty(s)&&j.mixins(A,M.mixins);for(var g in M)if(M.hasOwnProperty(g)&&g!==s){var e=M[g];if(I(t,g),j.hasOwnProperty(g))j[g](A,e);else{var i=y.hasOwnProperty(g),n=t.hasOwnProperty(g),N="function"==typeof e,o=N&&!i&&!n&&M.autobind!==!1;if(o)t.__reactAutoBindMap||(t.__reactAutoBindMap={}),t.__reactAutoBindMap[g]=e,t[g]=e;else if(n){var C=y[g];!i||C!==u.DEFINE_MANY_MERGED&&C!==u.DEFINE_MANY?r(!1):void 0,C===u.DEFINE_MANY_MERGED?t[g]=T(t[g],e):C===u.DEFINE_MANY&&(t[g]=E(t[g],e))}else t[g]=e}}}}function e(A,M){if(M)for(var t in M){var I=M[t];if(M.hasOwnProperty(t)){var g=t in j;g?r(!1):void 0;var e=t in A;e?r(!1):void 0,A[t]=I}}}function i(A,M){A&&M&&"object"==typeof A&&"object"==typeof M?void 0:r(!1);for(var t in M)M.hasOwnProperty(t)&&(void 0!==A[t]?r(!1):void 0,A[t]=M[t]);return A}function T(A,M){return function(){var t=A.apply(this,arguments),I=M.apply(this,arguments);if(null==t)return I;if(null==I)return t;var g={};return i(g,t),i(g,I),g}}function E(A,M){return function(){A.apply(this,arguments),M.apply(this,arguments)}}function n(A,M){var t=M.bind(A);return t}function N(A){for(var M in A.__reactAutoBindMap)if(A.__reactAutoBindMap.hasOwnProperty(M)){var t=A.__reactAutoBindMap[M];A[M]=n(A,t)}}var o=t(316),c=t(29),C=(t(129),t(128),t(331)),a=t(7),D=t(105),r=t(3),B=t(135),Q=t(62),s=(t(8),Q({mixins:null})),u=B({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],y={mixins:u.DEFINE_MANY,statics:u.DEFINE_MANY,propTypes:u.DEFINE_MANY,contextTypes:u.DEFINE_MANY,childContextTypes:u.DEFINE_MANY,getDefaultProps:u.DEFINE_MANY_MERGED,getInitialState:u.DEFINE_MANY_MERGED,getChildContext:u.DEFINE_MANY_MERGED,render:u.DEFINE_ONCE,componentWillMount:u.DEFINE_MANY,componentDidMount:u.DEFINE_MANY,componentWillReceiveProps:u.DEFINE_MANY,shouldComponentUpdate:u.DEFINE_ONCE,componentWillUpdate:u.DEFINE_MANY,componentDidUpdate:u.DEFINE_MANY,componentWillUnmount:u.DEFINE_MANY,updateComponent:u.OVERRIDE_BASE},j={displayName:function(A,M){A.displayName=M},mixins:function(A,M){if(M)for(var t=0;t"+T+""},receiveComponent:function(A,M){if(A!==this._currentElement){this._currentElement=A;var t=""+A;if(t!==this._stringText){this._stringText=t;var g=i.getNode(this._rootNodeID);I.updateTextContent(g,t)}}},unmountComponent:function(){e.unmountIDFromEnvironment(this._rootNodeID)}}),A.exports=N},function(A,M,t){"use strict";function I(){this.reinitializeTransaction()}var g=t(39),e=t(131),i=t(7),T=t(47),E={initialize:T,close:function(){c.isBatchingUpdates=!1}},n={initialize:T,close:g.flushBatchedUpdates.bind(g)},N=[n,E];i(I.prototype,e.Mixin,{getTransactionWrappers:function(){return N}});var o=new I,c={isBatchingUpdates:!1,batchedUpdates:function(A,M,t,I,g,e){var i=c.isBatchingUpdates;c.isBatchingUpdates=!0,i?A(M,t,I,g,e):o.perform(A,null,M,t,I,g,e)}};A.exports=c},function(A,M,t){"use strict";function I(){if(!w){w=!0,B.EventEmitter.injectReactEventListener(r),B.EventPluginHub.injectEventPluginOrder(T),B.EventPluginHub.injectInstanceHandle(Q),B.EventPluginHub.injectMount(s),B.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:j,EnterLeaveEventPlugin:E,ChangeEventPlugin:e,SelectEventPlugin:x,BeforeInputEventPlugin:g}),B.NativeComponent.injectGenericComponentClass(a),B.NativeComponent.injectTextComponentClass(D),B.Class.injectMixin(o),B.DOMProperty.injectDOMPropertyConfig(N),B.DOMProperty.injectDOMPropertyConfig(l),B.EmptyComponent.injectEmptyComponent("noscript"),B.Updates.injectReconcileTransaction(u),B.Updates.injectBatchingStrategy(C),B.RootIndex.injectCreateReactRootIndex(n.canUseDOM?i.createReactRootIndex:y.createReactRootIndex),B.Component.injectEnvironment(c)}}var g=t(728),e=t(730),i=t(731),T=t(733),E=t(734),n=t(20),N=t(737),o=t(739),c=t(196),C=t(321),a=t(743),D=t(320),r=t(751),B=t(752),Q=t(91),s=t(23),u=t(756),x=t(762),y=t(763),j=t(764),l=t(761),w=!1;A.exports={inject:I}},function(A,M,t){"use strict";function I(){if(o.current){var A=o.current.getName();if(A)return" Check the render method of ` + "`" + `"+A+"` + "`" + `."}return""}function g(A,M){if(A._store&&!A._store.validated&&null==A.key){A._store.validated=!0;e("uniqueKey",A,M)}}function e(A,M,t){var g=I();if(!g){var e="string"==typeof t?t:t.displayName||t.name;e&&(g=" Check the top-level render call using <"+e+">.")}var i=a[A]||(a[A]={});if(i[g])return null;i[g]=!0;var T={parentOrOwner:g,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return M&&M._owner&&M._owner!==o.current&&(T.childOwner=" It was passed a child from "+M._owner.getName()+"."),T}function i(A,M){if("object"==typeof A)if(Array.isArray(A))for(var t=0;t/,e={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(A){var M=I(A);return A.replace(g," "+e.CHECKSUM_ATTR_NAME+'="'+M+'"$&')},canReuseMarkup:function(A,M){var t=M.getAttribute(e.CHECKSUM_ATTR_NAME);t=t&&parseInt(t,10);var g=I(A);return g===t}};A.exports=e},function(A,M,t){"use strict";var I=t(135),g=I({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});A.exports=g},function(A,M,t){"use strict";function I(A){if("function"==typeof A.type)return A.type;var M=A.type,t=o[M];return null==t&&(o[M]=t=n(M)),t}function g(A){return N?void 0:E(!1),new N(A.type,A.props)}function e(A){return new c(A)}function i(A){return A instanceof c}var T=t(7),E=t(3),n=null,N=null,o={},c=null,C={injectGenericComponentClass:function(A){N=A},injectTextComponentClass:function(A){c=A},injectComponentClasses:function(A){T(o,A)}},a={getComponentClassForElement:I,createInternalComponent:g,createInstanceForText:e,isTextComponent:i,injection:C};A.exports=a},function(A,M,t){"use strict";function I(A,M){}var g=(t(8),{isMounted:function(A){return!1},enqueueCallback:function(A,M){},enqueueForceUpdate:function(A){I(A,"forceUpdate")},enqueueReplaceState:function(A,M){I(A,"replaceState")},enqueueSetState:function(A,M){I(A,"setState")},enqueueSetProps:function(A,M){I(A,"setProps")},enqueueReplaceProps:function(A,M){I(A,"replaceProps")}});A.exports=g},function(A,M,t){"use strict";function I(A){function M(M,t,I,g,e,i){if(g=g||y,i=i||I,null==t[I]){var T=s[e];return M?new Error("Required "+T+" ` + "`" + `"+i+"` + "`" + ` was not specified in "+("` + "`" + `"+g+"` + "`" + `.")):null}return A(t,I,g,e,i)}var t=M.bind(null,!1);return t.isRequired=M.bind(null,!0),t}function g(A){function M(M,t,I,g,e){var i=M[t],T=D(i);if(T!==A){var E=s[g],n=r(i);return new Error("Invalid "+E+" ` + "`" + `"+e+"` + "`" + ` of type "+("` + "`" + `"+n+"` + "`" + ` supplied to ` + "`" + `"+I+"` + "`" + `, expected ")+("` + "`" + `"+A+"` + "`" + `."))}return null}return I(M)}function e(){return I(u.thatReturns(null))}function i(A){function M(M,t,I,g,e){var i=M[t];if(!Array.isArray(i)){var T=s[g],E=D(i);return new Error("Invalid "+T+" ` + "`" + `"+e+"` + "`" + ` of type "+("` + "`" + `"+E+"` + "`" + ` supplied to ` + "`" + `"+I+"` + "`" + `, expected an array."))}for(var n=0;n>"}var Q=t(29),s=t(128),u=t(47),x=t(205),y="<>",j={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),any:e(),arrayOf:i,element:T(),instanceOf:E,node:c(),objectOf:N,oneOf:n,oneOfType:o,shape:C};A.exports=j},function(A,M){"use strict";var t={injectCreateReactRootIndex:function(A){I.createReactRootIndex=A}},I={createReactRootIndex:null,injection:t};A.exports=I},function(A,M){"use strict";var t={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(A){t.currentScrollLeft=A.x,t.currentScrollTop=A.y}};A.exports=t},function(A,M,t){"use strict";function I(A,M){if(null==M?g(!1):void 0,null==A)return M;var t=Array.isArray(A),I=Array.isArray(M);return t&&I?(A.push.apply(A,M),A):t?(A.push(M),A):I?[A].concat(M):[A,M]}var g=t(3);A.exports=I},function(A,M){"use strict";var t=function(A,M,t){Array.isArray(A)?A.forEach(M,t):A&&M.call(t,A)};A.exports=t},function(A,M,t){"use strict";function I(){return!e&&g.canUseDOM&&(e="textContent"in document.documentElement?"textContent":"innerText"),e}var g=t(20),e=null;A.exports=I},function(A,M){"use strict";function t(A){var M=A&&A.nodeName&&A.nodeName.toLowerCase();return M&&("input"===M&&I[A.type]||"textarea"===M)}var I={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};A.exports=t},function(A,M,t){"use strict";var I=t(47),g={listen:function(A,M,t){return A.addEventListener?(A.addEventListener(M,t,!1),{remove:function(){A.removeEventListener(M,t,!1)}}):A.attachEvent?(A.attachEvent("on"+M,t),{remove:function(){A.detachEvent("on"+M,t)}}):void 0},capture:function(A,M,t){return A.addEventListener?(A.addEventListener(M,t,!0),{remove:function(){A.removeEventListener(M,t,!0)}}):{remove:I}},registerDefault:function(){}};A.exports=g},function(A,M,t){"use strict";function I(A,M){var t=!0;A:for(;t;){var I=A,e=M;if(t=!1,I&&e){if(I===e)return!0;if(g(I))return!1;if(g(e)){A=I,M=e.parentNode,t=!0;continue A}return I.contains?I.contains(e):!!I.compareDocumentPosition&&!!(16&I.compareDocumentPosition(e))}return!1}}var g=t(790);A.exports=I},function(A,M){"use strict";function t(A){ -try{A.focus()}catch(A){}}A.exports=t},function(A,M){"use strict";function t(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(A){return document.body}}A.exports=t},function(A,M,t){"use strict";function I(A){return i?void 0:e(!1),c.hasOwnProperty(A)||(A="*"),T.hasOwnProperty(A)||("*"===A?i.innerHTML="":i.innerHTML="<"+A+">",T[A]=!i.firstChild),T[A]?c[A]:null}var g=t(20),e=t(3),i=g.canUseDOM?document.createElement("div"):null,T={},E=[1,'"],n=[1,"","
"],N=[3,"","
"],o=[1,'',""],c={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:E,option:E,caption:n,colgroup:n,tbody:n,tfoot:n,thead:n,td:N,th:N},C=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];C.forEach(function(A){c[A]=o,T[A]=!0}),A.exports=I},function(A,M){"use strict";function t(A,M){if(A===M)return!0;if("object"!=typeof A||null===A||"object"!=typeof M||null===M)return!1;var t=Object.keys(A),g=Object.keys(M);if(t.length!==g.length)return!1;for(var e=I.bind(M),i=0;i=0&&s.splice(M,1)}function T(A){var M=document.createElement("style");return M.type="text/css",e(A,M),M}function E(A){var M=document.createElement("link");return M.rel="stylesheet",e(A,M),M}function n(A,M){var t,I,g;if(M.singleton){var e=Q++;t=B||(B=T(M)),I=N.bind(null,t,e,!1),g=N.bind(null,t,e,!0)}else A.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=E(M),I=c.bind(null,t),g=function(){i(t),t.href&&URL.revokeObjectURL(t.href)}):(t=T(M),I=o.bind(null,t),g=function(){i(t)});return I(A),function(M){if(M){if(M.css===A.css&&M.media===A.media&&M.sourceMap===A.sourceMap)return;I(A=M)}else g()}}function N(A,M,t,I){var g=t?"":I.css;if(A.styleSheet)A.styleSheet.cssText=u(M,g);else{var e=document.createTextNode(g),i=A.childNodes;i[M]&&A.removeChild(i[M]),i.length?A.insertBefore(e,i[M]):A.appendChild(e)}}function o(A,M){var t=M.css,I=M.media;if(I&&A.setAttribute("media",I),A.styleSheet)A.styleSheet.cssText=t;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(t))}}function c(A,M){var t=M.css,I=M.sourceMap;I&&(t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(I))))+" */");var g=new Blob([t],{type:"text/css"}),e=A.href;A.href=URL.createObjectURL(g),e&&URL.revokeObjectURL(e)}var C={},a=function(A){var M;return function(){return"undefined"==typeof M&&(M=A.apply(this,arguments)),M}},D=a(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),r=a(function(){return document.head||document.getElementsByTagName("head")[0]}),B=null,Q=0,s=[];A.exports=function(A,M){M=M||{},"undefined"==typeof M.singleton&&(M.singleton=D()),"undefined"==typeof M.insertAt&&(M.insertAt="bottom");var t=g(A);return I(t,M),function(A){for(var e=[],i=0;i-1})))}},{key:"listObjects",value:function(){var A=this.props.dispatch;A(eA.listObjects())}},{key:"selectPrefix",value:function(A,M){A.preventDefault();var t=this.props,I=t.dispatch,g=t.currentPath,e=t.web,i=t.currentBucket,T=encodeURI(M);if(M.endsWith("/")||""===M){if(M===g)return;a.default.push(TA.pathJoin(i,T))}else e.CreateURLToken().then(function(A){var M=window.location.origin+"/minio/download/"+i+"/"+T+"?token="+A.token;window.location=M}).catch(function(A){return I(eA.showAlert({type:"danger",message:A.message}))})}},{key:"makeBucket",value:function(A){A.preventDefault();var M=this.refs.makeBucketRef.value;this.refs.makeBucketRef.value="";var t=this.props,I=t.web,g=t.dispatch;this.hideMakeBucketModal(),I.MakeBucket({bucketName:M}).then(function(){g(eA.addBucket(M)),g(eA.selectBucket(M))}).catch(function(A){return g(eA.showAlert({type:"danger",message:A.message}))})}},{key:"hideMakeBucketModal",value:function(){var A=this.props.dispatch;A(eA.hideMakeBucketModal())}},{key:"showMakeBucketModal",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showMakeBucketModal())}},{key:"showAbout",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showAbout())}},{key:"hideAbout",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.hideAbout())}},{key:"showBucketPolicy",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showBucketPolicy())}},{key:"hideBucketPolicy",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.hideBucketPolicy())}},{key:"uploadFile",value:function(A){A.preventDefault();var M=this.props,t=M.dispatch,I=M.buckets;if(0===I.length)return void t(eA.showAlert({type:"danger",message:"Bucket needs to be created before trying to upload files."}));var g=A.target.files[0];A.target.value=null,this.xhr=new XMLHttpRequest,t(eA.uploadFile(g,this.xhr))}},{key:"removeObject",value:function(){var A=this,M=this.props,t=M.web,I=M.dispatch,g=M.currentPath,e=M.currentBucket,i=M.deleteConfirmation,T=M.checkedObjects,E=[];E=T.length>0?T.map(function(A){return""+g+A}):[i.object],t.RemoveObject({bucketname:e,objects:E}).then(function(){if(A.hideDeleteConfirmation(),T.length>0){for(var M=0;M0})},N.default.createElement("span",{className:"la-label"},N.default.createElement("i",{className:"fa fa-check-circle"})," ",C.length," Objects selected"),N.default.createElement("span",{className:"la-actions pull-right"},N.default.createElement("button",{onClick:this.downloadSelected.bind(this)}," Download all as zip ")),N.default.createElement("span",{className:"la-actions pull-right"},N.default.createElement("button",{onClick:this.showDeleteConfirmation.bind(this)}," Delete selected ")),N.default.createElement("i",{className:"la-close fa fa-times",onClick:this.clearSelected.bind(this)})),N.default.createElement(f.default,null,b,N.default.createElement("header",{className:"fe-header-mobile hidden-lg hidden-md"},N.default.createElement("div",{id:"feh-trigger",className:"feh-trigger "+(0,c.default)({"feht-toggled":y}),onClick:this.toggleSidebar.bind(this,!y)},N.default.createElement("div",{className:"feht-lines"},N.default.createElement("div",{className:"top"}),N.default.createElement("div",{className:"center"}),N.default.createElement("div",{className:"bottom"}))),N.default.createElement("img",{className:"mh-logo",src:IA.default,alt:""})),N.default.createElement("header",{className:"fe-header"},N.default.createElement(G.default,{selectPrefix:this.selectPrefix.bind(this)}),AA,N.default.createElement("ul",{className:"feh-actions"},N.default.createElement(v.default,null),K,_)),N.default.createElement("div",{className:"feb-container"},N.default.createElement("header",{className:"fesl-row","data-type":"folder"},N.default.createElement("div",{className:"fesl-item fesl-item-icon"}),N.default.createElement("div",{className:"fesl-item fesl-item-name",onClick:this.sortObjectsByName.bind(this),"data-sort":"name"},"Name",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-alpha-desc":i,"fa-sort-alpha-asc":!i})})),N.default.createElement("div",{className:"fesl-item fesl-item-size",onClick:this.sortObjectsBySize.bind(this),"data-sort":"size"},"Size",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-amount-desc":T,"fa-sort-amount-asc":!T})})),N.default.createElement("div",{className:"fesl-item fesl-item-modified",onClick:this.sortObjectsByDate.bind(this),"data-sort":"last-modified"},"Last Modified",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-numeric-desc":E,"fa-sort-numeric-asc":!E})})),N.default.createElement("div",{className:"fesl-item fesl-item-actions"}))),N.default.createElement("div",{className:"feb-container"},N.default.createElement(DA.default,{loadMore:this.listObjects.bind(this),hasMore:J,useWindow:!0,initialLoad:!1},N.default.createElement(F.default,{dataType:this.dataType.bind(this),selectPrefix:this.selectPrefix.bind(this),showDeleteConfirmation:this.showDeleteConfirmation.bind(this),shareObject:this.shareObject.bind(this),checkObject:this.checkObject.bind(this),checkedObjectsArray:C})),N.default.createElement("div",{className:"text-center",style:{display:J&&S?"block":"none"}},N.default.createElement("span",null,"Loading..."))),N.default.createElement(X.default,null),eA,N.default.createElement(s.default,{className:"modal-create-bucket",bsSize:"small",animation:!1,show:g,onHide:this.hideMakeBucketModal.bind(this)},N.default.createElement("button",{className:"close close-alt",onClick:this.hideMakeBucketModal.bind(this)},N.default.createElement("span",null,"×")),N.default.createElement(x.default,null,N.default.createElement("form",{onSubmit:this.makeBucket.bind(this)},N.default.createElement("div",{className:"input-group"},N.default.createElement("input",{className:"ig-text",type:"text",ref:"makeBucketRef",placeholder:"Bucket Name",autoFocus:!0}),N.default.createElement("i",{className:"ig-helpers"}))))),N.default.createElement(s.default,{className:"modal-about modal-dark",animation:!1,show:n,onHide:this.hideAbout.bind(this)},N.default.createElement("button",{className:"close",onClick:this.hideAbout.bind(this)},N.default.createElement("span",null,"×")),N.default.createElement("div",{className:"ma-inner"},N.default.createElement("div",{className:"mai-item hidden-xs"},N.default.createElement("a",{href:"https://minio.io",target:"_blank"},N.default.createElement("img",{className:"maii-logo",src:IA.default,alt:""}))),N.default.createElement("div",{className:"mai-item"},N.default.createElement("ul",{className:"maii-list"},N.default.createElement("li",null,N.default.createElement("div",null,"Version"),N.default.createElement("small",null,D)),N.default.createElement("li",null,N.default.createElement("div",null,"Memory"),N.default.createElement("small",null,B)),N.default.createElement("li",null,N.default.createElement("div",null,"Platform"),N.default.createElement("small",null,Q)),N.default.createElement("li",null,N.default.createElement("div",null,"Runtime"),N.default.createElement("small",null,u)))))),N.default.createElement(s.default,{className:"modal-policy",animation:!1,show:o,onHide:this.hideBucketPolicy.bind(this)},N.default.createElement(j.default,null,"Bucket Policy (",S,")",N.default.createElement("button",{className:"close close-alt",onClick:this.hideBucketPolicy.bind(this)},N.default.createElement("span",null,"×"))),N.default.createElement("div",{className:"pm-body"},N.default.createElement(Z.default,{bucket:S}),d.map(function(A,M){return N.default.createElement(q.default,{key:M,prefix:A.prefix,policy:A.policy})}))),N.default.createElement(MA.default,{show:p.show,icon:"fa fa-exclamation-triangle mci-red",text:"Are you sure you want to delete?",sub:"This cannot be undone!",okText:"Delete",cancelText:"Cancel",okHandler:this.removeObject.bind(this),cancelHandler:this.hideDeleteConfirmation.bind(this)}),N.default.createElement(s.default,{show:U.show,animation:!1,onHide:this.hideShareObjectModal.bind(this),bsSize:"small"},N.default.createElement(j.default,null,"Share Object"),N.default.createElement(x.default,null,N.default.createElement("div",{className:"input-group copy-text"},N.default.createElement("label",null,"Shareable Link"),N.default.createElement("input",{type:"text",ref:"copyTextInput",readOnly:"readOnly",value:window.location.protocol+"//"+U.url,onClick:this.selectTexts.bind(this)})),N.default.createElement("div",{className:"input-group",style:{display:m.LoggedIn()?"block":"none"}},N.default.createElement("label",null,"Expires in (Max 7 days)"),N.default.createElement("div",{className:"set-expire"},N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireDays",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Days"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireDays",type:"number",min:0,max:7,defaultValue:5,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireDays",-1,U.object)})),N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireHours",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Hours"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireHours",type:"number",min:0,max:23,defaultValue:0,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireHours",-1,U.object)})),N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireMins",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Minutes"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireMins",type:"number",min:0,max:59,defaultValue:0,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireMins",-1,U.object)}))))),N.default.createElement("div",{className:"modal-footer"},N.default.createElement(cA.default,{text:window.location.protocol+"//"+U.url,onCopy:this.showMessage.bind(this)},N.default.createElement("button",{className:"btn btn-success"},"Copy Link")),N.default.createElement("button",{className:"btn btn-link",onClick:this.hideShareObjectModal.bind(this)},"Cancel"))),H)))}}]),M}(N.default.Component);M.default=rA},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=t(173),n=I(E),N=function(A){var M=A.fullScreenFunc,t=A.aboutFunc,I=A.settingsFunc,g=A.logoutFunc;return e.default.createElement("li",null,e.default.createElement(n.default,{pullRight:!0,id:"top-right-menu"},e.default.createElement(n.default.Toggle,{noCaret:!0},e.default.createElement("i",{className:"fa fa-reorder"})),e.default.createElement(n.default.Menu,{className:"dropdown-menu-right"},e.default.createElement("li",null,e.default.createElement("a",{target:"_blank",href:"https://github.com/minio/minio"},"Github ",e.default.createElement("i",{className:"fa fa-github"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:M},"Fullscreen ",e.default.createElement("i",{className:"fa fa-expand"}))),e.default.createElement("li",null,e.default.createElement("a",{ -target:"_blank",href:"https://docs.minio.io/"},"Documentation ",e.default.createElement("i",{className:"fa fa-book"}))),e.default.createElement("li",null,e.default.createElement("a",{target:"_blank",href:"https://slack.minio.io"},"Ask for help ",e.default.createElement("i",{className:"fa fa-question-circle"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:t},"About ",e.default.createElement("i",{className:"fa fa-info-circle"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:I},"Settings ",e.default.createElement("i",{className:"fa fa-cog"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:g},"Sign Out ",e.default.createElement("i",{className:"fa fa-sign-out"}))))))};M.default=(0,T.default)(function(A){return A})(N)},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=t(177),n=I(E),N=t(176),o=I(N),c=function(A){var M=A.latestUiVersion;return M===currentUiVersion?e.default.createElement("noscript",null):e.default.createElement("li",{className:"hidden-xs hidden-sm"},e.default.createElement("a",{href:""},e.default.createElement(o.default,{placement:"left",overlay:e.default.createElement(n.default,{id:"tt-version-update"},"New update available. Click to refresh.")}," ",e.default.createElement("i",{className:"fa fa-refresh"})," ")))};M.default=(0,T.default)(function(A){return{latestUiVersion:A.latestUiVersion}})(c)},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function i(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}function T(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}Object.defineProperty(M,"__esModule",{value:!0});var E=function(){function A(A,M){for(var t=0;t0&&(A.name.endsWith("/")||(B=e.default.createElement(C.default,{id:"fia-dropdown-"+A.name.replace(".","-")},e.default.createElement(C.default.Toggle,{noCaret:!0,className:"fia-toggle"}),e.default.createElement(C.default.Menu,null,e.default.createElement("a",{href:"",className:"fiad-action",onClick:function(M){return E(M,""+t+A.name)}},e.default.createElement("i",{className:"fa fa-copy"})),Q))));var s="",u="";return c.indexOf(A.name)>-1&&(s=" fesl-row-selected",u=!0),e.default.createElement("div",{key:M,className:"fesl-row "+r+s,"data-type":g(A.name,A.contentType)},e.default.createElement("div",{className:"fesl-item fesl-item-icon"},e.default.createElement("div",{className:"fi-select"},e.default.createElement("input",{type:"checkbox",name:A.name,checked:u,onChange:function(M){return o(M,A.name)}}),e.default.createElement("i",{className:"fis-icon"}),e.default.createElement("i",{className:"fis-helper"}))),e.default.createElement("div",{className:"fesl-item fesl-item-name"},e.default.createElement("a",{href:"",onClick:function(M){return I(M,""+t+A.name)}},A.name)),e.default.createElement("div",{className:"fesl-item fesl-item-size"},a),e.default.createElement("div",{className:"fesl-item fesl-item-modified"},D),e.default.createElement("div",{className:"fesl-item fesl-item-actions"},B))});return e.default.createElement("div",null,a)};M.default=(0,o.default)(function(A){return{objects:A.objects,currentPath:A.currentPath,loadPath:A.loadPath}})(a)},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=function(A){var M=A.currentBucket,t=A.currentPath,I=A.selectPrefix,g=[],i="";return t&&(i=t.split("/").map(function(A,M){g.push(A);var t=g.join("/")+"/";return e.default.createElement("span",{key:M},e.default.createElement("a",{href:"",onClick:function(A){return I(A,t)}},A))})),e.default.createElement("h2",null,e.default.createElement("span",{className:"main"},e.default.createElement("a",{onClick:function(A){return I(A,"")},href:""},M)),i)};M.default=(0,T.default)(function(A){return{currentBucket:A.currentBucket,currentPath:A.currentPath}})(E)},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function i(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}function T(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}Object.defineProperty(M,"__esModule",{value:!0});var E=function(){function A(A,M){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{buckets:[],visibleBuckets:[],objects:[],istruncated:!0,storageInfo:{},serverInfo:{},currentBucket:"",currentPath:"",showMakeBucketModal:!1,uploads:{},alert:{show:!1,type:"danger",message:""},loginError:!1,sortNameOrder:!1,sortSizeOrder:!1,sortDateOrder:!1,latestUiVersion:currentUiVersion,sideBarActive:!1,loginRedirectPath:E.minioBrowserPrefix,settings:{accessKey:"",secretKey:"",secretKeyVisible:!1},showSettings:!1,policies:[],deleteConfirmation:{object:"",show:!1},shareObject:{show:!1,url:"",object:""},prefixWritable:!1,checkedObjects:[]},M=arguments[1],t=Object.assign({},A);switch(M.type){case T.SET_WEB:t.web=M.web;break;case T.SET_BUCKETS:t.buckets=M.buckets;break;case T.ADD_BUCKET:t.buckets=[M.bucket].concat(e(t.buckets)),t.visibleBuckets=[M.bucket].concat(e(t.visibleBuckets));break;case T.SET_VISIBLE_BUCKETS:t.visibleBuckets=M.visibleBuckets;break;case T.SET_CURRENT_BUCKET:t.currentBucket=M.currentBucket;break;case T.APPEND_OBJECTS:t.objects=[].concat(e(t.objects),e(M.objects)),t.marker=M.marker,t.istruncated=M.istruncated;break;case T.SET_OBJECTS:t.objects=[].concat(e(M.objects));break;case T.RESET_OBJECTS:t.objects=[],t.marker="",t.istruncated=!1;break;case T.SET_CURRENT_PATH:t.currentPath=M.currentPath;break;case T.SET_STORAGE_INFO:t.storageInfo=M.storageInfo;break;case T.SET_SERVER_INFO:t.serverInfo=M.serverInfo;break;case T.SHOW_MAKEBUCKET_MODAL:t.showMakeBucketModal=M.showMakeBucketModal;break;case T.UPLOAD_PROGRESS:t.uploads=Object.assign({},t.uploads),t.uploads[M.slug].loaded=M.loaded;break;case T.ADD_UPLOAD:t.uploads=Object.assign({},t.uploads,g({},M.slug,{loaded:0,size:M.size,xhr:M.xhr,name:M.name}));break;case T.STOP_UPLOAD:t.uploads=Object.assign({},t.uploads),delete t.uploads[M.slug];break;case T.SET_ALERT:t.alert.alertTimeout&&clearTimeout(t.alert.alertTimeout),M.alert.show?t.alert=M.alert:t.alert=Object.assign({},t.alert,{show:!1});break;case T.SET_LOGIN_ERROR:t.loginError=!0;break;case T.SET_SHOW_ABORT_MODAL:t.showAbortModal=M.showAbortModal;break;case T.SHOW_ABOUT:t.showAbout=M.showAbout;break;case T.SET_SORT_NAME_ORDER:t.sortNameOrder=M.sortNameOrder;break;case T.SET_SORT_SIZE_ORDER:t.sortSizeOrder=M.sortSizeOrder;break;case T.SET_SORT_DATE_ORDER:t.sortDateOrder=M.sortDateOrder;break;case T.SET_LATEST_UI_VERSION:t.latestUiVersion=M.latestUiVersion;break;case T.SET_SIDEBAR_STATUS:t.sidebarStatus=M.sidebarStatus;break;case T.SET_LOGIN_REDIRECT_PATH:t.loginRedirectPath=M.path;case T.SET_LOAD_BUCKET:t.loadBucket=M.loadBucket;break;case T.SET_LOAD_PATH:t.loadPath=M.loadPath;break;case T.SHOW_SETTINGS:t.showSettings=M.showSettings;break;case T.SET_SETTINGS:t.settings=Object.assign({},t.settings,M.settings);break;case T.SHOW_BUCKET_POLICY:t.showBucketPolicy=M.showBucketPolicy;break;case T.SET_POLICIES:t.policies=M.policies;break;case T.DELETE_CONFIRMATION:t.deleteConfirmation=Object.assign({},M.payload); -break;case T.SET_SHARE_OBJECT:t.shareObject=Object.assign({},M.shareObject);break;case T.SET_PREFIX_WRITABLE:t.prefixWritable=M.prefixWritable;break;case T.REMOVE_OBJECT:var I=t.objects.findIndex(function(A){return A.name===M.object});if(I==-1)break;t.objects=[].concat(e(t.objects.slice(0,I)),e(t.objects.slice(I+1)));break;case T.CHECKED_OBJECTS_ADD:t.checkedObjects=[].concat(e(t.checkedObjects),[M.objectName]);break;case T.CHECKED_OBJECTS_REMOVE:var i=t.checkedObjects.indexOf(M.objectName);if(i==-1)break;t.checkedObjects=[].concat(e(t.checkedObjects.slice(0,i)),e(t.checkedObjects.slice(i+1)));break;case T.CHECKED_OBJECTS_RESET:t.checkedObjects=[]}return t}},function(A,M,t){"use strict";function I(A){if(Array.isArray(A)){for(var M=0,t=Array(A.length);MM.name.toLowerCase()?1:0}),g=g.sort(function(A,M){return A.name.toLowerCase()M.name.toLowerCase()?1:0}),M&&(t=t.reverse(),g=g.reverse()),[].concat(I(t),I(g))},M.sortObjectsBySize=function(A,M){var t=A.filter(function(A){return A.name.endsWith("/")}),g=A.filter(function(A){return!A.name.endsWith("/")});return g=g.sort(function(A,M){return A.size-M.size}),M&&(g=g.reverse()),[].concat(I(t),I(g))},M.sortObjectsByDate=function(A,M){var t=A.filter(function(A){return A.name.endsWith("/")}),g=A.filter(function(A){return!A.name.endsWith("/")});return g=g.sort(function(A,M){return new Date(A.lastModified).getTime()-new Date(M.lastModified).getTime()}),M&&(g=g.reverse()),[].concat(I(t),I(g))},M.pathSlice=function(A){A=A.replace(g.minioBrowserPrefix,"");var M="",t="";if(!A)return{bucket:t,prefix:M};var I=A.indexOf("/",1);return I==-1?(t=A.slice(1),{bucket:t,prefix:M}):(t=A.slice(1,I),M=A.slice(I+1),{bucket:t,prefix:M})},M.pathJoin=function(A,M){return M||(M=""),g.minioBrowserPrefix+"/"+A+"/"+M}},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(M,"__esModule",{value:!0});var i=function(){function A(A,M){for(var t=0;t":i.innerHTML="<"+A+">",T[A]=!i.firstChild),T[A]?c[A]:null}var g=t(20),e=t(3),i=g.canUseDOM?document.createElement("div"):null,T={},E=[1,'"],n=[1,"","
"],N=[3,"","
"],o=[1,'',""],c={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:E,option:E,caption:n,colgroup:n,tbody:n,tfoot:n,thead:n,td:N,th:N},C=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];C.forEach(function(A){c[A]=o,T[A]=!0}),A.exports=I},function(A,M){"use strict";function t(A,M){if(A===M)return!0;if("object"!=typeof A||null===A||"object"!=typeof M||null===M)return!1;var t=Object.keys(A),g=Object.keys(M);if(t.length!==g.length)return!1;for(var e=I.bind(M),i=0;i=0&&s.splice(M,1)}function T(A){var M=document.createElement("style");return M.type="text/css",e(A,M),M}function E(A){var M=document.createElement("link");return M.rel="stylesheet",e(A,M),M}function n(A,M){var t,I,g;if(M.singleton){var e=Q++;t=B||(B=T(M)),I=N.bind(null,t,e,!1),g=N.bind(null,t,e,!0)}else A.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=E(M),I=c.bind(null,t),g=function(){i(t),t.href&&URL.revokeObjectURL(t.href)}):(t=T(M),I=o.bind(null,t),g=function(){i(t)});return I(A),function(M){if(M){if(M.css===A.css&&M.media===A.media&&M.sourceMap===A.sourceMap)return;I(A=M)}else g()}}function N(A,M,t,I){var g=t?"":I.css;if(A.styleSheet)A.styleSheet.cssText=u(M,g);else{var e=document.createTextNode(g),i=A.childNodes;i[M]&&A.removeChild(i[M]),i.length?A.insertBefore(e,i[M]):A.appendChild(e)}}function o(A,M){var t=M.css,I=M.media;if(I&&A.setAttribute("media",I),A.styleSheet)A.styleSheet.cssText=t;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(t))}}function c(A,M){var t=M.css,I=M.sourceMap;I&&(t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(I))))+" */");var g=new Blob([t],{type:"text/css"}),e=A.href;A.href=URL.createObjectURL(g),e&&URL.revokeObjectURL(e)}var C={},a=function(A){var M;return function(){return"undefined"==typeof M&&(M=A.apply(this,arguments)),M}},D=a(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),r=a(function(){return document.head||document.getElementsByTagName("head")[0]}),B=null,Q=0,s=[];A.exports=function(A,M){M=M||{},"undefined"==typeof M.singleton&&(M.singleton=D()),"undefined"==typeof M.insertAt&&(M.insertAt="bottom");var t=g(A);return I(t,M),function(A){for(var e=[],i=0;i-1})))}},{key:"listObjects",value:function(){var A=this.props.dispatch;A(eA.listObjects())}},{key:"selectPrefix",value:function(A,M){A.preventDefault();var t=this.props,I=t.dispatch,g=t.currentPath,e=t.web,i=t.currentBucket,T=encodeURI(M);if(M.endsWith("/")||""===M){if(M===g)return;a.default.push(TA.pathJoin(i,T))}else if(e.LoggedIn())e.CreateURLToken().then(function(A){var M=window.location.origin+"/minio/download/"+i+"/"+T+"?token="+A.token;window.location=M}).catch(function(A){return I(eA.showAlert({type:"danger",message:A.message}))});else{var E=window.location.origin+"/minio/download/"+i+"/"+T+"?token=''";window.location=E}}},{key:"makeBucket",value:function(A){A.preventDefault();var M=this.refs.makeBucketRef.value;this.refs.makeBucketRef.value="";var t=this.props,I=t.web,g=t.dispatch;this.hideMakeBucketModal(),I.MakeBucket({bucketName:M}).then(function(){g(eA.addBucket(M)),g(eA.selectBucket(M))}).catch(function(A){return g(eA.showAlert({type:"danger",message:A.message}))})}},{key:"hideMakeBucketModal",value:function(){var A=this.props.dispatch;A(eA.hideMakeBucketModal())}},{key:"showMakeBucketModal",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showMakeBucketModal())}},{key:"showAbout",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showAbout())}},{key:"hideAbout",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.hideAbout())}},{key:"showBucketPolicy",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.showBucketPolicy())}},{key:"hideBucketPolicy",value:function(A){A.preventDefault();var M=this.props.dispatch;M(eA.hideBucketPolicy())}},{key:"uploadFile",value:function(A){A.preventDefault();var M=this.props,t=M.dispatch,I=M.buckets;if(0===I.length)return void t(eA.showAlert({type:"danger",message:"Bucket needs to be created before trying to upload files."}));var g=A.target.files[0];A.target.value=null,this.xhr=new XMLHttpRequest,t(eA.uploadFile(g,this.xhr))}},{key:"removeObject",value:function(){var A=this,M=this.props,t=M.web,I=M.dispatch,g=M.currentPath,e=M.currentBucket,i=M.deleteConfirmation,T=M.checkedObjects,E=[];E=T.length>0?T.map(function(A){return""+g+A}):[i.object],t.RemoveObject({bucketname:e,objects:E}).then(function(){if(A.hideDeleteConfirmation(),T.length>0){for(var M=0;M0})},N.default.createElement("span",{className:"la-label"},N.default.createElement("i",{className:"fa fa-check-circle"})," ",C.length," Objects selected"),N.default.createElement("span",{className:"la-actions pull-right"},N.default.createElement("button",{onClick:this.downloadSelected.bind(this)}," Download all as zip ")),N.default.createElement("span",{className:"la-actions pull-right"},N.default.createElement("button",{onClick:this.showDeleteConfirmation.bind(this)}," Delete selected ")),N.default.createElement("i",{className:"la-close fa fa-times",onClick:this.clearSelected.bind(this)})),N.default.createElement(f.default,null,b,N.default.createElement("header",{className:"fe-header-mobile hidden-lg hidden-md"},N.default.createElement("div",{id:"feh-trigger",className:"feh-trigger "+(0,c.default)({"feht-toggled":y}),onClick:this.toggleSidebar.bind(this,!y)},N.default.createElement("div",{className:"feht-lines"},N.default.createElement("div",{className:"top"}),N.default.createElement("div",{className:"center"}),N.default.createElement("div",{className:"bottom"}))),N.default.createElement("img",{className:"mh-logo",src:IA.default,alt:""})),N.default.createElement("header",{className:"fe-header"},N.default.createElement(G.default,{selectPrefix:this.selectPrefix.bind(this)}),AA,N.default.createElement("ul",{className:"feh-actions"},N.default.createElement(v.default,null),K,_)),N.default.createElement("div",{className:"feb-container"},N.default.createElement("header",{className:"fesl-row","data-type":"folder"},N.default.createElement("div",{className:"fesl-item fesl-item-icon"}),N.default.createElement("div",{className:"fesl-item fesl-item-name",onClick:this.sortObjectsByName.bind(this),"data-sort":"name"},"Name",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-alpha-desc":i,"fa-sort-alpha-asc":!i})})),N.default.createElement("div",{className:"fesl-item fesl-item-size",onClick:this.sortObjectsBySize.bind(this),"data-sort":"size"},"Size",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-amount-desc":T,"fa-sort-amount-asc":!T})})),N.default.createElement("div",{className:"fesl-item fesl-item-modified",onClick:this.sortObjectsByDate.bind(this),"data-sort":"last-modified"},"Last Modified",N.default.createElement("i",{className:(0,c.default)({"fesli-sort":!0,fa:!0,"fa-sort-numeric-desc":E,"fa-sort-numeric-asc":!E})})),N.default.createElement("div",{className:"fesl-item fesl-item-actions"}))),N.default.createElement("div",{className:"feb-container"},N.default.createElement(DA.default,{loadMore:this.listObjects.bind(this),hasMore:J,useWindow:!0,initialLoad:!1},N.default.createElement(F.default,{dataType:this.dataType.bind(this),selectPrefix:this.selectPrefix.bind(this),showDeleteConfirmation:this.showDeleteConfirmation.bind(this),shareObject:this.shareObject.bind(this),checkObject:this.checkObject.bind(this),checkedObjectsArray:C})),N.default.createElement("div",{className:"text-center",style:{display:J&&S?"block":"none"}},N.default.createElement("span",null,"Loading..."))),N.default.createElement(X.default,null),eA,N.default.createElement(s.default,{className:"modal-create-bucket",bsSize:"small",animation:!1,show:g,onHide:this.hideMakeBucketModal.bind(this)},N.default.createElement("button",{className:"close close-alt",onClick:this.hideMakeBucketModal.bind(this)},N.default.createElement("span",null,"×")),N.default.createElement(x.default,null,N.default.createElement("form",{onSubmit:this.makeBucket.bind(this)},N.default.createElement("div",{className:"input-group"},N.default.createElement("input",{className:"ig-text",type:"text",ref:"makeBucketRef",placeholder:"Bucket Name",autoFocus:!0}),N.default.createElement("i",{className:"ig-helpers"}))))),N.default.createElement(s.default,{className:"modal-about modal-dark",animation:!1,show:n,onHide:this.hideAbout.bind(this)},N.default.createElement("button",{className:"close",onClick:this.hideAbout.bind(this)},N.default.createElement("span",null,"×")),N.default.createElement("div",{className:"ma-inner"},N.default.createElement("div",{className:"mai-item hidden-xs"},N.default.createElement("a",{href:"https://minio.io",target:"_blank"},N.default.createElement("img",{className:"maii-logo",src:IA.default,alt:""}))),N.default.createElement("div",{className:"mai-item"},N.default.createElement("ul",{className:"maii-list"},N.default.createElement("li",null,N.default.createElement("div",null,"Version"),N.default.createElement("small",null,D)),N.default.createElement("li",null,N.default.createElement("div",null,"Memory"),N.default.createElement("small",null,B)),N.default.createElement("li",null,N.default.createElement("div",null,"Platform"),N.default.createElement("small",null,Q)),N.default.createElement("li",null,N.default.createElement("div",null,"Runtime"),N.default.createElement("small",null,u)))))),N.default.createElement(s.default,{className:"modal-policy",animation:!1,show:o,onHide:this.hideBucketPolicy.bind(this)},N.default.createElement(j.default,null,"Bucket Policy (",S,")",N.default.createElement("button",{className:"close close-alt",onClick:this.hideBucketPolicy.bind(this)},N.default.createElement("span",null,"×"))),N.default.createElement("div",{className:"pm-body"},N.default.createElement(Z.default,{bucket:S}),d.map(function(A,M){return N.default.createElement(q.default,{key:M,prefix:A.prefix,policy:A.policy})}))),N.default.createElement(MA.default,{show:p.show,icon:"fa fa-exclamation-triangle mci-red",text:"Are you sure you want to delete?",sub:"This cannot be undone!",okText:"Delete",cancelText:"Cancel",okHandler:this.removeObject.bind(this),cancelHandler:this.hideDeleteConfirmation.bind(this)}),N.default.createElement(s.default,{show:U.show,animation:!1,onHide:this.hideShareObjectModal.bind(this),bsSize:"small"},N.default.createElement(j.default,null,"Share Object"),N.default.createElement(x.default,null,N.default.createElement("div",{className:"input-group copy-text"},N.default.createElement("label",null,"Shareable Link"),N.default.createElement("input",{type:"text",ref:"copyTextInput",readOnly:"readOnly",value:window.location.protocol+"//"+U.url,onClick:this.selectTexts.bind(this)})),N.default.createElement("div",{className:"input-group",style:{display:m.LoggedIn()?"block":"none"}},N.default.createElement("label",null,"Expires in (Max 7 days)"),N.default.createElement("div",{className:"set-expire"},N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireDays",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Days"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireDays",type:"number",min:0,max:7,defaultValue:5,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireDays",-1,U.object)})),N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireHours",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Hours"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireHours",type:"number",min:0,max:23,defaultValue:0,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireHours",-1,U.object)})),N.default.createElement("div",{className:"set-expire-item"},N.default.createElement("i",{className:"set-expire-increase",onClick:this.handleExpireValue.bind(this,"expireMins",1,U.object)}),N.default.createElement("div",{className:"set-expire-title"},"Minutes"),N.default.createElement("div",{className:"set-expire-value"},N.default.createElement("input",{ref:"expireMins",type:"number",min:0,max:59,defaultValue:0,readOnly:"readOnly"})),N.default.createElement("i",{className:"set-expire-decrease",onClick:this.handleExpireValue.bind(this,"expireMins",-1,U.object)}))))),N.default.createElement("div",{className:"modal-footer"},N.default.createElement(cA.default,{text:window.location.protocol+"//"+U.url,onCopy:this.showMessage.bind(this)},N.default.createElement("button",{className:"btn btn-success"},"Copy Link")),N.default.createElement("button",{className:"btn btn-link",onClick:this.hideShareObjectModal.bind(this)},"Cancel"))),H)))}}]),M}(N.default.Component);M.default=rA},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=t(173),n=I(E),N=function(A){var M=A.fullScreenFunc,t=A.aboutFunc,I=A.settingsFunc,g=A.logoutFunc;return e.default.createElement("li",null,e.default.createElement(n.default,{pullRight:!0,id:"top-right-menu"},e.default.createElement(n.default.Toggle,{noCaret:!0},e.default.createElement("i",{className:"fa fa-reorder"})),e.default.createElement(n.default.Menu,{className:"dropdown-menu-right"},e.default.createElement("li",null,e.default.createElement("a",{target:"_blank",href:"https://github.com/minio/minio"},"Github ",e.default.createElement("i",{className:"fa fa-github" +}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:M},"Fullscreen ",e.default.createElement("i",{className:"fa fa-expand"}))),e.default.createElement("li",null,e.default.createElement("a",{target:"_blank",href:"https://docs.minio.io/"},"Documentation ",e.default.createElement("i",{className:"fa fa-book"}))),e.default.createElement("li",null,e.default.createElement("a",{target:"_blank",href:"https://slack.minio.io"},"Ask for help ",e.default.createElement("i",{className:"fa fa-question-circle"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:t},"About ",e.default.createElement("i",{className:"fa fa-info-circle"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:I},"Settings ",e.default.createElement("i",{className:"fa fa-cog"}))),e.default.createElement("li",null,e.default.createElement("a",{href:"",onClick:g},"Sign Out ",e.default.createElement("i",{className:"fa fa-sign-out"}))))))};M.default=(0,T.default)(function(A){return A})(N)},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=t(177),n=I(E),N=t(176),o=I(N),c=function(A){var M=A.latestUiVersion;return M===currentUiVersion?e.default.createElement("noscript",null):e.default.createElement("li",{className:"hidden-xs hidden-sm"},e.default.createElement("a",{href:""},e.default.createElement(o.default,{placement:"left",overlay:e.default.createElement(n.default,{id:"tt-version-update"},"New update available. Click to refresh.")}," ",e.default.createElement("i",{className:"fa fa-refresh"})," ")))};M.default=(0,T.default)(function(A){return{latestUiVersion:A.latestUiVersion}})(c)},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function i(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}function T(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}Object.defineProperty(M,"__esModule",{value:!0});var E=function(){function A(A,M){for(var t=0;t0&&(A.name.endsWith("/")||(B=e.default.createElement(C.default,{id:"fia-dropdown-"+A.name.replace(".","-")},e.default.createElement(C.default.Toggle,{noCaret:!0,className:"fia-toggle"}),e.default.createElement(C.default.Menu,null,e.default.createElement("a",{href:"",className:"fiad-action",onClick:function(M){return E(M,""+t+A.name)}},e.default.createElement("i",{className:"fa fa-copy"})),Q))));var s="",u="";return c.indexOf(A.name)>-1&&(s=" fesl-row-selected",u=!0),e.default.createElement("div",{key:M,className:"fesl-row "+r+s,"data-type":g(A.name,A.contentType)},e.default.createElement("div",{className:"fesl-item fesl-item-icon"},e.default.createElement("div",{className:"fi-select"},e.default.createElement("input",{type:"checkbox",name:A.name,checked:u,onChange:function(M){return o(M,A.name)}}),e.default.createElement("i",{className:"fis-icon"}),e.default.createElement("i",{className:"fis-helper"}))),e.default.createElement("div",{className:"fesl-item fesl-item-name"},e.default.createElement("a",{href:"",onClick:function(M){return I(M,""+t+A.name)}},A.name)),e.default.createElement("div",{className:"fesl-item fesl-item-size"},a),e.default.createElement("div",{className:"fesl-item fesl-item-modified"},D),e.default.createElement("div",{className:"fesl-item fesl-item-actions"},B))});return e.default.createElement("div",null,a)};M.default=(0,o.default)(function(A){return{objects:A.objects,currentPath:A.currentPath,loadPath:A.loadPath}})(a)},function(A,M,t){"use strict";function I(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(M,"__esModule",{value:!0});var g=t(2),e=I(g),i=t(45),T=I(i),E=function(A){var M=A.currentBucket,t=A.currentPath,I=A.selectPrefix,g=[],i="";return t&&(i=t.split("/").map(function(A,M){g.push(A);var t=g.join("/")+"/";return e.default.createElement("span",{key:M},e.default.createElement("a",{href:"",onClick:function(A){return I(A,t)}},A))})),e.default.createElement("h2",null,e.default.createElement("span",{className:"main"},e.default.createElement("a",{onClick:function(A){return I(A,"")},href:""},M)),i)};M.default=(0,T.default)(function(A){return{currentBucket:A.currentBucket,currentPath:A.currentPath}})(E)},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function i(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}function T(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}Object.defineProperty(M,"__esModule",{value:!0});var E=function(){function A(A,M){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{buckets:[],visibleBuckets:[],objects:[],istruncated:!0,storageInfo:{},serverInfo:{},currentBucket:"",currentPath:"",showMakeBucketModal:!1,uploads:{},alert:{show:!1,type:"danger",message:""},loginError:!1,sortNameOrder:!1,sortSizeOrder:!1,sortDateOrder:!1,latestUiVersion:currentUiVersion,sideBarActive:!1,loginRedirectPath:E.minioBrowserPrefix,settings:{accessKey:"",secretKey:"",secretKeyVisible:!1},showSettings:!1,policies:[],deleteConfirmation:{object:"",show:!1},shareObject:{show:!1,url:"",object:""},prefixWritable:!1,checkedObjects:[]},M=arguments[1],t=Object.assign({},A);switch(M.type){case T.SET_WEB:t.web=M.web;break;case T.SET_BUCKETS:t.buckets=M.buckets;break;case T.ADD_BUCKET:t.buckets=[M.bucket].concat(e(t.buckets)),t.visibleBuckets=[M.bucket].concat(e(t.visibleBuckets));break;case T.SET_VISIBLE_BUCKETS:t.visibleBuckets=M.visibleBuckets;break;case T.SET_CURRENT_BUCKET:t.currentBucket=M.currentBucket;break;case T.APPEND_OBJECTS:t.objects=[].concat(e(t.objects),e(M.objects)),t.marker=M.marker,t.istruncated=M.istruncated;break;case T.SET_OBJECTS:t.objects=[].concat(e(M.objects));break;case T.RESET_OBJECTS:t.objects=[],t.marker="",t.istruncated=!1;break;case T.SET_CURRENT_PATH:t.currentPath=M.currentPath;break;case T.SET_STORAGE_INFO:t.storageInfo=M.storageInfo;break;case T.SET_SERVER_INFO:t.serverInfo=M.serverInfo;break;case T.SHOW_MAKEBUCKET_MODAL:t.showMakeBucketModal=M.showMakeBucketModal;break;case T.UPLOAD_PROGRESS:t.uploads=Object.assign({},t.uploads),t.uploads[M.slug].loaded=M.loaded;break;case T.ADD_UPLOAD:t.uploads=Object.assign({},t.uploads,g({},M.slug,{loaded:0,size:M.size,xhr:M.xhr,name:M.name}));break;case T.STOP_UPLOAD:t.uploads=Object.assign({},t.uploads),delete t.uploads[M.slug];break;case T.SET_ALERT:t.alert.alertTimeout&&clearTimeout(t.alert.alertTimeout),M.alert.show?t.alert=M.alert:t.alert=Object.assign({},t.alert,{show:!1});break;case T.SET_LOGIN_ERROR:t.loginError=!0;break;case T.SET_SHOW_ABORT_MODAL:t.showAbortModal=M.showAbortModal;break;case T.SHOW_ABOUT:t.showAbout=M.showAbout;break;case T.SET_SORT_NAME_ORDER:t.sortNameOrder=M.sortNameOrder;break;case T.SET_SORT_SIZE_ORDER:t.sortSizeOrder=M.sortSizeOrder;break;case T.SET_SORT_DATE_ORDER:t.sortDateOrder=M.sortDateOrder;break;case T.SET_LATEST_UI_VERSION:t.latestUiVersion=M.latestUiVersion;break;case T.SET_SIDEBAR_STATUS:t.sidebarStatus=M.sidebarStatus;break;case T.SET_LOGIN_REDIRECT_PATH:t.loginRedirectPath=M.path;case T.SET_LOAD_BUCKET:t.loadBucket=M.loadBucket;break;case T.SET_LOAD_PATH:t.loadPath=M.loadPath;break;case T.SHOW_SETTINGS:t.showSettings=M.showSettings;break;case T.SET_SETTINGS:t.settings=Object.assign({},t.settings,M.settings); +break;case T.SHOW_BUCKET_POLICY:t.showBucketPolicy=M.showBucketPolicy;break;case T.SET_POLICIES:t.policies=M.policies;break;case T.DELETE_CONFIRMATION:t.deleteConfirmation=Object.assign({},M.payload);break;case T.SET_SHARE_OBJECT:t.shareObject=Object.assign({},M.shareObject);break;case T.SET_PREFIX_WRITABLE:t.prefixWritable=M.prefixWritable;break;case T.REMOVE_OBJECT:var I=t.objects.findIndex(function(A){return A.name===M.object});if(I==-1)break;t.objects=[].concat(e(t.objects.slice(0,I)),e(t.objects.slice(I+1)));break;case T.CHECKED_OBJECTS_ADD:t.checkedObjects=[].concat(e(t.checkedObjects),[M.objectName]);break;case T.CHECKED_OBJECTS_REMOVE:var i=t.checkedObjects.indexOf(M.objectName);if(i==-1)break;t.checkedObjects=[].concat(e(t.checkedObjects.slice(0,i)),e(t.checkedObjects.slice(i+1)));break;case T.CHECKED_OBJECTS_RESET:t.checkedObjects=[]}return t}},function(A,M,t){"use strict";function I(A){if(Array.isArray(A)){for(var M=0,t=Array(A.length);MM.name.toLowerCase()?1:0}),g=g.sort(function(A,M){return A.name.toLowerCase()M.name.toLowerCase()?1:0}),M&&(t=t.reverse(),g=g.reverse()),[].concat(I(t),I(g))},M.sortObjectsBySize=function(A,M){var t=A.filter(function(A){return A.name.endsWith("/")}),g=A.filter(function(A){return!A.name.endsWith("/")});return g=g.sort(function(A,M){return A.size-M.size}),M&&(g=g.reverse()),[].concat(I(t),I(g))},M.sortObjectsByDate=function(A,M){var t=A.filter(function(A){return A.name.endsWith("/")}),g=A.filter(function(A){return!A.name.endsWith("/")});return g=g.sort(function(A,M){return new Date(A.lastModified).getTime()-new Date(M.lastModified).getTime()}),M&&(g=g.reverse()),[].concat(I(t),I(g))},M.pathSlice=function(A){A=A.replace(g.minioBrowserPrefix,"");var M="",t="";if(!A)return{bucket:t,prefix:M};var I=A.indexOf("/",1);return I==-1?(t=A.slice(1),{bucket:t,prefix:M}):(t=A.slice(1,I),M=A.slice(I+1),{bucket:t,prefix:M})},M.pathJoin=function(A,M){return M||(M=""),g.minioBrowserPrefix+"/"+A+"/"+M}},function(A,M,t){"use strict";function I(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(M[t]=A[t]);return M.default=A,M}function g(A){return A&&A.__esModule?A:{default:A}}function e(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(M,"__esModule",{value:!0});var i=function(){function A(A,M){for(var t=0;t1&&(I=t[0]+"@",A=t[1]),A=A.replace(z,".");var g=A.split("."),e=T(g,M).join(".");return I+e}function n(A){for(var M,t,I=[],g=0,e=A.length;g=55296&&M<=56319&&g65535&&(A-=65536,M+=f(A>>>10&1023|55296),A=56320|1023&A),M+=f(A)}).join("")}function o(A){return A-48<10?A-22:A-65<26?A-65:A-97<26?A-97:x}function c(A,M){return A+22+75*(A<26)-((0!=M)<<5)}function C(A,M,t){var I=0;for(A=t?O(A/w):A>>1,A+=O(A/M);A>U*j>>1;I+=x)A=O(A/U);return O(I+(U+1)*A/(A+l))}function a(A){var M,t,I,g,e,T,E,n,c,a,D=[],r=A.length,B=0,Q=Y,s=L;for(t=A.lastIndexOf(d),t<0&&(t=0),I=0;I=128&&i("not-basic"),D.push(A.charCodeAt(I));for(g=t>0?t+1:0;g=r&&i("invalid-input"),n=o(A.charCodeAt(g++)),(n>=x||n>O((u-B)/T))&&i("overflow"),B+=n*T,c=E<=s?y:E>=s+j?j:E-s,!(nO(u/a)&&i("overflow"),T*=a;M=D.length+1,s=C(B-e,M,0==e),O(B/M)>u-Q&&i("overflow"),Q+=O(B/M),B%=M,D.splice(B++,0,Q)}return N(D)}function D(A){var M,t,I,g,e,T,E,N,o,a,D,r,B,Q,s,l=[];for(A=n(A),r=A.length,M=Y,t=0,e=L,T=0;T=M&&DO((u-t)/B)&&i("overflow"),t+=(E-M)*B,M=E,T=0;Tu&&i("overflow"),D==M){for(N=t,o=x;a=o<=e?y:o>=e+j?j:o-e,!(N= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=x-y,O=Math.floor,f=String.fromCharCode;s={version:"1.3.2",ucs2:{decode:n,encode:N},decode:a,encode:D,toASCII:B,toUnicode:r},I=function(){return s}.call(M,t,M,A),!(void 0!==I&&(A.exports=I))}(this)}).call(M,t(216)(A),function(){return this}())},function(A,M,t){"use strict";function I(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function g(A,M,t){if(A&&n.isObject(A)&&A instanceof I)return A;var g=new I;return g.parse(A,M,t),g}function e(A){return n.isString(A)&&(A=g(A)),A instanceof I?A.format():I.prototype.format.call(A)}function i(A,M){return g(A,!1,!0).resolve(M)}function T(A,M){return A?g(A,!1,!0).resolveObject(M):M}var E=t(828),n=t(830);M.parse=g,M.resolve=i,M.resolveObject=T,M.format=e,M.Url=I;var N=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,C=["<",">",'"',"` + "`" + `"," ","\r","\n","\t"],a=["{","}","|","\\","^","` + "`" + `"].concat(C),D=["'"].concat(a),r=["%","/","?",";","#"].concat(D),B=["/","?","#"],Q=255,s=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=t(633);I.prototype.parse=function(A,M,t){if(!n.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var I=A.indexOf("?"),g=I!==-1&&I127?"x":O[m];if(!f.match(s)){var k=p.slice(0,Y),R=p.slice(Y+1),J=O.match(u);J&&(k.push(J[1]),R.unshift(J[2])),R.length&&(T="/"+R.join(".")+T),this.hostname=k.join(".");break}}}this.hostname.length>Q?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=E.toASCII(this.hostname));var G=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+G,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!x[a])for(var Y=0,U=D.length;Y0)&&t.host.split("@");w&&(t.auth=w.shift(),t.host=t.hostname=w.shift())}return t.search=A.search,t.query=A.query,n.isNull(t.pathname)&&n.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!x.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var L=x.slice(-1)[0],Y=(t.host||A.host||x.length>1)&&("."===L||".."===L)||""===L,d=0,h=x.length;h>=0;h--)L=x[h],"."===L?x.splice(h,1):".."===L?(x.splice(h,1),d++):d&&(x.splice(h,1),d--);if(!s&&!u)for(;d--;d)x.unshift("..");!s||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),Y&&"/"!==x.join("/").substr(-1)&&x.push("");var S=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(l){t.hostname=t.host=S?"":x.length?x.shift():"";var w=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@");w&&(t.auth=w.shift(),t.host=t.hostname=w.shift())}return s=s||t.host&&x.length,s&&!S&&x.unshift(""),x.length?t.pathname=x.join("/"):(t.pathname=null,t.path=null),n.isNull(t.pathname)&&n.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=A.auth||t.auth,t.slashes=t.slashes||A.slashes,t.href=t.format(),t},I.prototype.parseHost=function(){var A=this.host,M=o.exec(A);M&&(M=M[0],":"!==M&&(this.port=M.substr(1)),A=A.substr(0,A.length-M.length)),A&&(this.hostname=A)}},function(A,M){"use strict";A.exports={isString:function(A){return"string"==typeof A},isObject:function(A){return"object"==typeof A&&null!==A},isNull:function(A){return null===A},isNullOrUndefined:function(A){return null==A}}}]);`) -func productionIndex_bundle20170806t212415zJsBytes() ([]byte, error) { - return _productionIndex_bundle20170806t212415zJs, nil +func productionIndex_bundle20171017t174722zJsBytes() ([]byte, error) { + return _productionIndex_bundle20171017t174722zJs, nil } -func productionIndex_bundle20170806t212415zJs() (*asset, error) { - bytes, err := productionIndex_bundle20170806t212415zJsBytes() +func productionIndex_bundle20171017t174722zJs() (*asset, error) { + bytes, err := productionIndex_bundle20171017t174722zJsBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "production/index_bundle-2017-08-06T21-24-15Z.js", size: 2388689, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/index_bundle-2017-10-17T17-47-22Z.js", size: 2388928, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -377,7 +377,7 @@ func productionLoaderCss() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/loader.css", size: 1738, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/loader.css", size: 1738, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -451,7 +451,7 @@ func productionLogoSvg() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/logo.svg", size: 3079, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/logo.svg", size: 3079, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -468,7 +468,7 @@ func productionSafariPng() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/safari.png", size: 4971, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)} + info := bindataFileInfo{name: "production/safari.png", size: 4971, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -529,7 +529,7 @@ var _bindata = map[string]func() (*asset, error){ "production/favicon.ico": productionFaviconIco, "production/firefox.png": productionFirefoxPng, "production/index.html": productionIndexHTML, - "production/index_bundle-2017-08-06T21-24-15Z.js": productionIndex_bundle20170806t212415zJs, + "production/index_bundle-2017-10-17T17-47-22Z.js": productionIndex_bundle20171017t174722zJs, "production/loader.css": productionLoaderCss, "production/logo.svg": productionLogoSvg, "production/safari.png": productionSafariPng, @@ -581,7 +581,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "favicon.ico": {productionFaviconIco, map[string]*bintree{}}, "firefox.png": {productionFirefoxPng, map[string]*bintree{}}, "index.html": {productionIndexHTML, map[string]*bintree{}}, - "index_bundle-2017-08-06T21-24-15Z.js": {productionIndex_bundle20170806t212415zJs, map[string]*bintree{}}, + "index_bundle-2017-10-17T17-47-22Z.js": {productionIndex_bundle20171017t174722zJs, map[string]*bintree{}}, "loader.css": {productionLoaderCss, map[string]*bintree{}}, "logo.svg": {productionLogoSvg, map[string]*bintree{}}, "safari.png": {productionSafariPng, map[string]*bintree{}}, @@ -645,6 +645,6 @@ func assetFS() *assetfs.AssetFS { panic("unreachable") } -var UIReleaseTag = "RELEASE.2017-08-06T21-24-15Z" -var UICommitID = "b4dc6df35c69210dde2c8355fcd137b240985a5b" -var UIVersion = "2017-08-06T21:24:15Z" +var UIReleaseTag = "RELEASE.2017-10-17T17-47-22Z" +var UICommitID = "4e3ccb19ceb6f5d0264f9b7bfb1a3801eed7497c" +var UIVersion = "2017-10-17T17:47:22Z" diff --git a/cmd/jwt.go b/cmd/jwt.go index 980c62551..de1dc491a 100644 --- a/cmd/jwt.go +++ b/cmd/jwt.go @@ -93,6 +93,9 @@ func keyFuncCallback(jwtToken *jwtgo.Token) (interface{}, error) { } func isAuthTokenValid(tokenString string) bool { + if tokenString == "" { + return false + } var claims jwtgo.StandardClaims jwtToken, err := jwtgo.ParseWithClaims(tokenString, &claims, keyFuncCallback) if err != nil {