* refactor(log): Refactor logging service Removed the InjectionToken and changed LogService as default logger. Finally ElectronLogService implements LogService directly. * refactor: Optimize imports * fix(app-update): Add missing rxjs imports * style: Remove extra line * refactor(store): Move app.actions.ts to shared module * feat(notification): Add notification panel Add angular-notifier to the app and created the ShowNotificationAction to manage notifications * style(notification): Fix tslint suggestion * fix(notification): Add missing rxjs imports
This commit is contained in:
committed by
László Monda
parent
6bc2bc8331
commit
c9a1e9853c
44
shared/src/models/angular-notifier-config.ts
Normal file
44
shared/src/models/angular-notifier-config.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { NotifierOptions } from 'angular-notifier';
|
||||
|
||||
export const angularNotifierConfig: NotifierOptions = {
|
||||
position: {
|
||||
|
||||
horizontal: {
|
||||
|
||||
/**
|
||||
* Defines the horizontal position on the screen
|
||||
* @type {'left' | 'middle' | 'right'}
|
||||
*/
|
||||
position: 'right',
|
||||
|
||||
/**
|
||||
* Defines the horizontal distance to the screen edge (in px)
|
||||
* @type {number}
|
||||
*/
|
||||
distance: 12
|
||||
|
||||
},
|
||||
|
||||
vertical: {
|
||||
|
||||
/**
|
||||
* Defines the vertical position on the screen
|
||||
* @type {'top' | 'bottom'}
|
||||
*/
|
||||
position: 'top',
|
||||
|
||||
/**
|
||||
* Defines the vertical distance to the screen edge (in px)
|
||||
* @type {number}
|
||||
*/
|
||||
distance: 12,
|
||||
|
||||
/**
|
||||
* Defines the vertical gap, existing between multiple notifications (in px)
|
||||
* @type {number}
|
||||
*/
|
||||
gap: 10
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user