projects
/
squeep-html-template-helper
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, eslint config
[squeep-html-template-helper]
/
lib
/
template-helper.js
diff --git
a/lib/template-helper.js
b/lib/template-helper.js
index c72e0ed348415d2c8adf6f1366b1639330819f65..7e51bcfbb9058a25287bf934978d9234b368bf80 100644
(file)
--- a/
lib/template-helper.js
+++ b/
lib/template-helper.js
@@
-15,7
+15,7
@@
const { lazy } = require('@squeep/lazy-property');
const initContext = (ctx) => {
ctx.errors = [];
ctx.notifications = [];
const initContext = (ctx) => {
ctx.errors = [];
ctx.notifications = [];
-}
+}
;
/**
* Some fields may have values outside normal dates, handle them here.
/**
* Some fields may have values outside normal dates, handle them here.
@@
-100,7
+100,7
@@
const timeElement = (date, options = {}) => {
dateFormat(date, pInf, nInf, otherwise),
'</time>',
].join('');
dateFormat(date, pInf, nInf, otherwise),
'</time>',
].join('');
-}
+}
;
/**
/**
@@
-118,7
+118,7
@@
const secondsToPeriod = (seconds) => {
result.push(`${r} ${label}${r != 1 ? 's' : ''}`);
}
value = factor ? Math.floor(value / factor) : value;
result.push(`${r} ${label}${r != 1 ? 's' : ''}`);
}
value = factor ? Math.floor(value / factor) : value;
- }
+ }
;
nextResult(60, 'second');
nextResult(60, 'minute');
nextResult(60, 'second');
nextResult(60, 'minute');