Fix memory usage and leak. Set new layouts. Use latest supoorted node by electron

This commit is contained in:
AlphaX-Projects 2022-10-18 18:54:27 +02:00
parent 44e472da0d
commit 53dd15f841
8 changed files with 228 additions and 230 deletions

View File

@ -4,7 +4,7 @@ const server = require('./server.js');
const log = require('electron-log'); const log = require('electron-log');
const path = require('path'); const path = require('path');
// THOUGHTS: Make this APP more modularize and platform agnostic... app.commandLine.appendSwitch('js-flags', '--max-old-space-size=512')
process.env['APP_PATH'] = app.getAppPath(); process.env['APP_PATH'] = app.getAppPath();

View File

@ -32,17 +32,17 @@
"publish": "electron-builder -p always" "publish": "electron-builder -p always"
}, },
"dependencies": { "dependencies": {
"electron-updater": "5.2.1", "electron-log": "4.4.8",
"electron-log": "4.4.8" "electron-updater": "5.2.1"
}, },
"devDependencies": { "devDependencies": {
"electron": "21.0.1", "electron": "21.1.1",
"electron-builder": "23.3.3", "electron-builder": "23.3.3",
"electron-notarize": "1.2.1", "electron-notarize": "1.2.1",
"electron-packager": "16.0.0", "electron-packager": "16.0.0",
"shelljs": "0.8.5" "shelljs": "0.8.5"
}, },
"engines": { "engines": {
"node": ">=14.17.0" "node": ">=16.15.0"
} }
} }

View File

@ -1,7 +1,8 @@
const styles = { const styles = {
breakpoints: { breakpoints: {
tablet: '',
desktop: '', desktop: '',
laptop: '',
tablet: '',
mobile: '' mobile: ''
}, },
theme: { theme: {
@ -36,5 +37,4 @@ const styles = {
] ]
} }
} }
module.exports = styles module.exports = styles

View File

@ -3,7 +3,7 @@ const path = require('path')
const user = { const user = {
node: 0, node: 0,
nodeSettings: { nodeSettings: {
pingInterval: 10 * 1000, // (10 secs) pingInterval: 30 * 1000,
}, },
server: { server: {
writeHosts: { writeHosts: {
@ -27,7 +27,7 @@ const user = {
}, },
}, },
constants: { constants: {
pollingInterval: 10000, // How long between checking for new unconfirmed transactions and new blocks (in milliseconds). pollingInterval: 30 * 1000, // How long between checking for new unconfirmed transactions and new blocks (in milliseconds).
workerURL: '/build/worker.js', workerURL: '/build/worker.js',
}, },
@ -43,5 +43,4 @@ const user = {
}, },
}, },
} }
module.exports = user module.exports = user

View File

@ -53,21 +53,21 @@
"@polymer/paper-spinner": "3.0.2", "@polymer/paper-spinner": "3.0.2",
"@polymer/paper-toast": "3.0.1", "@polymer/paper-toast": "3.0.1",
"@polymer/paper-tooltip": "3.0.1", "@polymer/paper-tooltip": "3.0.1",
"@rollup/plugin-alias": "3.1.9", "@rollup/plugin-alias": "4.0.0",
"@rollup/plugin-babel": "5.3.1", "@rollup/plugin-babel": "6.0.0",
"@rollup/plugin-commonjs": "22.0.2", "@rollup/plugin-commonjs": "23.0.0",
"@rollup/plugin-node-resolve": "14.1.0", "@rollup/plugin-node-resolve": "15.0.0",
"@rollup/plugin-replace": "4.0.0", "@rollup/plugin-replace": "5.0.0",
"@vaadin/grid": "23.2.3", "@vaadin/grid": "23.2.5",
"@vaadin/icons": "23.2.3", "@vaadin/icons": "23.2.5",
"@vaadin/password-field": "23.2.3", "@vaadin/password-field": "23.2.5",
"asmcrypto.js": "2.3.2", "asmcrypto.js": "2.3.2",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"epml": "0.3.3", "epml": "0.3.3",
"file-saver": "2.0.5", "file-saver": "2.0.5",
"lit": "2.3.1", "lit": "2.4.0",
"lit-translate": "2.0.1", "lit-translate": "2.0.1",
"postcss": "8.4.17", "postcss": "8.4.18",
"pwa-helpers": "0.9.1", "pwa-helpers": "0.9.1",
"random-sentence-generator": "0.0.8", "random-sentence-generator": "0.0.8",
"redux": "4.2.0", "redux": "4.2.0",
@ -80,6 +80,6 @@
"rollup-plugin-terser": "7.0.2" "rollup-plugin-terser": "7.0.2"
}, },
"engines": { "engines": {
"node": ">=14.17.0" "node": ">=16.15.0"
} }
} }

View File

@ -1,6 +1,7 @@
$mdc-layout-grid-breakpoints: ( $mdc-layout-grid-breakpoints: (
desktop: 960px, desktop: 1440px,
tablet: 480px, laptop: 1240px,
tablet: 600px,
phone: 0px phone: 0px
); );
@ -10,8 +11,6 @@ $mdc-layout-grid-breakpoints: (
--layout-breakpoint-mobile: #{map-get($mdc-layout-grid-breakpoints, phone)}; --layout-breakpoint-mobile: #{map-get($mdc-layout-grid-breakpoints, phone)};
} }
// @import '../../node_modules/@material/layout-grid/mdc-layout-grid.scss';
iframe.pluginJSFrame { iframe.pluginJSFrame {
display:none; display:none;
} }

View File

@ -23,6 +23,6 @@
"lodash": "4.17.21" "lodash": "4.17.21"
}, },
"engines": { "engines": {
"node": ">=14.17.0" "node": ">=16.15.0"
} }
} }

View File

@ -41,18 +41,18 @@
"@polymer/paper-slider": "3.0.1", "@polymer/paper-slider": "3.0.1",
"@polymer/paper-spinner": "3.0.2", "@polymer/paper-spinner": "3.0.2",
"@polymer/paper-tooltip": "3.0.1", "@polymer/paper-tooltip": "3.0.1",
"@rollup/plugin-alias": "3.1.9", "@rollup/plugin-alias": "4.0.0",
"@rollup/plugin-babel": "5.3.1", "@rollup/plugin-babel": "6.0.0",
"@rollup/plugin-commonjs": "22.0.2", "@rollup/plugin-commonjs": "23.0.0",
"@rollup/plugin-node-resolve": "14.1.0", "@rollup/plugin-node-resolve": "15.0.0",
"@rollup/plugin-replace": "4.0.0", "@rollup/plugin-replace": "5.0.0",
"@vaadin/button": "23.2.3", "@vaadin/button": "23.2.5",
"@vaadin/grid": "23.2.3", "@vaadin/grid": "23.2.5",
"@vaadin/icons": "23.2.3", "@vaadin/icons": "23.2.5",
"epml": "0.3.3", "epml": "0.3.3",
"file-saver": "2.0.5", "file-saver": "2.0.5",
"html-escaper": "3.0.3", "html-escaper": "3.0.3",
"lit": "2.3.1", "lit": "2.4.0",
"lit-translate": "2.0.1", "lit-translate": "2.0.1",
"rollup": "2.79.1", "rollup": "2.79.1",
"rollup-plugin-node-globals": "1.4.0", "rollup-plugin-node-globals": "1.4.0",
@ -60,6 +60,6 @@
"rollup-plugin-terser": "7.0.2" "rollup-plugin-terser": "7.0.2"
}, },
"engines": { "engines": {
"node": ">=14.17.0" "node": ">=16.15.0"
} }
} }