forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DSpace#3065 from alexandrevryghem/new-themed-compo…
…nents_contribute-main Made AdminSearchPageComponent themeable
- Loading branch information
Showing
15 changed files
with
109 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/app/admin/admin-search-page/themed-admin-search-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { AdminSearchPageComponent } from './admin-search-page.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link AdminSearchPageComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-admin-search-page', | ||
templateUrl: '../../shared/theme-support/themed.component.html', | ||
standalone: true, | ||
imports: [AdminSearchPageComponent], | ||
}) | ||
export class ThemedAdminSearchPageComponent extends ThemedComponent<AdminSearchPageComponent> { | ||
|
||
protected getComponentName(): string { | ||
return 'AdminSearchPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/admin/admin-search-page/admin-search-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./admin-search-page.component'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/app/admin/admin-workflow-page/themed-admin-workflow-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { AdminWorkflowPageComponent } from './admin-workflow-page.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link AdminWorkflowPageComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-admin-workflow-page', | ||
templateUrl: '../../shared/theme-support/themed.component.html', | ||
standalone: true, | ||
imports: [AdminWorkflowPageComponent], | ||
}) | ||
export class ThemedAdminWorkflowPageComponent extends ThemedComponent<AdminWorkflowPageComponent> { | ||
|
||
protected getComponentName(): string { | ||
return 'AdminWorkflowPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/admin/admin-workflow-page/admin-workflow-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./admin-workflow-page.component'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions
16
src/themes/custom/app/admin/admin-search-page/admin-search-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { AdminSearchPageComponent as BaseComponent } from '../../../../../app/admin/admin-search-page/admin-search-page.component'; | ||
import { ThemedConfigurationSearchPageComponent } from '../../../../../app/search-page/themed-configuration-search-page.component'; | ||
|
||
@Component({ | ||
selector: 'ds-themed-admin-search-page', | ||
// styleUrls: ['./admin-search-page.component.scss'], | ||
styleUrls: ['../../../../../app/admin/admin-search-page/admin-search-page.component.scss'], | ||
// templateUrl: './admin-search-page.component.html', | ||
templateUrl: '../../../../../app/admin/admin-search-page/admin-search-page.component.html', | ||
standalone: true, | ||
imports: [ThemedConfigurationSearchPageComponent], | ||
}) | ||
export class AdminSearchPageComponent extends BaseComponent { | ||
} |
Empty file.
Empty file.
18 changes: 18 additions & 0 deletions
18
src/themes/custom/app/admin/admin-workflow-page/admin-workflow-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { AdminWorkflowPageComponent as BaseComponent } from '../../../../../app/admin/admin-workflow-page/admin-workflow-page.component'; | ||
import { ThemedConfigurationSearchPageComponent } from '../../../../../app/search-page/themed-configuration-search-page.component'; | ||
|
||
@Component({ | ||
selector: 'ds-themed-admin-workflow-page', | ||
// styleUrls: ['./admin-workflow-page.component.scss'], | ||
styleUrls: ['../../../../../app/admin/admin-workflow-page/admin-workflow-page.component.scss'], | ||
// templateUrl: './admin-workflow-page.component.html', | ||
templateUrl: '../../../../../app/admin/admin-workflow-page/admin-workflow-page.component.html', | ||
standalone: true, | ||
imports: [ | ||
ThemedConfigurationSearchPageComponent, | ||
], | ||
}) | ||
export class AdminWorkflowPageComponent extends BaseComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters