mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 19:44:21 +00:00
e7633c6d2f
* Replace all mentions of MyEtherWallet in translations with MyCrypto * Replace all translation mentions of kvhnuke/etherwallet repo with MyCryptoHQ/MyCrypto repo. * Replace all instances of MEW with MyCrypto in translations. * Replace all instances of myetherwallet.com with mycrypto.com * First pass of myetherwallet -> mycrypto in codebase. * Replace most MEWs and mews with MyCrypto or MyC or myc * Update all assets, clean out unused old assets. * Adjust v3 url * Convert all links to help articles to a help link component to make future changes easier. * Rework onboarding images * Adjust logo colors due to CMY issue. * Update donation address, remove mentions of mewtopia.eth * Update license * Update sosh meed and referral links. * Fix more translations strings. * Tscheck fix. * Update shapeshift api key.
83 lines
1.6 KiB
TypeScript
83 lines
1.6 KiB
TypeScript
import { MenuItemConstructorOptions, shell } from 'electron';
|
|
import { APP_TITLE, REPOSITORY } from '../constants';
|
|
|
|
const MENU: MenuItemConstructorOptions[] = [
|
|
{
|
|
label: 'Edit',
|
|
submenu: [
|
|
{ role: 'undo' },
|
|
{ role: 'redo' },
|
|
{ type: 'separator' },
|
|
{ role: 'cut' },
|
|
{ role: 'copy' },
|
|
{ role: 'paste' },
|
|
{ role: 'pasteandmatchstyle' },
|
|
{ role: 'delete' },
|
|
{ role: 'selectall' }
|
|
]
|
|
},
|
|
{
|
|
label: 'View',
|
|
submenu: [
|
|
{ role: 'reload' },
|
|
{ role: 'forcereload' },
|
|
{ type: 'separator' },
|
|
{ role: 'resetzoom' },
|
|
{ role: 'zoomin' },
|
|
{ role: 'zoomout' },
|
|
{ role: 'togglefullscreen' },
|
|
{ type: 'separator' },
|
|
{ role: 'toggledevtools' }
|
|
]
|
|
}
|
|
];
|
|
|
|
const HELP_MENU = {
|
|
role: 'help',
|
|
submenu: [
|
|
{
|
|
label: 'Help / FAQ',
|
|
click() {
|
|
shell.openExternal('https://myetherwallet.github.io/knowledge-base/');
|
|
}
|
|
},
|
|
{
|
|
label: 'Report a Bug',
|
|
click() {
|
|
shell.openExternal(`${REPOSITORY}/issues/new`);
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
if (process.platform === 'darwin') {
|
|
MENU.unshift({
|
|
label: APP_TITLE,
|
|
submenu: [
|
|
{ role: 'about' },
|
|
{ type: 'separator' },
|
|
{ role: 'hide' },
|
|
{ role: 'hideothers' },
|
|
{ role: 'unhide' },
|
|
{ type: 'separator' },
|
|
{ role: 'quit' }
|
|
]
|
|
});
|
|
|
|
// Modified help menu
|
|
MENU.push({
|
|
...HELP_MENU,
|
|
submenu: [
|
|
...HELP_MENU.submenu,
|
|
{
|
|
label: 'Speech',
|
|
submenu: [{ role: 'startspeaking' }, { role: 'stopspeaking' }]
|
|
}
|
|
]
|
|
});
|
|
} else {
|
|
MENU.push(HELP_MENU);
|
|
}
|
|
|
|
export default MENU;
|