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:
Dany LE 2023-06-20 17:43:31 +02:00
parent 4c86a315dd
commit b3ea32f4bc
34 changed files with 34 additions and 42 deletions

Binary file not shown.

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.4-b",
"version": "0.2.5-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

Binary file not shown.

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.4-b",
"version": "0.2.5-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

View File

@ -561,7 +561,7 @@ namespace OS {
this.loadExtensionMetaData();
this.toggleSideBar();
this.toggleSplitMode();
this.applyAllSetting();
//this.applyAllSetting();
}
/**
@ -718,7 +718,7 @@ namespace OS {
showOutput(toggle: boolean = false): void {
if (toggle)
this.showBottomBar(true);
this.setting.showBottomBar = true;
this.bottombar.selectedIndex = 0;
}
@ -749,7 +749,6 @@ namespace OS {
* @memberof Antedit
*/
public showBottomBar(v: boolean): void {
this.setting.showBottomBar = v;
if (v) {
$(this.bottombar).show();
}
@ -765,7 +764,7 @@ namespace OS {
* @memberof Antedit
*/
private toggleBottomBar(): void {
this.showBottomBar(!this.setting.showBottomBar);
this.setting.showBottomBar = !this.setting.showBottomBar;
}
/**

Binary file not shown.

View File

@ -3,5 +3,6 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

View File

@ -3,5 +3,6 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.1.6-b",
"version":"0.1.7-b",
"category":"Development",
"iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"],

Binary file not shown.

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.1.6-b",
"version":"0.1.7-b",
"category":"Development",
"iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"],

View File

@ -364,7 +364,7 @@ namespace OS {
}
this.toggleSideBar();
this.toggleSplitMode();
this.applyAllSetting();
//this.applyAllSetting();
}
/**
@ -390,7 +390,7 @@ namespace OS {
this.sdk = new (API as any).AntOSDKBuilder(this.logger,"");
}
this.logger.clear();
this.showBottomBar(true);
this.setting.showBottomBar = true;
// check for meta file
const meta_file = `${this.currdir.path}/build.json`.asFileHandle();
const meta = await meta_file.read("json");
@ -454,7 +454,7 @@ namespace OS {
showOutput(toggle: boolean = false): void {
if (toggle)
this.showBottomBar(true);
this.setting.showBottomBar = true;
this.bottombar.selectedIndex = 0;
}
@ -479,7 +479,6 @@ namespace OS {
* @memberof CodePad
*/
public showBottomBar(v: boolean): void {
this.setting.showBottomBar = v;
if (v) {
$(this.bottombar).show();
}
@ -495,7 +494,7 @@ namespace OS {
* @memberof CodePad
*/
private toggleBottomBar(): void {
this.showBottomBar(!this.setting.showBottomBar);
this.setting.showBottomBar = !this.setting.showBottomBar;
}
private toggleSplitMode(): void {

View File

@ -6,7 +6,7 @@
"name": "batch",
"data": {
"target": "release",
"modules": ["About"]
"modules": ["Blogger"]
}
}
]

View File

@ -45,7 +45,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/README.md",
"category": "Development",
"author": "Xuan Sang LE",
"version": "0.2.4-b",
"version": "0.2.5-b",
"dependencies": ["MonacoCore@0.33.0-r"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/build/release/Antedit.zip"
},
@ -69,16 +69,6 @@
"dependencies": ["Antunnel@0.2.0-b"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/AntunnelPlugins/build/release/AntunnelPlugins.zip"
},
{
"pkgname": "AntunnelTestClient",
"name": "AntunnelTestClient",
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/AntunnelTestClient/README.md",
"category": "Development",
"author": "Dany LE",
"version": "0.1.0-a",
"dependencies": ["Antunnel@0.2.1-b"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/AntunnelTestClient/build/release/AntunnelTestClient.zip"
},
{
"pkgname": "Archive",
"name": "Archive",
@ -95,7 +85,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Blogger/README.md",
"category": "Internet",
"author": "Xuan Sang LE",
"version": "0.2.11-a",
"version": "0.2.12-a",
"dependencies": ["SimpleMDE@2.18.0-r","Katex@0.11.1-r","SQLiteDB@0.1.0-a"],"mimes":["none"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Blogger/build/release/Blogger.zip"
},
@ -125,7 +115,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/CodePad/README.md",
"category": "Development",
"author": "Xuan Sang LE",
"version": "0.1.6-b",
"version": "0.1.7-b",
"dependencies": ["ACECore@1.4.12-r"],"mimes":["text/.*","[^/]*/json.*","[^/]*/.*ml","[^/]*/javascript","dir"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/CodePad/build/release/CodePad.zip"
},
@ -425,8 +415,8 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/README.md",
"category": "System",
"author": "",
"version": "0.1.11-a",
"dependencies": ["Antunnel@0.2.1-b"],"version":"0.1.11-a","category":"System","iconclass":"fafa-tachometer","mimes":["none"],
"version": "0.1.12-a",
"dependencies": ["Antunnel@0.2.1-b"],"version":"0.1.12-a","category":"System","iconclass":"fafa-tachometer","mimes":["none"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/build/release/SystemControl.zip"
},
{
@ -445,7 +435,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/vfsx/README.md",
"category": "Library",
"author": "Dany LE",
"version": "0.1.0-b",
"version": "0.1.1-b",
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/vfsx/build/release/vfsx.zip"
},

Binary file not shown.

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars

Binary file not shown.

Binary file not shown.

View File

@ -3,5 +3,6 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

Binary file not shown.

File diff suppressed because one or more lines are too long

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

Binary file not shown.

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": [