Skip to content

Commit

Permalink
remove flex-layout imports in some files
Browse files Browse the repository at this point in the history
  • Loading branch information
darynkka committed Dec 1, 2024
1 parent faaadde commit 8c7b0bf
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 32 deletions.
2 changes: 0 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { registerLocaleData } from '@angular/common';
import { HTTP_INTERCEPTORS, HttpClient, HttpClientModule } from '@angular/common/http';
import localeUk from '@angular/common/locales/uk';
import { LOCALE_ID, NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule } from '@angular/forms';
import { MAT_LEGACY_SELECT_CONFIG as MAT_SELECT_CONFIG } from '@angular/material/legacy-select';
import { BrowserModule } from '@angular/platform-browser';
Expand Down Expand Up @@ -73,7 +72,6 @@ registerLocaleData(localeUk);
NgxsLoggerPluginModule.forRoot({
disabled: environment.production
}),
FlexLayoutModule,
ShellModule,
RegistrationModule,
HttpClientModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MatCardModule } from '@angular/material/card';
import { MatChipsModule } from '@angular/material/chips';
import { MatDialogModule } from '@angular/material/dialog';
Expand All @@ -24,7 +23,6 @@ describe('WorkshopCardComponent', () => {
MatIconModule,
MatCardModule,
NgxsModule.forRoot([]),
FlexLayoutModule,
RouterTestingModule,
MatChipsModule,
MatTooltipModule,
Expand Down
2 changes: 0 additions & 2 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { NgxSliderModule } from '@angular-slider/ngx-slider';
import { CdkAccordionModule } from '@angular/cdk/accordion';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -158,7 +157,6 @@ import { TranslateCasesPipe } from './pipes/translate-cases.pipe';
MaterialModule,
CommonModule,
ReactiveFormsModule,
FlexLayoutModule,
RouterModule,
FormsModule,
NgxSliderModule,
Expand Down
3 changes: 1 addition & 2 deletions src/app/shell/admin-tools/admin-tools.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { TranslateModule } from '@ngx-translate/core';

import { SharedModule } from 'shared/shared.module';
Expand All @@ -9,7 +8,7 @@ import { AdminToolsComponent } from './admin-tools.component';

@NgModule({
declarations: [AdminToolsComponent],
imports: [CommonModule, AdminToolsRoutingModule, SharedModule, FlexLayoutModule, TranslateModule],
imports: [CommonModule, AdminToolsRoutingModule, SharedModule, TranslateModule],
exports: [AdminToolsComponent]
})
export class AdminToolsModule {}
3 changes: 1 addition & 2 deletions src/app/shell/admin-tools/data/data.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { TranslateModule } from '@ngx-translate/core';
import { SharedModule } from '../../../shared/shared.module';
import { MaterialModule } from '../../../shared/modules/material.module';
Expand Down Expand Up @@ -42,7 +41,7 @@ import { DirectionsInstitutionHierarchiesEditFormComponent } from './directions-
StatisticsComponent,
DirectionsInstitutionHierarchiesEditFormComponent
],
imports: [CommonModule, DataRoutingModule, SharedModule, MaterialModule, FlexLayoutModule, TranslateModule, SharedCabinetModule],
imports: [CommonModule, DataRoutingModule, SharedModule, MaterialModule, TranslateModule, SharedCabinetModule],
exports: [DataComponent]
})
export class DataModule {}
3 changes: 1 addition & 2 deletions src/app/shell/admin-tools/platform/platform.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -24,7 +23,7 @@ import { PlatformComponent } from './platform.component';
PlatformComponent,
MainInfoComponent
],
imports: [CommonModule, FlexLayoutModule, SharedModule, MaterialModule, RouterModule, TranslateModule],
imports: [CommonModule, SharedModule, MaterialModule, RouterModule, TranslateModule],
exports: [PlatformComponent]
})
export class PlatformModule {}
3 changes: 1 addition & 2 deletions src/app/shell/details/details.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { NgxsModule, Store } from '@ngxs/store';
import { Component, Input } from '@angular/core';
import { RouterModule } from '@angular/router';
import { APP_BASE_HREF } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { of } from 'rxjs';
import { User } from '../../shared/models/user.model';
import { Workshop } from '../../shared/models/workshop.model';
Expand All @@ -22,7 +21,7 @@ describe('DetailsComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NgxsModule.forRoot([]), RouterModule.forRoot([]), FlexLayoutModule],
imports: [NgxsModule.forRoot([]), RouterModule.forRoot([])],
declarations: [DetailsComponent, MockSideMenuComponent, MockDetailsWorkshopComponent, MockDetailsProviderComponent],
providers: [{ provide: APP_BASE_HREF, useValue: '/' }]
}).compileComponents();
Expand Down
3 changes: 1 addition & 2 deletions src/app/shell/details/details.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -35,7 +34,7 @@ import { TeacherCardComponent } from './details-tabs/workshop-teachers/teacher-c
AchievementsComponent,
TeacherCardComponent
],
imports: [CommonModule, FlexLayoutModule, SharedModule, MaterialModule, TranslateModule, RouterModule],
imports: [CommonModule, SharedModule, MaterialModule, TranslateModule, RouterModule],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: []
})
Expand Down
3 changes: 1 addition & 2 deletions src/app/shell/details/side-menu/side-menu.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
import { Store } from '@ngxs/store';
import { RouterTestingModule } from '@angular/router/testing';
import { NgxsModule } from '@ngxs/store';
import { FlexLayoutModule } from '@angular/flex-layout';
import { of } from 'rxjs';
import { Workshop } from '../../../shared/models/workshop.model';
import { User } from '../../../shared/models/user.model';
Expand All @@ -17,7 +16,7 @@ describe('SideMenuComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [RouterTestingModule, NgxsModule.forRoot([]), FlexLayoutModule],
imports: [RouterTestingModule, NgxsModule.forRoot([])],
declarations: [SideMenuComponent, MockActionsComponent, MockContactsComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
Expand Down
2 changes: 0 additions & 2 deletions src/app/shell/personal-cabinet/parent/parent.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -33,7 +32,6 @@ import { CreateParentComponent } from './create-parent/create-parent.component';
imports: [
CommonModule,
ParentRoutingModule,
FlexLayoutModule,
SharedModule,
MaterialModule,
SharedCabinetModule,
Expand Down
3 changes: 1 addition & 2 deletions src/app/shell/personal-cabinet/personal-cabinet.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { TranslateModule } from '@ngx-translate/core';

import { SharedModule } from 'shared/shared.module';
Expand All @@ -13,7 +12,7 @@ import { UserConfigComponent } from './shared-cabinet/user-config/user-config.co

@NgModule({
declarations: [UserConfigComponent, UserConfigEditComponent],
imports: [CommonModule, PersonalCabinetRoutingModule, FlexLayoutModule, SharedModule, SharedCabinetModule, TranslateModule],
imports: [CommonModule, PersonalCabinetRoutingModule, SharedModule, SharedCabinetModule, TranslateModule],
providers: [ParentGuard, ProviderGuard]
})
export class PersonalCabinetModule {}
2 changes: 0 additions & 2 deletions src/app/shell/personal-cabinet/provider/provider.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CommonModule, DatePipe } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -54,7 +53,6 @@ import { ProviderWorkshopsComponent } from './provider-workshops/provider-worksh
imports: [
CommonModule,
ProviderRoutingModule,
FlexLayoutModule,
SharedModule,
MaterialModule,
SharedCabinetModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -26,7 +25,7 @@ import { MessagesComponent } from './messages/messages.component';
ChatComponent,
MessageComponent
],
imports: [MaterialModule, SharedModule, CommonModule, FlexLayoutModule, RouterModule, TranslateModule],
imports: [MaterialModule, SharedModule, CommonModule, RouterModule, TranslateModule],
exports: [ApplicationsComponent]
})
export class SharedCabinetModule {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FlexLayoutModule } from '@angular/flex-layout';
import { NgxsModule, Store } from '@ngxs/store';
import { Observable, of } from 'rxjs';

