mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
Add support for dynamic themes
This commit is contained in:
@@ -2,6 +2,7 @@ import { GlobalConfig } from '../config/global-config.interface';
|
||||
import { NotificationAnimationsType } from '../app/shared/notifications/models/notification-animations-type';
|
||||
import { BrowseByType } from '../app/+browse-by/+browse-by-switcher/browse-by-decorator';
|
||||
import { RestRequestMethod } from '../app/core/data/rest-request-method';
|
||||
import { BASE_THEME_NAME } from '../app/shared/theme-support/theme.constants';
|
||||
|
||||
export const environment: GlobalConfig = {
|
||||
production: true,
|
||||
@@ -222,9 +223,40 @@ export const environment: GlobalConfig = {
|
||||
undoTimeout: 10000 // 10 seconds
|
||||
}
|
||||
},
|
||||
theme: {
|
||||
name: 'default',
|
||||
},
|
||||
themes: [
|
||||
// Add additional themes here. In the case where multiple themes match a route, the first one
|
||||
// in this list will get priority. It is advisable to always have a theme that matches
|
||||
// every route as the last one
|
||||
|
||||
// {
|
||||
// // A theme with a handle property will match the community, collection or item with the given
|
||||
// // handle, and all collections and/or items within it
|
||||
// name: 'custom',
|
||||
// handle: '10673/1233'
|
||||
// },
|
||||
// {
|
||||
// // A theme with a regex property will match the route using a regular expression. If it
|
||||
// // matches the route for a community or collection it will also apply to all collections
|
||||
// // and/or items within it
|
||||
// name: 'custom',
|
||||
// regex: 'collections\/e8043bc2.*'
|
||||
// },
|
||||
// {
|
||||
// // A theme with a uuid property will match the community, collection or item with the given
|
||||
// // ID, and all collections and/or items within it
|
||||
// name: 'custom',
|
||||
// uuid: '0958c910-2037-42a9-81c7-dca80e3892b4'
|
||||
// },
|
||||
// {
|
||||
// // A theme with only a name will match every route
|
||||
// name: 'custom'
|
||||
// },
|
||||
|
||||
{
|
||||
// This theme will use the default bootstrap styling for DSpace components
|
||||
name: BASE_THEME_NAME
|
||||
},
|
||||
],
|
||||
// Whether the UI should rewrite file download URLs to match its domain. Only necessary to enable when running UI and REST API on separate domains
|
||||
rewriteDownloadUrls: false,
|
||||
};
|
||||
|
Reference in New Issue
Block a user