config.module.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. import { CommonModule } from '@angular/common';
  17. import { NgModule } from '@angular/core';
  18. import { RouterModule, Routes } from '@angular/router';
  19. import { AvatarListModule } from '@delon/abc/avatar-list';
  20. import { EllipsisModule } from '@delon/abc/ellipsis';
  21. import { FooterToolbarModule } from '@delon/abc/footer-toolbar';
  22. import { TagSelectModule } from '@delon/abc/tag-select';
  23. import { CurrencyPipeModule } from '@delon/util/pipes/currency';
  24. import { SharedModule } from '@shared';
  25. import { NzPageHeaderModule } from 'ng-zorro-antd/page-header';
  26. import { NzPaginationModule } from 'ng-zorro-antd/pagination';
  27. import { NzStepsModule } from 'ng-zorro-antd/steps';
  28. import { PasswordComponent } from './password/password.component';
  29. import { ProfileComponent } from './profile/profile.component';
  30. import { SocialsAssociateComponent } from './socials-associate/socials-associate.component';
  31. import { SocialsProviderComponent } from './socials-provider/socials-provider.component';
  32. import { TimebasedComponent } from './timebased/timebased.component';
  33. import { AccoutsComponent } from './accouts/accouts.component';
  34. const routes: Routes = [
  35. {
  36. path: 'profile',
  37. component: ProfileComponent
  38. },
  39. {
  40. path: 'password',
  41. component: PasswordComponent
  42. },
  43. {
  44. path: 'socialsassociate',
  45. component: SocialsAssociateComponent
  46. },
  47. {
  48. path: 'timebased',
  49. component: TimebasedComponent
  50. }
  51. ];
  52. const COMPONENTS = [ProfileComponent];
  53. @NgModule({
  54. declarations: [
  55. ...COMPONENTS,
  56. SocialsProviderComponent,
  57. TimebasedComponent,
  58. SocialsAssociateComponent,
  59. PasswordComponent,
  60. ProfileComponent,
  61. AccoutsComponent
  62. ],
  63. imports: [SharedModule, CommonModule, RouterModule.forChild(routes)],
  64. exports: [RouterModule]
  65. })
  66. export class ConfigModule { }