You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/ng-packs/dist/identity-config/fesm2015/abp-ng.identity.config.js

88 lines
3.0 KiB

import { addAbpRoutes, RestService, noop } from '@abp/ng.core';
import { Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, APP_INITIALIZER } from '@angular/core';
import { Router } from '@angular/router';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class IdentityConfigService {
/**
* @param {?} router
* @param {?} restService
*/
constructor(router, restService) {
this.router = router;
this.restService = restService;
addAbpRoutes([
{
name: 'AbpUiNavigation::Menu:Administration',
path: '',
order: 1,
wrapper: true,
},
{
name: 'AbpIdentity::Menu:IdentityManagement',
path: 'identity',
order: 1,
parentName: 'AbpUiNavigation::Menu:Administration',
layout: "application" /* application */,
iconClass: 'fa fa-id-card-o',
children: [
{ path: 'roles', name: 'AbpIdentity::Roles', order: 2, requiredPolicy: 'AbpIdentity.Roles' },
{ path: 'users', name: 'AbpIdentity::Users', order: 1, requiredPolicy: 'AbpIdentity.Users' },
],
},
]);
}
}
IdentityConfigService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root',
},] }
];
/** @nocollapse */
IdentityConfigService.ctorParameters = () => [
{ type: Router },
{ type: RestService }
];
/** @nocollapse */ IdentityConfigService.ngInjectableDef = ɵɵdefineInjectable({ factory: function IdentityConfigService_Factory() { return new IdentityConfigService(ɵɵinject(Router), ɵɵinject(RestService)); }, token: IdentityConfigService, providedIn: "root" });
if (false) {
/**
* @type {?}
* @private
*/
IdentityConfigService.prototype.router;
/**
* @type {?}
* @private
*/
IdentityConfigService.prototype.restService;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
const ɵ0 = noop;
class IdentityConfigModule {
}
IdentityConfigModule.decorators = [
{ type: NgModule, args: [{
providers: [{ provide: APP_INITIALIZER, deps: [IdentityConfigService], useFactory: ɵ0, multi: true }],
},] }
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { IdentityConfigModule, IdentityConfigService };
//# sourceMappingURL=abp-ng.identity.config.js.map