From 30cbcbb7c8e6858ddcd169b34345d6e63e49c567 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Fri, 21 Apr 2023 00:17:23 +0200 Subject: [PATCH] 101577: Added themeable ThumbnailComponent to custom theme --- .../custom/app/thumbnail/thumbnail.component.html | 0 .../custom/app/thumbnail/thumbnail.component.scss | 0 .../custom/app/thumbnail/thumbnail.component.ts | 12 ++++++++++++ src/themes/custom/theme.module.ts | 4 +++- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/themes/custom/app/thumbnail/thumbnail.component.html create mode 100644 src/themes/custom/app/thumbnail/thumbnail.component.scss create mode 100644 src/themes/custom/app/thumbnail/thumbnail.component.ts diff --git a/src/themes/custom/app/thumbnail/thumbnail.component.html b/src/themes/custom/app/thumbnail/thumbnail.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/thumbnail/thumbnail.component.scss b/src/themes/custom/app/thumbnail/thumbnail.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/thumbnail/thumbnail.component.ts b/src/themes/custom/app/thumbnail/thumbnail.component.ts new file mode 100644 index 0000000000..406183c8e7 --- /dev/null +++ b/src/themes/custom/app/thumbnail/thumbnail.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; +import { ThumbnailComponent as BaseComponent } from '../../../../app/thumbnail/thumbnail.component'; + +@Component({ + selector: 'ds-thumbnail', + // styleUrls: ['./thumbnail.component.scss'], + styleUrls: ['../../../../app/thumbnail/thumbnail.component.scss'], + // templateUrl: './thumbnail.component.html', + templateUrl: '../../../../app/thumbnail/thumbnail.component.html', +}) +export class ThumbnailComponent extends BaseComponent { +} diff --git a/src/themes/custom/theme.module.ts b/src/themes/custom/theme.module.ts index e2e97b9087..d028f3b7e4 100644 --- a/src/themes/custom/theme.module.ts +++ b/src/themes/custom/theme.module.ts @@ -84,6 +84,7 @@ import { SearchModule } from '../../app/shared/search/search.module'; import { ResourcePoliciesModule } from '../../app/shared/resource-policies/resource-policies.module'; import { ComcolModule } from '../../app/shared/comcol/comcol.module'; import { FeedbackComponent } from './app/info/feedback/feedback.component'; +import { ThumbnailComponent } from './app/thumbnail/thumbnail.component'; const DECLARATIONS = [ FileSectionComponent, @@ -126,7 +127,8 @@ const DECLARATIONS = [ NavbarComponent, HeaderNavbarWrapperComponent, BreadcrumbsComponent, - FeedbackComponent + FeedbackComponent, + ThumbnailComponent, ]; @NgModule({