mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7100] ESLint support for ADF Core and DemoShell projects (#7481)
* remove tsconfig.base as per eslint schematics * add schematics * upgrade demoshell to eslint * fix eslint issues for demoshell * integrate eslint for ADF core and fix some issues * turn into warn * fix code * workaround for Chrome clipboard issue * exclude e2e tests * exclude e2e
This commit is contained in:
@@ -22,13 +22,12 @@ import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { AlfrescoApiService } from './alfresco-api.service';
|
||||
import { ContentApi, NodeEntry } from '@alfresco/js-api';
|
||||
|
||||
const DEFAULT_ICON = './assets/images/ft_ic_miscellaneous.svg';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ThumbnailService {
|
||||
|
||||
DEFAULT_ICON: string = './assets/images/ft_ic_miscellaneous.svg';
|
||||
|
||||
mimeTypeIcons: any = {
|
||||
'image/png': './assets/images/ft_ic_raster_image.svg',
|
||||
'image/jpeg': './assets/images/ft_ic_raster_image.svg',
|
||||
@@ -201,7 +200,7 @@ export class ThumbnailService {
|
||||
resultUrl = this.contentApi.getDocumentThumbnailUrl(nodeId, attachment, ticket);
|
||||
}
|
||||
|
||||
return resultUrl || this.DEFAULT_ICON;
|
||||
return resultUrl || DEFAULT_ICON;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -211,7 +210,7 @@ export class ThumbnailService {
|
||||
*/
|
||||
public getMimeTypeIcon(mimeType: string): string {
|
||||
const icon = this.mimeTypeIcons[mimeType];
|
||||
return (icon || this.DEFAULT_ICON);
|
||||
return (icon || DEFAULT_ICON);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -219,6 +218,6 @@ export class ThumbnailService {
|
||||
* @returns URL string
|
||||
*/
|
||||
public getDefaultMimeTypeIcon(): string {
|
||||
return this.DEFAULT_ICON;
|
||||
return DEFAULT_ICON;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user