mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-5308] reduce various modules by switching to standalone (#3248)
* crate-form-template dialog * remove unused module * viewer profile component * trashcan component * remove test dependency on global material module * remove unused test imports * break CoreModule dependency * login component * remove app material module * remove languages from the config as not needed
This commit is contained in:
@@ -29,7 +29,7 @@ import { EffectsModule } from '@ngrx/effects';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { ContextMenu } from '@alfresco/aca-shared/store';
|
||||
import { ContextMenuService } from '../../components/context-menu/context-menu.service';
|
||||
import { OverlayRef } from '@angular/cdk/overlay';
|
||||
import { OverlayModule, OverlayRef } from '@angular/cdk/overlay';
|
||||
import { ContextMenuOverlayRef } from '../../components/context-menu/context-menu-overlay';
|
||||
|
||||
describe('ContextMenuEffects', () => {
|
||||
@@ -39,7 +39,7 @@ describe('ContextMenuEffects', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([ContextMenuEffects])],
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([ContextMenuEffects]), OverlayModule],
|
||||
providers: [ContextMenuService]
|
||||
});
|
||||
|
||||
|
@@ -27,7 +27,7 @@ import { AppTestingModule } from '../../testing/app-testing.module';
|
||||
import { EffectsModule } from '@ngrx/effects';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { BehaviorSubject, Subject } from 'rxjs';
|
||||
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||
import { MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
import { DownloadNodesAction } from '@alfresco/aca-shared/store';
|
||||
import { SelectionState } from '@alfresco/adf-extensions';
|
||||
import { VersionEntry } from '@alfresco/js-api';
|
||||
@@ -38,7 +38,7 @@ describe('DownloadEffects', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([DownloadEffects])]
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([DownloadEffects]), MatDialogModule]
|
||||
});
|
||||
store = TestBed.inject(Store);
|
||||
});
|
||||
|
@@ -53,6 +53,8 @@ import { RenditionService } from '@alfresco/adf-content-services';
|
||||
import { ViewerEffects } from './viewer.effects';
|
||||
import { Router } from '@angular/router';
|
||||
import { of } from 'rxjs';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
|
||||
describe('NodeEffects', () => {
|
||||
let store: Store<any>;
|
||||
@@ -63,7 +65,7 @@ describe('NodeEffects', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, SharedStoreModule, EffectsModule.forRoot([NodeEffects, ViewerEffects])],
|
||||
imports: [AppTestingModule, SharedStoreModule, EffectsModule.forRoot([NodeEffects, ViewerEffects]), MatDialogModule, MatSnackBarModule],
|
||||
providers: [RenditionService]
|
||||
});
|
||||
|
||||
|
@@ -31,6 +31,8 @@ import { NgZone } from '@angular/core';
|
||||
import { UploadService, FileUploadCompleteEvent, FileModel } from '@alfresco/adf-content-services';
|
||||
import { UnlockWriteAction, UploadFilesAction, UploadFileVersionAction, UploadFolderAction } from '@alfresco/aca-shared/store';
|
||||
import { ContentManagementService } from '../../services/content-management.service';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
|
||||
describe('UploadEffects', () => {
|
||||
let store: Store<any>;
|
||||
@@ -41,7 +43,7 @@ describe('UploadEffects', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([UploadEffects])]
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([UploadEffects]), MatDialogModule, MatSnackBarModule]
|
||||
});
|
||||
|
||||
zone = TestBed.inject(NgZone);
|
||||
|
@@ -29,6 +29,7 @@ import { EffectsModule } from '@ngrx/effects';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Router } from '@angular/router';
|
||||
import { ViewFileAction, ViewNodeAction, SetSelectedNodesAction, SetCurrentFolderAction } from '@alfresco/aca-shared/store';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
|
||||
describe('ViewerEffects', () => {
|
||||
let store: Store<any>;
|
||||
@@ -36,7 +37,7 @@ describe('ViewerEffects', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([ViewerEffects])]
|
||||
imports: [AppTestingModule, EffectsModule.forRoot([ViewerEffects]), MatDialogModule]
|
||||
});
|
||||
|
||||
store = TestBed.inject(Store);
|
||||
|
Reference in New Issue
Block a user