From 424b92a9385d797e226cf1c83af63a51a2f9a64c Mon Sep 17 00:00:00 2001 From: Pierre-Jean CHANCELLIER <paidge_cs@hotmail.com> Date: Thu, 20 Jan 2022 14:14:14 +0100 Subject: [PATCH] add min to the hour of the actual block --- components/navigation/menu/Sidebar.vue | 2 +- i18n/locales/dateTimeFormats.js | 9 +++++++++ i18n/locales/en.json | 4 ++-- i18n/locales/es.json | 4 ++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/components/navigation/menu/Sidebar.vue b/components/navigation/menu/Sidebar.vue index 882d101..67472f9 100644 --- a/components/navigation/menu/Sidebar.vue +++ b/components/navigation/menu/Sidebar.vue @@ -7,7 +7,7 @@ </nuxt-link> <div class="d-flex text-info justify-content-between align-items-baseline mt-3 mx-2"> <div class="">v0.02</div> - <div class="small" v-if="countMax">Bloc n°<span class="font-weight-bold">{{ countMax.number }}</span> ({{ $d(new Date(countMax.utc0*1000), 'short') }} {{ $t('time.a') }} {{ $d(new Date(countMax.utc0*1000), 'hour') }})</div> + <div class="small" v-if="countMax">Bloc n°<span class="font-weight-bold">{{ countMax.number }}</span> ({{ $d(new Date(countMax.utc0*1000), 'short') }} {{ $t('time.a') }} {{ $d(new Date(countMax.utc0*1000), 'hour') }}{{ $d(new Date(countMax.utc0*1000), 'min') }})</div> </div> <button type="button" class="close position-absolute d-xl-none" aria-label="Close" @click="toggleMenu"> <span aria-hidden="true">×</span> diff --git a/i18n/locales/dateTimeFormats.js b/i18n/locales/dateTimeFormats.js index 419d655..6ed3420 100644 --- a/i18n/locales/dateTimeFormats.js +++ b/i18n/locales/dateTimeFormats.js @@ -12,6 +12,9 @@ export const dateTimeFormats = { }, hour: { hour: 'numeric' + }, + min: { + minute: '2-digit' } }, 'en': { @@ -27,6 +30,9 @@ export const dateTimeFormats = { }, hour: { hour: 'numeric' + }, + min: { + minute: '2-digit' } }, 'es': { @@ -42,6 +48,9 @@ export const dateTimeFormats = { }, hour: { hour: 'numeric' + }, + min: { + minute: '2-digit' } } } \ No newline at end of file diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 35b321f..a781013 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -35,7 +35,7 @@ "breadcrumb": "Parameters", "name": { "avgGenTime": "The average time for writing 1 block (wished time)", - "c": "The relative growth of the UD every [dtReeval] period", + "c": "The relative growth of the UD every <code>dtReeval</code> period", "dt": "Time period between two UD", "dtDiffEval": "The number of blocks required to evaluate again PoWMin value", "dtReeval": "Time period between two re-evaluation of the UD", @@ -51,7 +51,7 @@ "sigStock": "Maximum quantity of active certifications made by member", "sigValidity": "Maximum age of an active certification", "sigWindow": "Maximum delay a certification can wait before being expired for non-writing", - "stepMax": "Maximum distance between a WOT member and [xpercent] of sentries", + "stepMax": "Maximum distance between a WOT member and <code>xpercent</code> of sentries", "txWindow": "Maximum delay a transaction can wait before being expired for non-writing", "ud0": "UD(0), i.e. initial Universal Dividend", "udReevalTime0": "Time of first reevaluation of the UD", diff --git a/i18n/locales/es.json b/i18n/locales/es.json index 894302f..fe54764 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -35,7 +35,7 @@ "breadcrumb": "Parámetros", "name": { "avgGenTime": "The average time for writing 1 block (wished time)", - "c": "The relative growth of the UD every [dtReeval] period", + "c": "The relative growth of the UD every <code>dtReeval</code> period", "dt": "Time period between two UD", "dtDiffEval": "The number of blocks required to evaluate again PoWMin value", "dtReeval": "Time period between two re-evaluation of the UD", @@ -51,7 +51,7 @@ "sigStock": "Maximum quantity of active certifications made by member", "sigValidity": "Maximum age of an active certification", "sigWindow": "Maximum delay a certification can wait before being expired for non-writing", - "stepMax": "Maximum distance between a WOT member and [xpercent] of sentries", + "stepMax": "Maximum distance between a WOT member and <code>xpercent</code> of sentries", "txWindow": "Maximum delay a transaction can wait before being expired for non-writing", "ud0": "UD(0), i.e. initial Universal Dividend", "udReevalTime0": "Time of first reevaluation of the UD", -- GitLab