-
Notifications
You must be signed in to change notification settings - Fork 380
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 #1042 from atmire/add-themeable-components
Make all non-admin page-level components themeable
- Loading branch information
Showing
189 changed files
with
1,788 additions
and
155 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/app/+browse-by/+browse-by-switcher/themed-browse-by-switcher.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,28 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { BrowseBySwitcherComponent } from './browse-by-switcher.component'; | ||
|
||
/** | ||
* Themed wrapper for BrowseBySwitcherComponent | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-browse-by-switcher', | ||
styleUrls: [], | ||
templateUrl: '../../shared/theme-support/themed.component.html' | ||
}) | ||
export class ThemedBrowseBySwitcherComponent extends ThemedComponent<BrowseBySwitcherComponent> { | ||
protected getComponentName(): string { | ||
return 'BrowseBySwitcherComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/+browse-by/+browse-by-switcher/browse-by-switcher.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./browse-by-switcher.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
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
26 changes: 26 additions & 0 deletions
26
src/app/+collection-page/themed-collection-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,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../shared/theme-support/themed.component'; | ||
import { CollectionPageComponent } from './collection-page.component'; | ||
|
||
/** | ||
* Themed wrapper for CollectionPageComponent | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-community-page', | ||
styleUrls: [], | ||
templateUrl: '../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedCollectionPageComponent extends ThemedComponent<CollectionPageComponent> { | ||
protected getComponentName(): string { | ||
return 'CollectionPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../themes/${themeName}/app/+collection-page/collection-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./collection-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
26 changes: 26 additions & 0 deletions
26
src/app/+community-page/themed-community-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,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../shared/theme-support/themed.component'; | ||
import { CommunityPageComponent } from './community-page.component'; | ||
|
||
/** | ||
* Themed wrapper for CommunityPageComponent | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-community-page', | ||
styleUrls: [], | ||
templateUrl: '../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedCommunityPageComponent extends ThemedComponent<CommunityPageComponent> { | ||
protected getComponentName(): string { | ||
return 'CommunityPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../themes/${themeName}/app/+community-page/community-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./community-page.component`); | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
src/app/+import-external-page/import-external-routing.module.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
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
25 changes: 25 additions & 0 deletions
25
src/app/+item-page/full/themed-full-item-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,25 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { FullItemPageComponent } from './full-item-page.component'; | ||
|
||
/** | ||
* Themed wrapper for FullItemPageComponent | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-full-item-page', | ||
styleUrls: [], | ||
templateUrl: './../../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedFullItemPageComponent extends ThemedComponent<FullItemPageComponent> { | ||
protected getComponentName(): string { | ||
return 'FullItemPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/+item-page/full/full-item-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./full-item-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { ItemPageComponent } from './item-page.component'; | ||
|
||
/** | ||
* Themed wrapper for ItemPageComponent | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-item-page', | ||
styleUrls: [], | ||
templateUrl: './../../shared/theme-support/themed.component.html', | ||
}) | ||
|
||
export class ThemedItemPageComponent extends ThemedComponent<ItemPageComponent> { | ||
protected getComponentName(): string { | ||
return 'ItemPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/+item-page/simple/item-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./item-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
Oops, something went wrong.