This commit is contained in:
2021-03-19 22:48:24 -03:00
parent 4ed9c834eb
commit ec44b0281e
13 changed files with 295 additions and 10945 deletions

View File

@ -1,4 +1,14 @@
global.$ = global.jQuery = require("jquery")
// Loads all Semantic javascripts
//= require semantic-ui
require('fomantic-ui-sass')
function formatValue(value, base) {
return (new Intl.NumberFormat('es-CL', {style: 'currency', currency: base, minimumSignificantDigits: 2})).format(value)
}
function formatDate(date) {
return (new Intl.DateTimeFormat('es-CL', {year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit'})).format(date)
}
function readyDate(date) {
return date.getFullYear()
+ '-' + (date.getMonth() + 1)
+ '-' + date.getDate()
+ ' ' + date.getHours()
+ ':' + date.getMinutes()
+ ':' + date.getSeconds()
}