fix(CodePad,vfx,Antedit): use new Task API and setting API
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good

This commit is contained in:
2023-06-20 17:43:31 +02:00
parent 4c86a315dd
commit b3ea32f4bc
34 changed files with 34 additions and 42 deletions

View File

@ -8,3 +8,4 @@ This package is used mainly by the File application to communicate with differen
file hosting protocols
## Change logs
* v0.1.1-b Use new Task API for tracking task

View File

@ -8,3 +8,4 @@ This package is used mainly by the File application to communicate with differen
file hosting protocols
## Change logs
* v0.1.1-b Use new Task API for tracking task

View File

@ -6,7 +6,7 @@
"author": "Dany LE",
"email": "mrsang@iohub.dev"
},
"version": "0.1.0-b",
"version": "0.1.1-b",
"category": "Library",
"iconclass": "fa fa-cog",
"mimes": [

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -38,15 +38,11 @@ namespace OS {
return this.info.mimeType === "application/vnd.google-apps.folder";
}
private load(promise: Promise<any>): Promise<any> {
const q = API.mid();
return new Promise(async (resolve, reject) => {
API.loading(q, "GAPI");
return API.Task(async (resolve, reject) => {
try {
let ret = await promise;
API.loaded(q, "GAPI", "OK");
return resolve(ret);
} catch (e) {
API.loaded(q, "GAPI", "FAIL");
return reject(__e(e));
}
});
@ -494,7 +490,6 @@ namespace OS {
}
var o = ($('<input>')).attr('type', 'file').css("display", "none");
o.on("change", async () => {
//Ant.OS.API.loading q, p
const fo = (o[0] as HTMLInputElement).files[0];
const file = (this.child(fo.name)).asFileHandle();
file.cache = fo;

View File

@ -6,7 +6,7 @@
"author": "Dany LE",
"email": "mrsang@iohub.dev"
},
"version": "0.1.0-b",
"version": "0.1.1-b",
"category": "Library",
"iconclass": "fa fa-cog",
"mimes": [