2022-01-05 08:52:42 +00:00
|
|
|
const angApp = (await import('../init.js')).default;
|
2020-05-09 15:07:42 +00:00
|
|
|
|
|
|
|
angApp.factory('SystemService', () => {
|
|
|
|
let systemService = {}
|
|
|
|
|
|
|
|
systemService.playAudio = () => {
|
2020-05-11 19:39:11 +00:00
|
|
|
var audio = new Audio(__dirname + '/../../resources/sounds/graceful.ogg')
|
2020-05-09 15:07:42 +00:00
|
|
|
audio.play()
|
|
|
|
}
|
|
|
|
|
|
|
|
systemService.showEnvelope = () => {
|
2022-01-05 08:52:42 +00:00
|
|
|
api.trayService.showEnvelope()
|
2020-05-09 15:07:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
systemService.hideEnvelope = () => {
|
2022-01-05 08:52:42 +00:00
|
|
|
api.trayService.hideEnvelope()
|
2020-05-09 15:07:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
systemService.reloadWindow = () => {
|
2022-01-05 08:52:42 +00:00
|
|
|
api.reload()
|
2020-05-09 15:07:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return systemService
|
|
|
|
|
|
|
|
})
|