pollination-react-io 1.23.0 → 1.23.1
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.
- package/build/index.esm.js +5 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -46588,6 +46588,9 @@ styleInject(css_248z);
|
|
|
46588
46588
|
|
|
46589
46589
|
dayjs_min.extend(duration);
|
|
46590
46590
|
dayjs_min.extend(utc);
|
|
46591
|
+
var formatDuration = function (duration) {
|
|
46592
|
+
return "".concat(duration.days() > 0 ? "".concat(duration.days(), " day").concat(duration.days() !== 1 ? 's' : '', " and ") : '', " ").concat(duration.format('HH:mm:ss'));
|
|
46593
|
+
};
|
|
46591
46594
|
var StudyCard = function (_a) {
|
|
46592
46595
|
var _b, _c;
|
|
46593
46596
|
var projectName = _a.projectName, projectOwner = _a.projectOwner, _study = _a.study, _d = _a.canWrite, canWrite = _d === void 0 ? false : _d, _e = _a.runList, runList = _e === void 0 ? true : _e, style = _a.style, authUser = _a.authUser, client = _a.client;
|
|
@@ -46656,7 +46659,7 @@ var StudyCard = function (_a) {
|
|
|
46656
46659
|
color: getSummaryColor(status),
|
|
46657
46660
|
borderColor: getSummaryColor(status),
|
|
46658
46661
|
backgroundColor: 'white',
|
|
46659
|
-
} }, "Duration ".concat(
|
|
46662
|
+
} }, "Duration ".concat(formatDuration(duration))))),
|
|
46660
46663
|
React__default.createElement("div", { style: {
|
|
46661
46664
|
width: '100%',
|
|
46662
46665
|
display: 'flex',
|
|
@@ -46794,7 +46797,7 @@ var StudyCard = function (_a) {
|
|
|
46794
46797
|
color: 'var(--slate10)',
|
|
46795
46798
|
borderColor: 'var(--slate10)',
|
|
46796
46799
|
backgroundColor: 'var(--slate2)',
|
|
46797
|
-
} }, study ? "".concat(dayjs_min.duration(study.resources_duration.cpu, 'seconds')
|
|
46800
|
+
} }, study ? "".concat(formatDuration(dayjs_min.duration(study.resources_duration.cpu, 'seconds')), " CPU time") : '--'))))),
|
|
46798
46801
|
runList && study &&
|
|
46799
46802
|
React__default.createElement("div", { style: {
|
|
46800
46803
|
width: '100%',
|