utn-cli 2.0.63 → 2.0.65

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.
@@ -245,8 +245,8 @@ function personalizarModalFrontend(contenido, tableInfo, fileName) {
245
245
  return ` ${col.name}: controles.${col.name}Control.value`;
246
246
  }).join(',\n');
247
247
 
248
- contenido = contenido.replace(/let incapacidad = this\.grupoFormulario\.controls;[\s\S]*?this\.dialogRef\.close\(\{[\s\S]*?\}\);/,
249
- `let controles = this.grupoFormulario.controls;\n this.dialogRef.close({\n${objetoRetorno},\n ${primaryKey}: this.data.Registro?.${primaryKey}\n });`);
248
+ contenido = contenido.replace(/let \w+ = this\.grupoFormulario\.controls;[\s\S]*?this\.dialogRef\.close\(\{[\s\S]*?\}\);/,
249
+ `let controles = this.grupoFormulario.controls;\n /*\n this.dialogRef.close({\n${objetoRetorno},\n ${primaryKey}: this.data.Registro?.${primaryKey}\n });\n */`);
250
250
 
251
251
  // Quitar TiposDeLicencias si existe
252
252
  contenido = contenido.replace(/TiposDeLicencias = this\.data\.TiposDeLicencias;/g, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utn-cli",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "Herramienta CLI unificada para la gestión de plantillas en SIGU.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -56,7 +56,7 @@ app.use((solicitud, respuesta, next) => {
56
56
  });
57
57
  app.use(cors({
58
58
  credentials: true,
59
- origin: [/localhost(:\d+)?$/, /\.181\.193\.85\.44\.nip\.io$/, /\.sigu\.utn\.ac\.cr.*$/]
59
+ origin: [/localhost(:\d+)?$/, /\.sigu\.utn\.ac\.cr.*$/]
60
60
  }));
61
61
 
62
62
  // Esta función se debe llamar cada vez que inicia el backend
@@ -11,13 +11,13 @@ class API {
11
11
  // let URL = undefined;
12
12
  // switch (process.env.ENV) {
13
13
  // case 'desarrollo':
14
- // URL = 'http://dgdh-oferentes-backend-desarrollo.181.193.85.44.nip.io';
14
+ // URL = 'http://dgdh-oferentes-backend-desarrollo.svc.cluster.local';
15
15
  // break;
16
16
  // case 'calidad':
17
- // URL = 'http://dgdh-oferentes-backend-calidad.181.193.85.44.nip.io';
17
+ // URL = 'http://dgdh-oferentes-backend-calidad.svc.cluster.local';
18
18
  // break;
19
19
  // case 'pruebas':
20
- // URL = 'http://dgdh-oferentes-backend-pruebas.181.193.85.44.nip.io';
20
+ // URL = 'http://dgdh-oferentes-backend-pruebas.svc.cluster.local';
21
21
  // break;
22
22
  // case 'production':
23
23
  // URL = 'https://dgdh-oferentes-backend.sigu.utn.ac.cr';
@@ -37,13 +37,13 @@ class API {
37
37
  // let URL = undefined;
38
38
  // switch (process.env.ENV) {
39
39
  // case 'desarrollo':
40
- // URL = 'http://dru-matri-s-backend-desarrollo.181.193.85.44.nip.io';
40
+ // URL = 'http://dru-matri-s-backend-desarrollo.svc.cluster.local';
41
41
  // break;
42
42
  // case 'calidad':
43
- // URL = 'http://dru-matri-s-backend-calidad.181.193.85.44.nip.io';
43
+ // URL = 'http://dru-matri-s-backend-calidad.svc.cluster.local';
44
44
  // break;
45
45
  // case 'pruebas':
46
- // URL = 'http://dru-matri-s-backend-pruebas.181.193.85.44.nip.io';
46
+ // URL = 'http://dru-matri-s-backend-pruebas.svc.cluster.local';
47
47
  // break;
48
48
  // case 'production':
49
49
  // URL = 'https://dru-matri-s-backend.sigu.utn.ac.cr';
@@ -59,13 +59,13 @@ class API {
59
59
  // let URL = undefined;
60
60
  // switch (process.env.ENV) {
61
61
  // case 'desarrollo':
62
- // URL = 'http://vdoc-trabajoacademico-p-backend-desarrollo.181.193.85.44.nip.io';
62
+ // URL = 'http://vdoc-trabajoacademico-p-backend-desarrollo.svc.cluster.local';
63
63
  // break;
64
64
  // case 'calidad':
65
- // URL = 'http://vdoc-trabajoacademico-p-backend-calidad.181.193.85.44.nip.io';
65
+ // URL = 'http://vdoc-trabajoacademico-p-backend-calidad.svc.cluster.local';
66
66
  // break;
67
67
  // case 'pruebas':
68
- // URL = 'http://vdoc-trabajoacademico-p-backend-pruebas.181.193.85.44.nip.io';
68
+ // URL = 'http://vdoc-trabajoacademico-p-backend-pruebas.svc.cluster.local';
69
69
  // break;
70
70
  // case 'production':
71
71
  // URL = 'https://vdoc-trabajoacademico-p-backend.sigu.utn.ac.cr';
@@ -84,13 +84,13 @@ class API {
84
84
  // let URL = undefined;
85
85
  // switch (process.env.ENV) {
86
86
  // case 'desarrollo':
87
- // URL = 'http://dgdh-djur-s-backend-desarrollo.181.193.85.44.nip.io';
87
+ // URL = 'http://dgdh-djur-s-backend-desarrollo.svc.cluster.local';
88
88
  // break;
89
89
  // case 'calidad':
90
- // URL = 'http://dgdh-djur-s-backend-calidad.181.193.85.44.nip.io';
90
+ // URL = 'http://dgdh-djur-s-backend-calidad.svc.cluster.local';
91
91
  // break;
92
92
  // case 'pruebas':
93
- // URL = 'http://dgdh-djur-s-backend-pruebas.181.193.85.44.nip.io';
93
+ // URL = 'http://dgdh-djur-s-backend-pruebas.svc.cluster.local';
94
94
  // break;
95
95
  // case 'production':
96
96
  // URL = 'https://dgdh-djur-s-backend.sigu.utn.ac.cr';
@@ -106,13 +106,13 @@ class API {
106
106
  // let URL = undefined;
107
107
  // switch (process.env.ENV) {
108
108
  // case 'desarrollo':
109
- // URL = 'http://dgdh-djur-s-backend-desarrollo.181.193.85.44.nip.io';
109
+ // URL = 'http://dgdh-djur-s-backend-desarrollo.svc.cluster.local';
110
110
  // break;
111
111
  // case 'calidad':
112
- // URL = 'http://dgdh-djur-s-backend-calidad.181.193.85.44.nip.io';
112
+ // URL = 'http://dgdh-djur-s-backend-calidad.svc.cluster.local';
113
113
  // break;
114
114
  // case 'pruebas':
115
- // URL = 'http://dgdh-djur-s-backend-pruebas.181.193.85.44.nip.io';
115
+ // URL = 'http://dgdh-djur-s-backend-pruebas.svc.cluster.local';
116
116
  // break;
117
117
  // case 'production':
118
118
  // URL = 'https://dgdh-djur-s-backend.sigu.utn.ac.cr';
@@ -77,7 +77,7 @@ class Miscelaneo {
77
77
  WHERE v_user_id = ?
78
78
  AND v_original_url NOT IN (?)
79
79
  ORDER BY Consecutivo DESC
80
- LIMIT 100
80
+ LIMIT 20
81
81
  `, [decoded.uid, RUTAS_EXCLUIDAS]);
82
82
  return datos;
83
83
  } catch (error) {
@@ -812,7 +812,7 @@ class Miscelaneo {
812
812
  LastUser,
813
813
  LastUser
814
814
  ]);
815
- return { Token, Dominio: ((process.env.ENV || 'local') === 'production' ? '.sigu.utn.ac.cr' : '.181.193.85.44.nip.io') };
815
+ return { Token, Dominio: ((process.env.ENV || 'local') === 'production' ? '.sigu.utn.ac.cr' : '.svc.cluster.local') };
816
816
 
817
817
  } else {
818
818
  console.log("La clave brindada para el usuario", Solicitud.body.Identificacion, "no conincide");
@@ -1830,7 +1830,6 @@ class Miscelaneo {
1830
1830
  Opciones.body = JSON.stringify(Cuerpo);
1831
1831
  }
1832
1832
  const ListaDeDominiosPermitidos = [
1833
- "181.193.85.44.nip.io",
1834
1833
  "sigu.utn.ac.cr",
1835
1834
  "localhost",
1836
1835
  "svc.cluster.local"
@@ -58,7 +58,7 @@ export class GestionTablaXYZComponent {
58
58
  // https://fonts.google.com/icons
59
59
  public acciones = [
60
60
  { icono: 'edit', color: 'azul', textoAyuda: 'Editar', ejecutar: (fila: any) => this.AbrirModal(fila), },
61
- { icono: 'draw', color: 'marino', textoAyuda: 'Firmar', ejecutar: (fila: any) => this.confirmacionFirmaDelUsuario(fila), },
61
+ // { icono: 'draw', color: 'marino', textoAyuda: 'Firmar', ejecutar: (fila: any) => this.confirmacionFirmaDelUsuario(fila), },
62
62
  { icono: 'delete', color: 'rojo', textoAyuda: 'Eliminar', ejecutar: (fila: any) => this.confirmacionEliminar(fila), },
63
63
  ];
64
64
  public accionesDinamicas = [];