From 26fc642acc411ee7b04a84d913081d5b365ce3c2 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Wed, 26 Jan 2022 08:25:17 -0800 Subject: [PATCH] Clean Code --- qortal-ui-core/config/default.user.config.js | 127 ++++++------------- 1 file changed, 42 insertions(+), 85 deletions(-) diff --git a/qortal-ui-core/config/default.user.config.js b/qortal-ui-core/config/default.user.config.js index b0e6a523..ea0defd7 100644 --- a/qortal-ui-core/config/default.user.config.js +++ b/qortal-ui-core/config/default.user.config.js @@ -1,92 +1,49 @@ const path = require('path') const user = { - // management can be enabled as explicit for public API servers when needed - node: 0, - knownNodes: [ - // Mainnet nodes - { - protocol: 'http', - domain: '127.0.0.1', - port: 12391, - enableManagement: true, - }, - { - protocol: 'http', - domain: 'node1.qortal.org', - port: 12391, - enableManagement: false, - }, - { - protocol: 'http', - domain: 'node2.qortal.org', - port: 12391, - enableManagement: false, - }, - // Testnet nodes - { - protocol: 'http', - domain: '127.0.0.1', - port: 62391, - enableManagement: false, - }, - { - protocol: 'http', - domain: 'node1.qortal.org', - port: 62391, - enableManagement: false, - }, - { - protocol: 'http', - domain: 'node2.qortal.org', - port: 62391, - enableManagement: false, - }, - - ], - nodeSettings: { - pingInterval: 10 * 1000, // (10 secs) - }, - version: 'v1.6.3', // TODO: Set this dynamically... - language: 'english', // default...english - theme: 'light', - server: { - writeHosts: { - enabled: true, - }, - relativeTo: path.join(__dirname, '../'), - primary: { - domain: '0.0.0.0', - address: '0.0.0.0', - port: 12388, - directory: './src/', - page404: './src/404.html', - host: '0.0.0.0', - }, - }, - tls: { - enabled: false, - options: { - key: '', - cert: '', - }, - }, - constants: { - pollingInterval: 10000, // How long between checking for new unconfirmed transactions and new blocks (in milliseconds). - workerURL: '/build/worker.js', - }, + node: 0, + nodeSettings: { + pingInterval: 10 * 1000, // (10 secs) + }, + language: 'english', // default...english + theme: 'light', + server: { + writeHosts: { + enabled: true, + }, + relativeTo: path.join(__dirname, '../'), + primary: { + domain: '0.0.0.0', + address: '0.0.0.0', + port: 12388, + directory: './src/', + page404: './src/404.html', + host: '0.0.0.0', + }, + }, + tls: { + enabled: false, + options: { + key: '', + cert: '', + }, + }, + constants: { + pollingInterval: 10000, // How long between checking for new unconfirmed transactions and new blocks (in milliseconds). + workerURL: '/build/worker.js', + }, - // Notification Settings (All defaults to true) - notifications: { - q_chat: { - playSound: true, - showNotification: true, - }, - block: { - playSound: true, - showNotification: true, - }, - }, + // Notification Settings (All defaults to true) + notifications: { + q_chat: { + playSound: true, + showNotification: true, + }, + block: { + playSound: true, + showNotification: true, + }, + }, } module.exports = user