Skip to content

Commit

Permalink
refactored modules (#154)
Browse files Browse the repository at this point in the history
* optimised modules

* Angular Upgrade: 12.1.0 → 12.1.1 (core)

* Angular Upgrade: 12.1.0 → 12.1.1 (material)
  • Loading branch information
kubikowski authored Jul 2, 2021
1 parent ac76764 commit 71c25a6
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 99 deletions.
66 changes: 33 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~12.1.0",
"@angular/cdk": "^12.1.0",
"@angular/common": "~12.1.0",
"@angular/compiler": "~12.1.0",
"@angular/core": "~12.1.0",
"@angular/forms": "~12.1.0",
"@angular/material": "^12.1.0",
"@angular/platform-browser": "~12.1.0",
"@angular/platform-browser-dynamic": "~12.1.0",
"@angular/router": "~12.1.0",
"@angular/animations": "~12.1.1",
"@angular/cdk": "^12.1.1",
"@angular/common": "~12.1.1",
"@angular/compiler": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/forms": "~12.1.1",
"@angular/material": "^12.1.1",
"@angular/platform-browser": "~12.1.1",
"@angular/platform-browser-dynamic": "~12.1.1",
"@angular/router": "~12.1.1",
"rxjs": "~6.6.7",
"subsink": "^1.0.2",
"tslib": "^2.3.0",
Expand All @@ -32,7 +32,7 @@
"devDependencies": {
"@angular-devkit/build-angular": "~12.1.1",
"@angular/cli": "~12.1.1",
"@angular/compiler-cli": "~12.1.0",
"@angular/compiler-cli": "~12.1.1",
"@types/node": "^15.14.0",
"@types/jasmine": "~3.7.7",
"@types/jasminewd2": "~2.0.9",
Expand Down
3 changes: 1 addition & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ const routes: Routes = [
imports: [ RouterModule.forRoot(routes) ],
exports: [ RouterModule ],
})
export class AppRoutingModule {
}
export class AppRoutingModule { }
3 changes: 1 addition & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ import { SharedModule } from 'src/app/shared/shared.module';
providers: [],
bootstrap: [ AppComponent ],
})
export class AppModule {
}
export class AppModule { }
5 changes: 1 addition & 4 deletions src/app/navigation/navigation.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { HeaderComponent } from 'src/app/navigation/header/header.component';
import { SettingsComponent } from 'src/app/navigation/header/settings/settings.component';
Expand All @@ -14,7 +13,6 @@ import { SharedModule } from 'src/app/shared/shared.module';
SidebarItemComponent,
],
imports: [
CommonModule,
SharedModule,
],
exports: [
Expand All @@ -24,5 +22,4 @@ import { SharedModule } from 'src/app/shared/shared.module';
SidebarItemComponent,
],
})
export class NavigationModule {
}
export class NavigationModule { }
3 changes: 1 addition & 2 deletions src/app/pages/gong/gong-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ const routes: Routes = [
imports: [ RouterModule.forChild(routes) ],
exports: [ RouterModule ]
})
export class GongRoutingModule {
}
export class GongRoutingModule { }
5 changes: 1 addition & 4 deletions src/app/pages/gong/gong.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { GongRoutingModule } from 'src/app/pages/gong/gong-routing.module';
import { GongComponent } from 'src/app/pages/gong/gong.component';
Expand All @@ -9,12 +8,10 @@ import { SharedModule } from 'src/app/shared/shared.module';
GongComponent,
],
imports: [
CommonModule,
SharedModule,
],
exports: [
GongRoutingModule,
],
})
export class GongModule {
}
export class GongModule { }
3 changes: 1 addition & 2 deletions src/app/pages/not-found/not-found-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ const routes: Routes = [
imports: [ RouterModule.forChild(routes) ],
exports: [ RouterModule ]
})
export class NotFoundRoutingModule {
}
export class NotFoundRoutingModule { }
5 changes: 1 addition & 4 deletions src/app/pages/not-found/not-found.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NotFoundRoutingModule } from 'src/app/pages/not-found/not-found-routing.module';
import { NotFoundComponent } from 'src/app/pages/not-found/not-found.component';
Expand All @@ -10,13 +9,11 @@ import { SharedModule } from 'src/app/shared/shared.module';
NotFoundComponent,
],
imports: [
CommonModule,
SnekModule,
SharedModule,
],
exports: [
NotFoundRoutingModule,
],
})
export class NotFoundModule {
}
export class NotFoundModule { }
5 changes: 1 addition & 4 deletions src/app/pages/not-found/snek/snek.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SnekResultsDialogComponent } from 'src/app/pages/not-found/snek/components/dialog/snek-results-dialog/snek-results-dialog.component';
import { SnekGridNodeComponent } from 'src/app/pages/not-found/snek/components/snek-grid-node/snek-grid-node.component';
Expand All @@ -16,12 +15,10 @@ import { SharedModule } from 'src/app/shared/shared.module';
SnekComponent,
],
imports: [
CommonModule,
SharedModule,
],
exports: [
SnekComponent,
],
})
export class SnekModule {
}
export class SnekModule { }
3 changes: 1 addition & 2 deletions src/app/shared/dyslexic-text/dyslexic-text.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ import { DyslexicTextComponent } from 'src/app/shared/dyslexic-text/dyslexic-tex
DyslexicTextComponent,
],
})
export class DyslexicTextModule {
}
export class DyslexicTextModule { }
19 changes: 1 addition & 18 deletions src/app/shared/material.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
Expand All @@ -14,21 +13,6 @@ import { MatToolbarModule } from '@angular/material/toolbar';
import { MatTooltipModule } from '@angular/material/tooltip';

@NgModule({
imports: [
CommonModule,
MatButtonModule,
MatCardModule,
MatCheckboxModule,
MatDialogModule,
MatDividerModule,
MatIconModule,
MatMenuModule,
MatSidenavModule,
MatSlideToggleModule,
MatSliderModule,
MatToolbarModule,
MatTooltipModule,
],
exports: [
MatButtonModule,
MatCardModule,
Expand All @@ -44,5 +28,4 @@ import { MatTooltipModule } from '@angular/material/tooltip';
MatTooltipModule,
],
})
export class MaterialModule {
}
export class MaterialModule { }
13 changes: 2 additions & 11 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,14 @@ import { DyslexicTextModule } from 'src/app/shared/dyslexic-text/dyslexic-text.m
import { MaterialModule } from 'src/app/shared/material.module';

@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
RouterModule,
DyslexicTextModule,
MaterialModule,
],
exports: [
CommonModule,
HttpClientModule,
RouterModule,
FormsModule,
ReactiveFormsModule,
RouterModule,
DyslexicTextModule,
MaterialModule,
],
})
export class SharedModule {
}
export class SharedModule { }

0 comments on commit 71c25a6

Please sign in to comment.