mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
Merge remote-tracking branch 'upstream/main' into ensure-cookie-language-is-valid-7.2
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// This configuration is only used for unit tests, end-to-end tests use environment.production.ts
|
||||
import { BuildConfig } from 'src/config/build-config.interface';
|
||||
import { RestRequestMethod } from '../app/core/data/rest-request-method';
|
||||
import { NotificationAnimationsType } from '../app/shared/notifications/models/notification-animations-type';
|
||||
import { AppConfig } from '../config/app-config.interface';
|
||||
|
||||
export const environment: AppConfig = {
|
||||
export const environment: BuildConfig = {
|
||||
production: false,
|
||||
|
||||
// Angular Universal settings
|
||||
@@ -25,7 +25,8 @@ export const environment: AppConfig = {
|
||||
rateLimiter: {
|
||||
windowMs: 1 * 60 * 1000, // 1 minute
|
||||
max: 500 // limit each IP to 500 requests per windowMs
|
||||
}
|
||||
},
|
||||
useProxies: true,
|
||||
},
|
||||
|
||||
// The REST API server settings.
|
||||
@@ -38,6 +39,10 @@ export const environment: AppConfig = {
|
||||
baseUrl: 'https://rest.com/api'
|
||||
},
|
||||
|
||||
actuators: {
|
||||
endpointPath: '/actuator/health'
|
||||
},
|
||||
|
||||
// Caching settings
|
||||
cache: {
|
||||
// NOTE: how long should objects be cached for by default
|
||||
@@ -50,6 +55,20 @@ export const environment: AppConfig = {
|
||||
defaultTime: 0,
|
||||
maxBufferSize: 100,
|
||||
timePerMethod: { [RestRequestMethod.PATCH]: 3 } as any // time in seconds
|
||||
},
|
||||
// In-memory cache of server-side rendered pages. Disabled in test environment (max=0)
|
||||
serverSide: {
|
||||
debug: false,
|
||||
botCache: {
|
||||
max: 0,
|
||||
timeToLive: 24 * 60 * 60 * 1000, // 1 day
|
||||
allowStale: true,
|
||||
},
|
||||
anonymousCache: {
|
||||
max: 0,
|
||||
timeToLive: 10 * 1000, // 10 seconds
|
||||
allowStale: true,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -73,6 +92,7 @@ export const environment: AppConfig = {
|
||||
|
||||
// Form settings
|
||||
form: {
|
||||
spellCheck: true,
|
||||
// NOTE: Map server-side validators to comparative Angular form validators
|
||||
validatorMap: {
|
||||
required: 'required',
|
||||
@@ -100,6 +120,9 @@ export const environment: AppConfig = {
|
||||
// NOTE: every how many minutes submission is saved automatically
|
||||
timer: 5
|
||||
},
|
||||
typeBind: {
|
||||
field: 'dc.type'
|
||||
},
|
||||
icons: {
|
||||
metadata: [
|
||||
{
|
||||
@@ -178,6 +201,14 @@ export const environment: AppConfig = {
|
||||
code: 'lv',
|
||||
label: 'Latviešu',
|
||||
active: true,
|
||||
}, {
|
||||
code: 'bn',
|
||||
label: 'বাংলা',
|
||||
active: true,
|
||||
}, {
|
||||
code: 'el',
|
||||
label: 'Ελληνικά',
|
||||
active: true,
|
||||
}, {
|
||||
code: 'disabled',
|
||||
label: 'Disabled',
|
||||
@@ -192,10 +223,37 @@ export const environment: AppConfig = {
|
||||
fiveYearLimit: 30,
|
||||
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
|
||||
defaultLowerLimit: 1900,
|
||||
// Whether to add item thumbnail images to BOTH browse and search result lists.
|
||||
showThumbnails: true,
|
||||
// The number of entries in a paginated browse results list.
|
||||
// Rounded to the nearest size in the list of selectable sizes on the
|
||||
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||
pageSize: 20,
|
||||
},
|
||||
communityList: {
|
||||
pageSize: 20
|
||||
},
|
||||
homePage: {
|
||||
recentSubmissions: {
|
||||
pageSize: 5,
|
||||
//sort record of recent submission
|
||||
sortField: 'dc.date.accessioned',
|
||||
},
|
||||
topLevelCommunityList: {
|
||||
pageSize: 5
|
||||
}
|
||||
},
|
||||
item: {
|
||||
edit: {
|
||||
undoTimeout: 10000 // 10 seconds
|
||||
},
|
||||
// Show the item access status label in items lists
|
||||
showAccessStatuses: false,
|
||||
bitstream: {
|
||||
// Number of entries in the bitstream list in the item view page.
|
||||
// Rounded to the nearest size in the list of selectable sizes on the
|
||||
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||
pageSize: 5
|
||||
}
|
||||
},
|
||||
collection: {
|
||||
@@ -228,8 +286,27 @@ export const environment: AppConfig = {
|
||||
name: 'base',
|
||||
},
|
||||
],
|
||||
bundle: {
|
||||
standardBundles: ['ORIGINAL', 'THUMBNAIL', 'LICENSE'],
|
||||
},
|
||||
mediaViewer: {
|
||||
image: true,
|
||||
video: true
|
||||
}
|
||||
},
|
||||
info: {
|
||||
enableEndUserAgreement: true,
|
||||
enablePrivacyStatement: true,
|
||||
},
|
||||
markdown: {
|
||||
enabled: false,
|
||||
mathjax: false,
|
||||
},
|
||||
|
||||
vocabularies: [
|
||||
{
|
||||
filter: 'subject',
|
||||
vocabulary: 'srsc',
|
||||
enabled: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Reference in New Issue
Block a user