Browse Source

packages ng-modules refactored

pull/22848/head
erdemcaygor 1 year ago
parent
commit
9ba48d6acb
  1. 25
      npm/ng-packs/packages/account/src/lib/account.module.ts
  2. 4
      npm/ng-packs/packages/permission-management/src/lib/permission-management.module.ts
  3. 3
      npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts
  4. 4
      npm/ng-packs/packages/tenant-management/src/lib/tenant-management.module.ts

25
npm/ng-packs/packages/account/src/lib/account.module.ts

@ -1,9 +1,5 @@
import { CoreModule, LazyModuleFactory } from '@abp/ng.core'; import { LazyModuleFactory } from '@abp/ng.core';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core'; import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core';
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxValidateCoreModule } from '@ngx-validate/core';
import { AccountRoutingModule } from './account-routing.module';
import { AccountConfigOptions } from './models/config-options'; import { AccountConfigOptions } from './models/config-options';
import { ACCOUNT_CONFIG_OPTIONS } from './tokens/config-options.token'; import { ACCOUNT_CONFIG_OPTIONS } from './tokens/config-options.token';
import { accountConfigOptionsFactory } from './utils/factory-utils'; import { accountConfigOptionsFactory } from './utils/factory-utils';
@ -12,17 +8,22 @@ import { RE_LOGIN_CONFIRMATION_TOKEN } from './tokens';
import { ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS } from './tokens/extensions.token'; import { ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS } from './tokens/extensions.token';
import { AccountExtensionsGuard } from './guards/extensions.guard'; import { AccountExtensionsGuard } from './guards/extensions.guard';
import { ExtensibleModule } from '@abp/ng.components/extensible'; import {
ForgotPasswordComponent,
LoginComponent,
ManageProfileComponent,
RegisterComponent,
ResetPasswordComponent,
} from './components';
@NgModule({ @NgModule({
declarations: [], declarations: [],
imports: [ imports: [
CoreModule, LoginComponent,
AccountRoutingModule, RegisterComponent,
ThemeSharedModule, ForgotPasswordComponent,
NgbDropdownModule, ResetPasswordComponent,
NgxValidateCoreModule, ManageProfileComponent,
ExtensibleModule,
], ],
exports: [], exports: [],
}) })

4
npm/ng-packs/packages/permission-management/src/lib/permission-management.module.ts

@ -1,11 +1,9 @@
import { CoreModule } from '@abp/ng.core';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { PermissionManagementComponent } from './components'; import { PermissionManagementComponent } from './components';
@NgModule({ @NgModule({
declarations: [], declarations: [],
imports: [CoreModule, ThemeSharedModule, PermissionManagementComponent], imports: [PermissionManagementComponent],
exports: [PermissionManagementComponent], exports: [PermissionManagementComponent],
}) })
export class PermissionManagementModule {} export class PermissionManagementModule {}

3
npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts

@ -1,11 +1,12 @@
import { LazyModuleFactory } from '@abp/ng.core'; import { LazyModuleFactory } from '@abp/ng.core';
import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core'; import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core';
import { SettingManagementRoutingModule } from './setting-management-routing.module'; import { SettingManagementRoutingModule } from './setting-management-routing.module';
import { SettingManagementComponent } from './components/setting-management.component';
@NgModule({ @NgModule({
declarations: [], declarations: [],
exports: [], exports: [],
imports: [SettingManagementRoutingModule], imports: [SettingManagementRoutingModule, SettingManagementComponent],
}) })
export class SettingManagementModule { export class SettingManagementModule {
static forChild(): ModuleWithProviders<SettingManagementModule> { static forChild(): ModuleWithProviders<SettingManagementModule> {

4
npm/ng-packs/packages/tenant-management/src/lib/tenant-management.module.ts

@ -9,11 +9,13 @@ import {
TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TENANT_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS,
TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TENANT_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS,
} from './tokens/extensions.token'; } from './tokens/extensions.token';
import { TenantsComponent } from './components';
import { TenantManagementRoutingModule } from './tenant-management-routing.module';
@NgModule({ @NgModule({
declarations: [], declarations: [],
exports: [], exports: [],
imports: [], imports: [TenantManagementRoutingModule, TenantsComponent],
}) })
export class TenantManagementModule { export class TenantManagementModule {
static forChild( static forChild(

Loading…
Cancel
Save