refactor(package): clean up and organize package json changes
refactor(menu): introduce changes to the entered menu
This commit is contained in:
parent
43d88a0a9c
commit
87ccf83941
15
app/menu.js
15
app/menu.js
|
@ -4,7 +4,7 @@ import { openExternal } from './utils/open-external';
|
|||
import packageJson from '../package.json';
|
||||
|
||||
const DOCS_URL = 'https://zepiowallet.com/';
|
||||
const REPOSITORY_URL = 'https://github.com/ZcashFoundation/zepio/issues/new';
|
||||
const REPOSITORY_URL = 'https://github.com/ZcashFoundation/zepio/issues';
|
||||
|
||||
const menu = [
|
||||
{
|
||||
|
@ -16,7 +16,6 @@ const menu = [
|
|||
{ role: 'cut' },
|
||||
{ role: 'copy' },
|
||||
{ role: 'paste' },
|
||||
{ role: 'pasteandmatchstyle' },
|
||||
{ role: 'delete' },
|
||||
{ role: 'selectall' },
|
||||
],
|
||||
|
@ -24,15 +23,7 @@ const menu = [
|
|||
{
|
||||
label: 'View',
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forcereload' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetzoom' },
|
||||
{ role: 'zoomin' },
|
||||
{ role: 'zoomout' },
|
||||
{ role: 'togglefullscreen' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'toggledevtools' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
@ -78,10 +69,6 @@ if (process.platform === 'darwin') {
|
|||
...helpMenu,
|
||||
submenu: [
|
||||
...helpMenu.submenu,
|
||||
{
|
||||
label: 'Speech',
|
||||
submenu: [{ role: 'startspeaking' }, { role: 'stopspeaking' }],
|
||||
},
|
||||
],
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -65,8 +65,7 @@ const createWindow = () => {
|
|||
frame: true,
|
||||
resizable: true,
|
||||
webPreferences: {
|
||||
devTools: true,
|
||||
// devTools: false,
|
||||
devTools: false,
|
||||
webSecurity: true,
|
||||
},
|
||||
});
|
||||
|
|
163
package.json
163
package.json
|
@ -1,10 +1,23 @@
|
|||
{
|
||||
"name": "zepio",
|
||||
"productName": "Zepio",
|
||||
"version": "0.6.2",
|
||||
"description": "Zepio",
|
||||
"description": "Zepio | Cross-platform sapling-enabled full-node Zcash wallet",
|
||||
"main": "config/main.js",
|
||||
"license": "MIT",
|
||||
"homepage": "https://zepiowallet.com",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"name": "André Neves",
|
||||
"email": "andrerfneves@protonmail.com",
|
||||
"url": "https://andrenev.es"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ZcashFoundation/zepio/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ZcashFoundation/zepio"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "yarn check --integrity && concurrently \"cross-env BROWSER=none yarn dev\" \"wait-on http://0.0.0.0:8080 && yarn electron:dev\"",
|
||||
"dev": "webpack-dev-server --config config/webpack-dev.config.js --mode development --open --hot",
|
||||
|
@ -32,12 +45,77 @@
|
|||
"e2e:serve": "node -r @babel/register ./__tests__/setup/mockAPI.js",
|
||||
"e2e:run": "yarn test e2e"
|
||||
},
|
||||
"author": {
|
||||
"name": "André Neves",
|
||||
"email": "andrerfneves@protonmail.com",
|
||||
"url": "https://andrenev.es"
|
||||
"pre-commit": [
|
||||
"flow:generate-coverage-badge",
|
||||
"lint:precommit",
|
||||
"flow:precommit"
|
||||
],
|
||||
"build": {
|
||||
"appId": "com.zcashfoundation",
|
||||
"productName": "Zepio",
|
||||
"asar": true,
|
||||
"directories": {
|
||||
"buildResources": "build",
|
||||
"output": "dist"
|
||||
},
|
||||
"files": [
|
||||
"node_modules/",
|
||||
"services/",
|
||||
"config/",
|
||||
"utils/",
|
||||
"app/",
|
||||
"bin/",
|
||||
"public/",
|
||||
"build/"
|
||||
],
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "bin/",
|
||||
"to": "resources/bin",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"icon": "./build/icons/png",
|
||||
"target": [
|
||||
"deb"
|
||||
]
|
||||
},
|
||||
"mac": {
|
||||
"category": "public.app-category.productivity",
|
||||
"type": "distribution",
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"icon": "./build/icons/mac/icon.icns"
|
||||
},
|
||||
"win": {
|
||||
"target": "nsis",
|
||||
"icon": "./build/icons/win/icon.ico"
|
||||
},
|
||||
"protocols": {
|
||||
"name": "zcash",
|
||||
"schemes": [
|
||||
"zcash"
|
||||
]
|
||||
}
|
||||
},
|
||||
"jest": {
|
||||
"setupFilesAfterEnv": [
|
||||
"<rootDir>/__tests__/setup/jest.js"
|
||||
],
|
||||
"testPathIgnorePatterns": [
|
||||
"<rootDir>/__tests__/setup/"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__tests__/setup/assetTransformer.js"
|
||||
}
|
||||
},
|
||||
"resolutions": {
|
||||
"babel-core": "7.0.0-bridge.0"
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
|
@ -135,76 +213,5 @@
|
|||
"styled-components": "^4.1.1",
|
||||
"styled-theming": "^2.2.0",
|
||||
"uuid": "^3.3.2"
|
||||
},
|
||||
"pre-commit": [
|
||||
"flow:generate-coverage-badge",
|
||||
"lint:precommit",
|
||||
"flow:precommit"
|
||||
],
|
||||
"build": {
|
||||
"appId": "com.zcashfoundation",
|
||||
"productName": "Zepio",
|
||||
"asar": true,
|
||||
"directories": {
|
||||
"buildResources": "build",
|
||||
"output": "dist"
|
||||
},
|
||||
"files": [
|
||||
"node_modules/",
|
||||
"services/",
|
||||
"config/",
|
||||
"utils/",
|
||||
"app/",
|
||||
"bin/",
|
||||
"public/",
|
||||
"build/"
|
||||
],
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "bin/",
|
||||
"to": "resources/bin",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"icon": "./build/icons/png",
|
||||
"target": [
|
||||
"deb"
|
||||
]
|
||||
},
|
||||
"mac": {
|
||||
"category": "public.app-category.productivity",
|
||||
"type": "distribution",
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"icon": "./build/icons/mac/icon.icns"
|
||||
},
|
||||
"win": {
|
||||
"target": "nsis",
|
||||
"icon": "./build/icons/win/icon.ico"
|
||||
},
|
||||
"protocols": {
|
||||
"name": "zcash",
|
||||
"schemes": [
|
||||
"zcash"
|
||||
]
|
||||
}
|
||||
},
|
||||
"jest": {
|
||||
"setupFilesAfterEnv": [
|
||||
"<rootDir>/__tests__/setup/jest.js"
|
||||
],
|
||||
"testPathIgnorePatterns": [
|
||||
"<rootDir>/__tests__/setup/"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__tests__/setup/assetTransformer.js"
|
||||
}
|
||||
},
|
||||
"resolutions": {
|
||||
"babel-core": "7.0.0-bridge.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue