Skip to content

Commit

Permalink
Merge pull request #47 from Omniaevo/develop
Browse files Browse the repository at this point in the history
Home redesign
  • Loading branch information
BlazeRed authored Sep 24, 2024
2 parents 8bf679b + 2cd5f74 commit c209e0b
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 318 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mqtt5-explorer",
"version": "1.14.0",
"version": "1.15.0",
"private": false,
"license": "GPLv3",
"description": "A simple MQTT client that supports MQTT5 protocol.",
Expand Down
37 changes: 24 additions & 13 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ let menuTemplate = (page = pages.HOME) => [
label: "Copy",
role: "copy",
},
{
label: "Paste",
role: "paste",
},
{
label: "Cut",
role: "cut",
},
{
label: "Paste",
role: "paste",
},
...(page === pages.HOME && !isMac
? [
{
Expand All @@ -141,11 +141,13 @@ let menuTemplate = (page = pages.HOME) => [
},
]
: []),
...(page === pages.VIEWER
? [
{
type: "separator",
},
],
},
...(page === pages.VIEWER
? [
{
label: "Tools",
submenu: [
{
label: "Toggle search",
accelerator: "CommandOrControl+F",
Expand All @@ -155,10 +157,19 @@ let menuTemplate = (page = pages.HOME) => [
}
},
},
]
: []),
],
},
{
label: "Toggle logging",
accelerator: "CommandOrControl+Shift+N",
click: () => {
if (win != undefined && win.webContents != undefined) {
win.webContents.send("notificationPressed");
}
},
},
],
},
]
: []),
...(!isMac
? [
{
Expand Down
Loading

0 comments on commit c209e0b

Please sign in to comment.