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 { autoUpdater } = require("electron-updater");
|
||||||
const { ElectronBlocker } = require("@cliqz/adblocker-electron");
|
const { ElectronBlocker } = require("@cliqz/adblocker-electron");
|
||||||
const fetch = require("cross-fetch");
|
const fetch = require("cross-fetch");
|
||||||
|
const openAboutWindow = require("about-window").default;
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
function getValueOrDefault(key, defaultValue) {
|
function getValueOrDefault(key, defaultValue) {
|
||||||
const value = store.get(key);
|
const value = store.get(key);
|
||||||
@@ -116,7 +118,23 @@ const menulayout = [
|
|||||||
{
|
{
|
||||||
label: app.name,
|
label: app.name,
|
||||||
submenu: [
|
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",
|
label: "Learn More",
|
||||||
click: async () => {
|
click: async () => {
|
||||||
@@ -158,7 +176,18 @@ const menulayout = [
|
|||||||
{
|
{
|
||||||
label: "About MS-365-Electron",
|
label: "About MS-365-Electron",
|
||||||
click: () => {
|
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": {
|
"dependencies": {
|
||||||
"@cliqz/adblocker-electron": "^1.26.6",
|
"@cliqz/adblocker-electron": "^1.26.6",
|
||||||
"@xhayper/discord-rpc": "^1.0.17",
|
"@xhayper/discord-rpc": "^1.0.17",
|
||||||
|
"about-window": "^1.15.2",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"check-internet-connected": "^2.0.6",
|
"check-internet-connected": "^2.0.6",
|
||||||
"cross-fetch": "^3.1.6",
|
"cross-fetch": "^3.1.6",
|
||||||
|
|||||||
@@ -524,6 +524,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"acorn-jsx@npm:^5.3.2":
|
||||||
version: 5.3.2
|
version: 5.3.2
|
||||||
resolution: "acorn-jsx@npm:5.3.2"
|
resolution: "acorn-jsx@npm:5.3.2"
|
||||||
@@ -2744,6 +2751,7 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@cliqz/adblocker-electron": ^1.26.6
|
"@cliqz/adblocker-electron": ^1.26.6
|
||||||
"@xhayper/discord-rpc": ^1.0.17
|
"@xhayper/discord-rpc": ^1.0.17
|
||||||
|
about-window: ^1.15.2
|
||||||
axios: ^1.4.0
|
axios: ^1.4.0
|
||||||
check-internet-connected: ^2.0.6
|
check-internet-connected: ^2.0.6
|
||||||
cross-fetch: ^3.1.6
|
cross-fetch: ^3.1.6
|
||||||
|
|||||||
Reference in New Issue
Block a user