UI improvement + use lastest boostrap icon

- Update bootstrap icons to latest
- Redesign system tray for services monitoring
- Improve UI + bug fix on default packages
This commit is contained in:
DanyLE
2023-01-01 02:44:15 +01:00
committed by Dany LE
parent 303fc9ba20
commit 03cee726ed
17 changed files with 589 additions and 132 deletions

View File

@ -55,10 +55,10 @@ namespace OS {
/**
* Text of the service shown in the system tray
*
* @type {string}
* @type {string | FormattedString}
* @memberof BaseService
*/
text: string;
text: string | FormattedString;
/**
* Reference to the menu entry DOM element attached
@ -79,13 +79,6 @@ namespace OS {
*/
private timer: number;
/**
* Reference to the system tray menu
*
* @type {HTMLElement}
* @memberof BaseService
*/
holder: HTMLElement;
/**
* Placeholder for service select callback
@ -108,7 +101,6 @@ namespace OS {
this.iconclass = "fa fa-paper-plane-o";
this.text = "";
this.timer = undefined;
this.holder = undefined;
this.onmenuselect = (d) => {
return this.awake(d);
};
@ -140,7 +132,9 @@ namespace OS {
* @memberof BaseService
*/
update(): void {
(this.domel as GUI.tag.MenuEntryTag).data = this;
if(!this.domel)
return;
(this.domel as GUI.tag.ListViewItemTag).data = this;
}
/**
@ -153,17 +147,6 @@ namespace OS {
return application[this.name].meta;
}
/**
* Attach the service to a menu element
* such as the system tray menu
*
* @param {HTMLElement} h
* @memberof BaseService
*/
attach(h: HTMLElement): void {
this.holder = h;
}
/**
* Set the callback that will be called periodically
* after a period of time.