Skip to content

Commit

Permalink
chore: Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zusorio committed Nov 27, 2024
1 parent 0e41165 commit 54db231
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 85 deletions.
3 changes: 1 addition & 2 deletions frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { NgIf, NgClass, AsyncPipe } from '@angular/common';
import { NgClass, AsyncPipe } from '@angular/common';
import { AfterViewInit, Component, ViewChild } from '@angular/core';
import {
MatSidenav,
Expand Down Expand Up @@ -30,7 +30,6 @@ import { FullscreenService } from './sessions/service/fullscreen.service';
MatDrawer,
NavBarMenuComponent,
MatDrawerContent,
NgIf,
HeaderComponent,
NgClass,
NoticeComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { NgIf, AsyncPipe } from '@angular/common';
import { AsyncPipe } from '@angular/common';
import { Component } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatIcon } from '@angular/material/icon';
Expand All @@ -12,7 +12,7 @@ import { MetadataService } from '../metadata.service';
@Component({
selector: 'app-version',
templateUrl: './version.component.html',
imports: [NgIf, MatIcon, AsyncPipe],
imports: [MatIcon, AsyncPipe],
})
export class VersionComponent {
constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { CreateBackup, ProjectsModelsBackupsService } from 'src/app/openapi';
import { T4CModelService } from 'src/app/projects/models/model-source/t4c/service/t4c-model.service';
import { GitModelService } from 'src/app/projects/project-detail/model-overview/model-detail/git-model.service';
import { MatIconComponent } from '../../../../helpers/mat-icon/mat-icon.component';

@UntilDestroy()
@Component({
Expand All @@ -44,7 +43,6 @@ import { MatIconComponent } from '../../../../helpers/mat-icon/mat-icon.componen
MatDialogClose,
AsyncPipe,
NgxSkeletonLoaderModule,
MatIconComponent,
],
})
export class CreateBackupComponent implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import { AsyncPipe } from '@angular/common';
import { Component, Inject, OnInit } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { MatIconAnchor, MatButton, MatAnchor } from '@angular/material/button';
import { MatCheckbox } from '@angular/material/checkbox';
import { MatRipple } from '@angular/material/core';
import { MatButton } from '@angular/material/button';
import {
MatDialog,
MatDialogRef,
Expand All @@ -30,13 +28,9 @@ import { PipelineWrapperService } from '../service/pipeline.service';
selector: 'app-trigger-pipeline',
templateUrl: './trigger-pipeline.component.html',
imports: [
MatIconAnchor,
MatIcon,
MatRipple,
ReactiveFormsModule,
MatCheckbox,
MatButton,
MatAnchor,
AsyncPipe,
NgxSkeletonLoaderModule,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { NgIf, NgFor, AsyncPipe } from '@angular/common';
import { NgFor, AsyncPipe } from '@angular/common';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { MatRipple } from '@angular/material/core';
import { MatIconModule } from '@angular/material/icon';
Expand All @@ -22,7 +22,6 @@ import { ProjectWrapperService } from '../../service/project.service';
selector: 'app-model-detail',
templateUrl: './model-detail.component.html',
imports: [
NgIf,
RouterLink,
MatRipple,
MatIconComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ import {
ReactiveFormsModule,
} from '@angular/forms';
import { MatButton } from '@angular/material/button';
import { MatOption } from '@angular/material/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { MatFormField, MatLabel, MatError } from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
import { MatInput } from '@angular/material/input';
import { MatRadioModule } from '@angular/material/radio';
import { MatSelect } from '@angular/material/select';
import { Observable, map, take } from 'rxjs';
import { ToastService } from 'src/app/helpers/toast/toast.service';
import { Project, ProjectUserPermission } from 'src/app/openapi';
Expand All @@ -43,8 +41,6 @@ import {
MatInput,
MatRadioModule,
MatError,
MatSelect,
MatOption,
MatButton,
MatIcon,
KeyValuePipe,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
*/
import { AsyncPipe, CommonModule } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import {
MatAnchor,
MatButton,
MatMiniFabAnchor,
MatMiniFabButton,
} from '@angular/material/button';
import { MatAnchor, MatMiniFabAnchor } from '@angular/material/button';
import { MatIcon } from '@angular/material/icon';
import { MatTooltip } from '@angular/material/tooltip';
import { RouterLink } from '@angular/router';
Expand All @@ -36,10 +31,8 @@ import { ProjectWrapperService } from 'src/app/projects/service/project.service'
RouterLink,
MatTooltip,
MatIcon,
MatButton,
NgxSkeletonLoaderModule,
MatMiniFabAnchor,
MatMiniFabButton,
AsyncPipe,
MarkdownComponent,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from '@angular/forms';
import { MatChipsModule } from '@angular/material/chips';
import { MatRipple } from '@angular/material/core';
import { MatDivider } from '@angular/material/divider';
import {
MatFormField,
MatLabel,
Expand Down Expand Up @@ -45,7 +44,6 @@ import { ProjectWrapperService } from '../service/project.service';
ReactiveFormsModule,
FormsModule,
MatChipsModule,
MatDivider,
],
})
export class ProjectOverviewComponent implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ import { MatButtonModule } from '@angular/material/button';
import { MatCheckbox } from '@angular/material/checkbox';
import {
MAT_DIALOG_DATA,
MatDialogActions,
MatDialogClose,
MatDialogContent,
MatDialogRef,
MatDialogTitle,
} from '@angular/material/dialog';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
Expand All @@ -46,9 +43,6 @@ interface DialogData {
MatIcon,
MatFormFieldModule,
MatCheckbox,
MatDialogTitle,
MatDialogContent,
MatDialogActions,
MatInput,
MatDialogClose,
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { DatePipe } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import {
FormControl,
Expand Down Expand Up @@ -49,7 +48,6 @@ import { DeleteSessionDialogComponent } from '../delete-session-dialog/delete-se
MatRowDef,
MatRow,
MatButton,
DatePipe,
NgxSkeletonLoaderModule,
RelativeTimeComponent,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { MatTableDataSource } from '@angular/material/table';
import { MatTreeModule } from '@angular/material/tree';
import { saveAs } from 'file-saver';
import { ConfirmationDialogComponent } from 'src/app/helpers/confirmation-dialog/confirmation-dialog.component';
import { MatIconComponent } from 'src/app/helpers/mat-icon/mat-icon.component';
import { ToastService } from 'src/app/helpers/toast/toast.service';
import { Session, SessionsService } from 'src/app/openapi';
import { PathNode } from 'src/app/sessions/service/session.service';
Expand All @@ -38,7 +37,6 @@ import { PathNode } from 'src/app/sessions/service/session.service';
MatTreeModule,
NgClass,
ReactiveFormsModule,
MatIconComponent,
],
})
export class FileBrowserDialogComponent implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatTooltipModule } from '@angular/material/tooltip';
import { catchError, combineLatest, of, tap } from 'rxjs';
import { DisplayValueComponent } from 'src/app/helpers/display-value/display-value.component';
import { ToastService } from 'src/app/helpers/toast/toast.service';
import { Session, SessionsService } from 'src/app/openapi';

