pollination-react-io 1.92.0 → 1.92.2
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 +23 -7
- package/build/index.esm.js.map +1 -1
- package/build/index.js +23 -7
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -38595,6 +38595,9 @@ var usePollinationPanel = function () {
|
|
38595
38595
|
return;
|
38596
38596
|
try {
|
38597
38597
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.status]);
|
38598
|
+
if (message.data === '') {
|
38599
|
+
console.log('[LOCAL RUN]: Status file not found');
|
38600
|
+
}
|
38598
38601
|
var run = JSON.parse(message.data);
|
38599
38602
|
return run;
|
38600
38603
|
}
|
@@ -38613,6 +38616,9 @@ var usePollinationPanel = function () {
|
|
38613
38616
|
return;
|
38614
38617
|
try {
|
38615
38618
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.job]);
|
38619
|
+
if (message.data === '') {
|
38620
|
+
console.log('[LOCAL RUN]: Job file not found');
|
38621
|
+
}
|
38616
38622
|
var localJob = JSON.parse(message.data);
|
38617
38623
|
var job = (_a = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _a === void 0 ? void 0 : _a.Job;
|
38618
38624
|
job['author'] = (_b = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _b === void 0 ? void 0 : _b.JobAuthor;
|
@@ -38633,6 +38639,9 @@ var usePollinationPanel = function () {
|
|
38633
38639
|
return;
|
38634
38640
|
try {
|
38635
38641
|
var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.logs]);
|
38642
|
+
if (message.data === '') {
|
38643
|
+
console.log('[LOCAL RUN]: Log file not found');
|
38644
|
+
}
|
38636
38645
|
return message.data;
|
38637
38646
|
}
|
38638
38647
|
catch (error) {
|
@@ -47212,11 +47221,17 @@ var RecipeForm = function (_a) {
|
|
47212
47221
|
};
|
47213
47222
|
alias && inputInfo.useAlias && Object.keys(alias).forEach(function (key) {
|
47214
47223
|
if (key in inputInfo) {
|
47215
|
-
// if
|
47224
|
+
// if alias is DAGGenericInputAlias keep native one
|
47225
|
+
// if alias is file and input is file keep native one
|
47226
|
+
// important for red messages if delete value
|
47216
47227
|
if (key == 'type') {
|
47217
47228
|
if (alias[key] === 'DAGGenericInputAlias') {
|
47218
47229
|
return;
|
47219
47230
|
}
|
47231
|
+
else if (alias[key] === 'DAGFileInputAlias'
|
47232
|
+
&& inputInfo.type === 'DAGFileInput') {
|
47233
|
+
return;
|
47234
|
+
}
|
47220
47235
|
}
|
47221
47236
|
// if Linked Input keep the native name
|
47222
47237
|
// Example, see mapping: from sim-par and sim_par
|
@@ -47503,8 +47518,8 @@ var RecipeForm = function (_a) {
|
|
47503
47518
|
host !== 'web' && React__default.createElement(Button, { type: 'submit', style: { width: '100%',
|
47504
47519
|
margin: '10px 0 0 0',
|
47505
47520
|
justifyContent: 'center' }, disabled: !localConfig.isLocalJob
|
47506
|
-
?
|
47507
|
-
:
|
47521
|
+
? (Object.keys(errors).length !== 0) || loading
|
47522
|
+
: (Object.keys(errors).length !== 0) || loading || localConfig.localRunFolder == null, form: recipe.metadata.name, loading: loading }, "Create Study")));
|
47508
47523
|
};
|
47509
47524
|
|
47510
47525
|
var defaultStyle = {
|
@@ -56387,7 +56402,7 @@ var RunCard = function (_a) {
|
|
56387
56402
|
if (run.status.finished_at)
|
56388
56403
|
setStopRefresh(true);
|
56389
56404
|
setIsReady(true);
|
56390
|
-
}
|
56405
|
+
}
|
56391
56406
|
}), run = _11.data, error = _11.error;
|
56392
56407
|
var sendRun = useCallback(function (run) { return getValue(run); }, [getValue]);
|
56393
56408
|
/**
|
@@ -56462,11 +56477,12 @@ var RunCard = function (_a) {
|
|
56462
56477
|
setHover(__assign(__assign({}, emptyHover), (_a = {}, _a[defaultTab] = true, _a)));
|
56463
56478
|
}, [defaultTab, emptyHover]);
|
56464
56479
|
var localStudyURLname = useMemo(function () {
|
56480
|
+
var _a, _b;
|
56465
56481
|
if (!localStudy)
|
56466
56482
|
return;
|
56467
|
-
|
56468
|
-
|
56469
|
-
|
56483
|
+
if (localStudy === null || localStudy === void 0 ? void 0 : localStudy.name)
|
56484
|
+
return 'hello';
|
56485
|
+
return (_b = (_a = localStudy === null || localStudy === void 0 ? void 0 : localStudy.name) === null || _a === void 0 ? void 0 : _a.replace(/[^a-zA-Z0-9]/g, '')) === null || _b === void 0 ? void 0 : _b.replace(/[ ()]/g, '');
|
56470
56486
|
}, [localStudy]);
|
56471
56487
|
/**
|
56472
56488
|
* Rendering - if error
|