From d38ac3acb3354aecead4e887ea83f0aaf3d3f6fa Mon Sep 17 00:00:00 2001 From: 1 <1> Date: Tue, 24 Sep 2024 21:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BD=91=E9=A1=B5=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 4 ++-- .../assets/assets/{index-DKGuaJ-j.js => index-C2kLaOMR.js} | 4 ++-- app/src/main/assets/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename app/src/main/assets/assets/{index-DKGuaJ-j.js => index-C2kLaOMR.js} (99%) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5e9fb8c..8a6bae3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,8 +14,8 @@ android { applicationId = "com.donut.mixfile" minSdk = 24 targetSdk = 34 - versionCode = 36 - versionName = "1.4.5" + versionCode = 37 + versionName = "1.4.6" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/assets/assets/index-DKGuaJ-j.js b/app/src/main/assets/assets/index-C2kLaOMR.js similarity index 99% rename from app/src/main/assets/assets/index-DKGuaJ-j.js rename to app/src/main/assets/assets/index-C2kLaOMR.js index 2818671..c74ae9b 100644 --- a/app/src/main/assets/assets/index-DKGuaJ-j.js +++ b/app/src/main/assets/assets/index-C2kLaOMR.js @@ -298,8 +298,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann button { font-size: max(.6rem, 14px); } -`;let aa=null,la=null;function aS(e){const[t,n]=fe([]),[r,o]=fe("");if(aa=n,la=o,t.length===0)return null;const i=r.split(` -`).length===t.length;return $(Qa,{open:!0,children:$(sS,{className:"shadow",children:[i?$("h3",{className:"file-card animate__animated animate__bounceIn",children:[t.length," 个文件全部上传成功"]}):$("h3",{children:[t.length," 个文件正在上传"]}),$("div",{class:"content",children:t.map((s,a)=>$(iS,{file:s},a))}),$(ia.CopyToClipboard,{className:"file-card animate__animated animate__bounceIn",text:r,onCopy:()=>{zo("复制成功!")},children:$(jn,{variant:"outlined",children:"全部复制"})}),$(jn,{variant:"contained",onClick:()=>{aa([]),la("")},children:i?"关闭":"取消"})]})})}function Qc(e){aa(t=>[...t,...e])}function lS(e){la(t=>`${t} +`;let aa=null,la=null;function aS(e){const[t,n]=fe([]),[r,o]=fe("");if(aa=n,la=o,t.length===0)return null;const s=r.split(` +`).length===t.length;return $(Qa,{open:!0,children:$(sS,{className:"shadow",children:[s?$("h3",{className:"file-card animate__animated animate__bounceIn",children:[t.length," 个文件全部上传成功"]}):$("h3",{children:[t.length," 个文件正在上传"]}),$("div",{class:"content",children:t.map((a,l)=>$(iS,{file:a},l))}),r.trim()&&$(ia.CopyToClipboard,{className:"file-card animate__animated animate__bounceIn",text:r,onCopy:()=>{zo("复制成功!")},children:$(jn,{variant:"outlined",children:"全部复制"})}),$(jn,{variant:"contained",onClick:()=>{aa([]),la("")},children:s?"关闭":"取消"})]})})}function Qc(e){aa(t=>[...t,...e])}function lS(e){la(t=>`${t} ${e}`.trim())}class cS{constructor(t){this.queue=void 0,this.maxConcurrent=void 0,this.count=void 0,this.queue=[],this.maxConcurrent=t,this.count=0}get canAcquire(){return this.countthis.queue.push(t))}release(){const t=this.queue.shift();t?setTimeout(t,0):this.count--}}const Bt="_default";class uS{constructor(t=1){this.semaphoreInstances=void 0,this.maxConcurrent=void 0,this.semaphoreInstances={},this.maxConcurrent=t}hasSemaphoreInstance(t=Bt){return!!this.semaphoreInstances[t]}getSemaphoreInstance(t=Bt){return this.hasSemaphoreInstance(t)||(this.semaphoreInstances[t]=new cS(this.maxConcurrent)),this.semaphoreInstances[t]}tidy(t=Bt){this.hasSemaphoreInstance(t)&&this.getSemaphoreInstance(t).count===0&&delete this.semaphoreInstances[t]}canAcquire(t=Bt){return this.getSemaphoreInstance(t).canAcquire}acquire(t=Bt){return this.getSemaphoreInstance(t).acquire()}release(t=Bt){this.getSemaphoreInstance(t).release(),this.tidy(t)}count(t=Bt){return this.hasSemaphoreInstance(t)?this.getSemaphoreInstance(t).count:0}hasTasks(t=Bt){return this.count(t)>0}async request(t,n=Bt){try{return await this.acquire(n),await t()}finally{this.release(n)}}async requestIfAvailable(t,n=Bt){return this.canAcquire(n)?this.request(t,n):null}}const dS=cn.div` display: flex; flex-wrap: wrap; diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index fbb5114..48e7020 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -6,7 +6,7 @@ MixFile - +