diff --git a/src/app/+import-external-page/import-external-routing.module.ts b/src/app/+import-external-page/import-external-routing.module.ts index 91cdbf9877..e5c6da5b21 100644 --- a/src/app/+import-external-page/import-external-routing.module.ts +++ b/src/app/+import-external-page/import-external-routing.module.ts @@ -1,7 +1,7 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; -import { SubmissionImportExternalComponent } from '../submission/import-external/submission-import-external.component'; +import { ThemedSubmissionImportExternalComponent } from '../submission/import-external/themed-submission-import-external.component'; @NgModule({ imports: [ @@ -9,7 +9,7 @@ import { SubmissionImportExternalComponent } from '../submission/import-external { canActivate: [ AuthenticatedGuard ], path: '', - component: SubmissionImportExternalComponent, + component: ThemedSubmissionImportExternalComponent, pathMatch: 'full', data: { title: 'submission.import-external.page.title' diff --git a/src/app/+item-page/full/themed-full-item-page.component.ts b/src/app/+item-page/full/themed-full-item-page.component.ts index 3d89f489ff..c184d0a4e4 100644 --- a/src/app/+item-page/full/themed-full-item-page.component.ts +++ b/src/app/+item-page/full/themed-full-item-page.component.ts @@ -16,7 +16,7 @@ export class ThemedFullItemPageComponent extends ThemedComponent { - return import(`../../themes/${themeName}/app/+item-page/full/full-item-page.component`); + return import(`../../../themes/${themeName}/app/+item-page/full/full-item-page.component`); } protected importUnthemedComponent(): Promise { diff --git a/src/app/+my-dspace-page/my-dspace-page-routing.module.ts b/src/app/+my-dspace-page/my-dspace-page-routing.module.ts index d70a007e3a..46deb36e20 100644 --- a/src/app/+my-dspace-page/my-dspace-page-routing.module.ts +++ b/src/app/+my-dspace-page/my-dspace-page-routing.module.ts @@ -1,15 +1,14 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; - -import { MyDSpacePageComponent } from './my-dspace-page.component'; import { MyDSpaceGuard } from './my-dspace.guard'; +import { ThemedMyDSpacePageComponent } from './themed-my-dspace-page.component'; @NgModule({ imports: [ RouterModule.forChild([ { path: '', - component: MyDSpacePageComponent, + component: ThemedMyDSpacePageComponent, data: { title: 'mydspace.title' }, canActivate: [ MyDSpaceGuard diff --git a/src/app/+my-dspace-page/my-dspace-page.module.ts b/src/app/+my-dspace-page/my-dspace-page.module.ts index 40bbcc903c..52c80c90b0 100644 --- a/src/app/+my-dspace-page/my-dspace-page.module.ts +++ b/src/app/+my-dspace-page/my-dspace-page.module.ts @@ -11,6 +11,15 @@ import { MyDSpaceGuard } from './my-dspace.guard'; import { MyDSpaceConfigurationService } from './my-dspace-configuration.service'; import { CollectionSelectorComponent } from './collection-selector/collection-selector.component'; import { MyDspaceSearchModule } from './my-dspace-search.module'; +import { ThemedMyDSpacePageComponent } from './themed-my-dspace-page.component'; + +const DECLARATIONS = [ + MyDSpacePageComponent, + ThemedMyDSpacePageComponent, + MyDSpaceResultsComponent, + MyDSpaceNewSubmissionComponent, + CollectionSelectorComponent +]; @NgModule({ imports: [ @@ -19,16 +28,12 @@ import { MyDspaceSearchModule } from './my-dspace-search.module'; MyDspacePageRoutingModule, MyDspaceSearchModule.withEntryComponents() ], - declarations: [ - MyDSpacePageComponent, - MyDSpaceResultsComponent, - MyDSpaceNewSubmissionComponent, - CollectionSelectorComponent - ], + declarations: DECLARATIONS, providers: [ MyDSpaceGuard, MyDSpaceConfigurationService - ] + ], + exports: DECLARATIONS, }) /** diff --git a/src/app/+my-dspace-page/themed-my-dspace-page.component.ts b/src/app/+my-dspace-page/themed-my-dspace-page.component.ts new file mode 100644 index 0000000000..47275496ca --- /dev/null +++ b/src/app/+my-dspace-page/themed-my-dspace-page.component.ts @@ -0,0 +1,27 @@ +import { Component } from '@angular/core'; +import { ThemedComponent } from '../shared/theme-support/themed.component'; +import { MyDSpacePageComponent } from './my-dspace-page.component'; + +/** + * Themed wrapper for MyDSpacePageComponent + */ +@Component({ + selector: 'ds-themed-my-dspace-page', + styleUrls: [], + templateUrl: './../shared/theme-support/themed.component.html' +}) +export class ThemedMyDSpacePageComponent extends ThemedComponent { + protected inAndOutputNames: (keyof MyDSpacePageComponent & keyof this)[]; + + protected getComponentName(): string { + return 'MyDSpacePageComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../themes/${themeName}/app/+my-dspace-page/my-dspace-page.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./my-dspace-page.component`); + } +} diff --git a/src/app/+submit-page/submit-page-routing.module.ts b/src/app/+submit-page/submit-page-routing.module.ts index 7a123bfc31..92c9bd8cdf 100644 --- a/src/app/+submit-page/submit-page-routing.module.ts +++ b/src/app/+submit-page/submit-page-routing.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; -import { SubmissionSubmitComponent } from '../submission/submit/submission-submit.component'; +import { ThemedSubmissionSubmitComponent } from '../submission/submit/themed-submission-submit.component'; @NgModule({ imports: [ @@ -11,7 +11,7 @@ import { SubmissionSubmitComponent } from '../submission/submit/submission-submi canActivate: [AuthenticatedGuard], path: '', pathMatch: 'full', - component: SubmissionSubmitComponent, + component: ThemedSubmissionSubmitComponent, data: { title: 'submission.submit.title' } } ]) diff --git a/src/app/+workflowitems-edit-page/workflow-item-delete/themed-workflow-item-delete.component.ts b/src/app/+workflowitems-edit-page/workflow-item-delete/themed-workflow-item-delete.component.ts new file mode 100644 index 0000000000..498975075f --- /dev/null +++ b/src/app/+workflowitems-edit-page/workflow-item-delete/themed-workflow-item-delete.component.ts @@ -0,0 +1,26 @@ +import { WorkflowItemDeleteComponent } from './workflow-item-delete.component'; +import { ThemedComponent } from '../../shared/theme-support/themed.component'; +import { Component } from '@angular/core'; + +/** + * Themed wrapper for WorkflowItemDeleteComponent + */ + +@Component({ + selector: 'ds-themed-workflow-item-delete', + styleUrls: [], + templateUrl: './../../shared/theme-support/themed.component.html' +}) +export class ThemedWorkflowItemDeleteComponent extends ThemedComponent { + protected getComponentName(): string { + return 'WorkflowItemDeleteComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./workflow-item-delete.component`); + } +} diff --git a/src/app/+workflowitems-edit-page/workflow-item-send-back/themed-workflow-item-send-back.component.ts b/src/app/+workflowitems-edit-page/workflow-item-send-back/themed-workflow-item-send-back.component.ts new file mode 100644 index 0000000000..a2cc68ac74 --- /dev/null +++ b/src/app/+workflowitems-edit-page/workflow-item-send-back/themed-workflow-item-send-back.component.ts @@ -0,0 +1,26 @@ +import { ThemedComponent } from '../../shared/theme-support/themed.component'; +import { Component } from '@angular/core'; +import { WorkflowItemSendBackComponent } from './workflow-item-send-back.component'; + +/** + * Themed wrapper for WorkflowItemActionPageComponent + */ + +@Component({ + selector: 'ds-themed-workflow-item-send-back', + styleUrls: [], + templateUrl: './../../shared/theme-support/themed.component.html' +}) +export class ThemedWorkflowItemSendBackComponent extends ThemedComponent { + protected getComponentName(): string { + return 'WorkflowItemSendBackComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./workflow-item-send-back.component`); + } +} diff --git a/src/app/+workflowitems-edit-page/workflowitems-edit-page-routing.module.ts b/src/app/+workflowitems-edit-page/workflowitems-edit-page-routing.module.ts index 27b7fe1199..2d104cf376 100644 --- a/src/app/+workflowitems-edit-page/workflowitems-edit-page-routing.module.ts +++ b/src/app/+workflowitems-edit-page/workflowitems-edit-page-routing.module.ts @@ -2,15 +2,11 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; -import { SubmissionEditComponent } from '../submission/edit/submission-edit.component'; -import { WorkflowItemDeleteComponent } from './workflow-item-delete/workflow-item-delete.component'; import { WorkflowItemPageResolver } from './workflow-item-page.resolver'; -import { WorkflowItemSendBackComponent } from './workflow-item-send-back/workflow-item-send-back.component'; -import { - WORKFLOW_ITEM_SEND_BACK_PATH, - WORKFLOW_ITEM_DELETE_PATH, - WORKFLOW_ITEM_EDIT_PATH -} from './workflowitems-edit-page-routing-paths'; +import { WORKFLOW_ITEM_DELETE_PATH, WORKFLOW_ITEM_EDIT_PATH, WORKFLOW_ITEM_SEND_BACK_PATH } from './workflowitems-edit-page-routing-paths'; +import { ThemedSubmissionEditComponent } from '../submission/edit/themed-submission-edit.component'; +import { ThemedWorkflowItemDeleteComponent } from './workflow-item-delete/themed-workflow-item-delete.component'; +import { ThemedWorkflowItemSendBackComponent } from './workflow-item-send-back/themed-workflow-item-send-back.component'; @NgModule({ imports: [ @@ -22,19 +18,19 @@ import { { canActivate: [AuthenticatedGuard], path: WORKFLOW_ITEM_EDIT_PATH, - component: SubmissionEditComponent, + component: ThemedSubmissionEditComponent, data: { title: 'submission.edit.title' } }, { canActivate: [AuthenticatedGuard], path: WORKFLOW_ITEM_DELETE_PATH, - component: WorkflowItemDeleteComponent, + component: ThemedWorkflowItemDeleteComponent, data: { title: 'workflow-item.delete.title' } }, { canActivate: [AuthenticatedGuard], path: WORKFLOW_ITEM_SEND_BACK_PATH, - component: WorkflowItemSendBackComponent, + component: ThemedWorkflowItemSendBackComponent, data: { title: 'workflow-item.send-back.title' } } ] diff --git a/src/app/+workflowitems-edit-page/workflowitems-edit-page.module.ts b/src/app/+workflowitems-edit-page/workflowitems-edit-page.module.ts index ef1e49abf5..6e4b3212e8 100644 --- a/src/app/+workflowitems-edit-page/workflowitems-edit-page.module.ts +++ b/src/app/+workflowitems-edit-page/workflowitems-edit-page.module.ts @@ -5,6 +5,8 @@ import { WorkflowItemsEditPageRoutingModule } from './workflowitems-edit-page-ro import { SubmissionModule } from '../submission/submission.module'; import { WorkflowItemDeleteComponent } from './workflow-item-delete/workflow-item-delete.component'; import { WorkflowItemSendBackComponent } from './workflow-item-send-back/workflow-item-send-back.component'; +import { ThemedWorkflowItemDeleteComponent } from './workflow-item-delete/themed-workflow-item-delete.component'; +import { ThemedWorkflowItemSendBackComponent } from './workflow-item-send-back/themed-workflow-item-send-back.component'; @NgModule({ imports: [ @@ -13,7 +15,7 @@ import { WorkflowItemSendBackComponent } from './workflow-item-send-back/workflo SharedModule, SubmissionModule, ], - declarations: [WorkflowItemDeleteComponent, WorkflowItemSendBackComponent] + declarations: [WorkflowItemDeleteComponent, ThemedWorkflowItemDeleteComponent, WorkflowItemSendBackComponent, ThemedWorkflowItemSendBackComponent] }) /** * This module handles all modules that need to access the workflowitems edit page. diff --git a/src/app/+workspaceitems-edit-page/workspaceitems-edit-page-routing.module.ts b/src/app/+workspaceitems-edit-page/workspaceitems-edit-page-routing.module.ts index d10c53e138..791bb4f9aa 100644 --- a/src/app/+workspaceitems-edit-page/workspaceitems-edit-page-routing.module.ts +++ b/src/app/+workspaceitems-edit-page/workspaceitems-edit-page-routing.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; -import { SubmissionEditComponent } from '../submission/edit/submission-edit.component'; +import { ThemedSubmissionEditComponent } from '../submission/edit/themed-submission-edit.component'; @NgModule({ imports: [ @@ -11,7 +11,7 @@ import { SubmissionEditComponent } from '../submission/edit/submission-edit.comp { canActivate: [AuthenticatedGuard], path: ':id/edit', - component: SubmissionEditComponent, + component: ThemedSubmissionEditComponent, data: { title: 'submission.edit.title' } } ]) diff --git a/src/app/forgot-password/forgot-password-email/forgot-email.component.scss b/src/app/forgot-password/forgot-password-email/forgot-email.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/app/forgot-password/forgot-password-email/forgot-email.component.ts b/src/app/forgot-password/forgot-password-email/forgot-email.component.ts index 5e18aff113..af482bdb67 100644 --- a/src/app/forgot-password/forgot-password-email/forgot-email.component.ts +++ b/src/app/forgot-password/forgot-password-email/forgot-email.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'ds-forgot-email', + styleUrls: ['./forgot-email.component.scss'], templateUrl: './forgot-email.component.html' }) /** diff --git a/src/app/forgot-password/forgot-password-email/themed-forgot-email.component.ts b/src/app/forgot-password/forgot-password-email/themed-forgot-email.component.ts index 68fcf9302f..da3848db1d 100644 --- a/src/app/forgot-password/forgot-password-email/themed-forgot-email.component.ts +++ b/src/app/forgot-password/forgot-password-email/themed-forgot-email.component.ts @@ -16,7 +16,7 @@ export class ThemedForgotEmailComponent extends ThemedComponent { - return import(`../../themes/${themeName}/app/forgot-password/forgot-password-email/forgot-email.component`); + return import(`../../../themes/${themeName}/app/forgot-password/forgot-password-email/forgot-email.component`); } protected importUnthemedComponent(): Promise { diff --git a/src/app/forgot-password/forgot-password-form/forgot-password-form.component.scss b/src/app/forgot-password/forgot-password-form/forgot-password-form.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/app/forgot-password/forgot-password-form/forgot-password-form.component.ts b/src/app/forgot-password/forgot-password-form/forgot-password-form.component.ts index 8bfed0b2eb..98188a07e8 100644 --- a/src/app/forgot-password/forgot-password-form/forgot-password-form.component.ts +++ b/src/app/forgot-password/forgot-password-form/forgot-password-form.component.ts @@ -14,6 +14,7 @@ import { EPerson } from '../../core/eperson/models/eperson.model'; @Component({ selector: 'ds-forgot-password-form', + styleUrls: ['./forgot-password-form.component.scss'], templateUrl: './forgot-password-form.component.html' }) /** diff --git a/src/app/forgot-password/forgot-password-form/themed-forgot-password-form.component.ts b/src/app/forgot-password/forgot-password-form/themed-forgot-password-form.component.ts index 523f81312a..3fb1b67e01 100644 --- a/src/app/forgot-password/forgot-password-form/themed-forgot-password-form.component.ts +++ b/src/app/forgot-password/forgot-password-form/themed-forgot-password-form.component.ts @@ -16,7 +16,7 @@ export class ThemedForgotPasswordFormComponent extends ThemedComponent { - return import(`../../themes/${themeName}/app/forgot-password/forgot-password-form/forgot-password-form.component`); + return import(`../../../themes/${themeName}/app/forgot-password/forgot-password-form/forgot-password-form.component`); } protected importUnthemedComponent(): Promise { diff --git a/src/app/profile-page/profile-page.component.scss b/src/app/profile-page/profile-page.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/app/profile-page/profile-page.component.ts b/src/app/profile-page/profile-page.component.ts index 5b7697ed48..e9c4dec832 100644 --- a/src/app/profile-page/profile-page.component.ts +++ b/src/app/profile-page/profile-page.component.ts @@ -21,6 +21,7 @@ import { Operation } from 'fast-json-patch'; @Component({ selector: 'ds-profile-page', + styleUrls: ['./profile-page.component.scss'], templateUrl: './profile-page.component.html' }) /** diff --git a/src/app/register-page/create-profile/create-profile.component.scss b/src/app/register-page/create-profile/create-profile.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/app/register-page/create-profile/create-profile.component.ts b/src/app/register-page/create-profile/create-profile.component.ts index 5f02556248..790e1d6fc5 100644 --- a/src/app/register-page/create-profile/create-profile.component.ts +++ b/src/app/register-page/create-profile/create-profile.component.ts @@ -26,6 +26,7 @@ import { getFirstCompletedRemoteData } from '../../core/shared/operators'; */ @Component({ selector: 'ds-create-profile', + styleUrls: ['./create-profile.component.scss'], templateUrl: './create-profile.component.html' }) export class CreateProfileComponent implements OnInit { diff --git a/src/app/register-page/create-profile/themed-create-profile.component.ts b/src/app/register-page/create-profile/themed-create-profile.component.ts index 3cbc4ad553..cc968bfbe2 100644 --- a/src/app/register-page/create-profile/themed-create-profile.component.ts +++ b/src/app/register-page/create-profile/themed-create-profile.component.ts @@ -16,7 +16,7 @@ export class ThemedCreateProfileComponent extends ThemedComponent { - return import(`../../themes/${themeName}/app/register-page/create-profile/create-profile.component`); + return import(`../../../themes/${themeName}/app/register-page/create-profile/create-profile.component`); } protected importUnthemedComponent(): Promise { diff --git a/src/app/register-page/register-email/register-email.component.scss b/src/app/register-page/register-email/register-email.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/app/register-page/register-email/register-email.component.ts b/src/app/register-page/register-email/register-email.component.ts index ac221c109a..7b7b0f631b 100644 --- a/src/app/register-page/register-email/register-email.component.ts +++ b/src/app/register-page/register-email/register-email.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'ds-register-email', + styleUrls: ['./register-email.component.scss'], templateUrl: './register-email.component.html' }) /** diff --git a/src/app/submission/edit/themed-submission-edit.component.ts b/src/app/submission/edit/themed-submission-edit.component.ts new file mode 100644 index 0000000000..bbaf432c13 --- /dev/null +++ b/src/app/submission/edit/themed-submission-edit.component.ts @@ -0,0 +1,25 @@ +/** + * Themed wrapper for SubmissionEditComponent + */ +import { Component } from '@angular/core'; +import { ThemedComponent } from '../../shared/theme-support/themed.component'; +import { SubmissionEditComponent } from './submission-edit.component'; + +@Component({ + selector: 'ds-themed-submission-edit', + styleUrls: [], + templateUrl: './../../shared/theme-support/themed.component.html' +}) +export class ThemedSubmissionEditComponent extends ThemedComponent { + protected getComponentName(): string { + return 'SubmissionEditComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/submission/edit/submission-edit.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./submission-edit.component`); + } +} diff --git a/src/app/submission/import-external/themed-submission-import-external.component.ts b/src/app/submission/import-external/themed-submission-import-external.component.ts new file mode 100644 index 0000000000..698a64842d --- /dev/null +++ b/src/app/submission/import-external/themed-submission-import-external.component.ts @@ -0,0 +1,25 @@ +import { Component } from '@angular/core'; +import { ThemedComponent } from '../../shared/theme-support/themed.component'; +import { SubmissionImportExternalComponent } from './submission-import-external.component'; + +/** + * Themed wrapper for SubmissionImportExternalComponent + */ +@Component({ + selector: 'ds-themed-submission-import-external', + styleUrls: [], + templateUrl: './../../shared/theme-support/themed.component.html' +}) +export class ThemedSubmissionImportExternalComponent extends ThemedComponent { + protected getComponentName(): string { + return 'SubmissionImportExternalComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/submission/import-external/submission-import-external.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./submission-import-external.component`); + } +} diff --git a/src/app/submission/submission.module.ts b/src/app/submission/submission.module.ts index 32c11d6673..13cf2016dd 100644 --- a/src/app/submission/submission.module.ts +++ b/src/app/submission/submission.module.ts @@ -34,6 +34,36 @@ import { SubmissionImportExternalCollectionComponent } from './import-external/i import { SubmissionSectionCcLicensesComponent } from './sections/cc-license/submission-section-cc-licenses.component'; import { JournalEntitiesModule } from '../entity-groups/journal-entities/journal-entities.module'; import { ResearchEntitiesModule } from '../entity-groups/research-entities/research-entities.module'; +import { ThemedSubmissionEditComponent } from './edit/themed-submission-edit.component'; +import { ThemedSubmissionSubmitComponent } from './submit/themed-submission-submit.component'; +import { ThemedSubmissionImportExternalComponent } from './import-external/themed-submission-import-external.component'; + +const DECLARATIONS = [ + SubmissionSectionUploadAccessConditionsComponent, + SubmissionSectionUploadComponent, + SubmissionSectionformComponent, + SubmissionSectionLicenseComponent, + SubmissionSectionCcLicensesComponent, + SectionsDirective, + SubmissionEditComponent, + ThemedSubmissionEditComponent, + SubmissionFormSectionAddComponent, + SubmissionFormCollectionComponent, + SubmissionFormComponent, + SubmissionFormFooterComponent, + SubmissionSubmitComponent, + ThemedSubmissionSubmitComponent, + SubmissionUploadFilesComponent, + SubmissionSectionContainerComponent, + SubmissionSectionUploadFileComponent, + SubmissionSectionUploadFileEditComponent, + SubmissionSectionUploadFileViewComponent, + SubmissionImportExternalComponent, + ThemedSubmissionImportExternalComponent, + SubmissionImportExternalSearchbarComponent, + SubmissionImportExternalPreviewComponent, + SubmissionImportExternalCollectionComponent +]; @NgModule({ imports: [ @@ -45,35 +75,8 @@ import { ResearchEntitiesModule } from '../entity-groups/research-entities/resea JournalEntitiesModule.withEntryComponents(), ResearchEntitiesModule.withEntryComponents(), ], - declarations: [ - SubmissionSectionUploadAccessConditionsComponent, - SubmissionSectionUploadComponent, - SubmissionSectionformComponent, - SubmissionSectionLicenseComponent, - SubmissionSectionCcLicensesComponent, - SectionsDirective, - SubmissionEditComponent, - SubmissionFormSectionAddComponent, - SubmissionFormCollectionComponent, - SubmissionFormComponent, - SubmissionFormFooterComponent, - SubmissionSubmitComponent, - SubmissionUploadFilesComponent, - SubmissionSectionContainerComponent, - SubmissionSectionUploadFileComponent, - SubmissionSectionUploadFileEditComponent, - SubmissionSectionUploadFileViewComponent, - SubmissionImportExternalComponent, - SubmissionImportExternalSearchbarComponent, - SubmissionImportExternalPreviewComponent, - SubmissionImportExternalCollectionComponent - ], - exports: [ - SubmissionEditComponent, - SubmissionFormComponent, - SubmissionSubmitComponent, - SubmissionImportExternalComponent - ], + declarations: DECLARATIONS, + exports: DECLARATIONS, providers: [ SectionUploadService, SectionsService, diff --git a/src/app/submission/submit/themed-submission-submit.component.ts b/src/app/submission/submit/themed-submission-submit.component.ts new file mode 100644 index 0000000000..ad313bf7bb --- /dev/null +++ b/src/app/submission/submit/themed-submission-submit.component.ts @@ -0,0 +1,25 @@ +import { Component } from '@angular/core'; +import { ThemedComponent } from '../../shared/theme-support/themed.component'; +import { SubmissionSubmitComponent } from './submission-submit.component'; + +/** + * Themed wrapper for SubmissionSubmitComponent + */ +@Component({ + selector: 'ds-themed-submission-submit', + styleUrls: [], + templateUrl: './../../shared/theme-support/themed.component.html' +}) +export class ThemedSubmissionSubmitComponent extends ThemedComponent { + protected getComponentName(): string { + return 'SubmissionImportExternalComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../themes/${themeName}/app/submission/submit/submission-submit.component`); + } + + protected importUnthemedComponent(): Promise { + return import(`./submission-submit.component`); + } +} diff --git a/src/environments/environment.common.ts b/src/environments/environment.common.ts index bc1f634e19..c6ae9858e5 100644 --- a/src/environments/environment.common.ts +++ b/src/environments/environment.common.ts @@ -251,10 +251,10 @@ export const environment: GlobalConfig = { // name: 'custom', // uuid: '0958c910-2037-42a9-81c7-dca80e3892b4' // }, - { - // A theme with only a name will match every route - name: 'custom' - }, + // { + // // A theme with only a name will match every route + // name: 'custom' + // }, { // This theme will use the default bootstrap styling for DSpace components diff --git a/src/themes/custom/app/+item-page/full/full-item-page.component.html b/src/themes/custom/app/+item-page/full/full-item-page.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+item-page/full/full-item-page.component.scss b/src/themes/custom/app/+item-page/full/full-item-page.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+item-page/full/full-item-page.component.ts b/src/themes/custom/app/+item-page/full/full-item-page.component.ts new file mode 100644 index 0000000000..1e6230132b --- /dev/null +++ b/src/themes/custom/app/+item-page/full/full-item-page.component.ts @@ -0,0 +1,20 @@ +import { ChangeDetectionStrategy, Component } from '@angular/core'; +import { fadeInOut } from '../../../../../app/shared/animations/fade'; +import { FullItemPageComponent as BaseComponent } from '../../../../../app/+item-page/full/full-item-page.component'; + +/** + * This component renders a full item page. + * The route parameter 'id' is used to request the item it represents. + */ + +@Component({ + selector: 'ds-full-item-page', + // styleUrls: ['./full-item-page.component.scss'], + styleUrls: ['../../../../../app/+item-page/full/full-item-page.component.scss'], + // templateUrl: './full-item-page.component.html', + templateUrl: '../../../../../app/+item-page/full/full-item-page.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, + animations: [fadeInOut] +}) +export class FullItemPageComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/+item-page/simple/item-page.component.html b/src/themes/custom/app/+item-page/simple/item-page.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+item-page/simple/item-page.component.scss b/src/themes/custom/app/+item-page/simple/item-page.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+item-page/simple/item-page.component.ts b/src/themes/custom/app/+item-page/simple/item-page.component.ts new file mode 100644 index 0000000000..1ba534972e --- /dev/null +++ b/src/themes/custom/app/+item-page/simple/item-page.component.ts @@ -0,0 +1,21 @@ +import { ChangeDetectionStrategy, Component } from '@angular/core'; +import { ItemPageComponent as BaseComponent } from '../../../../../app/+item-page/simple/item-page.component'; +import { fadeInOut } from '../../../../../app/shared/animations/fade'; + +/** + * This component renders a simple item page. + * The route parameter 'id' is used to request the item it represents. + * All fields of the item that should be displayed, are defined in its template. + */ +@Component({ + selector: 'ds-item-page', + // styleUrls: ['../item-page.component.scss'], + styleUrls: ['../../../../../app/+item-page/simple/item-page.component.scss'], + // templateUrl: './item-page.component.html', + templateUrl: '../../../../../app/+item-page/simple/item-page.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, + animations: [fadeInOut] +}) +export class ItemPageComponent extends BaseComponent { + +} diff --git a/src/themes/custom/app/+login-page/login-page.component.html b/src/themes/custom/app/+login-page/login-page.component.html new file mode 100644 index 0000000000..84059877f4 --- /dev/null +++ b/src/themes/custom/app/+login-page/login-page.component.html @@ -0,0 +1,10 @@ +
+
+
+ +

{{"login.form.header" | translate}}

+ +
+
+
diff --git a/src/themes/custom/app/+login-page/login-page.component.scss b/src/themes/custom/app/+login-page/login-page.component.scss new file mode 100644 index 0000000000..d628a5089f --- /dev/null +++ b/src/themes/custom/app/+login-page/login-page.component.scss @@ -0,0 +1,4 @@ +.login-logo { + height: var(--ds-login-logo-height); + width: var(--ds-login-logo-width); +} diff --git a/src/themes/custom/app/+login-page/login-page.component.ts b/src/themes/custom/app/+login-page/login-page.component.ts new file mode 100644 index 0000000000..4c5922c8fd --- /dev/null +++ b/src/themes/custom/app/+login-page/login-page.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { LoginPageComponent as BaseComponent } from '../../../../app/+login-page/login-page.component'; + +/** + * This component represents the login page + */ +@Component({ + selector: 'ds-login-page', + // styleUrls: ['./login-page.component.scss'], + styleUrls: ['../../../../app/+login-page/login-page.component.scss'], + // templateUrl: './login-page.component.html' + templateUrl: '../../../../app/+login-page/login-page.component.html' +}) +export class LoginPageComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/+logout-page/logout-page.component.html b/src/themes/custom/app/+logout-page/logout-page.component.html new file mode 100644 index 0000000000..b5012ed53b --- /dev/null +++ b/src/themes/custom/app/+logout-page/logout-page.component.html @@ -0,0 +1,9 @@ +
+
+
+ +

{{"logout.form.header" | translate}}

+ +
+
+
diff --git a/src/themes/custom/app/+logout-page/logout-page.component.scss b/src/themes/custom/app/+logout-page/logout-page.component.scss new file mode 100644 index 0000000000..7e594c0d9b --- /dev/null +++ b/src/themes/custom/app/+logout-page/logout-page.component.scss @@ -0,0 +1 @@ +@import '../+login-page/login-page.component.scss'; diff --git a/src/themes/custom/app/+logout-page/logout-page.component.ts b/src/themes/custom/app/+logout-page/logout-page.component.ts new file mode 100644 index 0000000000..5b94d906c0 --- /dev/null +++ b/src/themes/custom/app/+logout-page/logout-page.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; +import { LogoutPageComponent as BaseComponent} from '../../../../app/+logout-page/logout-page.component'; + +@Component({ + selector: 'ds-logout-page', + // styleUrls: ['./logout-page.component.scss'], + styleUrls: ['../../../../app/+logout-page/logout-page.component.scss'], + // templateUrl: './logout-page.component.html' + templateUrl: '../../../../app/+logout-page/logout-page.component.html' +}) +export class LogoutPageComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.html b/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.scss b/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.ts b/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.ts new file mode 100644 index 0000000000..8ea24a041d --- /dev/null +++ b/src/themes/custom/app/+my-dspace-page/my-dspace-page.component.ts @@ -0,0 +1,25 @@ +import { ChangeDetectionStrategy, Component } from '@angular/core'; +import { pushInOut } from '../../../../app/shared/animations/push'; +import { MyDSpacePageComponent as BaseComponent, SEARCH_CONFIG_SERVICE } from '../../../../app/+my-dspace-page/my-dspace-page.component'; +import { MyDSpaceConfigurationService } from '../../../../app/+my-dspace-page/my-dspace-configuration.service'; + +/** + * This component represents the whole mydspace page + */ +@Component({ + selector: 'ds-my-dspace-page', + // styleUrls: ['./my-dspace-page.component.scss'], + styleUrls: ['../../../../app/+my-dspace-page/my-dspace-page.component.scss'], + // templateUrl: './my-dspace-page.component.html', + templateUrl: '../../../../app/+my-dspace-page/my-dspace-page.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, + animations: [pushInOut], + providers: [ + { + provide: SEARCH_CONFIG_SERVICE, + useClass: MyDSpaceConfigurationService + } + ] +}) +export class MyDSpacePageComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.html b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.scss b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts new file mode 100644 index 0000000000..c9c140835a --- /dev/null +++ b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts @@ -0,0 +1,14 @@ +import { Component } from '@angular/core'; +import { WorkflowItemDeleteComponent as BaseComponent } from '../../../../../app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component'; + +@Component({ + selector: 'ds-workflow-item-delete', + // styleUrls: ['workflow-item-delete.component.scss'], + // templateUrl: './workflow-item-delete.component.html' + templateUrl: '../../../../../app/+workflowitems-edit-page/workflow-item-action-page.component.html' +}) +/** + * Component representing a page to delete a workflow item + */ +export class WorkflowItemDeleteComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.html b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.scss b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.ts b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.ts new file mode 100644 index 0000000000..343faf765c --- /dev/null +++ b/src/themes/custom/app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component.ts @@ -0,0 +1,14 @@ +import { Component } from '@angular/core'; +import { WorkflowItemSendBackComponent as BaseComponent } from '../../../../../app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component'; + +@Component({ + selector: 'ds-workflow-item-send-back', + // styleUrls: ['workflow-item-send-back.component.scss'], + // templateUrl: './workflow-item-send-back.component.html' + templateUrl: '../../../../../app/+workflowitems-edit-page/workflow-item-action-page.component.html' +}) +/** + * Component representing a page to send back a workflow item to the submitter + */ +export class WorkflowItemSendBackComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.html b/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.scss b/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.ts b/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.ts new file mode 100644 index 0000000000..8eaa2bb0fa --- /dev/null +++ b/src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { ForgotEmailComponent as BaseComponent } from '../../../../../app/forgot-password/forgot-password-email/forgot-email.component'; + +@Component({ + selector: 'ds-forgot-email', + // styleUrls: ['./forgot-email.component.scss'], + styleUrls: ['../../../../../app/forgot-password/forgot-password-email/forgot-email.component.scss'], + // templateUrl: './forgot-email.component.html' + templateUrl: '../../../../../app/forgot-password/forgot-password-email/forgot-email.component.html' +}) +/** + * Component responsible the forgot password email step + */ +export class ForgotEmailComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.html b/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.scss b/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.ts b/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.ts new file mode 100644 index 0000000000..d64d925f71 --- /dev/null +++ b/src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { ForgotPasswordFormComponent as BaseComponent } from '../../../../../app/forgot-password/forgot-password-form/forgot-password-form.component'; + +@Component({ + selector: 'ds-forgot-password-form', + // styleUrls: ['./forgot-password-form.component.scss'], + styleUrls: ['../../../../../app/forgot-password/forgot-password-form/forgot-password-form.component.scss'], + // templateUrl: './forgot-password-form.component.html' + templateUrl: '../../../../../app/forgot-password/forgot-password-form/forgot-password-form.component.html' +}) +/** + * Component for a user to enter a new password for a forgot token. + */ +export class ForgotPasswordFormComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/profile-page/profile-page.component.html b/src/themes/custom/app/profile-page/profile-page.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/profile-page/profile-page.component.scss b/src/themes/custom/app/profile-page/profile-page.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/profile-page/profile-page.component.ts b/src/themes/custom/app/profile-page/profile-page.component.ts new file mode 100644 index 0000000000..fe25f0685b --- /dev/null +++ b/src/themes/custom/app/profile-page/profile-page.component.ts @@ -0,0 +1,14 @@ +import { Component } from '@angular/core'; +import { ProfilePageComponent as BaseComponent } from '../../../../app/profile-page/profile-page.component'; + +@Component({ + selector: 'ds-profile-page', + styleUrls: ['./profile-page.component.scss'], + templateUrl: './profile-page.component.html' +}) +/** + * Component for a user to edit their profile information + */ +export class ProfilePageComponent extends BaseComponent { + +} diff --git a/src/themes/custom/app/register-page/create-profile/create-profile.component.html b/src/themes/custom/app/register-page/create-profile/create-profile.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/register-page/create-profile/create-profile.component.scss b/src/themes/custom/app/register-page/create-profile/create-profile.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/register-page/create-profile/create-profile.component.ts b/src/themes/custom/app/register-page/create-profile/create-profile.component.ts new file mode 100644 index 0000000000..0cffa3288d --- /dev/null +++ b/src/themes/custom/app/register-page/create-profile/create-profile.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { CreateProfileComponent as BaseComponent } from '../../../../../app/register-page/create-profile/create-profile.component'; + +/** + * Component that renders the create profile page to be used by a user registering through a token + */ +@Component({ + selector: 'ds-create-profile', + // styleUrls: ['./create-profile.component.scss'], + styleUrls: ['../../../../../app/register-page/create-profile/create-profile.component.scss'], + // templateUrl: './create-profile.component.html' + templateUrl: '../../../../../app/register-page/create-profile/create-profile.component.html' +}) +export class CreateProfileComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/register-page/register-email/register-email.component.html b/src/themes/custom/app/register-page/register-email/register-email.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/register-page/register-email/register-email.component.scss b/src/themes/custom/app/register-page/register-email/register-email.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/register-page/register-email/register-email.component.ts b/src/themes/custom/app/register-page/register-email/register-email.component.ts new file mode 100644 index 0000000000..6e85a61732 --- /dev/null +++ b/src/themes/custom/app/register-page/register-email/register-email.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { RegisterEmailComponent as BaseComponent } from '../../../../../app/register-page/register-email/register-email.component'; + +@Component({ + selector: 'ds-register-email', + // styleUrls: ['./register-email.component.scss'], + styleUrls: ['../../../../../app/register-page/register-email/register-email.component.scss'], + // templateUrl: './register-email.component.html' + templateUrl: '../../../../../app/register-page/register-email/register-email.component.html' +}) +/** + * Component responsible the email registration step when registering as a new user + */ +export class RegisterEmailComponent extends BaseComponent{ +} diff --git a/src/themes/custom/app/submission/edit/submission-edit.component.html b/src/themes/custom/app/submission/edit/submission-edit.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/edit/submission-edit.component.scss b/src/themes/custom/app/submission/edit/submission-edit.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/edit/submission-edit.component.ts b/src/themes/custom/app/submission/edit/submission-edit.component.ts new file mode 100644 index 0000000000..88559d30b4 --- /dev/null +++ b/src/themes/custom/app/submission/edit/submission-edit.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { SubmissionEditComponent as BaseComponent } from '../../../../../app/submission/edit/submission-edit.component'; + +/** + * This component allows to edit an existing workspaceitem/workflowitem. + */ +@Component({ + selector: 'ds-submission-edit', + // styleUrls: ['./submission-edit.component.scss'], + styleUrls: ['../../../../../app/submission/edit/submission-edit.component.scss'], + // templateUrl: './submission-edit.component.html' + templateUrl: '../../../../../app/submission/edit/submission-edit.component.html' +}) +export class SubmissionEditComponent extends BaseComponent { +} diff --git a/src/themes/custom/app/submission/import-external/submission-import-external.component.html b/src/themes/custom/app/submission/import-external/submission-import-external.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/import-external/submission-import-external.component.scss b/src/themes/custom/app/submission/import-external/submission-import-external.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/import-external/submission-import-external.component.ts b/src/themes/custom/app/submission/import-external/submission-import-external.component.ts new file mode 100644 index 0000000000..cf541b85c9 --- /dev/null +++ b/src/themes/custom/app/submission/import-external/submission-import-external.component.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; +import { fadeIn } from '../../../../../app/shared/animations/fade'; +import { SubmissionImportExternalComponent as BaseComponent } from '../../../../../app/submission/import-external/submission-import-external.component'; + +/** + * This component allows to submit a new workspaceitem importing the data from an external source. + */ +@Component({ + selector: 'ds-submission-import-external', + // styleUrls: ['./submission-import-external.component.scss'], + styleUrls: ['../../../../../app/submission/import-external/submission-import-external.component.scss'], + // templateUrl: './submission-import-external.component.html', + templateUrl: '../../../../../app/submission/import-external/submission-import-external.component.html', + animations: [fadeIn] +}) +export class SubmissionImportExternalComponent extends BaseComponent { + +} diff --git a/src/themes/custom/app/submission/submit/submission-submit.component.html b/src/themes/custom/app/submission/submit/submission-submit.component.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/submit/submission-submit.component.scss b/src/themes/custom/app/submission/submit/submission-submit.component.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/themes/custom/app/submission/submit/submission-submit.component.ts b/src/themes/custom/app/submission/submit/submission-submit.component.ts new file mode 100644 index 0000000000..1273e26069 --- /dev/null +++ b/src/themes/custom/app/submission/submit/submission-submit.component.ts @@ -0,0 +1,15 @@ +import { Component } from '@angular/core'; +import { SubmissionSubmitComponent as BaseComponent } from '../../../../../app/submission/submit/submission-submit.component'; + +/** + * This component allows to submit a new workspaceitem. + */ +@Component({ + selector: 'ds-submission-submit', + // styleUrls: ['./submission-submit.component.scss'], + styleUrls: ['../../../../../app/submission/submit/submission-submit.component.scss'], + // templateUrl: './submission-submit.component.html' + templateUrl: '../../../../../app/submission/submit/submission-submit.component.html' +}) +export class SubmissionSubmitComponent extends BaseComponent{ +} diff --git a/src/themes/custom/theme.module.ts b/src/themes/custom/theme.module.ts index 18a048275a..6192451692 100644 --- a/src/themes/custom/theme.module.ts +++ b/src/themes/custom/theme.module.ts @@ -57,6 +57,23 @@ import { CollectionPageComponent } from './app/+collection-page/collection-page. import { CommunityPageModule } from '../../app/+community-page/community-page.module'; import { CollectionPageModule } from '../../app/+collection-page/collection-page.module'; import { ConfigurationSearchPageComponent } from './app/+search-page/configuration-search-page.component'; +import { ItemPageComponent } from './app/+item-page/simple/item-page.component'; +import { FullItemPageComponent } from './app/+item-page/full/full-item-page.component'; +import { LoginPageComponent } from './app/+login-page/login-page.component'; +import { LogoutPageComponent } from './app/+logout-page/logout-page.component'; +import { CreateProfileComponent } from './app/register-page/create-profile/create-profile.component'; +import { ForgotEmailComponent } from './app/forgot-password/forgot-password-email/forgot-email.component'; +import { ForgotPasswordFormComponent } from './app/forgot-password/forgot-password-form/forgot-password-form.component'; +import { ProfilePageComponent } from './app/profile-page/profile-page.component'; +import { RegisterEmailComponent } from './app/register-page/register-email/register-email.component'; +import { SubmissionEditComponent } from './app/submission/edit/submission-edit.component'; +import { SubmissionImportExternalComponent } from './app/submission/import-external/submission-import-external.component'; +import { SubmissionSubmitComponent } from './app/submission/submit/submission-submit.component'; +import { MyDSpacePageComponent } from './app/+my-dspace-page/my-dspace-page.component'; +import { WorkflowItemSendBackComponent } from './app/+workflowitems-edit-page/workflow-item-send-back/workflow-item-send-back.component'; +import { WorkflowItemDeleteComponent } from './app/+workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component'; +import { SubmissionModule } from '../../app/submission/submission.module'; +import { MyDSpacePageModule } from '../../app/+my-dspace-page/my-dspace-page.module'; const DECLARATIONS = [ HomePageComponent, @@ -77,7 +94,23 @@ const DECLARATIONS = [ ItemStatisticsPageComponent, SiteStatisticsPageComponent, CommunityPageComponent, - CollectionPageComponent + CollectionPageComponent, + ItemPageComponent, + FullItemPageComponent, + LoginPageComponent, + LogoutPageComponent, + CreateProfileComponent, + ForgotEmailComponent, + ForgotPasswordFormComponent, + ProfilePageComponent, + RegisterEmailComponent, + MyDSpacePageComponent, + SubmissionEditComponent, + SubmissionImportExternalComponent, + SubmissionSubmitComponent, + WorkflowItemDeleteComponent, + WorkflowItemSendBackComponent + ]; @NgModule({ @@ -121,16 +154,19 @@ const DECLARATIONS = [ StoreModule, StoreRouterConnectingModule, TranslateModule, + SubmissionModule, + MyDSpacePageModule, + MyDspaceSearchModule, ], declarations: DECLARATIONS }) -/** - * This module serves as an index for all the components in this theme. - * It should import all other modules, so the compiler knows where to find any components referenced - * from a component in this theme - * It is purposefully not exported, it should never be imported anywhere else, its only purpose is - * to give lazily loaded components a context in which they can be compiled successfully - */ + /** + * This module serves as an index for all the components in this theme. + * It should import all other modules, so the compiler knows where to find any components referenced + * from a component in this theme + * It is purposefully not exported, it should never be imported anywhere else, its only purpose is + * to give lazily loaded components a context in which they can be compiled successfully + */ class ThemeModule { }