[AAE-1848] fix kebab case files and add tlsint rule (#5481)

* fix kebab case files and add tlsint rule

* headless

* m 2 in e2e

* download file in headless chrome

* fix budget

* fix import

* fix import
This commit is contained in:
Eugenio Romano
2020-02-20 21:08:42 +00:00
committed by GitHub
parent 918d27bc8a
commit 1847768b56
487 changed files with 1098 additions and 1074 deletions

View File

@@ -19,8 +19,8 @@ import { SimpleChange } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ContentService } from '../../services/content.service';
import { ImgViewerComponent } from './imgViewer.component';
import { setupTestBed } from '../../testing/setupTestBed';
import { ImgViewerComponent } from './img-viewer.component';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
import { AppConfigService, AppConfigServiceMock } from '@alfresco/adf-core';

View File

@@ -31,8 +31,8 @@ import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
@Component({
selector: 'adf-img-viewer',
templateUrl: './imgViewer.component.html',
styleUrls: ['./imgViewer.component.scss'],
templateUrl: './img-viewer.component.html',
styleUrls: ['./img-viewer.component.scss'],
host: { 'class': 'adf-image-viewer' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -20,8 +20,8 @@ import { ContentService } from '../../services/content.service';
@Component({
selector: 'adf-media-player',
templateUrl: './mediaPlayer.component.html',
styleUrls: ['./mediaPlayer.component.scss'],
templateUrl: './media-player.component.html',
styleUrls: ['./media-player.component.scss'],
host: { 'class': 'adf-media-player' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -17,8 +17,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { PdfPasswordDialogComponent } from './pdfViewer-password-dialog';
import { setupTestBed } from '../../testing/setupTestBed';
import { PdfPasswordDialogComponent } from './pdf-viewer-password-dialog';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

View File

@@ -23,8 +23,8 @@ declare const pdfjsLib: any;
@Component({
selector: 'adf-pdf-viewer-password-dialog',
templateUrl: './pdfViewer-password-dialog.html',
styleUrls: [ './pdfViewer-password-dialog.scss' ]
templateUrl: './pdf-viewer-password-dialog.html',
styleUrls: [ './pdf-viewer-password-dialog.scss' ]
})
export class PdfPasswordDialogComponent implements OnInit {
passwordFormControl: FormControl;

View File

@@ -17,8 +17,8 @@
import { DomSanitizer } from '@angular/platform-browser';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PdfThumbComponent } from './pdfViewer-thumb.component';
import { setupTestBed } from '../../testing/setupTestBed';
import { PdfThumbComponent } from './pdf-viewer-thumb.component';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
describe('PdfThumbComponent', () => {

View File

@@ -20,7 +20,7 @@ import { DomSanitizer } from '@angular/platform-browser';
@Component({
selector: 'adf-pdf-thumb',
templateUrl: './pdfViewer-thumb.component.html',
templateUrl: './pdf-viewer-thumb.component.html',
encapsulation: ViewEncapsulation.None
})
export class PdfThumbComponent implements OnInit {

View File

@@ -18,8 +18,8 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { PdfThumbListComponent } from './pdfViewer-thumbnails.component';
import { setupTestBed } from '../../testing/setupTestBed';
import { PdfThumbListComponent } from './pdf-viewer-thumbnails.component';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
declare const pdfjsViewer: any;

View File

@@ -22,8 +22,8 @@ import {
@Component({
selector: 'adf-pdf-thumbnails',
templateUrl: './pdfViewer-thumbnails.component.html',
styleUrls: ['./pdfViewer-thumbnails.component.scss'],
templateUrl: './pdf-viewer-thumbnails.component.html',
styleUrls: ['./pdf-viewer-thumbnails.component.scss'],
host: { 'class': 'adf-pdf-thumbnails' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -19,11 +19,11 @@ import { Component, SimpleChange, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
import { EventMock } from '../../mock/event.mock';
import { RenderingQueueServices } from '../services/rendering-queue.services';
import { PdfViewerComponent } from './pdfViewer.component';
import { PdfViewerComponent } from './pdf-viewer.component';
import { RIGHT_ARROW, LEFT_ARROW } from '@angular/cdk/keycodes';
import { MatDialog } from '@angular/material';
import { of } from 'rxjs';
import { setupTestBed } from '../../testing/setupTestBed';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
import { TranslationService } from '../../services/translation.service';
import { TranslationMock } from '../../mock/translation.service.mock';

View File

@@ -30,7 +30,7 @@ import {
import { MatDialog } from '@angular/material';
import { LogService } from '../../services/log.service';
import { RenderingQueueServices } from '../services/rendering-queue.services';
import { PdfPasswordDialogComponent } from './pdfViewer-password-dialog';
import { PdfPasswordDialogComponent } from './pdf-viewer-password-dialog';
import { AppConfigService } from './../../app-config/app-config.service';
import { PDFDocumentProxy, PDFSource } from 'pdfjs-dist';
@@ -39,10 +39,10 @@ declare const pdfjsViewer: any;
@Component({
selector: 'adf-pdf-viewer',
templateUrl: './pdfViewer.component.html',
templateUrl: './pdf-viewer.component.html',
styleUrls: [
'./pdfViewer.component.scss',
'./pdfViewerHost.component.scss'
'./pdf-viewer.component.scss',
'./pdf-viewer-host.component.scss'
],
providers: [RenderingQueueServices],
host: { 'class': 'adf-pdf-viewer' },

View File

@@ -17,8 +17,8 @@
import { SimpleChange } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TxtViewerComponent } from './txtViewer.component';
import { setupTestBed } from '../../testing/setupTestBed';
import { TxtViewerComponent } from './txt-viewer.component';
import { setupTestBed } from '../../testing/setup-test-bed';
import { CoreModule } from '../../core.module';
describe('Text View component', () => {

View File

@@ -21,8 +21,8 @@ import { AppConfigService } from './../../app-config/app-config.service';
@Component({
selector: 'adf-txt-viewer',
templateUrl: './txtViewer.component.html',
styleUrls: ['./txtViewer.component.scss'],
templateUrl: './txt-viewer.component.html',
styleUrls: ['./txt-viewer.component.scss'],
host: { 'class': 'adf-txt-viewer' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -27,7 +27,7 @@ import { throwError } from 'rxjs';
import { EventMock } from '../../mock/event.mock';
import { RenderingQueueServices } from '../services/rendering-queue.services';
import { ViewerComponent } from './viewer.component';
import { setupTestBed } from '../../testing/setupTestBed';
import { setupTestBed } from '../../testing/setup-test-bed';
import { AlfrescoApiServiceMock } from '../../mock/alfresco-api.service.mock';
import { NodeEntry } from '@alfresco/js-api';
import { RouterTestingModule } from '@angular/router/testing';