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. The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself. Extension can be developed/released/isntalled by the editor itself.
### Change logs ### 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: 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.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars - 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. The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself. Extension can be developed/released/isntalled by the editor itself.
### Change logs ### 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: 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.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars - 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", "author": "Xuan Sang LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version": "0.2.4-b", "version": "0.2.5-b",
"category": "Development", "category": "Development",
"iconclass": "bi bi-journal-code", "iconclass": "bi bi-journal-code",
"mimes": [ "mimes": [

Binary file not shown.

View File

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

View File

@ -561,7 +561,7 @@ namespace OS {
this.loadExtensionMetaData(); this.loadExtensionMetaData();
this.toggleSideBar(); this.toggleSideBar();
this.toggleSplitMode(); this.toggleSplitMode();
this.applyAllSetting(); //this.applyAllSetting();
} }
/** /**
@ -718,7 +718,7 @@ namespace OS {
showOutput(toggle: boolean = false): void { showOutput(toggle: boolean = false): void {
if (toggle) if (toggle)
this.showBottomBar(true); this.setting.showBottomBar = true;
this.bottombar.selectedIndex = 0; this.bottombar.selectedIndex = 0;
} }
@ -749,7 +749,6 @@ namespace OS {
* @memberof Antedit * @memberof Antedit
*/ */
public showBottomBar(v: boolean): void { public showBottomBar(v: boolean): void {
this.setting.showBottomBar = v;
if (v) { if (v) {
$(this.bottombar).show(); $(this.bottombar).show();
} }
@ -765,7 +764,7 @@ namespace OS {
* @memberof Antedit * @memberof Antedit
*/ */
private toggleBottomBar(): void { 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. CodePad is a text editor based on the ACE editor.
## Change logs ## 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.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package - 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. CodePad is a text editor based on the ACE editor.
## Change logs ## 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.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package - 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", "email": "xsang.le@gmail.com",
"licences": "GPLv3" "licences": "GPLv3"
}, },
"version":"0.1.6-b", "version":"0.1.7-b",
"category":"Development", "category":"Development",
"iconclass":"fa fa-pencil-square-o", "iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"], "dependencies": ["ACECore@1.4.12-r"],

Binary file not shown.

View File

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

View File

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

View File

@ -6,7 +6,7 @@
"name": "batch", "name": "batch",
"data": { "data": {
"target": "release", "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", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/README.md",
"category": "Development", "category": "Development",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.2.4-b", "version": "0.2.5-b",
"dependencies": ["MonacoCore@0.33.0-r"], "dependencies": ["MonacoCore@0.33.0-r"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/build/release/Antedit.zip" "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"], "dependencies": ["Antunnel@0.2.0-b"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/AntunnelPlugins/build/release/AntunnelPlugins.zip" "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", "pkgname": "Archive",
"name": "Archive", "name": "Archive",
@ -95,7 +85,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Blogger/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Blogger/README.md",
"category": "Internet", "category": "Internet",
"author": "Xuan Sang LE", "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"], "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" "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", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/CodePad/README.md",
"category": "Development", "category": "Development",
"author": "Xuan Sang LE", "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"], "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" "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", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/README.md",
"category": "System", "category": "System",
"author": "", "author": "",
"version": "0.1.11-a", "version": "0.1.12-a",
"dependencies": ["Antunnel@0.2.1-b"],"version":"0.1.11-a","category":"System","iconclass":"fafa-tachometer","mimes":["none"], "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" "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", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/vfsx/README.md",
"category": "Library", "category": "Library",
"author": "Dany LE", "author": "Dany LE",
"version": "0.1.0-b", "version": "0.1.1-b",
"dependencies": [], "dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/vfsx/build/release/vfsx.zip" "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. The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself. Extension can be developed/released/isntalled by the editor itself.
### Change logs ### 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: 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.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars - 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. CodePad is a text editor based on the ACE editor.
## Change logs ## 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.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package - 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 file hosting protocols
## Change logs ## 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 file hosting protocols
## Change logs ## 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 file hosting protocols
## Change logs ## Change logs
* v0.1.1-b Use new Task API for tracking task

View File

@ -6,7 +6,7 @@
"author": "Dany LE", "author": "Dany LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version": "0.1.0-b", "version": "0.1.1-b",
"category": "Library", "category": "Library",
"iconclass": "fa fa-cog", "iconclass": "fa fa-cog",
"mimes": [ "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"; return this.info.mimeType === "application/vnd.google-apps.folder";
} }
private load(promise: Promise<any>): Promise<any> { private load(promise: Promise<any>): Promise<any> {
const q = API.mid(); return API.Task(async (resolve, reject) => {
return new Promise(async (resolve, reject) => {
API.loading(q, "GAPI");
try { try {
let ret = await promise; let ret = await promise;
API.loaded(q, "GAPI", "OK");
return resolve(ret); return resolve(ret);
} catch (e) { } catch (e) {
API.loaded(q, "GAPI", "FAIL");
return reject(__e(e)); return reject(__e(e));
} }
}); });
@ -494,7 +490,6 @@ namespace OS {
} }
var o = ($('<input>')).attr('type', 'file').css("display", "none"); var o = ($('<input>')).attr('type', 'file').css("display", "none");
o.on("change", async () => { o.on("change", async () => {
//Ant.OS.API.loading q, p
const fo = (o[0] as HTMLInputElement).files[0]; const fo = (o[0] as HTMLInputElement).files[0];
const file = (this.child(fo.name)).asFileHandle(); const file = (this.child(fo.name)).asFileHandle();
file.cache = fo; file.cache = fo;

View File

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