4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

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 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();

View File

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

View File

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

View File

@ -3,7 +3,7 @@ const path = require('path')
const user = {
node: 0,
nodeSettings: {
pingInterval: 10 * 1000, // (10 secs)
pingInterval: 30 * 1000,
},
server: {
writeHosts: {
@ -27,7 +27,7 @@ const user = {
},
},
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',
},
@ -43,5 +43,4 @@ const user = {
},
},
}
module.exports = user

View File

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

View File

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

View File

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

View File

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