diff --git a/asset-manifest.json b/asset-manifest.json index 8a011ea..4c0cf58 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/project-codefusion/static/css/main.2f034c44.css", - "main.js": "/project-codefusion/static/js/main.b4fc2f23.js", + "main.js": "/project-codefusion/static/js/main.3b6f2431.js", "static/media/backDesktop.png": "/project-codefusion/static/media/backDesktop.99b3b05983363aaaa476.png", "static/media/deskRegister.jpg": "/project-codefusion/static/media/deskRegister.75d916277e1e1072b976.jpg", "static/media/LoginFonIMac.jpg": "/project-codefusion/static/media/LoginFonIMac.3277a09b3c01d8359ca5.jpg", @@ -25,10 +25,10 @@ "static/media/slash.svg": "/project-codefusion/static/media/slash.0de4a54764962cd9ea4f00c124f2d44f.svg", "static/media/arrow.svg": "/project-codefusion/static/media/arrow.3adc90affb2d995309da185a632f3b25.svg", "main.2f034c44.css.map": "/project-codefusion/static/css/main.2f034c44.css.map", - "main.b4fc2f23.js.map": "/project-codefusion/static/js/main.b4fc2f23.js.map" + "main.3b6f2431.js.map": "/project-codefusion/static/js/main.3b6f2431.js.map" }, "entrypoints": [ "static/css/main.2f034c44.css", - "static/js/main.b4fc2f23.js" + "static/js/main.3b6f2431.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index b337ef7..b23954e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
0&&e.stroke()}}function wx(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x1&&void 0!==arguments[1]?arguments[1]:"x",i=iw(a),o=e.length,s=Array(o).fill(0),u=Array(o),l=aw(e,0);for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+o,radius:e.radius}}(0,ia.Z)(cS,"id","point"),(0,ia.Z)(cS,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,ia.Z)(cS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var gS=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign((0,Fa.Z)(r),e),r}return(0,c.Z)(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,a=r.borderColor,i=r.backgroundColor,o=pS(this),s=o.inner,u=o.outer,l=(t=u.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?Mx:vS;e.save(),u.w===s.w&&u.h===s.h||(e.beginPath(),l(e,mS(u,n,s)),e.clip(),l(e,mS(s,-n,u)),e.fillStyle=a,e.fill("evenodd")),e.beginPath(),l(e,mS(s,n)),e.fillStyle=i,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return hS(this,e,t,n)}},{key:"inXRange",value:function(e,t){return hS(this,e,null,t)}},{key:"inYRange",value:function(e,t){return hS(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,a=t.base,i=t.horizontal;return{x:i?(n+a)/2:n,y:i?r:(r+a)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(a_);(0,ia.Z)(gS,"id","bar"),(0,ia.Z)(gS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),(0,ia.Z)(gS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var yS=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,a=e.boxWidth,i=void 0===a?t:a;return e.usePointStyle&&(r=Math.min(r,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:r,itemHeight:Math.max(t,r)}},bS=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return(0,c.Z)(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=Xy(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,a=e.labels,i=Ix(a.font),o=i.size,s=this._computeTitleHeight(),u=yS(a,o),l=u.boxWidth,c=u.itemHeight;t.font=i.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,l,c)+10):(r=this.maxHeight,n=this._fitCols(s,i,l,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var a=this.ctx,i=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.lineWidths=[0],l=r+o,c=e;a.textAlign="left",a.textBaseline="middle";var d=-1,f=-l;return this.legendItems.forEach((function(e,p){var h=n+t/2+a.measureText(e.text).width;(0===p||u[u.length-1]+h+2*o>i)&&(c+=l,u[u.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:h,height:r},u[u.length-1]+=h+o})),c}},{key:"_fitCols",value:function(e,t,n,r){var a=this.ctx,i=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=i-e,c=o,d=0,f=0,p=0,h=0;return this.legendItems.forEach((function(e,i){var v=function(e,t,n,r,a){var i=function(e,t,n,r){var a=e.text;a&&"string"!==typeof a&&(a=a.reduce((function(e,t){return e.length>t.length?e:t})));return t+n.size/2+r.measureText(a).width}(r,e,t,n),o=function(e,t,n){var r=e;"string"!==typeof t.text&&(r=xS(t,n));return r}(a,r,t.lineHeight);return{itemWidth:i,itemHeight:o}}(n,t,a,e,r),m=v.itemWidth,g=v.itemHeight;i>0&&f+g+2*o>l&&(c+=d+o,u.push({width:d,height:f}),p+=d+o,h++,d=f=0),s[i]={left:p,top:f,col:h,width:m,height:g},d=Math.max(d,m),f+=g+o})),c+=d,u.push({width:d,height:f}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,a=n.labels.padding,i=Ew(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=qb(r,this.left+a,this.right-this.lineWidths[s]),l=(0,_.Z)(t);try{for(l.s();!(o=l.n()).done;){var c=o.value;s!==c.row&&(s=c.row,u=qb(r,this.left+a,this.right-this.lineWidths[s])),c.top+=this.top+e+a,c.left=i.leftForLtr(i.x(u),c.width),u+=c.width+a}}catch(m){l.e(m)}finally{l.f()}}else{var d,f=0,p=qb(r,this.top+e+a,this.bottom-this.columnSizes[f].height),h=(0,_.Z)(t);try{for(h.s();!(d=h.n()).done;){var v=d.value;v.col!==f&&(f=v.col,p=qb(r,this.top+e+a,this.bottom-this.columnSizes[f].height)),v.top=p,v.left+=this.left+a,v.left=i.leftForLtr(i.x(v.left),v.width),p+=v.height+a}}catch(m){h.e(m)}finally{h.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;kx(e,this),this._draw(),_x(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,a=this.lineWidths,i=this.ctx,o=n.align,s=n.labels,u=hx.color,l=Ew(n.rtl,this.left,this.width),c=Ix(s.font),d=s.padding,f=c.size,p=f/2;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;var h=yS(s,f),v=h.boxWidth,m=h.boxHeight,g=h.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();e=y?{x:qb(o,this.left+d,this.right-a[0]),y:this.top+d+b,line:0}:{x:this.left+d,y:qb(o,this.top+b+d,this.bottom-r[0].height),line:0},Dw(this.ctx,n.textDirection);var x=g+d;this.legendItems.forEach((function(h,w){i.strokeStyle=h.fontColor,i.fillStyle=h.fontColor;var k=i.measureText(h.text).width,_=l.textAlign(h.textAlign||(h.textAlign=s.textAlign)),S=v+p+k,C=e.x,E=e.y;if(l.setWidth(t.width),y?w>0&&C+S+d>t.right&&(E=e.y+=x,e.line++,C=e.x=qb(o,t.left+d,t.right-a[e.line])):w>0&&E+x>t.bottom&&(C=e.x=C+r[e.line].width+d,e.line++,E=e.y=qb(o,t.top+b+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(v)||v<=0||isNaN(m)||m<0)){i.save();var r=Ky(n.lineWidth,1);if(i.fillStyle=Ky(n.fillStyle,u),i.lineCap=Ky(n.lineCap,"butt"),i.lineDashOffset=Ky(n.lineDashOffset,0),i.lineJoin=Ky(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=Ky(n.strokeStyle,u),i.setLineDash(Ky(n.lineDash,[])),s.usePointStyle){var a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(e,v/2);xx(i,a,o,t+p,s.pointStyleWidth&&v)}else{var c=t+Math.max((f-m)/2,0),d=l.leftForLtr(e,v),h=Fx(n.borderRadius);i.beginPath(),Object.values(h).some((function(e){return 0!==e}))?Mx(i,{x:d,y:c,w:v,h:m,radius:h}):i.rect(d,c,v,m),i.fill(),0!==r&&i.stroke()}i.restore()}}(l.x(C),E,h),C=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(_,C+v+p,y?C+S:t.right,n.rtl),function(e,t,n){Tx(i,n.text,e,t+g/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(C),E,h),y)e.x+=S+d;else if("string"!==typeof h.text){var D=c.lineHeight;e.y+=xS(h,D)+d}else e.y+=x})),Ow(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=Ix(t.font),r=Zx(t.padding);if(t.display){var a,i=Ew(e.rtl,this.left,this.width),o=this.ctx,s=t.position,l=n.size/2,c=r.top+l,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,u(this.lineWidths)),a=this.top+c,d=qb(e.align,d,this.right-f);else{var p=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);a=c+qb(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}var h=qb(s,d,d+f);o.textAlign=i.textAlign(Yb(s)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,Tx(o,t.text,h,a,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=Ix(e.font),n=Zx(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,a;if(Fb(e,this.left,this.right)&&Fb(t,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;n=0&&(t[i].major=!0);return t}(e,i,o,n):i}var fC=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return(0,c.Z)(n,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.time||(e.time={}),a=this._adapter=new yk._date(e.adapters.date);a.init(t),ib(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},Ia((0,p.Z)(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:uC(this,e)}},{key:"beforeLayout",value:function(){Ia((0,p.Z)(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),a=r.min,i=r.max,o=r.minDefined,s=r.maxDefined;function u(e){o||isNaN(e.min)||(a=Math.min(a,e.min)),s||isNaN(e.max)||(i=Math.max(i,e.max))}o&&s||(u(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||u(this.getMinMax(!1))),a=$y(a)&&!isNaN(a)?a:+t.startOf(Date.now(),n),i=$y(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var a=this.min,i=function(e,t,n){for(var r=0,a=e.length;rr&&e[a-1]>n;)a--;return r>0||a