<NME> shared.module.ts
<BEF> import {TranslateModule} from '@ngx-translate/core'
import {CommonModule} from '@angular/common'
import {NgModule} from '@angular/core'
import {FormsModule} from '@angular/forms'
import {
    MatButtonModule,
    MatCardModule,
    MatDialogModule,
    MatIconModule,
    MatInputModule,
    MatListModule,
    MatMenuModule,
    MatSelectModule,
    MatSidenavModule,
    MatSliderModule,
    MatSlideToggleModule,
    MatSnackBarModule,
    MatTabsModule,
    MatToolbarModule
} from '@angular/material'
import {ColorPickerModule} from 'ngx-color-picker'
import {SidenavComponent} from './components/sidenav/sidenav.component'
import {RouterModule} from '@angular/router'
import {DialogComponent} from './components/dialog/dialog.component'
import {CachedMapsComponent} from './components/cached-maps/cached-maps.component'

@NgModule({
    declarations: [
        SidenavComponent,
        DialogComponent,
        CachedMapsComponent
    ],
    entryComponents: [
        DialogComponent,
        CachedMapsComponent
    ],
    imports: [
        RouterModule,
        CommonModule,
        FormsModule,
        TranslateModule,
        MatIconModule,
        MatSnackBarModule,
        MatDialogModule,
        ColorPickerModule,
        MatButtonModule,
        MatCardModule,
        MatInputModule,
        MatListModule,
        MatMenuModule,
        MatSelectModule,
        MatSidenavModule,
        MatSliderModule,
        MatSlideToggleModule,
        MatTabsModule,
        MatToolbarModule
    ],
    exports: [
        MatButtonModule,
        MatCardModule,
        TranslateModule,
        MatIconModule,
        MatSnackBarModule,
        MatDialogModule,
        ColorPickerModule,
        MatButtonModule,
        MatCardModule,
        MatInputModule,
        MatListModule,
        MatMenuModule,
        MatSelectModule,
        MatSidenavModule,
        MatSliderModule,
        MatSlideToggleModule,
        MatTabsModule,
        MatToolbarModule,
        SidenavComponent
    ]
        MatSelectModule,
        MatSnackBarModule,
        ColorPickerModule,
        MatButtonModule,
        MatCardModule,
        MatListModule,
        MatToolbarModule
    ]
})
export class SharedModule {
}

<MSG> [refactor] reorganize shared modules and components

<DFF> @@ -2,57 +2,26 @@ import {TranslateModule} from '@ngx-translate/core'
 import {CommonModule} from '@angular/common'
 import {NgModule} from '@angular/core'
 import {FormsModule} from '@angular/forms'
-import {
-    MatButtonModule,
-    MatCardModule,
-    MatDialogModule,
-    MatIconModule,
-    MatInputModule,
-    MatListModule,
-    MatMenuModule,
-    MatSelectModule,
-    MatSidenavModule,
-    MatSliderModule,
-    MatSlideToggleModule,
-    MatSnackBarModule,
-    MatTabsModule,
-    MatToolbarModule
-} from '@angular/material'
+import {MatButtonModule, MatCardModule, MatIconModule, MatListModule, MatSnackBarModule, MatToolbarModule} from '@angular/material'
 import {ColorPickerModule} from 'ngx-color-picker'
 import {SidenavComponent} from './components/sidenav/sidenav.component'
 import {RouterModule} from '@angular/router'
-import {DialogComponent} from './components/dialog/dialog.component'
-import {CachedMapsComponent} from './components/cached-maps/cached-maps.component'
 
 @NgModule({
     declarations: [
-        SidenavComponent,
-        DialogComponent,
-        CachedMapsComponent
-    ],
-    entryComponents: [
-        DialogComponent,
-        CachedMapsComponent
+        SidenavComponent
     ],
     imports: [
-        RouterModule,
         CommonModule,
         FormsModule,
+        RouterModule,
         TranslateModule,
         MatIconModule,
         MatSnackBarModule,
-        MatDialogModule,
         ColorPickerModule,
         MatButtonModule,
         MatCardModule,
-        MatInputModule,
         MatListModule,
-        MatMenuModule,
-        MatSelectModule,
-        MatSidenavModule,
-        MatSliderModule,
-        MatSlideToggleModule,
-        MatTabsModule,
         MatToolbarModule
     ],
     exports: [
@@ -61,18 +30,10 @@ import {CachedMapsComponent} from './components/cached-maps/cached-maps.componen
         TranslateModule,
         MatIconModule,
         MatSnackBarModule,
-        MatDialogModule,
         ColorPickerModule,
         MatButtonModule,
         MatCardModule,
-        MatInputModule,
         MatListModule,
-        MatMenuModule,
-        MatSelectModule,
-        MatSidenavModule,
-        MatSliderModule,
-        MatSlideToggleModule,
-        MatTabsModule,
         MatToolbarModule,
         SidenavComponent
     ]

[refactor] reorganize shared modules and components