mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 13:32:42 +01:00
feat: Added [Tidal Magazine](https://tidal.com/magazine/) integration (in the menubar or use )
This commit is contained in:
parent
9321acc06e
commit
ecbfa7e226
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- API now allows you to set the `hostname` so you can control who can interact with the API.
|
- API now allows you to set the `hostname` so you can control who can interact with the API.
|
||||||
- Reworked swagger generation hotfix to properly generate `swagger.json` during the compile step
|
- Reworked swagger generation hotfix to properly generate `swagger.json` during the compile step
|
||||||
- Might switch to tsoa in the future, idk yet.
|
- Might switch to tsoa in the future, idk yet.
|
||||||
|
- Added [Tidal Magazine](https://tidal.com/magazine/) integration (in the menubar or use `Ctrl + M`)
|
||||||
|
|
||||||
## [5.13.1]
|
## [5.13.1]
|
||||||
|
|
||||||
|
@ -11,6 +11,23 @@ const settingsMenuEntry = {
|
|||||||
accelerator: "Control+=",
|
accelerator: "Control+=",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const tidalMagazineEntry = {
|
||||||
|
label: "Magazine",
|
||||||
|
click() {
|
||||||
|
const magazineWindow = new BrowserWindow({
|
||||||
|
autoHideMenuBar: true,
|
||||||
|
webPreferences: {
|
||||||
|
sandbox: false,
|
||||||
|
plugins: true,
|
||||||
|
devTools: true, // I like tinkering, others might too
|
||||||
|
},
|
||||||
|
});
|
||||||
|
magazineWindow.loadURL("https://tidal.com/magazine/");
|
||||||
|
magazineWindow.show();
|
||||||
|
},
|
||||||
|
accelerator: "Control+M",
|
||||||
|
};
|
||||||
|
|
||||||
const quitMenuEntry = {
|
const quitMenuEntry = {
|
||||||
label: "Quit",
|
label: "Quit",
|
||||||
click() {
|
click() {
|
||||||
@ -41,6 +58,7 @@ export const getMenu = function (mainWindow: BrowserWindow) {
|
|||||||
{ role: "hideothers" },
|
{ role: "hideothers" },
|
||||||
{ role: "unhide" },
|
{ role: "unhide" },
|
||||||
{ type: "separator" },
|
{ type: "separator" },
|
||||||
|
tidalMagazineEntry,
|
||||||
quitMenuEntry,
|
quitMenuEntry,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -48,7 +66,7 @@ export const getMenu = function (mainWindow: BrowserWindow) {
|
|||||||
: []),
|
: []),
|
||||||
{
|
{
|
||||||
label: "File",
|
label: "File",
|
||||||
submenu: [settingsMenuEntry, isMac ? { role: "close" } : quitMenuEntry],
|
submenu: [settingsMenuEntry, tidalMagazineEntry, isMac ? { role: "close" } : quitMenuEntry],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Edit",
|
label: "Edit",
|
||||||
@ -101,6 +119,7 @@ export const getMenu = function (mainWindow: BrowserWindow) {
|
|||||||
},
|
},
|
||||||
settingsMenuEntry,
|
settingsMenuEntry,
|
||||||
toggleWindow,
|
toggleWindow,
|
||||||
|
tidalMagazineEntry,
|
||||||
quitMenuEntry,
|
quitMenuEntry,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user