Expand All @@ -25,7 +24,7 @@ describe('WorkshopCardsListComponentt', () => {
NoResultCardComponent,
MockListWorkshopCardPaginatorComponent
],
imports: [FlexLayoutModule, CommonModule, NgxsModule.forRoot([])]
imports: [CommonModule, NgxsModule.forRoot([])]
}).compileComponents();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormGroup } from '@angular/forms';
import { MatCardModule } from '@angular/material/card';
import { RouterTestingModule } from '@angular/router/testing';
Expand All @@ -18,7 +17,7 @@ describe('WorkshopMapViewListComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [FlexLayoutModule, CommonModule, RouterTestingModule, MatCardModule, NgxsModule.forRoot([])],
imports: [CommonModule, RouterTestingModule, MatCardModule, NgxsModule.forRoot([])],
declarations: [
WorkshopMapViewListComponent,
MockMapListWorkshopCardComponent,
Expand Down
2 changes: 0 additions & 2 deletions src/app/shell/shell.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { CommonModule } from '@angular/common';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/material-moment-adapter';
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';
import { RouterModule } from '@angular/router';
Expand Down Expand Up @@ -55,7 +54,6 @@ import { CreateParentGuard } from './personal-cabinet/parent/create-parent/creat
SharedModule,
NgxPaginationModule,
HttpClientModule,
FlexLayoutModule,
TranslateModule
],
providers: [
Expand Down

0 comments on commit 8c7b0bf

Please sign in to comment.