@devstroupe/devkit-cli 1.1.6 → 1.1.8
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/dist/index.js +10 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -433,6 +433,13 @@ function initUi(frontendRoot, config) {
|
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
|
+
// Adicionar item de Permissões no final, visível apenas para quem tem manage:permissions
|
|
437
|
+
navigation.push({
|
|
438
|
+
label: 'Permissões',
|
|
439
|
+
icon: 'lucideShield',
|
|
440
|
+
route: '/role',
|
|
441
|
+
roles: ['manage:permissions']
|
|
442
|
+
});
|
|
436
443
|
}
|
|
437
444
|
const targetDir = path.join(frontendRoot, 'src', 'app', 'shared', 'components', 'devkit');
|
|
438
445
|
const layoutsDir = path.join(frontendRoot, 'src', 'app', 'shared', 'layouts', 'main-layout');
|
|
@@ -681,7 +688,9 @@ function updateMainLayoutNavigation(frontendRoot, entities = [], configuredNavig
|
|
|
681
688
|
label: entity.navigation?.label || entity.label || entity.name,
|
|
682
689
|
icon: entity.navigation?.icon || 'lucideTable',
|
|
683
690
|
route: `/${entity.name}`
|
|
684
|
-
}))
|
|
691
|
+
})),
|
|
692
|
+
// Item de Permissões fixo, visível apenas para quem tem manage:permissions
|
|
693
|
+
{ label: 'Permissões', icon: 'lucideShield', route: '/role', roles: ['manage:permissions'] }
|
|
685
694
|
];
|
|
686
695
|
writeAppNavigation(frontendRoot, navigation);
|
|
687
696
|
const content = fs.readFileSync(layoutPath, 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devstroupe/devkit-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "DevsTroupe Development Kit CLI — scaffold NestJS+Angular projects, inject Spartan UI, generate CRUDs and audit architectural governance",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"commander": "^12.0.0",
|
|
38
38
|
"fs-extra": "^11.2.0",
|
|
39
|
-
"@devstroupe/devkit-core": "1.1.
|
|
39
|
+
"@devstroupe/devkit-core": "1.1.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/fs-extra": "^11.0.4",
|