ESLint: fix dangling commas

This commit is contained in:
Yury Bondarenko
2023-06-27 16:23:06 +02:00
parent 725dbc3743
commit 917c36dbe7
1789 changed files with 12452 additions and 12452 deletions

View File

@@ -41,7 +41,7 @@ export class DefaultAppConfig implements AppConfig {
// 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
},
// Trust X-FORWARDED-* headers from proxies
@@ -59,21 +59,21 @@ export class DefaultAppConfig implements AppConfig {
};
actuators: ActuatorsConfig = {
endpointPath: '/actuator/health'
endpointPath: '/actuator/health',
};
// Caching settings
cache: CacheConfig = {
// NOTE: how long should objects be cached for by default
msToLive: {
default: 15 * 60 * 1000 // 15 minutes
default: 15 * 60 * 1000, // 15 minutes
},
// Cache-Control HTTP Header
control: 'max-age=604800', // revalidate browser
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 content
serverSide: {
@@ -97,8 +97,8 @@ export class DefaultAppConfig implements AppConfig {
// Amount of time after which cached pages are considered stale (in ms)
timeToLive: 10 * 1000, // 10 seconds
allowStale: true,
}
}
},
},
};
// Authentication settings
@@ -108,14 +108,14 @@ export class DefaultAppConfig implements AppConfig {
// the amount of time before the idle warning is shown
timeUntilIdle: 15 * 60 * 1000, // 15 minutes
// the amount of time the user has to react after the idle warning is shown before they are logged out.
idleGracePeriod: 5 * 60 * 1000 // 5 minutes
idleGracePeriod: 5 * 60 * 1000, // 5 minutes
},
// Authentication REST settings
rest: {
// If the rest token expires in less than this amount of time, it will be refreshed automatically.
// This is independent from the idle warning.
timeLeftBeforeTokenRefresh: 2 * 60 * 1000 // 2 minutes
}
timeLeftBeforeTokenRefresh: 2 * 60 * 1000, // 2 minutes
},
};
// Form settings
@@ -124,8 +124,8 @@ export class DefaultAppConfig implements AppConfig {
// NOTE: Map server-side validators to comparative Angular form validators
validatorMap: {
required: 'required',
regex: 'pattern'
}
regex: 'pattern',
},
};
// Notifications
@@ -137,7 +137,7 @@ export class DefaultAppConfig implements AppConfig {
timeOut: 5000, // 5 second
clickToClose: true,
// NOTE: 'fade' | 'fromTop' | 'fromRight' | 'fromBottom' | 'fromLeft' | 'rotate' | 'scale'
animate: NotificationAnimationsType.Scale
animate: NotificationAnimationsType.Scale,
};
// Submission settings
@@ -149,10 +149,10 @@ export class DefaultAppConfig implements AppConfig {
* NOTE: after how many time (milliseconds) submission is saved automatically
* eg. timer: 5 * (1000 * 60); // 5 minutes
*/
timer: 0
timer: 0,
},
typeBind: {
field: 'dc.type'
field: 'dc.type',
},
icons: {
metadata: [
@@ -167,13 +167,13 @@ export class DefaultAppConfig implements AppConfig {
*/
{
name: 'dc.author',
style: 'fas fa-user'
style: 'fas fa-user',
},
// default configuration
{
name: 'default',
style: ''
}
style: '',
},
],
authority: {
confidence: [
@@ -188,25 +188,25 @@ export class DefaultAppConfig implements AppConfig {
*/
{
value: 600,
style: 'text-success'
style: 'text-success',
},
{
value: 500,
style: 'text-info'
style: 'text-info',
},
{
value: 400,
style: 'text-warning'
style: 'text-warning',
},
// default configuration
{
value: 'default',
style: 'text-muted'
}
style: 'text-muted',
},
]
}
}
],
},
},
};
// Default Language in which the UI will be rendered if the user's browser language is not an active language
@@ -237,7 +237,7 @@ export class DefaultAppConfig implements AppConfig {
{ code: 'bn', label: 'বাংলা', active: true },
{ code: 'hi', label: 'हिंदी', active: true},
{ code: 'el', label: 'Ελληνικά', active: true },
{ code: 'uk', label: 'Yкраї́нська', active: true}
{ code: 'uk', label: 'Yкраї́нська', active: true},
];
// Browse-By Pages
@@ -253,11 +253,11 @@ export class DefaultAppConfig implements AppConfig {
// 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
pageSize: 20,
};
communityList: CommunityListConfig = {
pageSize: 20
pageSize: 20,
};
homePage: HomeConfig = {
@@ -268,14 +268,14 @@ export class DefaultAppConfig implements AppConfig {
sortField: 'dc.date.accessioned',
},
topLevelCommunityList: {
pageSize: 5
}
pageSize: 5,
},
};
// Item Config
item: ItemConfig = {
edit: {
undoTimeout: 10000 // 10 seconds
undoTimeout: 10000, // 10 seconds
},
// Show the item access status label in items lists
showAccessStatuses: false,
@@ -283,15 +283,15 @@ export class DefaultAppConfig implements AppConfig {
// 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
}
pageSize: 5,
},
};
// Collection Page Config
collection: CollectionPageConfig = {
edit: {
undoTimeout: 10000 // 10 seconds
}
undoTimeout: 10000, // 10 seconds
},
};
// Theme Config
@@ -354,7 +354,7 @@ export class DefaultAppConfig implements AppConfig {
'rel': 'icon',
'href': 'assets/dspace/images/favicons/favicon.ico',
'sizes': 'any',
}
},
},
{
// Insert <link rel="icon" href="assets/dspace/images/favicons/favicon.svg" type="image/svg+xml"/> into the <head> of the page.
@@ -363,7 +363,7 @@ export class DefaultAppConfig implements AppConfig {
'rel': 'icon',
'href': 'assets/dspace/images/favicons/favicon.svg',
'type': 'image/svg+xml',
}
},
},
{
// Insert <link rel="apple-touch-icon" href="assets/dspace/images/favicons/apple-touch-icon.png"/> into the <head> of the page.
@@ -371,7 +371,7 @@ export class DefaultAppConfig implements AppConfig {
attributes: {
'rel': 'apple-touch-icon',
'href': 'assets/dspace/images/favicons/apple-touch-icon.png',
}
},
},
{
// Insert <link rel="manifest" href="assets/dspace/images/favicons/manifest.webmanifest"/> into the <head> of the page.
@@ -379,22 +379,22 @@ export class DefaultAppConfig implements AppConfig {
attributes: {
'rel': 'manifest',
'href': 'assets/dspace/images/favicons/manifest.webmanifest',
}
},
},
]
],
},
];
// The default bundles that should always be displayed when you edit or add a bundle even when no bundle has been
// added to the item yet.
bundle: BundleConfig = {
standardBundles: ['ORIGINAL', 'THUMBNAIL', 'LICENSE']
standardBundles: ['ORIGINAL', 'THUMBNAIL', 'LICENSE'],
};
// Whether to enable media viewer for image and/or video Bitstreams (i.e. Bitstreams whose MIME type starts with "image" or "video").
// For images, this enables a gallery viewer where you can zoom or page through images.
// For videos, this enables embedded video streaming
mediaViewer: MediaViewerConfig = {
image: false,
video: false
video: false,
};
// Whether the end-user-agreement and privacy policy feature should be enabled or not.
// Disabling the end user agreement feature will result in:
@@ -406,7 +406,7 @@ export class DefaultAppConfig implements AppConfig {
// - All mentions of the privacy policy being removed from the UI (e.g. in the footer)
info: InfoConfig = {
enableEndUserAgreement: true,
enablePrivacyStatement: true
enablePrivacyStatement: true,
};
// Whether to enable Markdown (https://commonmark.org/) and MathJax (https://www.mathjax.org/)
@@ -423,8 +423,8 @@ export class DefaultAppConfig implements AppConfig {
{
filter: 'subject',
vocabulary: 'srsc',
enabled: false
}
enabled: false,
},
];
// Configuration that determines the metadata sorting of community and collection edition and creation when there are not a search query.