mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-24 17:59:45 +02:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user