Browse Source

refactoring

pull/23416/head
erdemcaygor 1 year ago
parent
commit
fb902b3aad
  1. 28
      npm/ng-packs/apps/dev-app/project.json
  2. 16
      npm/ng-packs/apps/dev-app/src/app/route.provider.ts
  3. 2
      npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html

28
npm/ng-packs/apps/dev-app/project.json

@ -19,7 +19,7 @@
"styles": [ "styles": [
{ {
"input": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css", "input": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css",
"inject": false, "inject": true,
"bundleName": "bootstrap-rtl.min" "bundleName": "bootstrap-rtl.min"
}, },
{ {
@ -29,52 +29,52 @@
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.css",
"inject": false, "inject": true,
"bundleName": "bootstrap-dim" "bundleName": "bootstrap-dim"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.css",
"inject": false, "inject": true,
"bundleName": "ng-bundle" "bundleName": "ng-bundle"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.css",
"inject": false, "inject": true,
"bundleName": "layout-bundle" "bundleName": "layout-bundle"
}, },
{ {
"input": "node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.css", "input": "node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.css",
"inject": false, "inject": true,
"bundleName": "abp-bundle" "bundleName": "abp-bundle"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.rtl.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.rtl.css",
"inject": false, "inject": true,
"bundleName": "bootstrap-dim.rtl" "bundleName": "bootstrap-dim.rtl"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.rtl.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.rtl.css",
"inject": false, "inject": true,
"bundleName": "ng-bundle.rtl" "bundleName": "ng-bundle.rtl"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.rtl.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.rtl.css",
"inject": false, "inject": true,
"bundleName": "layout-bundle.rtl" "bundleName": "layout-bundle.rtl"
}, },
{ {
"input": "node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.rtl.css", "input": "node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.rtl.css",
"inject": false, "inject": true,
"bundleName": "abp-bundle.rtl" "bundleName": "abp-bundle.rtl"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/font-bundle.rtl.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/font-bundle.rtl.css",
"inject": false, "inject": true,
"bundleName": "font-bundle.rtl" "bundleName": "font-bundle.rtl"
}, },
{ {
"input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/font-bundle.css", "input": "node_modules/@volo/ngx-lepton-x.lite/assets/css/font-bundle.css",
"inject": false, "inject": true,
"bundleName": "font-bundle" "bundleName": "font-bundle"
}, },
{ {
@ -89,17 +89,17 @@
}, },
{ {
"input": "node_modules/@swimlane/ngx-datatable/index.css", "input": "node_modules/@swimlane/ngx-datatable/index.css",
"inject": true, "inject": false,
"bundleName": "ngx-datatable-index" "bundleName": "ngx-datatable-index"
}, },
{ {
"input": "node_modules/@swimlane/ngx-datatable/assets/icons.css", "input": "node_modules/@swimlane/ngx-datatable/assets/icons.css",
"inject": true, "inject": false,
"bundleName": "ngx-datatable-icons" "bundleName": "ngx-datatable-icons"
}, },
{ {
"input": "node_modules/@swimlane/ngx-datatable/themes/material.css", "input": "node_modules/@swimlane/ngx-datatable/themes/material.css",
"inject": true, "inject": false,
"bundleName": "ngx-datatable-material" "bundleName": "ngx-datatable-material"
}, },
{ {

16
npm/ng-packs/apps/dev-app/src/app/route.provider.ts

@ -17,5 +17,21 @@ function configureRoutes() {
order: 1, order: 1,
layout: eLayoutType.application, layout: eLayoutType.application,
}, },
{
path: '/identity/users',
name: '::Users:Server',
iconClass: 'fas fa-home',
order: 2,
layout: eLayoutType.application,
requiredPolicy: 'AbpIdentity.Users'
},
{
path: '/identity/roles',
name: '::Roles:Server',
iconClass: 'fas fa-home',
order: 3,
layout: eLayoutType.application,
requiredPolicy: 'AbpIdentity.Roles'
},
]); ]);
} }

2
npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html

@ -8,7 +8,7 @@
<ng-template #defaultLink let-route> <ng-template #defaultLink let-route>
<li class="nav-item" *abpPermission="route.requiredPolicy"> <li class="nav-item" *abpPermission="route.requiredPolicy">
<a class="nav-link" [routerLink]="[route.path]"> <a class="nav-link" [href]="[route.path]">
@if (route.iconClass) { @if (route.iconClass) {
<i [ngClass]="route.iconClass"></i> <i [ngClass]="route.iconClass"></i>
} }

Loading…
Cancel
Save