mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
Fix spacing/indent
This commit is contained in:
parent
2e56029e71
commit
12bb2f8ead
42 changed files with 76 additions and 96 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
import {ActionGroupMenuComponent} from './action-group-menu.component';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {Observable, of} from 'rxjs';
|
||||
import {shareReplay, take} from 'rxjs/operators';
|
||||
|
@ -56,7 +56,7 @@ import {recordActionsMock} from '../../views/record/adapters/actions.adapter.spe
|
|||
import {RecordActionsAdapter} from '../../views/record/adapters/actions.adapter';
|
||||
import {ImageModule} from '../image/image.module';
|
||||
import {Action, ActionDataSource} from '../../common/actions/action.model';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'action-group-menu-test-host-component',
|
||||
|
|
|
@ -37,7 +37,6 @@ import {
|
|||
ScreenSizeObserverService
|
||||
} from '../../services/ui/screen-size-observer/screen-size-observer.service';
|
||||
import {LanguageStore, LanguageStrings} from '../../store/language/language.store';
|
||||
import {sign} from "mathjs";
|
||||
|
||||
export interface ActionGroupMenuViewModel {
|
||||
actions: Action[];
|
||||
|
|
|
@ -28,11 +28,10 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {FooterUiComponent} from './footer.component';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('FooterUiComponent', () => {
|
||||
let component: FooterUiComponent;
|
||||
|
|
|
@ -27,14 +27,14 @@
|
|||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import {ImageComponent} from './image.component';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
import {Component} from '@angular/core';
|
||||
import {themeImagesMockData} from '../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'host-component',
|
||||
|
|
|
@ -27,11 +27,9 @@
|
|||
import { ComponentFixture, TestBed, inject, waitForAsync } from '@angular/core/testing';
|
||||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
|
||||
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {LogoUiComponent} from './logo.component';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('LogoComponent', () => {
|
||||
let component: LogoUiComponent;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
|
||||
import {LogoutUiComponent} from './logout.component';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
|
@ -36,7 +36,7 @@ import {take} from 'rxjs/operators';
|
|||
import {AuthService} from '../../services/auth/auth.service';
|
||||
import {languageStoreMock} from '../../store/language/language.store.spec.mock';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('LogoutComponent', () => {
|
||||
let component: LogoutUiComponent;
|
||||
|
|
|
@ -27,19 +27,19 @@
|
|||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
import {NavbarUiComponent} from './navbar.component';
|
||||
import {NavbarUiComponent} from '../navbar.component';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {navigationMock} from '../../store/navigation/navigation.store.spec.mock';
|
||||
import {NavigationStore} from '../../store/navigation/navigation.store';
|
||||
import {UserPreferenceStore} from '../../store/user-preference/user-preference.store';
|
||||
import {languageStoreMock} from '../../store/language/language.store.spec.mock';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import {userPreferenceStoreMock} from '../../store/user-preference/user-preference.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {navigationMock} from '../../../store/navigation/navigation.store.spec.mock';
|
||||
import {NavigationStore} from '../../../store/navigation/navigation.store';
|
||||
import {UserPreferenceStore} from '../../../store/user-preference/user-preference.store';
|
||||
import {languageStoreMock} from '../../../store/language/language.store.spec.mock';
|
||||
import {LanguageStore} from '../../../store/language/language.store';
|
||||
import {userPreferenceStoreMock} from '../../../store/user-preference/user-preference.store.spec.mock';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('NavbarUiComponent', () => {
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
import {GroupedMenuItemComponent} from './grouped-menu-item.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -42,7 +42,7 @@ import {languageMockData} from '../../../store/language/language.store.spec.mock
|
|||
import {themeImagesMockData} from '../../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const groupedMockMenuItem = {
|
||||
link: {
|
||||
|
|
|
@ -29,7 +29,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
import {HomeMenuItemComponent} from './home-menu-item.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -38,7 +38,7 @@ import {MenuItemLinkComponent} from '../menu-item-link/menu-item-link.component'
|
|||
import {themeImagesMockData} from '../../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'home-menu-item-test-host-component',
|
||||
|
|
|
@ -30,7 +30,7 @@ import {MenuItemComponent} from './menu-item.component';
|
|||
import {Component} from '@angular/core';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -42,7 +42,7 @@ import {languageMockData} from '../../../store/language/language.store.spec.mock
|
|||
import {themeImagesMockData} from '../../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const mockMenuItem = {
|
||||
link: {
|
||||
|
|
|
@ -29,7 +29,7 @@ import {of} from 'rxjs';
|
|||
import {take} from 'rxjs/operators';
|
||||
import {Component} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
|
@ -40,7 +40,7 @@ import {themeImagesMockData} from '../../../store/theme-images/theme-images.stor
|
|||
import {MenuItemComponent} from '../menu-item/menu-item.component';
|
||||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
|
||||
const mockMenuItems = [
|
||||
|
|
|
@ -29,7 +29,7 @@ import {of} from 'rxjs';
|
|||
import {take} from 'rxjs/operators';
|
||||
import {Component} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
|
@ -40,7 +40,7 @@ import {languageMockData} from '../../../store/language/language.store.spec.mock
|
|||
import {themeImagesMockData} from '../../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const recentRecords = [
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
|
@ -39,7 +39,7 @@ import {UserPreferenceStore} from '../../store/user-preference/user-preference.s
|
|||
import {languageStoreMock} from '../../store/language/language.store.spec.mock';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import {userPreferenceStoreMock} from '../../store/user-preference/user-preference.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('NavbarUiComponent', () => {
|
||||
|
||||
|
|
|
@ -34,13 +34,13 @@ import {PaginationDataSource} from '../../common/components/pagination/paginatio
|
|||
import {PageSelection, PaginationCount} from '../../common/views/list/list-navigation.model';
|
||||
import {By} from '@angular/platform-browser';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import {languageMockData} from '../../store/language/language.store.spec.mock';
|
||||
import {themeImagesMockData} from '../../store/theme-images/theme-images.store.spec.mock';
|
||||
import {ImageModule} from '../image/image.module';
|
||||
import {ThemeImagesStore} from '../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const pageSubject = new BehaviorSubject<PageSelection>(PageSelection.LAST);
|
||||
const countSubject = new BehaviorSubject<PaginationCount>({
|
||||
|
|
|
@ -30,7 +30,7 @@ import {SortButtonComponent} from './sort-button.component';
|
|||
import {BehaviorSubject, Observable, of} from 'rxjs';
|
||||
import {Component} from '@angular/core';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {By} from '@angular/platform-browser';
|
||||
import {SortDirection} from '../../common/views/list/list-navigation.model';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -38,7 +38,7 @@ import {themeImagesMockData} from '../../store/theme-images/theme-images.store.s
|
|||
import {ImageModule} from '../image/image.module';
|
||||
import {ThemeImagesStore} from '../../store/theme-images/theme-images.store';
|
||||
import {SortDirectionDataSource} from './sort-button.model';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const sortDirectionSubject = new BehaviorSubject<SortDirection>(SortDirection.NONE);
|
||||
let lastDirection = SortDirection.NONE;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {StatusBarComponent} from './status-bar.component';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
|
@ -35,7 +35,7 @@ import {RecordViewStore} from '../../views/record/store/record-view/record-view.
|
|||
import {ActionMenuModule} from '../../views/list/components/action-menu/action-menu.module';
|
||||
import {ImageModule} from '../image/image.module';
|
||||
import {SettingsMenuModule} from '../../views/list/components/settings-menu/settings-menu.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'status-bar-test-host-component',
|
||||
|
|
|
@ -25,10 +25,9 @@
|
|||
*/
|
||||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
|
||||
import {TableFooterComponent} from './table-footer.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -41,7 +40,7 @@ import {PaginationModule} from '../../pagination/pagination.module';
|
|||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import {listviewStoreMock} from '../../../views/list/store/list-view/list-view.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('TablefooterUiComponent', () => {
|
||||
let component: TableFooterComponent;
|
||||
|
|
|
@ -25,10 +25,9 @@
|
|||
*/
|
||||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
|
||||
import {TableHeaderComponent} from './table-header.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -41,7 +40,7 @@ import {PaginationModule} from '../../pagination/pagination.module';
|
|||
import {ImageModule} from '../../image/image.module';
|
||||
import {ThemeImagesStore} from '../../../store/theme-images/theme-images.store';
|
||||
import {listviewStoreMock} from '../../../views/list/store/list-view/list-view.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('TableheaderUiComponent', () => {
|
||||
let component: TableHeaderComponent;
|
||||
|
|
|
@ -28,7 +28,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
|
||||
import {TableComponent} from './table.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -48,7 +48,7 @@ import {TableHeaderModule} from './table-header/table-header.module';
|
|||
import {languageStoreMock} from '../../store/language/language.store.spec.mock';
|
||||
import {listviewStoreMock} from '../../views/list/store/list-view/list-view.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'table-test-host-component',
|
||||
|
|
|
@ -28,7 +28,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
|
||||
import {WidgetPanelComponent} from './widget-panel.component';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {of} from 'rxjs';
|
||||
|
@ -39,7 +39,7 @@ import {themeImagesMockData} from '../../store/theme-images/theme-images.store.s
|
|||
import {ImageModule} from '../image/image.module';
|
||||
import {listviewStoreMock} from '../../views/list/store/list-view/list-view.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('WidgetPanelComponent', () => {
|
||||
let component: WidgetPanelComponent;
|
||||
|
|
|
@ -28,10 +28,10 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
|
||||
import {ChartSidebarWidgetComponent} from './chart-sidebar-widget.component';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('ChartSidebarWidgetComponent', () => {
|
||||
let component: ChartSidebarWidgetComponent;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {SubpanelContainerComponent} from './subpanel-container.component';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
|
@ -36,7 +36,7 @@ import {ActionMenuModule} from '../../../../views/list/components/action-menu/ac
|
|||
import {ImageModule} from '../../../../components/image/image.module';
|
||||
import {ModuleTitleModule} from '../../../../components/module-title/module-title.module';
|
||||
import {SettingsMenuModule} from '../../../../views/list/components/settings-menu/settings-menu.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'subpanel-test-host-component',
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
import {CommonModule} from '@angular/common';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import {RouterModule} from '@angular/router';
|
||||
|
@ -42,7 +42,7 @@ import {PanelModule} from '../../../../components/panel/panel.module';
|
|||
import {LanguageStore} from '../../../../store/language/language.store';
|
||||
import {metadataStoreMock} from '../../../../store/metadata/metadata.store.spec.mock';
|
||||
import {ImageModule} from '../../../../components/image/image.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
const store = recordviewStoreMock.getSubpanels().contacts;
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
*/
|
||||
|
||||
import {Type} from '@angular/core';
|
||||
|
||||
import {BaseFieldComponent} from './base/base-field.component';
|
||||
import {FieldComponentMap} from './field.model';
|
||||
import {OverridableMap} from "../common/types/overridable-map";
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
import {AuthService} from './auth.service';
|
||||
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import {HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
import {of} from 'rxjs';
|
||||
import {localStorageServiceMock} from '../local-storage/local-storage.service.spec.mock';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Router} from '@angular/router';
|
||||
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import {HttpClient, HttpErrorResponse, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
import {BehaviorSubject, Observable, Subscription, throwError} from 'rxjs';
|
||||
import {catchError, distinctUntilChanged, filter, finalize, take} from 'rxjs/operators';
|
||||
import {User} from '../../common/types/user';
|
||||
|
@ -39,7 +39,6 @@ import {LocalStorageService} from '../local-storage/local-storage.service';
|
|||
import {SystemConfigStore} from '../../store/system-config/system-config.store';
|
||||
import {BaseRouteService} from "../base-route/base-route.service";
|
||||
import {NotificationStore} from '../../store/notification/notification.store';
|
||||
import {AsyncActionInput} from "../process/processes/async-action/async-action";
|
||||
|
||||
export interface SessionStatus {
|
||||
appStatus?: AppStatus;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
||||
import {HttpRequest, HttpHandler, HttpEvent, HttpInterceptor} from '@angular/common/http';
|
||||
import {Observable, throwError} from 'rxjs';
|
||||
import {catchError} from 'rxjs/operators';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Params} from '@angular/router';
|
||||
import { HttpParams } from "@angular/common/http";
|
||||
import {HttpParams} from "@angular/common/http";
|
||||
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class LegacyEntrypointLinkBuilder {
|
||||
|
|
|
@ -32,13 +32,11 @@ import {
|
|||
UrlSegment, UrlSegmentGroup,
|
||||
UrlTree
|
||||
} from '@angular/router';
|
||||
import { HttpParams } from '@angular/common/http';
|
||||
import {HttpParams} from '@angular/common/http';
|
||||
import {ModuleNameMapper} from '../module-name-mapper/module-name-mapper.service';
|
||||
import {ActionNameMapper} from '../action-name-mapper/action-name-mapper.service';
|
||||
import {SystemConfigStore} from '../../../store/system-config/system-config.store';
|
||||
|
||||
const ROUTE_PREFIX = './#';
|
||||
|
||||
export interface RouteInfo {
|
||||
module?: string;
|
||||
action?: string;
|
||||
|
|
|
@ -29,7 +29,6 @@ import {map} from 'rxjs/operators';
|
|||
import {InstallActionsAdapter} from '../../adapters/actions.adapter';
|
||||
import {ActionContext} from '../../../../common/actions/action.model';
|
||||
import {Record} from '../../../../common/record/record.model';
|
||||
|
||||
import {InstallViewStore} from '../../store/install-view/install-view.store';
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -29,7 +29,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {ListContainerComponent} from './list-container.component';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -44,7 +44,7 @@ import {metadataStoreMock} from '../../../../store/metadata/metadata.store.spec.
|
|||
import {listviewStoreMock} from '../../store/list-view/list-view.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../../../store/theme-images/theme-images.store';
|
||||
import {TableModule} from '../../../../components/table/table.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('ListcontainerUiComponent', () => {
|
||||
let component: ListContainerComponent;
|
||||
|
|
|
@ -28,9 +28,8 @@ import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|||
import {Component} from '@angular/core';
|
||||
import {take} from 'rxjs/operators';
|
||||
import {of} from 'rxjs';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
|
||||
import {ListHeaderComponent} from './list-header.component';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
|
@ -58,7 +57,7 @@ import {appStateStoreMock} from '../../../../store/app-state/app-state.store.spe
|
|||
import {listviewStoreMock} from '../../store/list-view/list-view.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../../../store/theme-images/theme-images.store';
|
||||
import {SettingsMenuModule} from '../settings-menu/settings-menu.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'list-header-test-host-component',
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
|
@ -61,7 +61,7 @@ import {systemConfigStoreMock} from '../../../../store/system-config/system-conf
|
|||
import {listviewStoreMock} from '../../store/list-view/list-view.store.spec.mock';
|
||||
import {ModuleNameMapper} from '../../../../services/navigation/module-name-mapper/module-name-mapper.service';
|
||||
import {moduleNameMapperMock} from '../../../../services/navigation/module-name-mapper/module-name-mapper.service.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'list-test-host-component',
|
||||
|
|
|
@ -25,9 +25,8 @@
|
|||
*/
|
||||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
|
||||
import {SettingsMenuComponent} from './settings-menu.component';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -38,7 +37,7 @@ import {themeImagesMockData} from '../../../../store/theme-images/theme-images.s
|
|||
import {ImageModule} from '../../../../components/image/image.module';
|
||||
import {listviewStoreMock} from '../../store/list-view/list-view.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('SettingsmenuUiComponent', () => {
|
||||
let component: SettingsMenuComponent;
|
||||
|
|
|
@ -28,8 +28,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {LoginUiComponent} from './login.component';
|
||||
import {By} from '@angular/platform-browser';
|
||||
|
@ -41,7 +40,7 @@ import {recoverPasswordMock} from '../../../../services/process/processes/recove
|
|||
import {languageStoreMock} from '../../../../store/language/language.store.spec.mock';
|
||||
import {LanguageStore} from '../../../../store/language/language.store';
|
||||
import {systemConfigStoreMock} from '../../../../store/system-config/system-config.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('LoginComponent', () => {
|
||||
let component: LoginUiComponent;
|
||||
|
|
|
@ -28,7 +28,7 @@ import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
|||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {RecordContainerComponent} from './record-container.component';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {of} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
@ -56,7 +56,7 @@ import {languageStoreMock} from '../../../../store/language/language.store.spec.
|
|||
import {systemConfigStoreMock} from '../../../../store/system-config/system-config.store.spec.mock';
|
||||
import {appStateStoreMock} from '../../../../store/app-state/app-state.store.spec.mock';
|
||||
import {ThemeImagesStore} from '../../../../store/theme-images/theme-images.store';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('RecordContainerComponent', () => {
|
||||
let component: RecordContainerComponent;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
import {RecordHeaderComponent} from './record-header.component';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
|
@ -54,7 +54,7 @@ import {appStateStoreMock} from '../../../../store/app-state/app-state.store.spe
|
|||
import {recordActionsMock} from '../../adapters/actions.adapter.spec.mock';
|
||||
import {ThemeImagesStore} from '../../../../store/theme-images/theme-images.store';
|
||||
import {ActionGroupMenuModule} from '../../../../components/action-group-menu/action-group-menu.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'record-header-test-host-component',
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
|
||||
import {Component} from '@angular/core';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {ApolloTestingModule} from 'apollo-angular/testing';
|
||||
|
@ -59,7 +59,7 @@ import {MetadataStore} from '../../../../store/metadata/metadata.store.service';
|
|||
import {mockModuleNavigation} from '../../../../services/navigation/module-navigation/module-navigation.service.spec.mock';
|
||||
import {languageStoreMock} from '../../../../store/language/language.store.spec.mock';
|
||||
import {systemConfigStoreMock} from '../../../../store/system-config/system-config.store.spec.mock';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'record-test-host-component',
|
||||
|
|
|
@ -28,10 +28,9 @@ import { TestBed, waitForAsync } from '@angular/core/testing';
|
|||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
|
||||
import {provideHttpClientTesting} from '@angular/common/http/testing';
|
||||
import {AppComponent} from './app.component';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
|
|
|
@ -38,10 +38,8 @@ import {HttpLink} from 'apollo-angular/http';
|
|||
import {ApolloLink, InMemoryCache} from '@apollo/client/core';
|
||||
import {FetchPolicy} from '@apollo/client/core/watchQueryOptions';
|
||||
import {onError} from '@apollo/client/link/error';
|
||||
|
||||
import {AppRoutingModule} from './app-routing.module';
|
||||
import {AppComponent} from './app.component';
|
||||
|
||||
import {
|
||||
AppStateStore,
|
||||
AuthService,
|
||||
|
@ -69,14 +67,12 @@ import {
|
|||
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
import {environment} from '../environments/environment';
|
||||
import {RouteReuseStrategy} from '@angular/router';
|
||||
import {AppRouteReuseStrategy} from './app-router-reuse-strategy';
|
||||
import {AppInit} from './app-initializer';
|
||||
import {GraphQLError} from 'graphql';
|
||||
import {AngularSvgIconModule} from 'angular-svg-icon';
|
||||
import {APP_BASE_HREF} from "@angular/common";
|
||||
|
||||
export const initializeApp = (appInitService: AppInit) => (): Promise<any> => appInitService.init();
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {NgModule} from '@angular/core';
|
||||
|
||||
import {AppComponent} from './app.component';
|
||||
import {ExtensionModule} from '../extension.module';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
|
||||
@NgModule({ declarations: [
|
||||
AppComponent
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
@NgModule({ declarations: [], imports: [CommonModule], providers: [provideHttpClient(withInterceptorsFromDi())] })
|
||||
export class ExtensionModule {
|
||||
constructor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue