Initial commit

This commit is contained in:
azeez faruq
2025-04-04 07:29:59 +01:00
commit 34a2b8cc2d
936 changed files with 260165 additions and 0 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
import{i as g,t as u,g as d}from"./dashboard-9cd8113d.js";import{y as a}from"../@fullcalendar/core-bd0f45d9.js";import{U as D}from"./core-84ea94a2.js";const c={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}},m={version:"3.1.1"},f={inputName:"files[]",width:"100%",height:"100%"};class l extends D{constructor(s,i){super(s,{...f,...i}),this.isDragDropSupported=g(),this.addFiles=t=>{const r=t.map(e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}}));try{this.uppy.addFiles(r)}catch(e){this.uppy.log(e)}},this.onInputChange=t=>{const r=u(t.target.files);r.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(r)),t.target.value=null},this.handleDragOver=t=>{var r,e;t.preventDefault(),t.stopPropagation();const{types:p}=t.dataTransfer,o=p.some(h=>h==="Files"),{allowNewUpload:n}=this.uppy.getState();if(!o||!n){t.dataTransfer.dropEffect="none",clearTimeout(this.removeDragOverClassTimeout);return}t.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),(r=(e=this.opts).onDragOver)==null||r.call(e,t)},this.handleDragLeave=t=>{var r,e;t.preventDefault(),t.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(()=>{this.setPluginState({isDraggingOver:!1})},50),(r=(e=this.opts).onDragLeave)==null||r.call(e,t)},this.handleDrop=async t=>{var r,e;t.preventDefault(),t.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const p=n=>{this.uppy.log(n,"error")},o=await d(t.dataTransfer,{logDropError:p});o.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(o)),(r=(e=this.opts).onDrop)==null||r.call(e,t)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=c,this.i18nInit()}renderHiddenFileInput(){const{restrictions:s}=this.uppy.opts;return a("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:i=>{this.fileInputRef=i},name:this.opts.inputName,multiple:s.maxNumberOfFiles!==1,accept:s.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},a("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return a("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:a("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return a("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const s=`uppy-u-reset
uppy-DragDrop-container
${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}
${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}
`,i={width:this.opts.width,height:this.opts.height};return a("button",{type:"button",className:s,style:i,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),a("div",{className:"uppy-DragDrop-inner"},l.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:s}=this.opts;this.setPluginState({isDraggingOver:!1}),s&&this.mount(s,this)}uninstall(){this.unmount()}}l.VERSION=m.version;
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
import{t,g as e,P as r}from"./aws-s3-98528360.js";import{P as n}from"./dashboard-9cd8113d.js";import{y as i}from"../@fullcalendar/core-bd0f45d9.js";import{U as a}from"./core-84ea94a2.js";const l={strings:{pluginNameDropbox:"Dropbox"}},p={version:"3.4.0"};class h extends a{constructor(o,s){super(o,s),this.id=this.opts.id||"Dropbox",this.type="acquirer",this.storage=this.opts.storage||t,this.files=[],this.icon=()=>i("svg",{className:"uppy-DashboardTab-iconDropbox","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},i("path",{d:"M10.5 7.5L5 10.955l5.5 3.454 5.5-3.454 5.5 3.454 5.5-3.454L21.5 7.5 16 10.955zM10.5 21.319L5 17.864l5.5-3.455 5.5 3.455zM16 17.864l5.5-3.455 5.5 3.455-5.5 3.455zM16 25.925l-5.5-3.455 5.5-3.454 5.5 3.454z",fill:"currentcolor",fillRule:"nonzero"})),this.opts.companionAllowedHosts=e(this.opts.companionAllowedHosts,this.opts.companionUrl),this.provider=new r(o,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionKeysParams:this.opts.companionKeysParams,companionCookiesRule:this.opts.companionCookiesRule,provider:"dropbox",pluginId:this.id,supportsRefreshToken:!0}),this.defaultLocale=l,this.i18nInit(),this.title=this.opts.title||this.i18n("pluginNameDropbox"),this.onFirstRender=this.onFirstRender.bind(this),this.render=this.render.bind(this)}install(){this.view=new n(this,{provider:this.provider,loadAllFiles:!0,virtualList:!0});const{target:o}=this.opts;o&&this.mount(o,this)}uninstall(){this.view.tearDown(),this.unmount()}async onFirstRender(){await Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])}render(o){return this.view.render(o)}}h.VERSION=p.version;export{h as D};
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
import{t as s,g as r,P as l}from"./aws-s3-98528360.js";import{y as t}from"../@fullcalendar/core-bd0f45d9.js";import{P as n}from"./dashboard-9cd8113d.js";import{U as a}from"./core-84ea94a2.js";class h extends n{toggleCheckbox(i,o){i.stopPropagation(),i.preventDefault(),o.custom.isSharedDrive||super.toggleCheckbox(i,o)}}const p={strings:{pluginNameGoogleDrive:"Google Drive"}},d={version:"3.6.0"};class c extends a{constructor(i,o){super(i,o),this.type="acquirer",this.storage=this.opts.storage||s,this.files=[],this.id=this.opts.id||"GoogleDrive",this.icon=()=>t("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},t("g",{fillRule:"nonzero",fill:"none"},t("path",{d:"M6.663 22.284l.97 1.62c.202.34.492.609.832.804l3.465-5.798H5c0 .378.1.755.302 1.096l1.361 2.278z",fill:"#0066DA"}),t("path",{d:"M16 12.09l-3.465-5.798c-.34.195-.63.463-.832.804l-6.4 10.718A2.15 2.15 0 005 18.91h6.93L16 12.09z",fill:"#00AC47"}),t("path",{d:"M23.535 24.708c.34-.195.63-.463.832-.804l.403-.67 1.928-3.228c.201-.34.302-.718.302-1.096h-6.93l1.474 2.802 1.991 2.996z",fill:"#EA4335"}),t("path",{d:"M16 12.09l3.465-5.798A2.274 2.274 0 0018.331 6h-4.662c-.403 0-.794.11-1.134.292L16 12.09z",fill:"#00832D"}),t("path",{d:"M20.07 18.91h-8.14l-3.465 5.798c.34.195.73.292 1.134.292h12.802c.403 0 .794-.11 1.134-.292L20.07 18.91z",fill:"#2684FC"}),t("path",{d:"M23.497 12.455l-3.2-5.359a2.252 2.252 0 00-.832-.804L16 12.09l4.07 6.82h6.917c0-.377-.1-.755-.302-1.096l-3.188-5.359z",fill:"#FFBA00"}))),this.opts.companionAllowedHosts=r(this.opts.companionAllowedHosts,this.opts.companionUrl),this.provider=new l(i,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionKeysParams:this.opts.companionKeysParams,companionCookiesRule:this.opts.companionCookiesRule,provider:"drive",pluginId:this.id,supportsRefreshToken:!0}),this.defaultLocale=p,this.i18nInit(),this.title=this.i18n("pluginNameGoogleDrive"),this.onFirstRender=this.onFirstRender.bind(this),this.render=this.render.bind(this)}install(){this.view=new h(this,{provider:this.provider,loadAllFiles:!0,virtualList:!0});const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.view.tearDown(),this.unmount()}async onFirstRender(){await Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("root")])}render(i){return this.view.render(i)}}c.VERSION=d.version;export{c as G};
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
import{t as s,g as o,P as n}from"./aws-s3-98528360.js";import{P as r}from"./dashboard-9cd8113d.js";import{y as t}from"../@fullcalendar/core-bd0f45d9.js";import{U as a}from"./core-84ea94a2.js";const l={strings:{pluginNameOneDrive:"OneDrive"}},h={version:"3.4.0"};class p extends a{constructor(i,e){super(i,e),this.type="acquirer",this.files=[],this.storage=this.opts.storage||s,this.id=this.opts.id||"OneDrive",this.icon=()=>t("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},t("g",{fill:"none",fillRule:"nonzero"},t("path",{d:"M13.39 12.888l4.618 2.747 2.752-1.15a4.478 4.478 0 012.073-.352 6.858 6.858 0 00-5.527-5.04 6.895 6.895 0 00-6.876 2.982l.07-.002a5.5 5.5 0 012.89.815z",fill:"#0364B8"}),t("path",{d:"M13.39 12.887v.001a5.5 5.5 0 00-2.89-.815l-.07.002a5.502 5.502 0 00-4.822 2.964 5.43 5.43 0 00.38 5.62l4.073-1.702 1.81-.757 4.032-1.685 2.105-.88-4.619-2.748z",fill:"#0078D4"}),t("path",{d:"M22.833 14.133a4.479 4.479 0 00-2.073.352l-2.752 1.15.798.475 2.616 1.556 1.141.68 3.902 2.321a4.413 4.413 0 00-.022-4.25 4.471 4.471 0 00-3.61-2.284z",fill:"#1490DF"}),t("path",{d:"M22.563 18.346l-1.141-.68-2.616-1.556-.798-.475-2.105.88L11.87 18.2l-1.81.757-4.073 1.702A5.503 5.503 0 0010.5 23h12.031a4.472 4.472 0 003.934-2.333l-3.902-2.321z",fill:"#28A8EA"}))),this.opts.companionAllowedHosts=o(this.opts.companionAllowedHosts,this.opts.companionUrl),this.provider=new n(i,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionKeysParams:this.opts.companionKeysParams,companionCookiesRule:this.opts.companionCookiesRule,provider:"onedrive",pluginId:this.id,supportsRefreshToken:!1}),this.defaultLocale=l,this.i18nInit(),this.title=this.i18n("pluginNameOneDrive"),this.onFirstRender=this.onFirstRender.bind(this),this.render=this.render.bind(this)}install(){this.view=new r(this,{provider:this.provider,loadAllFiles:!0,virtualList:!0});const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.view.tearDown(),this.unmount()}async onFirstRender(){await Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])}render(i){return this.view.render(i)}}p.VERSION=h.version;export{p as O};
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
import"../vendor-8efd6c0a.js";import{t as p}from"./dashboard-9cd8113d.js";import"./drag-drop-27339c3f.js";import{y as e}from"../@fullcalendar/core-bd0f45d9.js";import{U as n}from"./core-84ea94a2.js";const a={strings:{chooseFiles:"Choose files"}},l={version:"3.1.2"},h={pretty:!0,inputName:"files[]"};class d extends n{constructor(t,s){super(t,{...h,...s}),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=a,this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(t){const s=t.map(i=>({source:this.id,name:i.name,type:i.type,data:i}));try{this.uppy.addFiles(s)}catch(i){this.uppy.log(i)}}handleInputChange(t){this.uppy.log("[FileInput] Something selected through input...");const s=p(t.target.files);this.addFiles(s),t.target.value=null}handleClick(){this.input.click()}render(){const t={width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},{restrictions:s}=this.uppy.opts,i=s.allowedFileTypes?s.allowedFileTypes.join(","):void 0;return e("div",{className:"uppy-FileInput-container"},e("input",{className:"uppy-FileInput-input",style:this.opts.pretty?t:void 0,type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:s.maxNumberOfFiles!==1,accept:i,ref:r=>{this.input=r}}),this.opts.pretty&&e("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:t}=this.opts;t&&this.mount(t,this)}uninstall(){this.unmount()}}d.VERSION=l.version;const u={version:"3.1.1"},c={target:"body",fixed:!1,hideAfterFinish:!0};class y extends n{constructor(t,s){super(t,{...c,...s}),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator",this.render=this.render.bind(this)}render(t){const s=t.totalProgress||0,i=(s===0||s===100)&&this.opts.hideAfterFinish;return e("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":i},e("div",{className:"uppy-ProgressBar-inner",style:{width:`${s}%`}}),e("div",{className:"uppy-ProgressBar-percentage"},s))}install(){const{target:t}=this.opts;t&&this.mount(t,this)}uninstall(){this.unmount()}}y.VERSION=u.version;
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.