Newer
Older
// Angular Universal server settings.
ui: {
ssl: false,
host: 'localhost',
port: 3000,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/'
// The REST API server settings.
rest: {
host: 'dspace7.4science.it',
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/dspace-spring-rest/api'
cache: {
// NOTE: how long should objects be cached for by default
msToLive: 15 * 60 * 1000, // 15 minutes
// msToLive: 1000, // 15 minutes
control: 'max-age=60' // revalidate browser
// Form settings
form: {
// NOTE: Map server-side validators to comparative Angular form validators
validatorMap: {
required: 'required',
regex: 'pattern'
}
},
// Notifications
notifications: {
rtl: false,
position: ['top', 'right'],
Giuseppe Digilio
committed
maxStack: 8,
// NOTE: after how many seconds notification is closed automatically. If set to zero notifications are not closed automatically
timeOut: 5000, // 5 second
clickToClose: true,
// NOTE: 'fade' | 'fromTop' | 'fromRight' | 'fromBottom' | 'fromLeft' | 'rotate' | 'scale'
animate: 'scale'
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Submission settings
submission: {
autosave: {
// 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
},
metadata: {
// NOTE: allow to set icons used to represent metadata belonging to a relation group
icons: [
/**
* NOTE: example of configuration
* {
* // NOTE: metadata name
* name: 'dc.author',
* config: {
* // NOTE: used when metadata value has an authority
* withAuthority: {
* // NOTE: fontawesome (v4.x) icon classes and bootstrap color utility classes can be used
* style: 'fa-user'
* },
* // NOTE: used when metadata value has not an authority
* withoutAuthority: {
* style: 'fa-user text-muted'
* }
* }
* }
*/
// default configuration
{
name: 'default',
config: {}
}
]
}
},
// Angular Universal settings
universal: {
preboot: true,
async: true,
time: false
},
// Google Analytics tracking id
gaTrackingId: '',
logDirectory: '.',
// NOTE: will log all redux actions and transfers in console