mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Welcome back about-window!
This commit is contained in:
BIN
.yarn/cache/about-window-npm-1.15.2-6500c751aa-0e528f6312.zip
vendored
Normal file
BIN
.yarn/cache/about-window-npm-1.15.2-6500c751aa-0e528f6312.zip
vendored
Normal file
Binary file not shown.
33
app/menu.js
33
app/menu.js
@@ -7,6 +7,8 @@ const { shell } = require("electron");
|
||||
const { autoUpdater } = require("electron-updater");
|
||||
const { ElectronBlocker } = require("@cliqz/adblocker-electron");
|
||||
const fetch = require("cross-fetch");
|
||||
const openAboutWindow = require("about-window").default;
|
||||
const path = require("path");
|
||||
|
||||
function getValueOrDefault(key, defaultValue) {
|
||||
const value = store.get(key);
|
||||
@@ -116,7 +118,23 @@ const menulayout = [
|
||||
{
|
||||
label: app.name,
|
||||
submenu: [
|
||||
{ label: "About MS-365-Electron", role: "about" },
|
||||
{
|
||||
label: "About MS-365-Electron",
|
||||
click: () => {
|
||||
openAboutWindow({
|
||||
icon_path: path.join(__dirname, "../assets/about.png"),
|
||||
product_name: "MS-365-Electron",
|
||||
copyright:
|
||||
"Copyright (c) 2021-2023 Agampreet Singh\nMicrosoft 365, the name, website, images/icons\nare the intellectual properties of Microsoft.",
|
||||
package_json_dir: __dirname + "/../",
|
||||
bug_report_url:
|
||||
"https://github.com/agam778/MS-365-Electron/issues/",
|
||||
bug_link_text: "Report an issue",
|
||||
adjust_window_size: "2",
|
||||
show_close_button: "Close",
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Learn More",
|
||||
click: async () => {
|
||||
@@ -158,7 +176,18 @@ const menulayout = [
|
||||
{
|
||||
label: "About MS-365-Electron",
|
||||
click: () => {
|
||||
// placeholder
|
||||
openAboutWindow({
|
||||
icon_path: path.join(__dirname, "../assets/about.png"),
|
||||
product_name: "MS-365-Electron",
|
||||
copyright:
|
||||
"Copyright (c) 2021-2023 Agampreet Singh\nMicrosoft 365, the name, website, images/icons\nare the intellectual properties of Microsoft.",
|
||||
package_json_dir: __dirname + "/../",
|
||||
bug_report_url:
|
||||
"https://github.com/agam778/MS-365-Electron/issues/",
|
||||
bug_link_text: "Report an issue",
|
||||
adjust_window_size: "2",
|
||||
show_close_button: "Close",
|
||||
});
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"dependencies": {
|
||||
"@cliqz/adblocker-electron": "^1.26.6",
|
||||
"@xhayper/discord-rpc": "^1.0.17",
|
||||
"about-window": "^1.15.2",
|
||||
"axios": "^1.4.0",
|
||||
"check-internet-connected": "^2.0.6",
|
||||
"cross-fetch": "^3.1.6",
|
||||
|
||||
@@ -524,6 +524,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"about-window@npm:^1.15.2":
|
||||
version: 1.15.2
|
||||
resolution: "about-window@npm:1.15.2"
|
||||
checksum: 0e528f6312d2dc3801926f056230e5c6c253f4be16449b4c01b115a2dd24e8b6897f8ba8c07880097415936b9c40a04c10954558af3a6d05d76a11d8a07875d8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"acorn-jsx@npm:^5.3.2":
|
||||
version: 5.3.2
|
||||
resolution: "acorn-jsx@npm:5.3.2"
|
||||
@@ -2744,6 +2751,7 @@ __metadata:
|
||||
dependencies:
|
||||
"@cliqz/adblocker-electron": ^1.26.6
|
||||
"@xhayper/discord-rpc": ^1.0.17
|
||||
about-window: ^1.15.2
|
||||
axios: ^1.4.0
|
||||
check-internet-connected: ^2.0.6
|
||||
cross-fetch: ^3.1.6
|
||||
|
||||
Reference in New Issue
Block a user