improve antdedit output log display

This commit is contained in:
lxsang 2021-12-06 12:30:26 +01:00
parent 98335a2a51
commit 0a78663551
8 changed files with 18 additions and 5 deletions

View File

@ -6,6 +6,7 @@ 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.1.14-b: improve output log display
- 0.1.13-b: Allow file upload in file view, add menu context in tabbar - 0.1.13-b: Allow file upload in file view, add menu context in tabbar
- 0.1.12-b: fix recent files not adding correctly - 0.1.12-b: fix recent files not adding correctly
- 0.1.11-b: fix file type parsing from path - 0.1.11-b: fix file type parsing from path

View File

@ -6,6 +6,7 @@ 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.1.14-b: improve output log display
- 0.1.13-b: Allow file upload in file view, add menu context in tabbar - 0.1.13-b: Allow file upload in file view, add menu context in tabbar
- 0.1.12-b: fix recent files not adding correctly - 0.1.12-b: fix recent files not adding correctly
- 0.1.11-b: fix file type parsing from path - 0.1.11-b: fix file type parsing from path

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.1.13-b", "version": "0.1.14-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.1.13-b", "version": "0.1.14-b",
"category": "Development", "category": "Development",
"iconclass": "bi bi-journal-code", "iconclass": "bi bi-journal-code",
"mimes": [ "mimes": [

View File

@ -1465,7 +1465,18 @@ namespace OS {
* @memberof Logger * @memberof Logger
*/ */
print(s: string | FormattedString): void { print(s: string | FormattedString): void {
this.log("info", s, false); if(s.match(/warn/i))
{
this.log("warn", s, false);
}
else if(s.match(/error/i))
{
this.log("error", s, false);
}
else
{
this.log("info", s, false);
}
} }
/** /**

View File

@ -45,7 +45,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antedit/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antedit/README.md",
"category": "Development", "category": "Development",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.1.13-b", "version": "0.1.14-b",
"dependencies": ["MonacoCore@0.23.0-r"], "dependencies": ["MonacoCore@0.23.0-r"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antedit/build/release/Antedit.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antedit/build/release/Antedit.zip"
}, },