diff --git a/main/asset-manifest.json b/main/asset-manifest.json index af8a6371..73b5d90b 100644 --- a/main/asset-manifest.json +++ b/main/asset-manifest.json @@ -1,14 +1,14 @@ { - "main.css": "/shlink-web-client/static/css/main.d706729a.chunk.css", - "main.js": "/shlink-web-client/static/js/main.2d6a31a3.chunk.js", - "main.js.map": "/shlink-web-client/static/js/main.2d6a31a3.chunk.js.map", - "runtime~main.js": "/shlink-web-client/static/js/runtime~main.6565da25.js", - "runtime~main.js.map": "/shlink-web-client/static/js/runtime~main.6565da25.js.map", - "static/css/2.f8d44351.chunk.css": "/shlink-web-client/static/css/2.f8d44351.chunk.css", - "static/js/2.d1ec488f.chunk.js": "/shlink-web-client/static/js/2.d1ec488f.chunk.js", - "static/js/2.d1ec488f.chunk.js.map": "/shlink-web-client/static/js/2.d1ec488f.chunk.js.map", - "index.html": "/shlink-web-client/index.html", - "static/css/2.f8d44351.chunk.css.map": "/shlink-web-client/static/css/2.f8d44351.chunk.css.map", - "static/css/main.d706729a.chunk.css.map": "/shlink-web-client/static/css/main.d706729a.chunk.css.map", - "static/js/2.d1ec488f.chunk.js.LICENSE.txt": "/shlink-web-client/static/js/2.d1ec488f.chunk.js.LICENSE.txt" + "main.css": "/shlink-web-client/main/static/css/main.d706729a.chunk.css", + "main.js": "/shlink-web-client/main/static/js/main.28ad8008.chunk.js", + "main.js.map": "/shlink-web-client/main/static/js/main.28ad8008.chunk.js.map", + "runtime~main.js": "/shlink-web-client/main/static/js/runtime~main.c5a8338a.js", + "runtime~main.js.map": "/shlink-web-client/main/static/js/runtime~main.c5a8338a.js.map", + "static/css/2.f8d44351.chunk.css": "/shlink-web-client/main/static/css/2.f8d44351.chunk.css", + "static/js/2.e0840bc9.chunk.js": "/shlink-web-client/main/static/js/2.e0840bc9.chunk.js", + "static/js/2.e0840bc9.chunk.js.map": "/shlink-web-client/main/static/js/2.e0840bc9.chunk.js.map", + "index.html": "/shlink-web-client/main/index.html", + "static/css/2.f8d44351.chunk.css.map": "/shlink-web-client/main/static/css/2.f8d44351.chunk.css.map", + "static/css/main.d706729a.chunk.css.map": "/shlink-web-client/main/static/css/main.d706729a.chunk.css.map", + "static/js/2.e0840bc9.chunk.js.LICENSE.txt": "/shlink-web-client/main/static/js/2.e0840bc9.chunk.js.LICENSE.txt" } \ No newline at end of file diff --git a/main/index.html b/main/index.html index f590bef4..3ca0799e 100644 --- a/main/index.html +++ b/main/index.html @@ -1 +1 @@ -
t.label.length?-1:e.label.lengths&&(n=s-u),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;ao)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function M(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(251),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(87)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(257)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(131),o=n(547),i=n(548),a=n(549),s=n(550),u=n(551);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(78)(n(57),"Map");e.exports=r},function(e,t,n){var r=n(556),o=n(563),i=n(565),a=n(566),s=n(567);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Ao(e.s)?n.props.hsl.s:e.s),l:Number(Ao(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Io(t,[{key:"render",value:function(){var e=this,t=a()({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.a.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.a.createElement("div",{style:t.toggle},o.a.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.a.createElement(Ro.a,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.a.Component);Fo.defaultProps={view:"hex"};var zo=Fo,Bo=function(){var e=a()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.a.createElement("div",{style:e.picker})},Uo=function(){var e=a()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.a.createElement("div",{style:e.picker})},Ho=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,s=e.hsl,u=e.hsv,l=e.hex,c=e.renderers,f=e.styles,h=void 0===f?{}:f,p=e.className,m=void 0===p?"":p,g=e.defaultView,y=a()(Qt({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},h),{disableAlpha:r});return o.a.createElement("div",{style:y.picker,className:"chrome-picker "+m},o.a.createElement("div",{style:y.saturation},o.a.createElement(hn,{style:y.Saturation,hsl:s,hsv:u,pointer:Uo,onChange:n})),o.a.createElement("div",{style:y.body},o.a.createElement("div",{style:y.controls,className:"flexbox-fix"},o.a.createElement("div",{style:y.color},o.a.createElement("div",{style:y.swatch},o.a.createElement("div",{style:y.active}),o.a.createElement(d,{renderers:c}))),o.a.createElement("div",{style:y.toggles},o.a.createElement("div",{style:y.hue},o.a.createElement(C,{style:y.Hue,hsl:s,pointer:Bo,onChange:n})),o.a.createElement("div",{style:y.alpha},o.a.createElement(v,{style:y.Alpha,rgb:i,hsl:s,pointer:Bo,renderers:c,onChange:n})))),o.a.createElement(zo,{rgb:i,hsl:s,hex:l,view:g,onChange:n,disableAlpha:r})))};Ho.propTypes={width:M.a.oneOfType([M.a.string,M.a.number]),disableAlpha:M.a.bool,styles:M.a.object,defaultView:M.a.oneOf(["hex","rgb","hsl"])},Ho.defaultProps={width:225,disableAlpha:!1,styles:{}};var Wo=jn(Ho),Yo=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,s=e.active,u=a()({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:En(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.a.createElement(Fn,{style:u.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.a.createElement("div",{style:u.dot}))},Vo=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=a()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.a.createElement("div",{style:i.fields,className:"flexbox-fix"},o.a.createElement("div",{style:i.active}),o.a.createElement(w,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:s}),o.a.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:s}),o.a.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:s}),o.a.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:s}))},qo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,s=e.rgb,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,d=a()(Qt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(e,n){e.hex?Cn(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.a.createElement($t,{style:d.Compact,styles:l},o.a.createElement("div",{style:d.compact,className:"compact-picker "+f},o.a.createElement("div",null,lo(r,(function(e){return o.a.createElement(Yo,{key:e,color:e,active:e.toLowerCase()===i,onClick:h,onSwatchHover:n})})),o.a.createElement("div",{style:d.clear})),o.a.createElement(Vo,{hex:i,rgb:s,onChange:h})))};qo.propTypes={colors:M.a.arrayOf(M.a.string),styles:M.a.object},qo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};jn(qo);var Zo=Object(i.handleHover)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=a()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return o.a.createElement("div",{style:u.swatch},o.a.createElement(Fn,{color:n,onClick:r,onHover:i,focusStyle:s}))})),Go=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,s=e.triangle,u=e.styles,l=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,d=a()(Qt({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),h=function(e,t){return r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:d.card,className:"github-picker "+f},o.a.createElement("div",{style:d.triangleShadow}),o.a.createElement("div",{style:d.triangle}),lo(n,(function(e){return o.a.createElement(Zo,{color:e,key:e,onClick:h,onSwatchHover:i})})))};Go.propTypes={width:M.a.oneOfType([M.a.string,M.a.number]),colors:M.a.arrayOf(M.a.string),triangle:M.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:M.a.object},Go.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};jn(Go);var Ko=function(e){var t=e.direction,n=a()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.a.createElement("div",{style:n.picker})},Qo=Object.assign||function(e){for(var t=1;t>1,c=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<