[DURACOM-191] Remove system-wide-alert.module

This commit is contained in:
Giuseppe Digilio
2024-03-14 16:30:56 +01:00
parent c6cdb99213
commit 653de28586
5 changed files with 2 additions and 38 deletions

View File

@@ -33,7 +33,7 @@ import { RequestService } from './request.service';
/**
* Dataservice representing a system-wide alert
*/
@Injectable()
@Injectable({ providedIn: 'root' })
export class SystemWideAlertDataService extends IdentifiableDataService<SystemWideAlert> implements FindAllData<SystemWideAlert>, CreateData<SystemWideAlert>, PutData<SystemWideAlert>, SearchData<SystemWideAlert> {
private findAllData: FindAllDataImpl<SystemWideAlert>;
private createData: CreateDataImpl<SystemWideAlert>;

View File

@@ -28,11 +28,9 @@ import { ThemedRootComponent } from './root/themed-root.component';
import { IdleModalComponent } from './shared/idle-modal/idle-modal.component';
import { NotificationComponent } from './shared/notifications/notification/notification.component';
import { NotificationsBoardComponent } from './shared/notifications/notifications-board/notifications-board.component';
import { SystemWideAlertModule } from './system-wide-alert/system-wide-alert.module';
const IMPORTS = [
CommonModule,
SystemWideAlertModule,
NgbModule,
];

View File

@@ -23,7 +23,6 @@ import { NotificationsServiceStub } from '../../shared/testing/notifications-ser
import { RouterStub } from '../../shared/testing/router.stub';
import { createPaginatedList } from '../../shared/testing/utils.test';
import { SystemWideAlert } from '../system-wide-alert.model';
import { SystemWideAlertModule } from '../system-wide-alert.module';
import { SystemWideAlertFormComponent } from './system-wide-alert-form.component';
describe('SystemWideAlertFormComponent', () => {
@@ -63,7 +62,7 @@ describe('SystemWideAlertFormComponent', () => {
router = new RouterStub();
TestBed.configureTestingModule({
imports: [FormsModule, SystemWideAlertModule, UiSwitchModule, TranslateModule.forRoot(), SystemWideAlertFormComponent],
imports: [FormsModule, UiSwitchModule, TranslateModule.forRoot(), SystemWideAlertFormComponent],
providers: [
{ provide: SystemWideAlertDataService, useValue: systemWideAlertDataService },
{ provide: NotificationsService, useValue: notificationsService },

View File

@@ -1,31 +0,0 @@
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import {
NgbDatepickerModule,
NgbTimepickerModule,
} from '@ng-bootstrap/ng-bootstrap';
import { UiSwitchModule } from 'ngx-ui-switch';
import { SystemWideAlertDataService } from '../core/data/system-wide-alert-data.service';
import { SystemWideAlertBannerComponent } from './alert-banner/system-wide-alert-banner.component';
import { SystemWideAlertFormComponent } from './alert-form/system-wide-alert-form.component';
@NgModule({
imports: [
FormsModule,
UiSwitchModule,
NgbTimepickerModule,
NgbDatepickerModule,
SystemWideAlertBannerComponent,
SystemWideAlertFormComponent,
],
exports: [
SystemWideAlertBannerComponent,
],
providers: [
SystemWideAlertDataService,
],
})
export class SystemWideAlertModule {
}

View File

@@ -14,7 +14,6 @@ import { IdlePreloadModule } from 'angular-idle-preload';
import { AppModule } from '../../app/app.module';
import { RootModule } from '../../app/root.module';
import { SystemWideAlertModule } from '../../app/system-wide-alert/system-wide-alert.module';
import { AdminSidebarComponent } from './app/admin/admin-sidebar/admin-sidebar.component';
import { EditBitstreamPageComponent } from './app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component';
import { BreadcrumbsComponent } from './app/breadcrumbs/breadcrumbs.component';
@@ -201,7 +200,6 @@ const DECLARATIONS = [
StoreRouterConnectingModule,
TranslateModule,
FormsModule,
SystemWideAlertModule,
NgxGalleryModule,
...DECLARATIONS,
],