summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/public/bundle.js b/public/bundle.js
index 4e94c81..027749a 100644
--- a/public/bundle.js
+++ b/public/bundle.js
@@ -3506,6 +3506,7 @@ var mapStateToProps = function mapStateToProps(state, ownProps) {
var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
return {
onClick: function onClick() {
+ if (!ownProps.file) return;
switch (ownProps.file.type) {
case 'audio':
var file = ownProps.file;
@@ -6363,6 +6364,10 @@ exports.default = FileListView;
var _preact = __webpack_require__(3);
+var _format = __webpack_require__(120);
+
+var _format2 = _interopRequireDefault(_format);
+
var _FileUploadButton = __webpack_require__(80);
var _FileUploadButton2 = _interopRequireDefault(_FileUploadButton);
@@ -6405,7 +6410,7 @@ function FileListView(props) {
(0, _preact.h)(
'span',
{ 'class': 'mime' },
- file.processed ? file.mime : '(waiting)'
+ file.processed ? _format2.default.getAge(file.created_at) : '(waiting)'
),
(0, _preact.h)(
'span',
@@ -9003,7 +9008,7 @@ function TaskFormView(props) {
(0, _preact.h)(
'div',
null,
- (0, _preact.h)('input', { type: 'range', step: '0.01', min: '0.001', max: '1', value: props.alpha,
+ (0, _preact.h)('input', { type: 'range', step: '0.001', min: '0.001', max: '1', value: props.alpha,
onInput: function onInput(e) {
return props.setAlpha(e.target.value);
}
@@ -9785,7 +9790,7 @@ function getRevision(thread) {
}
function getAge(t) {
- var age = Math.abs(Date.now() / 1000 - t);
+ var age = Math.abs(Date.now() - new Date(t)) / 1000;
var r = Math.floor;
var m = void 0;
if (age < 5) {
@@ -9801,7 +9806,7 @@ function getAge(t) {
m = r(age % 60);
age /= 60;
if (m > 0 && age < 2) {
- return m + "m" + r(age) + "h";
+ return r(age) + "h" + m + "m";
}
if (age < 24) {
return r(age) + "h";