mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #1451 from 4Science/CST-5033-submission-ssr-issue
Fix SSR issue with submission after migrate to angular 11
This commit is contained in:
@@ -36,7 +36,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class AdminSearchModule {
|
export class AdminSearchModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -28,7 +28,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class AdminWorkflowModuleModule {
|
export class AdminWorkflowModuleModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -34,7 +34,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class AdminModule {
|
export class AdminModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -31,7 +31,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class BrowseByModule {
|
export class BrowseByModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -54,7 +54,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class JournalEntitiesModule {
|
export class JournalEntitiesModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -74,7 +74,7 @@ const COMPONENTS = [
|
|||||||
export class ResearchEntitiesModule {
|
export class ResearchEntitiesModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -91,7 +91,7 @@ const DECLARATIONS = [
|
|||||||
export class ItemPageModule {
|
export class ItemPageModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -50,7 +50,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class MyDspaceSearchModule {
|
export class MyDspaceSearchModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -58,7 +58,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
export class NavbarModule {
|
export class NavbarModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -623,7 +623,7 @@ const DIRECTIVES = [
|
|||||||
export class SharedModule {
|
export class SharedModule {
|
||||||
/**
|
/**
|
||||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
* which are not loaded during CSR otherwise
|
* which are not loaded during SSR otherwise
|
||||||
*/
|
*/
|
||||||
static withEntryComponents() {
|
static withEntryComponents() {
|
||||||
return {
|
return {
|
||||||
|
@@ -65,6 +65,13 @@ const DECLARATIONS = [
|
|||||||
SubmissionImportExternalCollectionComponent
|
SubmissionImportExternalCollectionComponent
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const ENTRY_COMPONENTS = [
|
||||||
|
SubmissionSectionUploadComponent,
|
||||||
|
SubmissionSectionformComponent,
|
||||||
|
SubmissionSectionLicenseComponent,
|
||||||
|
SubmissionSectionCcLicensesComponent
|
||||||
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -88,4 +95,14 @@ const DECLARATIONS = [
|
|||||||
* This module handles all components that are necessary for the submission process
|
* This module handles all components that are necessary for the submission process
|
||||||
*/
|
*/
|
||||||
export class SubmissionModule {
|
export class SubmissionModule {
|
||||||
|
/**
|
||||||
|
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||||
|
* which are not loaded during SSR otherwise
|
||||||
|
*/
|
||||||
|
static withEntryComponents() {
|
||||||
|
return {
|
||||||
|
ngModule: SubmissionModule,
|
||||||
|
providers: ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user