utn-cli 2.0.16 → 2.0.18
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/commands/frontend.js
CHANGED
|
@@ -54,12 +54,12 @@ export async function updateFrontend() {
|
|
|
54
54
|
|
|
55
55
|
copiarDirectorios(directoriodePlantillas, directorioDestino, archivosAExcluir);
|
|
56
56
|
mostrarVersion(path.join(__dirname, '../package.json'));
|
|
57
|
+
fs.renameSync('gitignore', '.gitignore');
|
|
58
|
+
fs.renameSync('editorconfig', '.editorconfig');
|
|
57
59
|
console.log('Proyecto de frontend actualizado exitosamente.');
|
|
58
60
|
closeReadLine();
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
|
|
63
63
|
export async function cloneFrontendComponent() {
|
|
64
64
|
const nombre = await hacerPreguntaTrim('Ingrese el nombre del nuevo componente (se reemplazará XYZ): ');
|
|
65
65
|
if (!nombre) {
|
package/package.json
CHANGED
|
@@ -595,12 +595,13 @@ class Miscelaneo {
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
async registroDelModuloEnSIGUV2() {
|
|
598
|
+
const Version = this.Version + "$$" + this.versionDelNucleo().split(' ')[0];
|
|
598
599
|
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_ModulosV2` VALUES\
|
|
599
600
|
(?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(4), ?, 'DiccionarioDeDatos'\
|
|
600
601
|
, ?, '-', '-', 'Activo', NOW(4), USER()) ON DUPLICATE KEY UPDATE `Version` = ?"
|
|
601
602
|
, [this.NombreCanonicoDelModulo, this.MenuPadre, this.DescripcionDelModulo, this.DetalleDelModulo
|
|
602
|
-
, this.TipoDeCard, this.IconoDelModulo, this.ColorDelModulo, this.CorreoParaReportes,
|
|
603
|
-
,
|
|
603
|
+
, this.TipoDeCard, this.IconoDelModulo, this.ColorDelModulo, this.CorreoParaReportes, Version, this.versionDelNucleo().split(' ')[0], this.Repositorios
|
|
604
|
+
, Version]);
|
|
604
605
|
await ejecutarConsultaSIGU("SELECT IFNULL(MAX(`PermisoId`), 0) + 1 INTO @`SiguientePermisoId` FROM `SIGU`.`SIGU_PermisosV2`;\
|
|
605
606
|
INSERT INTO `SIGU`.`SIGU_PermisosV2` VALUES\
|
|
606
607
|
(@`SiguientePermisoId`, ?, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUser` = USER(), `Nombre` = ?, `Descripcion` = ?;"
|