mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1103] Add custom tslint rules to avoid unwanted Class and File name prefix (#2087)
* custom tslint rules adf project name files * filename and class prefix rule * filename process service mock * fix spec filename * fix demo shell * rename mock * alias deprecated name class * core rename services * fix pacakge.json adf-rules * add exclude in whitelist
This commit is contained in:
@@ -23,14 +23,14 @@ export * from './src/data/index';
|
||||
|
||||
export { DataTableCellComponent } from './src/components/datatable/datatable-cell.component';
|
||||
export { DataTableComponent } from './src/components/datatable/datatable.component';
|
||||
export { AdfEmptyListComponent } from './src/components/datatable/adf-empty-list.component';
|
||||
export { EmptyListComponent } from './src/components/datatable/empty-list.component';
|
||||
export { PaginationComponent } from './src/components/pagination/pagination.component';
|
||||
export { DataCellEvent, DataCellEventModel } from './src/components/datatable/data-cell.event';
|
||||
export { DataRowActionEvent, DataRowActionModel } from './src/components/datatable/data-row-action.event';
|
||||
|
||||
import { AdfEmptyListComponent } from './src/components/datatable/adf-empty-list.component';
|
||||
import { DataTableCellComponent } from './src/components/datatable/datatable-cell.component';
|
||||
import { DataTableComponent } from './src/components/datatable/datatable.component';
|
||||
import { EmptyListComponent } from './src/components/datatable/empty-list.component';
|
||||
import { PaginationComponent } from './src/components/pagination/pagination.component';
|
||||
import { LoadingContentTemplateDirective } from './src/directives/loading-template.directive';
|
||||
import { NoContentTemplateDirective } from './src/directives/no-content-template.directive';
|
||||
@@ -38,7 +38,7 @@ import { NoContentTemplateDirective } from './src/directives/no-content-template
|
||||
export function directives() {
|
||||
return [
|
||||
DataTableComponent,
|
||||
AdfEmptyListComponent,
|
||||
EmptyListComponent,
|
||||
DataTableCellComponent,
|
||||
NoContentTemplateDirective,
|
||||
LoadingContentTemplateDirective,
|
||||
|
@@ -17,11 +17,11 @@
|
||||
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { AdfEmptyListComponent } from './adf-empty-list.component';
|
||||
import { EmptyListComponent } from './empty-list.component';
|
||||
|
||||
describe('AdfEmptyListComponentComponent', () => {
|
||||
let component: AdfEmptyListComponent;
|
||||
let fixture: ComponentFixture<AdfEmptyListComponent>;
|
||||
describe('EmptyListComponentComponent', () => {
|
||||
let component: EmptyListComponent;
|
||||
let fixture: ComponentFixture<EmptyListComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
@@ -29,11 +29,11 @@ describe('AdfEmptyListComponentComponent', () => {
|
||||
CoreModule.forRoot()
|
||||
],
|
||||
declarations: [
|
||||
AdfEmptyListComponent
|
||||
EmptyListComponent
|
||||
]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AdfEmptyListComponent);
|
||||
fixture = TestBed.createComponent(EmptyListComponent);
|
||||
component = fixture.componentInstance;
|
||||
}));
|
||||
|
@@ -19,10 +19,10 @@ import { Component, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-empty-list',
|
||||
styleUrls: ['./adf-empty-list.component.css'],
|
||||
templateUrl: './adf-empty-list.component.html'
|
||||
styleUrls: ['./empty-list.component.css'],
|
||||
templateUrl: './empty-list.component.html'
|
||||
})
|
||||
export class AdfEmptyListComponent {
|
||||
export class EmptyListComponent {
|
||||
|
||||
@Input()
|
||||
emptyListImageUrl: string = require('../../assets/images/empty_doc_lib.svg');
|
Reference in New Issue
Block a user