Skip to content

Commit

Permalink
Merge branch 'mcdu-adjustments' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ssewell authored Nov 3, 2024
2 parents 2789e15 + 20bec8a commit f18621a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions apps/mcdu/src/assets/css/McduScreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
.fullscreen .screen {
left: 0;
width: 100%;
transform: scaleX(1.35);
}

.label {
Expand Down
30 changes: 18 additions & 12 deletions apps/server/src/utilities/systray.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,25 @@ export class SysTrayService implements OnApplicationShutdown {
private hidden = this.serverConf.hidden;

private remoteDisplayItem: MenuItemClickable = {
title: 'Remote Displays',
tooltip: 'Open remote displays',
items: [
{
title: 'Open MCDU',
tooltip: 'Open the MCDU remote display with your default browser, using your local IP',
enabled: true,
click: async () => {
open(`http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}/interfaces/mcdu`);
title: 'Remote Displays',
tooltip: 'Open remote displays',
items: [{
title: 'Open MCDU',
tooltip: 'Open the MCDU remote display with your default browser, using your local IP',
enabled: true,
click: async () => {
open(`http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}/interfaces/mcdu`);
},
},
},
],
};
{
title: 'Open MCDU (4:3)',
tooltip: 'Open the MCDU remote display with your default browser (in 4:3 mode), using your local IP',
enabled: true,
click: async () => {
open(`http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}/interfaces/mcdu/?43`);
},
}],
};

private resourcesFolderItem: MenuItemClickable = {
title: 'Open Resources Folder',
Expand Down

0 comments on commit f18621a

Please sign in to comment.