Expand All @@ -32,7 +31,6 @@ import { Session, SessionsService } from 'src/app/openapi';
imports: [
CommonModule,
MatCheckboxModule,
DisplayValueComponent,
MatFormFieldModule,
MatInputModule,
MatButtonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { CommonModule, KeyValuePipe } from '@angular/common';
import { CommonModule } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialog } from '@angular/material/dialog';
Expand Down Expand Up @@ -38,7 +38,6 @@ import { SessionService } from 'src/app/sessions/service/session.service';
MatButtonModule,
NgxSkeletonLoaderModule,
MatIconComponent,
KeyValuePipe,
],
templateUrl: './create-provisioned-session.component.html',
styles: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { NgIf, NgFor } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import {
FormBuilder,
Expand Down Expand Up @@ -37,8 +36,6 @@ import {
imports: [
FormsModule,
ReactiveFormsModule,
NgIf,
NgFor,
NgxSkeletonLoaderModule,
MatFormField,
MatLabel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
import { AsyncPipe } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
MatIconAnchor,
MatIconButton,
MatButton,
} from '@angular/material/button';
import { MatOption } from '@angular/material/core';
import { MatFormField, MatLabel, MatError } from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
import { MatInput } from '@angular/material/input';
import { MatSelect } from '@angular/material/select';
import { RouterLink } from '@angular/router';
import { UntilDestroy } from '@ngneat/until-destroy';
import { MatIconComponent } from 'src/app/helpers/mat-icon/mat-icon.component';
Expand All @@ -26,19 +16,9 @@ import { GitInstancesWrapperService } from 'src/app/settings/modelsources/git-se
selector: 'app-git-settings',
templateUrl: './git-settings.component.html',
imports: [
MatIconAnchor,
RouterLink,
MatIcon,
MatIconButton,
FormsModule,
ReactiveFormsModule,
MatFormField,
MatLabel,
MatSelect,
MatOption,
MatInput,
MatError,
MatButton,
AsyncPipe,
MatIconComponent,
MatCardOverviewSkeletonLoaderComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { AsyncPipe, JsonPipe, NgIf } from '@angular/common';
import { AsyncPipe } from '@angular/common';
import { Component, OnDestroy, OnInit } from '@angular/core';
import {
FormBuilder,
Expand All @@ -12,7 +12,6 @@ import {
Validators,
} from '@angular/forms';
import { MatButton } from '@angular/material/button';
import { MatRipple } from '@angular/material/core';
import { MatDialog } from '@angular/material/dialog';
import { MatError, MatFormField, MatLabel } from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
Expand All @@ -24,7 +23,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { filter, map, take } from 'rxjs';
import { BreadcrumbsService } from '../../../../general/breadcrumbs/breadcrumbs.service';
import { ConfirmationDialogComponent } from '../../../../helpers/confirmation-dialog/confirmation-dialog.component';
import { MatIconComponent } from '../../../../helpers/mat-icon/mat-icon.component';
import { ToastService } from '../../../../helpers/toast/toast.service';
import { SettingsModelsourcesT4CLicenseServersService } from '../../../../openapi';
import { T4CLicenseServerWrapperService } from '../../../../services/settings/t4c-license-server.service';
Expand All @@ -43,11 +41,7 @@ import { T4CLicenseServerWrapperService } from '../../../../services/settings/t4
MatError,
MatIcon,
AsyncPipe,
NgIf,
JsonPipe,
NgxSkeletonLoaderModule,
MatIconComponent,
MatRipple,
RouterLink,
MatTooltip,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
} from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
import { MatInput } from '@angular/material/input';
import { MatListSubheaderCssMatStyler } from '@angular/material/list';
import { MatTooltip } from '@angular/material/tooltip';
import { RouterLink } from '@angular/router';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
Expand Down Expand Up @@ -52,7 +51,6 @@ import { UserWrapperService } from 'src/app/users/user-wrapper/user-wrapper.serv
FormsModule,
MatIcon,
MatSuffix,
MatListSubheaderCssMatStyler,
RouterLink,
MatIconButton,
MatTooltip,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,14 @@ import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@angular/material/icon';
import { BehaviorSubject, of, switchMap } from 'rxjs';
import { ConfirmationDialogComponent } from 'src/app/helpers/confirmation-dialog/confirmation-dialog.component';
import { DisplayValueComponent } from 'src/app/helpers/display-value/display-value.component';
import { ToastService } from 'src/app/helpers/toast/toast.service';
import { User, UsersService, Workspace } from 'src/app/openapi';
import { OwnUserWrapperService } from 'src/app/services/user/user.service';
import { UserWrapperService } from 'src/app/users/user-wrapper/user-wrapper.service';

@Component({
selector: 'app-user-workspaces',
imports: [
CommonModule,
MatDividerModule,
DisplayValueComponent,
MatButtonModule,
MatIconModule,
],
imports: [CommonModule, MatDividerModule, MatButtonModule, MatIconModule],
templateUrl: './user-workspaces.component.html',
styles: `
:host {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
import { AsyncPipe, DatePipe } from '@angular/common';
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import { UntilDestroy } from '@ngneat/until-destroy';
import { BehaviorSubject } from 'rxjs';
import { OwnUserWrapperService } from 'src/app/services/user/user.service';
Expand All @@ -20,7 +19,6 @@ import { UserWorkspacesComponent } from './user-workspaces/user-workspaces.compo
selector: 'app-users-profile',
templateUrl: './users-profile.component.html',
imports: [
RouterLink,
DatePipe,
CommonProjectsComponent,
UserInformationComponent,
Expand Down

0 comments on commit 54db231

Please sign in to comment.