bfg-common 1.4.404 → 1.4.405

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,6 +85,7 @@ export const chartTypeFunc = (
85
85
  ]
86
86
 
87
87
  const getCorrectRuForm = (value: number, type: string): string => {
88
+ // TODO поправить используя correctRuUnit из плагина date
88
89
  const forms: UI_I_ArbitraryObject<string[]> = {
89
90
  hour: ['Час', 'Часа', 'Часов'],
90
91
  day: ['День', 'Дня', 'Дней'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.404",
4
+ "version": "1.4.405",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
package/plugins/date.ts CHANGED
@@ -215,12 +215,12 @@ export default defineNuxtPlugin(() => {
215
215
  const years = Math.floor(time / 60 / 60 / 24 / 30 / 12)
216
216
 
217
217
  let result = ''
218
- if (seconds) result += `${seconds}${units[0]}`
219
- if (minutes) result += `${minutes}${units[1]} `
220
- if (hours) result += `${hours}${units[2]} `
221
- if (days) result += `${days}${units[3]} `
222
- if (months) result += `${months}${units[4]} `
223
- if (years) result += `${years}${units[5]} `
218
+ if (years) result += `${years}${units[5]}`
219
+ if (months) result += ` ${months}${units[4]}`
220
+ if (days) result += ` ${days}${units[3]}`
221
+ if (hours) result += ` ${hours}${units[2]}`
222
+ if (minutes) result += ` ${minutes}${units[1]}`
223
+ if (seconds) result += ` ${seconds}${units[0]}`
224
224
 
225
225
  return result
226
226
  }