code7-leia 0.2.18 → 0.2.20

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.
@@ -477,7 +477,7 @@ var enTranslation = {
477
477
  deleteFileTitle: 'Delete a file',
478
478
  deleteFile: 'Important! By deleting this file, you will lose all its information and will not be able to recover it.',
479
479
  trainingTitle: 'Presset Training',
480
- trainingDescription: 'Select one or more pressets to be trained. Note: If none are selected, Le-IA will train all pressets.'
480
+ trainingDescription: 'Select one or more pressets to be trained. Note: If none are selected, Lira will train all pressets.'
481
481
  }
482
482
  },
483
483
  buttons: {
@@ -523,17 +523,17 @@ var enTranslation = {
523
523
  Test: {
524
524
  fail: {
525
525
  title: 'Failure',
526
- description: 'Error testing Le-IA'
526
+ description: 'Error testing Lira'
527
527
  }
528
528
  },
529
529
  Train: {
530
530
  fail: {
531
531
  title: 'Failure',
532
- description: 'Error training Le-IA'
532
+ description: 'Error training Lira'
533
533
  },
534
534
  success: {
535
535
  title: 'Success',
536
- description: 'Le-IA is in the training process!'
536
+ description: 'Lira is in the training process!'
537
537
  }
538
538
  }
539
539
  }
@@ -562,7 +562,7 @@ var ptTranslation = {
562
562
  deleteFileTitle: 'Excluir um arquivo',
563
563
  deleteFile: 'Importante! Ao excluir este arquivo, você perderá todas as suas informações e não poderá recuperá-las.',
564
564
  trainingTitle: 'Treinamento de predefinição',
565
- trainingDescription: 'Selecione um ou mais predefinições para serem treinadas. Obs: Caso não selecionada nenhuma a Le-IA irá treinar todas as predefinições'
565
+ trainingDescription: 'Selecione um ou mais predefinições para serem treinadas. Obs: Caso não selecionada nenhuma a Lira irá treinar todas as predefinições'
566
566
  }
567
567
  },
568
568
  buttons: {
@@ -608,17 +608,17 @@ var ptTranslation = {
608
608
  Test: {
609
609
  fail: {
610
610
  title: 'Falha',
611
- description: 'Erro ao testar Le-IA'
611
+ description: 'Erro ao testar Lira'
612
612
  }
613
613
  },
614
614
  Train: {
615
615
  fail: {
616
616
  title: 'Falha',
617
- description: 'Erro ao treinar a Le-IA'
617
+ description: 'Erro ao treinar a Lira'
618
618
  },
619
619
  success: {
620
620
  title: 'Sucesso',
621
- description: 'A Le-IA está em processo de treinamento!'
621
+ description: 'A Lira está em processo de treinamento!'
622
622
  }
623
623
  }
624
624
  }
@@ -647,7 +647,7 @@ var esTranslation = {
647
647
  deleteFileTitle: 'Eliminar un archivo',
648
648
  deleteFile: '¡Importante! Al eliminar este archivo, perderá toda su información y no podrá recuperarla.',
649
649
  trainingTitle: 'Entrenamiento de preconfiguración',
650
- trainingDescription: 'Seleccione una o más preconfiguracións para ser entrenadas. Nota: Si no se selecciona ninguna, Le-IA entrenará todas las preconfiguracións.'
650
+ trainingDescription: 'Seleccione una o más preconfiguracións para ser entrenadas. Nota: Si no se selecciona ninguna, Lira entrenará todas las preconfiguracións.'
651
651
  }
652
652
  },
653
653
  buttons: {
@@ -693,17 +693,17 @@ var esTranslation = {
693
693
  Test: {
694
694
  fail: {
695
695
  title: 'Error',
696
- description: 'Error al probar Le-IA'
696
+ description: 'Error al probar Lira'
697
697
  }
698
698
  },
699
699
  Train: {
700
700
  fail: {
701
701
  title: 'Error',
702
- description: 'Error al entrenar Le-IA'
702
+ description: 'Error al entrenar Lira'
703
703
  },
704
704
  success: {
705
705
  title: 'Éxito',
706
- description: '¡Le-IA está en proceso de entrenamiento!'
706
+ description: '¡Lira está en proceso de entrenamiento!'
707
707
  }
708
708
  }
709
709
  }
@@ -2204,52 +2204,49 @@ function uploadFilesSaga(action) {
2204
2204
  blob = new Blob([file.content]);
2205
2205
  formData = new FormData();
2206
2206
  sanitizedPath = file.properties.path.replace(/^(\.\/|\/+)|\/+$/g, '');
2207
- console.log('sanitizedPath: ', sanitizedPath);
2208
2207
  formData.append('file', blob, sanitizedPath || 'default_filename');
2209
- console.log('formData: ', formData);
2210
- console.log('file: ', file);
2211
2208
  queryParams = pressets.length ? new URLSearchParams({
2212
2209
  tags: pressets.join(',')
2213
2210
  }).toString() : '';
2214
2211
  url = queryParams ? "/upload/" + id + "?token=" + token + "&" + queryParams : "/upload/" + id + "?token=" + token;
2215
- _context4.next = 16;
2212
+ _context4.next = 13;
2216
2213
  return effects.call(api.post, url, formData, {
2217
2214
  headers: {
2218
2215
  'Content-Type': 'multipart/form-data'
2219
2216
  }
2220
2217
  });
2221
- case 16:
2222
- _context4.next = 18;
2218
+ case 13:
2219
+ _context4.next = 15;
2223
2220
  return effects.call(api.get, "/training/" + id + "?token=" + token);
2224
- case 18:
2221
+ case 15:
2225
2222
  _yield$call4 = _context4.sent;
2226
2223
  data = _yield$call4.data;
2227
- _context4.next = 22;
2224
+ _context4.next = 19;
2228
2225
  return effects.put(uploadFilesActionSuccess({
2229
2226
  files: data.files
2230
2227
  }));
2231
- case 22:
2232
- _context4.next = 28;
2228
+ case 19:
2229
+ _context4.next = 25;
2233
2230
  break;
2234
- case 24:
2235
- _context4.prev = 24;
2231
+ case 21:
2232
+ _context4.prev = 21;
2236
2233
  _context4.t0 = _context4["catch"](1);
2237
2234
  toast.error({
2238
2235
  title: t.toast.uploadFile.fail.title,
2239
2236
  description: t.toast.uploadFile.fail.description
2240
2237
  });
2241
2238
  console.log('-----------uploadFilesSaga.error------------------->', _context4.t0);
2242
- case 28:
2243
- _context4.prev = 28;
2244
- _context4.next = 31;
2239
+ case 25:
2240
+ _context4.prev = 25;
2241
+ _context4.next = 28;
2245
2242
  return effects.put(commonLoadingFinish());
2246
- case 31:
2247
- return _context4.finish(28);
2248
- case 32:
2243
+ case 28:
2244
+ return _context4.finish(25);
2245
+ case 29:
2249
2246
  case "end":
2250
2247
  return _context4.stop();
2251
2248
  }
2252
- }, _marked4, null, [[1, 24, 28, 32]]);
2249
+ }, _marked4, null, [[1, 21, 25, 29]]);
2253
2250
  }
2254
2251
  function TrainingSaga(action) {
2255
2252
  var t, _action$payload5, id, pressets, token, tag, queryParams, _yield$call5, data;