mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-13 14:14:27 +02:00
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
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
@ -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;
|
||||
|
@ -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": [
|
||||
|
Reference in New Issue
Block a user