Resolve feedback

Inject environment rather than importing it
Redo the configuration for better consistency across pages
This commit is contained in:
Mark Cooper
2022-09-08 11:06:44 -07:00
parent 3e803e8411
commit 086bd4723b
11 changed files with 84 additions and 64 deletions

View File

@@ -17,7 +17,9 @@ import { UIServerConfig } from './ui-server-config.interface';
import { BundleConfig } from './bundle-config.interface';
import { ActuatorsConfig } from './actuators.config';
import { InfoConfig } from './info-config.interface';
import { CommunityListConfig } from './community-list-config.interface';
import { HomeConfig } from './homepage-config.interface';
export class DefaultAppConfig implements AppConfig {
production = false;
@@ -210,10 +212,21 @@ export class DefaultAppConfig implements AppConfig {
defaultLowerLimit: 1900
};
browseCommunities: BrowseCommunitiesConfig = {
communityListPageSize: 20,
topLevelPageSize: 5
}
communityList: CommunityListConfig = {
pageSize: 20
};
homePage: HomeConfig = {
recentSubmissions: {
//The number of item showing in recent submission components
pageSize: 5,
//sort record of recent submission
sortField: 'dc.date.accessioned',
},
topLevelCommunityList: {
pageSize: 5
}
};
// Item Config
item: ItemConfig = {
@@ -345,13 +358,4 @@ export class DefaultAppConfig implements AppConfig {
enableEndUserAgreement: true,
enablePrivacyStatement: true
};
// Home Pages
homePage: HomeConfig = {
recentSubmissions: {
//The number of item showing in recent submission components
pageSize: 5,
//sort record of recent submission
sortField: 'dc.date.accessioned',
}
};
}