From 5f06d37ae6dc3fd80b393756f214248ff5e42e63 Mon Sep 17 00:00:00 2001 From: yuriy0803 Date: Fri, 9 Sep 2022 17:28:34 +0200 Subject: [PATCH] update --- new-web/nuxt.config.js | 7 ++++- new-web/pages/blocks.vue | 57 +++++++++++++++------------------------- 2 files changed, 27 insertions(+), 37 deletions(-) diff --git a/new-web/nuxt.config.js b/new-web/nuxt.config.js index a8272d3..64bc497 100644 --- a/new-web/nuxt.config.js +++ b/new-web/nuxt.config.js @@ -3,7 +3,7 @@ import config from './params/config.json' export default { server: { - host: '192.168.8.169' // default: localhost + host: '192.168.8.169' // default: localhost sudo npm run dev }, // Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode) ssr: false, @@ -22,6 +22,11 @@ export default { ], link: [{ rel: 'icon', type: 'image/x-icon', href: '/' + config.favicon }], }, + + //The dist folder is named dist by default but can be configured in your nuxt.config file. + generate: { + dir: '/var/www/etc3pool' + }, // Global CSS (https://go.nuxtjs.dev/config-css) css: ['~/scss/main.scss'], diff --git a/new-web/pages/blocks.vue b/new-web/pages/blocks.vue index 0fa073b..0c68c78 100644 --- a/new-web/pages/blocks.vue +++ b/new-web/pages/blocks.vue @@ -23,9 +23,9 @@ {{ key }} - {{ nf.format(item.luck.toFixed(2)) }}% - {{ nf.format((item.uncleRate * 100).toFixed(2)) }}% - {{ nf.format((item.orphanRate * 100).toFixed(2)) }}% + {{ nf.format((item.luck * 100).toFixed(0)) }}% + {{ nf.format((item.uncleRate * 100).toFixed(0)) }}% + {{ nf.format((item.orphanRate * 100).toFixed(0)) }}% @@ -33,46 +33,31 @@ - {{ $t('pages.blocks.blocks') - }}{{ - blocks.maturedTotal - }} - {{ $t('pages.blocks.immature') - }}{{ - blocks.immatureTotal - }} - {{ $t('pages.blocks.newBlocks') - }}{{ - blocks.candidatesTotal - }} + {{ $t('pages.blocks.blocks') + }}{{ + blocks.maturedTotal + }} + + {{ $t('pages.blocks.immature') + }}{{ + blocks.immatureTotal + }} + + {{ $t('pages.blocks.newBlocks') + }}{{ + blocks.candidatesTotal + }} + - + - + - +