Merge remote-tracking branch 'origin/main' into disable-inline-css

This commit is contained in:
Yury Bondarenko
2024-03-12 17:17:39 +01:00
3521 changed files with 204115 additions and 85964 deletions

View File

@@ -9,5 +9,5 @@ export const environment: Partial<BuildConfig> = {
async: true,
time: false,
inlineCriticalCss: true,
}
},
};

View File

@@ -1,5 +1,6 @@
// 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';
@@ -10,7 +11,7 @@ export const environment: BuildConfig = {
universal: {
preboot: true,
async: true,
time: false
time: false,
},
// Angular Universal server settings.
@@ -24,7 +25,7 @@ export const environment: BuildConfig = {
// The rateLimiter settings limit each IP to a 'max' of 500 requests per 'windowMs' (1 minute).
rateLimiter: {
windowMs: 1 * 60 * 1000, // 1 minute
max: 500 // limit each IP to 500 requests per windowMs
max: 500, // limit each IP to 500 requests per windowMs
},
useProxies: true,
},
@@ -36,11 +37,11 @@ export const environment: BuildConfig = {
port: 443,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/api',
baseUrl: 'https://rest.com/api'
baseUrl: 'https://rest.com/api',
},
actuators: {
endpointPath: '/actuator/health'
endpointPath: '/actuator/health',
},
// Caching settings
@@ -54,8 +55,23 @@ export const environment: BuildConfig = {
autoSync: {
defaultTime: 0,
maxBufferSize: 100,
timePerMethod: { [RestRequestMethod.PATCH]: 3 } as any // time in seconds
}
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,
headers: ['Link'],
botCache: {
max: 0,
timeToLive: 24 * 60 * 60 * 1000, // 1 day
allowStale: true,
},
anonymousCache: {
max: 0,
timeToLive: 10 * 1000, // 10 seconds
allowStale: true,
},
},
},
// Authentication settings
@@ -78,11 +94,12 @@ export const environment: BuildConfig = {
// Form settings
form: {
spellCheck: true,
// NOTE: Map server-side validators to comparative Angular form validators
validatorMap: {
required: 'required',
regex: 'pattern'
}
regex: 'pattern',
},
},
// Notifications
@@ -94,7 +111,7 @@ export const environment: BuildConfig = {
timeOut: 5000,
clickToClose: true,
// NOTE: 'fade' | 'fromTop' | 'fromRight' | 'fromBottom' | 'fromLeft' | 'rotate' | 'scale'
animate: NotificationAnimationsType.Scale
animate: NotificationAnimationsType.Scale,
},
// Submission settings
@@ -103,51 +120,58 @@ export const environment: BuildConfig = {
// NOTE: which metadata trigger an autosave
metadata: ['dc.title', 'dc.identifier.doi', 'dc.identifier.pmid', 'dc.identifier.arxiv'],
// NOTE: every how many minutes submission is saved automatically
timer: 5
timer: 5,
},
duplicateDetection: {
alwaysShowSection: false,
},
typeBind: {
field: 'dc.type'
field: 'dc.type',
},
icons: {
metadata: [
{
name: 'mainField',
style: 'fas fa-user'
style: 'fas fa-user',
},
{
name: 'relatedField',
style: 'fas fa-university'
style: 'fas fa-university',
},
{
name: 'otherRelatedField',
style: 'fas fa-circle'
style: 'fas fa-circle',
},
{
name: 'default',
style: ''
}
style: '',
},
],
authority: {
confidence: [
{
value: 600,
style: 'text-success'
style: 'text-success',
icon: 'fa-circle-check',
},
{
value: 500,
style: 'text-info'
style: 'text-info',
icon: 'fa-gear',
},
{
value: 400,
style: 'text-warning'
style: 'text-warning',
icon: 'fa-circle-question',
},
{
value: 'default',
style: 'text-muted'
style: 'text-muted',
icon: 'fa-circle-xmark',
},
]
}
}
],
},
},
},
// NOTE: will log all redux actions and transfers in console
@@ -194,6 +218,10 @@ export const environment: BuildConfig = {
code: 'el',
label: 'Ελληνικά',
active: true,
}, {
code: 'disabled',
label: 'Disabled',
active: false,
}],
// Browse-By Pages
@@ -212,7 +240,7 @@ export const environment: BuildConfig = {
pageSize: 20,
},
communityList: {
pageSize: 20
pageSize: 20,
},
homePage: {
recentSubmissions: {
@@ -221,41 +249,56 @@ export const environment: BuildConfig = {
sortField: 'dc.date.accessioned',
},
topLevelCommunityList: {
pageSize: 5
}
pageSize: 5,
},
showDiscoverFilters: false,
},
item: {
edit: {
undoTimeout: 10000 // 10 seconds
undoTimeout: 10000, // 10 seconds
},
// Show the item access status label in items lists
showAccessStatuses: false
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,
},
},
community: {
searchSection: {
showSidebar: true,
},
},
collection: {
searchSection: {
showSidebar: true,
},
edit: {
undoTimeout: 10000 // 10 seconds
}
undoTimeout: 10000, // 10 seconds
},
},
themes: [
{
name: 'full-item-page-theme',
regex: 'items/aa6c6c83-3a83-4953-95d1-2bc2e67854d2/full'
regex: 'items/aa6c6c83-3a83-4953-95d1-2bc2e67854d2/full',
},
{
name: 'error-theme',
regex: 'collections/aaaa.*'
regex: 'collections/aaaa.*',
},
{
name: 'handle-theme',
handle: '10673/1233'
handle: '10673/1233',
},
{
name: 'regex-theme',
regex: 'collections\/e8043bc2.*'
regex: 'collections\/e8043bc2.*',
},
{
name: 'uuid-theme',
uuid: '0958c910-2037-42a9-81c7-dca80e3892b4'
uuid: '0958c910-2037-42a9-81c7-dca80e3892b4',
},
{
name: 'base',
@@ -266,7 +309,7 @@ export const environment: BuildConfig = {
},
mediaViewer: {
image: true,
video: true
video: true,
},
info: {
enableEndUserAgreement: true,
@@ -276,4 +319,106 @@ export const environment: BuildConfig = {
enabled: false,
mathjax: false,
},
comcolSelectionSort: {
sortField:'dc.title',
sortDirection:'ASC',
},
qualityAssuranceConfig: {
sourceUrlMapForProjectSearch: {
openaire: 'https://explore.openaire.eu/search/project?projectId=',
},
pageSize: 5,
},
vocabularies: [
{
filter: 'subject',
vocabulary: 'srsc',
enabled: true,
},
],
suggestion: [],
search: {
advancedFilters: {
enabled: false,
filter: ['title', 'author', 'subject', 'entityType'],
},
},
notifyMetrics: [
{
title: 'admin-notify-dashboard.received-ldn',
boxes: [
{
color: '#B8DAFF',
title: 'admin-notify-dashboard.NOTIFY.incoming.accepted',
config: 'NOTIFY.incoming.accepted',
description: 'admin-notify-dashboard.NOTIFY.incoming.accepted.description',
},
{
color: '#D4EDDA',
title: 'admin-notify-dashboard.NOTIFY.incoming.processed',
config: 'NOTIFY.incoming.processed',
description: 'admin-notify-dashboard.NOTIFY.incoming.processed.description',
},
{
color: '#FDBBC7',
title: 'admin-notify-dashboard.NOTIFY.incoming.failure',
config: 'NOTIFY.incoming.failure',
description: 'admin-notify-dashboard.NOTIFY.incoming.failure.description',
},
{
color: '#FDBBC7',
title: 'admin-notify-dashboard.NOTIFY.incoming.untrusted',
config: 'NOTIFY.incoming.untrusted',
description: 'admin-notify-dashboard.NOTIFY.incoming.untrusted.description',
},
{
color: '#43515F',
title: 'admin-notify-dashboard.NOTIFY.incoming.involvedItems',
textColor: '#fff',
config: 'NOTIFY.incoming.involvedItems',
description: 'admin-notify-dashboard.NOTIFY.incoming.involvedItems.description',
},
],
},
{
title: 'admin-notify-dashboard.generated-ldn',
boxes: [
{
color: '#D4EDDA',
title: 'admin-notify-dashboard.NOTIFY.outgoing.delivered',
config: 'NOTIFY.outgoing.delivered',
description: 'admin-notify-dashboard.NOTIFY.outgoing.delivered.description',
},
{
color: '#B8DAFF',
title: 'admin-notify-dashboard.NOTIFY.outgoing.queued',
config: 'NOTIFY.outgoing.queued',
description: 'admin-notify-dashboard.NOTIFY.outgoing.queued.description',
},
{
color: '#FDEEBB',
title: 'admin-notify-dashboard.NOTIFY.outgoing.queued_for_retry',
config: 'NOTIFY.outgoing.queued_for_retry',
description: 'admin-notify-dashboard.NOTIFY.outgoing.queued_for_retry.description',
},
{
color: '#FDBBC7',
title: 'admin-notify-dashboard.NOTIFY.outgoing.failure',
config: 'NOTIFY.outgoing.failure',
description: 'admin-notify-dashboard.NOTIFY.outgoing.failure.description',
},
{
color: '#43515F',
title: 'admin-notify-dashboard.NOTIFY.outgoing.involvedItems',
textColor: '#fff',
config: 'NOTIFY.outgoing.involvedItems',
description: 'admin-notify-dashboard.NOTIFY.outgoing.involvedItems.description',
},
],
},
],
};

View File

@@ -14,7 +14,7 @@ export const environment: Partial<BuildConfig> = {
async: true,
time: false,
inlineCriticalCss: true,
}
},
};
/*