diff --git a/public/js/bucket-single.js b/public/js/bucket-single.js index 248321f..e78f7ca 100644 --- a/public/js/bucket-single.js +++ b/public/js/bucket-single.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=37)}([function(e,t,r){"use strict";var n=r(1),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u}).call(this,r(15))},function(e,t,r){"use strict";var n=r(0),o=r(17),i=r(19),a=r(2),s=r(20),u=r(23),c=r(24),l=r(6);e.exports=function(e){return new Promise((function(t,r){var f=e.data,p=e.headers;n.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var v=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,r,i),d=null}},d.onabort=function(){d&&(r(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var x=(e.withCredentials||c(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in d&&n.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),r(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=u(void 0,t[e]))})),n.forEach(i,c),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=u(void 0,e[o])):r[o]=u(void 0,t[o])})),n.forEach(s,(function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,c),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){e.exports=r(10)},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(11),a=r(7);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var u=s(r(4));u.Axios=i,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(8),u.CancelToken=r(25),u.isCancel=r(3),u.all=function(e){return Promise.all(e)},u.spread=r(26),u.isAxiosError=r(27),e.exports=u,e.exports.default=u},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(12),a=r(13),s=r(7);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},function(e,t,r){"use strict";var n=r(0);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,r){"use strict";var n=r(0),o=r(14),i=r(3),a=r(4);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var r=1;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},function(e,t,r){"use strict";var n=r(0);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(8);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},,,,,,,,,,function(e,t,r){e.exports=r(39)},,function(e,t,r){"use strict";r.r(t);var n=r(9),o=r.n(n);riot.register("urban-filemanager-file",{css:null,exports:{},template:function(e,t,r,n){return e('
',[{redundantAttribute:"expr26",selector:"[expr26]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr27",selector:"[expr27]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.props.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]},{redundantAttribute:"expr28",selector:"[expr28]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.size}}]},{redundantAttribute:"expr29",selector:"[expr29]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]}])},name:"urban-filemanager-file"}),riot.register("urban-filemanager-directory",{css:null,exports:{},template:function(e,t,r,n){return e('
',[{redundantAttribute:"expr23",selector:"[expr23]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr24",selector:"[expr24]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.props.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e.props.file.filename)}}}]},{redundantAttribute:"expr25",selector:"[expr25]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]}])},name:"urban-filemanager-directory"}),riot.register("urban-filemanager-parent",{css:null,exports:{},template:function(e,t,r,n){return e('
\n ..\n
',[{redundantAttribute:"expr30",selector:"[expr30]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]}])},name:"urban-filemanager-parent"});var i={css:null,exports:{state:{files:[],path:[]},onBeforeMount(e,t){t.files=e.files},handleFileClick(){},handleDirectoryClick(e,t){this.state.path.push(t),o.a.get("/api/file/"+this.props.id,{params:{path:this.state.path.join("/")}}).then(e=>{this.state.files=e.data.files,this.update()})},handleMarked(){console.log("ddd")}},template:function(e,t,r,n){return e('
',[{type:r.TAG,getComponent:n,evaluate:function(e){return"urban-filemanager-parent"},slots:[],attributes:[],redundantAttribute:"expr15",selector:"[expr15]"},{type:r.EACH,getKey:null,condition:null,template:e('',[{type:r.IF,evaluate:function(e){return e.file.is_file},redundantAttribute:"expr17",selector:"[expr17]",template:e(null,[{type:r.TAG,getComponent:n,evaluate:function(e){return"urban-filemanager-file"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"file",evaluate:function(e){return e.file}},{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleFileClick}},{type:t.ATTRIBUTE,name:"handleMarked",evaluate:function(e){return e.handleMarked}}]}])},{type:r.IF,evaluate:function(e){return!e.file.is_file},redundantAttribute:"expr18",selector:"[expr18]",template:e(null,[{type:r.TAG,getComponent:n,evaluate:function(e){return"urban-filemanager-directory"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"file",evaluate:function(e){return e.file}},{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleDirectoryClick}},{type:t.ATTRIBUTE,name:"handleMarked",evaluate:function(e){return e.handleMarked}}]}])}]),redundantAttribute:"expr16",selector:"[expr16]",itemName:"file",indexName:null,evaluate:function(e){return e.state.files}}])},name:"urban-filemanager"};riot.register("urban-filemanager",i)}]); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){"use strict";var r=n(1),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u}).call(this,n(15))},function(e,t,n){"use strict";var r=n(0),o=n(17),i=n(19),a=n(2),s=n(20),u=n(23),c=n(24),l=n(6);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var v=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,i),d=null}},d.onabort=function(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,c),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(11),a=n(7);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=s(n(4));u.Axios=i,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(8),u.CancelToken=n(25),u.isCancel=n(3),u.all=function(e){return Promise.all(e)},u.spread=n(26),u.isAxiosError=n(27),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(12),a=n(13),s=n(7);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(3),a=n(4);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(8);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},,,,,,,,,,function(e,t,n){e.exports=n(39)},,function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r);riot.register("urban-filemanager-file",{css:null,exports:{},template:function(e,t,n,r){return e('
',[{redundantAttribute:"expr25",selector:"[expr25]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr26",selector:"[expr26]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.props.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]},{redundantAttribute:"expr27",selector:"[expr27]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.size}}]},{redundantAttribute:"expr28",selector:"[expr28]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]}])},name:"urban-filemanager-file"}),riot.register("urban-filemanager-directory",{css:null,exports:{},template:function(e,t,n,r){return e('
',[{redundantAttribute:"expr21",selector:"[expr21]",expressions:[{type:t.EVENT,name:"onchange",evaluate:function(e){return t=>{e.props.handleMarked(t,e)}}}]},{redundantAttribute:"expr22",selector:"[expr22]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.props.file.filename].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e.props.file.filename)}}}]},{redundantAttribute:"expr23",selector:"[expr23]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.file.meta.updated_at}}]}])},name:"urban-filemanager-directory"}),riot.register("urban-filemanager-parent",{css:null,exports:{},template:function(e,t,n,r){return e('
\n ..\n
',[{redundantAttribute:"expr24",selector:"[expr24]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return t=>{e.props.handleClick(t,e)}}}]}])},name:"urban-filemanager-parent"});var i={css:null,exports:{state:{files:[],path:[]},onBeforeMount(e,t){t.files=e.files},handleFileClick(){},handleParentClick(e){this.state.path.pop(),this.files()},handleDirectoryClick(e,t){this.state.path.push(t),this.files()},files(){o.a.get("/api/file/"+this.props.id,{params:{path:this.state.path.join("/")}}).then(e=>{this.state.files=e.data.files,this.update()})},handleMarked(){console.log("marked")}},template:function(e,t,n,r){return e('
',[{type:n.IF,evaluate:function(e){return e.state.path.length>0},redundantAttribute:"expr8",selector:"[expr8]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"urban-filemanager-parent"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleParentClick}}]}])},{type:n.EACH,getKey:null,condition:null,template:e('',[{type:n.IF,evaluate:function(e){return e.file.is_file},redundantAttribute:"expr10",selector:"[expr10]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"urban-filemanager-file"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"file",evaluate:function(e){return e.file}},{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleFileClick}},{type:t.ATTRIBUTE,name:"handleMarked",evaluate:function(e){return e.handleMarked}}]}])},{type:n.IF,evaluate:function(e){return!e.file.is_file},redundantAttribute:"expr11",selector:"[expr11]",template:e(null,[{type:n.TAG,getComponent:r,evaluate:function(e){return"urban-filemanager-directory"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"file",evaluate:function(e){return e.file}},{type:t.ATTRIBUTE,name:"handleClick",evaluate:function(e){return e.handleDirectoryClick}},{type:t.ATTRIBUTE,name:"handleMarked",evaluate:function(e){return e.handleMarked}}]}])}]),redundantAttribute:"expr9",selector:"[expr9]",itemName:"file",indexName:null,evaluate:function(e){return e.state.files}}])},name:"urban-filemanager"};riot.register("urban-filemanager",i)}]); \ No newline at end of file diff --git a/public/js/bucket.js b/public/js/bucket.js index 1dadd88..90ecc2b 100644 --- a/public/js/bucket.js +++ b/public/js/bucket.js @@ -7,4 +7,4 @@ * For all details and documentation: * http://validatejs.org/ */ -(function(e,t,n){"use strict";var i=function(e,t,r){r=a.extend({},a.options,r);var n=a.runValidations(e,t,r);if(n.some((function(e){return a.isPromise(e.error)})))throw new Error("Use validate.async if you want support for promises");return i.processValidationResults(n,r)},a=i;a.extend=function(e){return[].slice.call(arguments,1).forEach((function(t){for(var r in t)e[r]=t[r]})),e},a.extend(i,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var e=a.format("%{major}.%{minor}.%{patch}",a.version);return a.isEmpty(a.version.metadata)||(e+="+"+a.version.metadata),e}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,r){var n,i,s,o,u,l,c,f=[];for(n in(a.isDomElement(e)||a.isJqueryElement(e))&&(e=a.collectFormValues(e)),t)for(i in s=a.getDeepObjectValue(e,n),o=a.result(t[n],s,e,n,r,t)){if(!(u=a.validators[i]))throw c=a.format("Unknown validator %{name}",{name:i}),new Error(c);l=o[i],(l=a.result(l,s,e,n,r,t))&&f.push({attribute:n,value:s,validator:i,globalOptions:r,attributes:e,options:l,error:u.call(u,s,l,n,e,r)})}return f},processValidationResults:function(e,t){e=a.pruneEmptyErrors(e,t),e=a.expandMultipleErrors(e,t),e=a.convertErrorMessages(e,t);var r=t.format||"grouped";if("function"!=typeof a.formatters[r])throw new Error(a.format("Unknown format %{format}",t));return e=a.formatters[r](e),a.isEmpty(e)?void 0:e},async:function(e,t,r){var n=(r=a.extend({},a.async.options,r)).wrapErrors||function(e){return e};!1!==r.cleanAttributes&&(e=a.cleanAttributes(e,t));var i=a.runValidations(e,t,r);return new a.Promise((function(s,o){a.waitForResults(i).then((function(){var u=a.processValidationResults(i,r);u?o(new n(u,r,e,t)):s(e)}),(function(e){o(e)}))}))},single:function(e,t,r){return r=a.extend({},a.single.options,r,{format:"flat",fullMessages:!1}),a({single:e},{single:t},r)},waitForResults:function(e){return e.reduce((function(e,t){return a.isPromise(t.error)?e.then((function(){return t.error.then((function(e){t.error=e||null}))})):e}),new a.Promise((function(e){e()})))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return a.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&a.isFunction(e.then)},isJqueryElement:function(e){return e&&a.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!e.querySelectorAll||!e.querySelector)&&(!(!a.isObject(document)||e!==document)||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!a.isDefined(e))return!0;if(a.isFunction(e))return!1;if(a.isString(e))return a.EMPTY_STRING_REGEXP.test(e);if(a.isArray(e))return 0===e.length;if(a.isDate(e))return!1;if(a.isObject(e)){for(t in e)return!1;return!0}return!1},format:a.extend((function(e,t){return a.isString(e)?e.replace(a.format.FORMAT_REGEXP,(function(e,r,n){return"%"===r?"%{"+n+"}":String(t[n])})):e}),{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){return a.isNumber(e)?100*e%1==0?""+e:parseFloat(Math.round(100*e)/100).toFixed(2):a.isArray(e)?e.map((function(e){return a.prettify(e)})).join(", "):a.isObject(e)?a.isDefined(e.toString)?e.toString():JSON.stringify(e):(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,r){return t+" "+r.toLowerCase()})).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||a.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"==={}.toString.call(e)},isHash:function(e){return a.isObject(e)&&!a.isArray(e)&&!a.isFunction(e)},contains:function(e,t){return!!a.isDefined(e)&&(a.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return a.isArray(e)?e.filter((function(e,t,r){return r.indexOf(e)==t})):e},forEachKeyInKeypath:function(e,t,r){if(a.isString(t)){var n,i="",s=!1;for(n=0;ns&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",u.push(a.format(n,{count:s}))),u.length>0?t.message||u:void 0):t.message||this.notValid||"has an incorrect length"}},numericality:function(e,t,r,n,i){if(a.isDefined(e)){var s,o,u=[],l={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return es&&(r=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",r=a.format(r,{date:this.format(s,t),value:this.format(e,t)}),n.push(r)),n.length?a.unique(n):void 0)}}),{parse:null,format:null}),date:function(e,t){return t=a.extend({},t,{dateOnly:!0}),a.validators.datetime.call(a.validators.datetime,e,t)},format:function(e,t){(a.isString(t)||t instanceof RegExp)&&(t={pattern:t});var r,n=(t=a.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(a.isDefined(e))return a.isString(e)?(a.isString(i)&&(i=new RegExp(t.pattern,t.flags)),(r=i.exec(e))&&r[0].length==e.length?void 0:n):n},inclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),!a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is not included in the list";return a.format(r,{value:e})}},exclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is restricted";return a.isString(t.within[e])&&(e=t.within[e]),a.format(r,{value:e})}},email:a.extend((function(e,t){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid email";if(a.isDefined(e))return a.isString(e)&&this.PATTERN.exec(e)?void 0:r}),{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(e,t,r,n,i){if(a.isDefined(e)){a.isString(t)&&(t={attribute:t});var s=(t=a.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(a.isEmpty(t.attribute)||!a.isString(t.attribute))throw new Error("The attribute must be a non empty string");var o=a.getDeepObjectValue(n,t.attribute),u=t.comparator||function(e,t){return e===t},l=t.prettify||i&&i.prettify||a.prettify;return u(e,o,t,r,n)?void 0:a.format(s,{attribute:l(t.attribute)})}},url:function(e,t){if(a.isDefined(e)){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1,s=t.allowDataUrl||this.allowDataUrl||!1;if(!a.isString(e))return r;var o="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?u+="?":o+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",o+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+u+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",s){o="(?:"+o+")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"}return new RegExp(o,"i").exec(e)?void 0:r}},type:a.extend((function(e,t,r,n,i){if(a.isString(t)&&(t={type:t}),a.isDefined(e)){var s,o=a.extend({},this.options,t),u=o.type;if(!a.isDefined(u))throw new Error("No type was specified");if(s=a.isFunction(u)?u:this.types[u],!a.isFunction(s))throw new Error("validate.validators.type.types."+u+" must be a function.");if(!s(e,o,r,n,i)){var l=t.message||this.messages[u]||this.message||o.message||(a.isFunction(u)?"must be of the correct type":"must be of type %{type}");return a.isFunction(l)&&(l=l(e,t,r,n,i)),a.format(l,{attribute:a.prettify(r),type:u})}}}),{types:{object:function(e){return a.isObject(e)&&!a.isArray(e)},array:a.isArray,integer:a.isInteger,number:a.isNumber,string:a.isString,date:a.isDate,boolean:a.isBoolean},messages:{}})},i.formatters={detailed:function(e){return e},flat:a.flattenErrorsToArray,grouped:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=a.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=e[t].map((function(e){return e.validator})).sort();return e}},i.exposeModule(i,this,e,t,r(29))}).call(this,t,e,r(29))}).call(this,r(36)(e))},29:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},30:function(e,t){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function a(e,t,r){if(t.match(i)){!function e(t,r,n){if(0===r.length)return t=n;var i=r.shift(),a=i.match(/^\[(.+?)\]$/);if("[]"===i)return t=t||[],Array.isArray(t)?t.push(e(null,r,n)):(t._values=t._values||[],t._values.push(e(null,r,n))),t;if(a){var s=a[1],o=+s;isNaN(o)?(t=t||{})[s]=e(t[s],r,n):(t=t||[])[o]=e(t[o],r,n)}else t[i]=e(t[i],r,n);return t}(e,function(e){var t=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(e);for(n[1]&&t.push(n[1]);null!==(n=r.exec(e));)t.push(n[1]);return t}(t),r)}else{var n=e[t];n?(Array.isArray(n)||(e[t]=[n]),e[t].push(r)):e[t]=r}return e}function s(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var i=t.hash?{}:"",o=t.serializer||(t.hash?a:s),u=e&&e.elements?e.elements:[],l=Object.create(null),c=0;c0?t.errors=e.errors:t.errors=[]}},template:function(e,t,r,n){return e('
',[{type:r.IF,evaluate:function(e){return e.state.errors.length>0},redundantAttribute:"expr21",selector:"[expr21]",template:e('
',[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.error}}]}]),redundantAttribute:"expr22",selector:"[expr22]",itemName:"error",indexName:null,evaluate:function(e){return e.state.errors}}])}])},name:"field-error"};riot.register("field-error",u);var l={css:null,exports:{onBeforeMount(e,t){t.validator=new o({name:{presence:!0,length:{maximum:255}},description:{length:{maximum:255}}},this);const r=document.querySelector("meta[name='csrf-token']");r&&(t.csrfToken=r.getAttribute("content"))},getClasses(e,t){const r=[t],n=this.state.validator.errors(e);return n&&n.length>0&&r.push("is-danger"),r.join(" ")}},template:function(e,t,r,n){return e('

\n path for storage files, if empty default path will be used\n

\n everyone can see bucket, files and download them\n
',[{type:r.IF,evaluate:function(e){return e.state.csrfToken},redundantAttribute:"expr6",selector:"[expr6]",template:e(null,[{expressions:[{type:t.ATTRIBUTE,name:"value",evaluate:function(e){return e.state.csrfToken}}]}])},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("name","input")}},{type:t.VALUE,evaluate:function(e){return e.props.name}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"name")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("name")}}],redundantAttribute:"expr8",selector:"[expr8]"},{redundantAttribute:"expr9",selector:"[expr9]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("description","textarea")}},{type:t.VALUE,evaluate:function(e){return e.props.description}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"description")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("description")}}],redundantAttribute:"expr10",selector:"[expr10]"},{redundantAttribute:"expr11",selector:"[expr11]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("path","input")}},{type:t.VALUE,evaluate:function(e){return e.props.path}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"path")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("path")}}],redundantAttribute:"expr12",selector:"[expr12]"},{redundantAttribute:"expr13",selector:"[expr13]",expressions:[{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.props.public}}]},{redundantAttribute:"expr14",selector:"[expr14]",expressions:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return e.state.validator.errors().length>0}}]}])},name:"urban-bucket-form"};riot.register("urban-bucket-form",l)}}); \ No newline at end of file +(function(e,t,n){"use strict";var i=function(e,t,r){r=a.extend({},a.options,r);var n=a.runValidations(e,t,r);if(n.some((function(e){return a.isPromise(e.error)})))throw new Error("Use validate.async if you want support for promises");return i.processValidationResults(n,r)},a=i;a.extend=function(e){return[].slice.call(arguments,1).forEach((function(t){for(var r in t)e[r]=t[r]})),e},a.extend(i,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var e=a.format("%{major}.%{minor}.%{patch}",a.version);return a.isEmpty(a.version.metadata)||(e+="+"+a.version.metadata),e}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,r){var n,i,s,o,u,l,c,f=[];for(n in(a.isDomElement(e)||a.isJqueryElement(e))&&(e=a.collectFormValues(e)),t)for(i in s=a.getDeepObjectValue(e,n),o=a.result(t[n],s,e,n,r,t)){if(!(u=a.validators[i]))throw c=a.format("Unknown validator %{name}",{name:i}),new Error(c);l=o[i],(l=a.result(l,s,e,n,r,t))&&f.push({attribute:n,value:s,validator:i,globalOptions:r,attributes:e,options:l,error:u.call(u,s,l,n,e,r)})}return f},processValidationResults:function(e,t){e=a.pruneEmptyErrors(e,t),e=a.expandMultipleErrors(e,t),e=a.convertErrorMessages(e,t);var r=t.format||"grouped";if("function"!=typeof a.formatters[r])throw new Error(a.format("Unknown format %{format}",t));return e=a.formatters[r](e),a.isEmpty(e)?void 0:e},async:function(e,t,r){var n=(r=a.extend({},a.async.options,r)).wrapErrors||function(e){return e};!1!==r.cleanAttributes&&(e=a.cleanAttributes(e,t));var i=a.runValidations(e,t,r);return new a.Promise((function(s,o){a.waitForResults(i).then((function(){var u=a.processValidationResults(i,r);u?o(new n(u,r,e,t)):s(e)}),(function(e){o(e)}))}))},single:function(e,t,r){return r=a.extend({},a.single.options,r,{format:"flat",fullMessages:!1}),a({single:e},{single:t},r)},waitForResults:function(e){return e.reduce((function(e,t){return a.isPromise(t.error)?e.then((function(){return t.error.then((function(e){t.error=e||null}))})):e}),new a.Promise((function(e){e()})))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return a.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&a.isFunction(e.then)},isJqueryElement:function(e){return e&&a.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!e.querySelectorAll||!e.querySelector)&&(!(!a.isObject(document)||e!==document)||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!a.isDefined(e))return!0;if(a.isFunction(e))return!1;if(a.isString(e))return a.EMPTY_STRING_REGEXP.test(e);if(a.isArray(e))return 0===e.length;if(a.isDate(e))return!1;if(a.isObject(e)){for(t in e)return!1;return!0}return!1},format:a.extend((function(e,t){return a.isString(e)?e.replace(a.format.FORMAT_REGEXP,(function(e,r,n){return"%"===r?"%{"+n+"}":String(t[n])})):e}),{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){return a.isNumber(e)?100*e%1==0?""+e:parseFloat(Math.round(100*e)/100).toFixed(2):a.isArray(e)?e.map((function(e){return a.prettify(e)})).join(", "):a.isObject(e)?a.isDefined(e.toString)?e.toString():JSON.stringify(e):(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,r){return t+" "+r.toLowerCase()})).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||a.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"==={}.toString.call(e)},isHash:function(e){return a.isObject(e)&&!a.isArray(e)&&!a.isFunction(e)},contains:function(e,t){return!!a.isDefined(e)&&(a.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){return a.isArray(e)?e.filter((function(e,t,r){return r.indexOf(e)==t})):e},forEachKeyInKeypath:function(e,t,r){if(a.isString(t)){var n,i="",s=!1;for(n=0;ns&&(n=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",u.push(a.format(n,{count:s}))),u.length>0?t.message||u:void 0):t.message||this.notValid||"has an incorrect length"}},numericality:function(e,t,r,n,i){if(a.isDefined(e)){var s,o,u=[],l={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return es&&(r=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",r=a.format(r,{date:this.format(s,t),value:this.format(e,t)}),n.push(r)),n.length?a.unique(n):void 0)}}),{parse:null,format:null}),date:function(e,t){return t=a.extend({},t,{dateOnly:!0}),a.validators.datetime.call(a.validators.datetime,e,t)},format:function(e,t){(a.isString(t)||t instanceof RegExp)&&(t={pattern:t});var r,n=(t=a.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(a.isDefined(e))return a.isString(e)?(a.isString(i)&&(i=new RegExp(t.pattern,t.flags)),(r=i.exec(e))&&r[0].length==e.length?void 0:n):n},inclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),!a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is not included in the list";return a.format(r,{value:e})}},exclusion:function(e,t){if(a.isDefined(e)&&(a.isArray(t)&&(t={within:t}),t=a.extend({},this.options,t),a.contains(t.within,e))){var r=t.message||this.message||"^%{value} is restricted";return a.isString(t.within[e])&&(e=t.within[e]),a.format(r,{value:e})}},email:a.extend((function(e,t){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid email";if(a.isDefined(e))return a.isString(e)&&this.PATTERN.exec(e)?void 0:r}),{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(e,t,r,n,i){if(a.isDefined(e)){a.isString(t)&&(t={attribute:t});var s=(t=a.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(a.isEmpty(t.attribute)||!a.isString(t.attribute))throw new Error("The attribute must be a non empty string");var o=a.getDeepObjectValue(n,t.attribute),u=t.comparator||function(e,t){return e===t},l=t.prettify||i&&i.prettify||a.prettify;return u(e,o,t,r,n)?void 0:a.format(s,{attribute:l(t.attribute)})}},url:function(e,t){if(a.isDefined(e)){var r=(t=a.extend({},this.options,t)).message||this.message||"is not a valid url",n=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1,s=t.allowDataUrl||this.allowDataUrl||!1;if(!a.isString(e))return r;var o="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?u+="?":o+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",o+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+u+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",s){o="(?:"+o+")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"}return new RegExp(o,"i").exec(e)?void 0:r}},type:a.extend((function(e,t,r,n,i){if(a.isString(t)&&(t={type:t}),a.isDefined(e)){var s,o=a.extend({},this.options,t),u=o.type;if(!a.isDefined(u))throw new Error("No type was specified");if(s=a.isFunction(u)?u:this.types[u],!a.isFunction(s))throw new Error("validate.validators.type.types."+u+" must be a function.");if(!s(e,o,r,n,i)){var l=t.message||this.messages[u]||this.message||o.message||(a.isFunction(u)?"must be of the correct type":"must be of type %{type}");return a.isFunction(l)&&(l=l(e,t,r,n,i)),a.format(l,{attribute:a.prettify(r),type:u})}}}),{types:{object:function(e){return a.isObject(e)&&!a.isArray(e)},array:a.isArray,integer:a.isInteger,number:a.isNumber,string:a.isString,date:a.isDate,boolean:a.isBoolean},messages:{}})},i.formatters={detailed:function(e){return e},flat:a.flattenErrorsToArray,grouped:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=a.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=a.groupErrorsByAttribute(e))e[t]=e[t].map((function(e){return e.validator})).sort();return e}},i.exposeModule(i,this,e,t,r(29))}).call(this,t,e,r(29))}).call(this,r(36)(e))},29:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},30:function(e,t){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function a(e,t,r){if(t.match(i)){!function e(t,r,n){if(0===r.length)return t=n;var i=r.shift(),a=i.match(/^\[(.+?)\]$/);if("[]"===i)return t=t||[],Array.isArray(t)?t.push(e(null,r,n)):(t._values=t._values||[],t._values.push(e(null,r,n))),t;if(a){var s=a[1],o=+s;isNaN(o)?(t=t||{})[s]=e(t[s],r,n):(t=t||[])[o]=e(t[o],r,n)}else t[i]=e(t[i],r,n);return t}(e,function(e){var t=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(e);for(n[1]&&t.push(n[1]);null!==(n=r.exec(e));)t.push(n[1]);return t}(t),r)}else{var n=e[t];n?(Array.isArray(n)||(e[t]=[n]),e[t].push(r)):e[t]=r}return e}function s(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var i=t.hash?{}:"",o=t.serializer||(t.hash?a:s),u=e&&e.elements?e.elements:[],l=Object.create(null),c=0;c0?t.errors=e.errors:t.errors=[]}},template:function(e,t,r,n){return e('
',[{type:r.IF,evaluate:function(e){return e.state.errors.length>0},redundantAttribute:"expr29",selector:"[expr29]",template:e('
',[{type:r.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.error}}]}]),redundantAttribute:"expr30",selector:"[expr30]",itemName:"error",indexName:null,evaluate:function(e){return e.state.errors}}])}])},name:"field-error"};riot.register("field-error",u);var l={css:null,exports:{onBeforeMount(e,t){t.validator=new o({name:{presence:!0,length:{maximum:255}},description:{length:{maximum:255}}},this);const r=document.querySelector("meta[name='csrf-token']");r&&(t.csrfToken=r.getAttribute("content"))},getClasses(e,t){const r=[t],n=this.state.validator.errors(e);return n&&n.length>0&&r.push("is-danger"),r.join(" ")}},template:function(e,t,r,n){return e('

\n path for storage files, if empty default path will be used\n

\n everyone can see bucket, files and download them\n
',[{type:r.IF,evaluate:function(e){return e.state.csrfToken},redundantAttribute:"expr12",selector:"[expr12]",template:e(null,[{expressions:[{type:t.ATTRIBUTE,name:"value",evaluate:function(e){return e.state.csrfToken}}]}])},{redundantAttribute:"expr13",selector:"[expr13]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("name","input")}},{type:t.VALUE,evaluate:function(e){return e.props.name}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"name")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("name")}}],redundantAttribute:"expr14",selector:"[expr14]"},{redundantAttribute:"expr15",selector:"[expr15]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("description","textarea")}},{type:t.VALUE,evaluate:function(e){return e.props.description}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"description")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("description")}}],redundantAttribute:"expr16",selector:"[expr16]"},{redundantAttribute:"expr17",selector:"[expr17]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getClasses("path","input")}},{type:t.VALUE,evaluate:function(e){return e.props.path}},{type:t.EVENT,name:"onkeyup",evaluate:function(e){return t=>{e.state.validator.handle(t,"path")}}}]},{type:r.TAG,getComponent:n,evaluate:function(e){return"field-error"},slots:[],attributes:[{type:t.ATTRIBUTE,name:"errors",evaluate:function(e){return e.state.validator.errors("path")}}],redundantAttribute:"expr18",selector:"[expr18]"},{redundantAttribute:"expr19",selector:"[expr19]",expressions:[{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.props.public}}]},{redundantAttribute:"expr20",selector:"[expr20]",expressions:[{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return e.state.validator.errors().length>0}}]}])},name:"urban-bucket-form"};riot.register("urban-bucket-form",l)}}); \ No newline at end of file diff --git a/public/js/home.js b/public/js/home.js index 2996e8b..478d0e0 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -1 +1 @@ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=34)}({34:function(e,t,n){e.exports=n(38)},38:function(e,t,n){"use strict";n.r(t);var i={css:null,exports:{handleClick(){}},template:function(e,t,n,i){return e('
',[{type:n.EACH,getKey:null,condition:null,template:e('',[{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:t.ATTRIBUTE,name:"href",evaluate:function(e){return["/bucket/",e.bucket.id].join("")}}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.bucket.name].join("")}}]},{type:n.IF,evaluate:function(e){return e.bucket.tags&&e.bucket.tags.length>0},redundantAttribute:"expr3",selector:"[expr3]",template:e('',[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.tag}}]}]),redundantAttribute:"expr4",selector:"[expr4]",itemName:"tag",indexName:null,evaluate:function(e){return e.bucket.tags}}])}]),redundantAttribute:"expr0",selector:"[expr0]",itemName:"bucket",indexName:null,evaluate:function(e){return e.props.buckets}},{redundantAttribute:"expr5",selector:"[expr5]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.handleClick}}]}])},name:"buckets"},r={css:null,exports:{state:{items:[],index:0},onBeforeMount(){this.content=this.root.innerHTML,this.root.innerHTML=""},onMounted(e,t){const n=this.$(".tabs");t.wrapper=document.createElement("div"),t.wrapper.innerHTML=this.content,n.after(t.wrapper);for(let e=0;e
',[{type:n.EACH,getKey:null,condition:null,template:e(' ',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getCurrentClass(e.index)}},{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>e.handleClick(e.event,e.index)}}]},{redundantAttribute:"expr20",selector:"[expr20]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.item}}]}]),redundantAttribute:"expr19",selector:"[expr19]",itemName:"item",indexName:"index",evaluate:function(e){return e.state.items}}])},name:"urban-accordion"};riot.register("buckets",i),riot.register("urban-login-email",{css:null,exports:{},template:function(e,t,n,i){return e('',[])},name:"urban-login-email"}),riot.register("urban-login-password",{css:null,exports:{},template:function(e,t,n,i){return e('',[])},name:"urban-login-password"}),riot.register("urban-accordion",r),riot.mount("urban-accordion"),riot.mount("urban-login-email"),riot.mount("urban-login-password"),riot.mount("urban-form-validator")}}); \ No newline at end of file +!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=34)}({34:function(e,t,n){e.exports=n(38)},38:function(e,t,n){"use strict";n.r(t);var i={css:null,exports:{handleClick(){}},template:function(e,t,n,i){return e('
',[{type:n.EACH,getKey:null,condition:null,template:e('',[{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:t.ATTRIBUTE,name:"href",evaluate:function(e){return["/bucket/",e.bucket.id].join("")}}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.bucket.name].join("")}}]},{type:n.IF,evaluate:function(e){return e.bucket.tags&&e.bucket.tags.length>0},redundantAttribute:"expr3",selector:"[expr3]",template:e('',[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.tag}}]}]),redundantAttribute:"expr4",selector:"[expr4]",itemName:"tag",indexName:null,evaluate:function(e){return e.bucket.tags}}])}]),redundantAttribute:"expr0",selector:"[expr0]",itemName:"bucket",indexName:null,evaluate:function(e){return e.props.buckets}},{redundantAttribute:"expr5",selector:"[expr5]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.handleClick}}]}])},name:"buckets"},r={css:null,exports:{state:{items:[],index:0},onBeforeMount(){this.content=this.root.innerHTML,this.root.innerHTML=""},onMounted(e,t){const n=this.$(".tabs");t.wrapper=document.createElement("div"),t.wrapper.innerHTML=this.content,n.after(t.wrapper);for(let e=0;e
',[{type:n.EACH,getKey:null,condition:null,template:e(' ',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getCurrentClass(e.index)}},{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>e.handleClick(e.event,e.index)}}]},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.item}}]}]),redundantAttribute:"expr6",selector:"[expr6]",itemName:"item",indexName:"index",evaluate:function(e){return e.state.items}}])},name:"urban-accordion"};riot.register("buckets",i),riot.register("urban-login-email",{css:null,exports:{},template:function(e,t,n,i){return e('',[])},name:"urban-login-email"}),riot.register("urban-login-password",{css:null,exports:{},template:function(e,t,n,i){return e('',[])},name:"urban-login-password"}),riot.register("urban-accordion",r),riot.mount("urban-accordion"),riot.mount("urban-login-email"),riot.mount("urban-login-password"),riot.mount("urban-form-validator")}}); \ No newline at end of file diff --git a/resources/js/components/filemanager/filemanager.riot b/resources/js/components/filemanager/filemanager.riot index 1c8f032..adf2075 100644 --- a/resources/js/components/filemanager/filemanager.riot +++ b/resources/js/components/filemanager/filemanager.riot @@ -1,7 +1,7 @@
- + 0 }>