code7-leia 0.2.17 → 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.
@@ -469,7 +469,7 @@ var enTranslation = {
469
469
  deleteFileTitle: 'Delete a file',
470
470
  deleteFile: 'Important! By deleting this file, you will lose all its information and will not be able to recover it.',
471
471
  trainingTitle: 'Presset Training',
472
- trainingDescription: 'Select one or more pressets to be trained. Note: If none are selected, Le-IA will train all pressets.'
472
+ trainingDescription: 'Select one or more pressets to be trained. Note: If none are selected, Lira will train all pressets.'
473
473
  }
474
474
  },
475
475
  buttons: {
@@ -515,17 +515,17 @@ var enTranslation = {
515
515
  Test: {
516
516
  fail: {
517
517
  title: 'Failure',
518
- description: 'Error testing Le-IA'
518
+ description: 'Error testing Lira'
519
519
  }
520
520
  },
521
521
  Train: {
522
522
  fail: {
523
523
  title: 'Failure',
524
- description: 'Error training Le-IA'
524
+ description: 'Error training Lira'
525
525
  },
526
526
  success: {
527
527
  title: 'Success',
528
- description: 'Le-IA is in the training process!'
528
+ description: 'Lira is in the training process!'
529
529
  }
530
530
  }
531
531
  }
@@ -554,7 +554,7 @@ var ptTranslation = {
554
554
  deleteFileTitle: 'Excluir um arquivo',
555
555
  deleteFile: 'Importante! Ao excluir este arquivo, você perderá todas as suas informações e não poderá recuperá-las.',
556
556
  trainingTitle: 'Treinamento de predefinição',
557
- 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'
557
+ trainingDescription: 'Selecione um ou mais predefinições para serem treinadas. Obs: Caso não selecionada nenhuma a Lira irá treinar todas as predefinições'
558
558
  }
559
559
  },
560
560
  buttons: {
@@ -600,17 +600,17 @@ var ptTranslation = {
600
600
  Test: {
601
601
  fail: {
602
602
  title: 'Falha',
603
- description: 'Erro ao testar Le-IA'
603
+ description: 'Erro ao testar Lira'
604
604
  }
605
605
  },
606
606
  Train: {
607
607
  fail: {
608
608
  title: 'Falha',
609
- description: 'Erro ao treinar a Le-IA'
609
+ description: 'Erro ao treinar a Lira'
610
610
  },
611
611
  success: {
612
612
  title: 'Sucesso',
613
- description: 'A Le-IA está em processo de treinamento!'
613
+ description: 'A Lira está em processo de treinamento!'
614
614
  }
615
615
  }
616
616
  }
@@ -639,7 +639,7 @@ var esTranslation = {
639
639
  deleteFileTitle: 'Eliminar un archivo',
640
640
  deleteFile: '¡Importante! Al eliminar este archivo, perderá toda su información y no podrá recuperarla.',
641
641
  trainingTitle: 'Entrenamiento de preconfiguración',
642
- trainingDescription: 'Seleccione una o más preconfiguracións para ser entrenadas. Nota: Si no se selecciona ninguna, Le-IA entrenará todas las preconfiguracións.'
642
+ trainingDescription: 'Seleccione una o más preconfiguracións para ser entrenadas. Nota: Si no se selecciona ninguna, Lira entrenará todas las preconfiguracións.'
643
643
  }
644
644
  },
645
645
  buttons: {
@@ -685,17 +685,17 @@ var esTranslation = {
685
685
  Test: {
686
686
  fail: {
687
687
  title: 'Error',
688
- description: 'Error al probar Le-IA'
688
+ description: 'Error al probar Lira'
689
689
  }
690
690
  },
691
691
  Train: {
692
692
  fail: {
693
693
  title: 'Error',
694
- description: 'Error al entrenar Le-IA'
694
+ description: 'Error al entrenar Lira'
695
695
  },
696
696
  success: {
697
697
  title: 'Éxito',
698
- description: '¡Le-IA está en proceso de entrenamiento!'
698
+ description: '¡Lira está en proceso de entrenamiento!'
699
699
  }
700
700
  }
701
701
  }
@@ -2195,53 +2195,50 @@ function uploadFilesSaga(action) {
2195
2195
  _action$payload4 = action.payload, id = _action$payload4.id, file = _action$payload4.file, pressets = _action$payload4.pressets, token = _action$payload4.token;
2196
2196
  blob = new Blob([file.content]);
2197
2197
  formData = new FormData();
2198
- sanitizedPath = file.properties.path.replace(/^\/+|\/+$/g, '');
2199
- console.log('sanitizedPath: ', sanitizedPath);
2198
+ sanitizedPath = file.properties.path.replace(/^(\.\/|\/+)|\/+$/g, '');
2200
2199
  formData.append('file', blob, sanitizedPath || 'default_filename');
2201
- console.log('formData: ', formData);
2202
- console.log('file: ', file);
2203
2200
  queryParams = pressets.length ? new URLSearchParams({
2204
2201
  tags: pressets.join(',')
2205
2202
  }).toString() : '';
2206
2203
  url = queryParams ? "/upload/" + id + "?token=" + token + "&" + queryParams : "/upload/" + id + "?token=" + token;
2207
- _context4.next = 16;
2204
+ _context4.next = 13;
2208
2205
  return call(api.post, url, formData, {
2209
2206
  headers: {
2210
2207
  'Content-Type': 'multipart/form-data'
2211
2208
  }
2212
2209
  });
2213
- case 16:
2214
- _context4.next = 18;
2210
+ case 13:
2211
+ _context4.next = 15;
2215
2212
  return call(api.get, "/training/" + id + "?token=" + token);
2216
- case 18:
2213
+ case 15:
2217
2214
  _yield$call4 = _context4.sent;
2218
2215
  data = _yield$call4.data;
2219
- _context4.next = 22;
2216
+ _context4.next = 19;
2220
2217
  return put(uploadFilesActionSuccess({
2221
2218
  files: data.files
2222
2219
  }));
2223
- case 22:
2224
- _context4.next = 28;
2220
+ case 19:
2221
+ _context4.next = 25;
2225
2222
  break;
2226
- case 24:
2227
- _context4.prev = 24;
2223
+ case 21:
2224
+ _context4.prev = 21;
2228
2225
  _context4.t0 = _context4["catch"](1);
2229
2226
  toast.error({
2230
2227
  title: t.toast.uploadFile.fail.title,
2231
2228
  description: t.toast.uploadFile.fail.description
2232
2229
  });
2233
2230
  console.log('-----------uploadFilesSaga.error------------------->', _context4.t0);
2234
- case 28:
2235
- _context4.prev = 28;
2236
- _context4.next = 31;
2231
+ case 25:
2232
+ _context4.prev = 25;
2233
+ _context4.next = 28;
2237
2234
  return put(commonLoadingFinish());
2238
- case 31:
2239
- return _context4.finish(28);
2240
- case 32:
2235
+ case 28:
2236
+ return _context4.finish(25);
2237
+ case 29:
2241
2238
  case "end":
2242
2239
  return _context4.stop();
2243
2240
  }
2244
- }, _marked4, null, [[1, 24, 28, 32]]);
2241
+ }, _marked4, null, [[1, 21, 25, 29]]);
2245
2242
  }
2246
2243
  function TrainingSaga(action) {
2247
2244
  var t, _action$payload5, id, pressets, token, tag, queryParams, _yield$call5, data;