2016-05-10 21:33:58 +02:00
|
|
|
interface SearchConfig {
|
2017-03-20 22:37:23 +02:00
|
|
|
searchEnabled: boolean
|
|
|
|
instantSearchEnabled: boolean
|
|
|
|
autocompleteEnabled: boolean
|
2016-05-10 21:33:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface ClientConfig {
|
2017-03-20 22:37:23 +02:00
|
|
|
iconSize: number;
|
|
|
|
thumbnailSizes: Array<number>;
|
|
|
|
Search: SearchConfig;
|
|
|
|
concurrentThumbnailGenerations: number;
|
|
|
|
enableCache: boolean;
|
|
|
|
enableOnScrollRendering: boolean;
|
|
|
|
enableOnScrollThumbnailPrioritising: boolean;
|
|
|
|
authenticationRequired: boolean;
|
2017-01-22 23:31:29 +02:00
|
|
|
googleApiKey: string;
|
2016-05-10 21:33:58 +02:00
|
|
|
}
|
|
|
|
|
2017-06-04 15:25:08 +02:00
|
|
|
/**
|
|
|
|
* These configuration will be available at frontend and backend too
|
|
|
|
*/
|
|
|
|
export class PublicConfigClass {
|
2016-05-10 21:33:58 +02:00
|
|
|
|
2017-03-20 22:37:23 +02:00
|
|
|
public Client: ClientConfig = {
|
2016-05-12 11:00:46 +02:00
|
|
|
thumbnailSizes: [200, 400, 600],
|
2017-03-20 22:37:23 +02:00
|
|
|
iconSize: 30,
|
2016-05-10 21:33:58 +02:00
|
|
|
Search: {
|
2016-12-28 12:50:05 +02:00
|
|
|
searchEnabled: true,
|
|
|
|
instantSearchEnabled: true,
|
|
|
|
autocompleteEnabled: true
|
2016-06-17 11:25:15 +02:00
|
|
|
},
|
2016-06-26 15:53:48 +02:00
|
|
|
concurrentThumbnailGenerations: 1,
|
|
|
|
enableCache: false,
|
|
|
|
enableOnScrollRendering: true,
|
2016-07-07 12:19:08 +02:00
|
|
|
enableOnScrollThumbnailPrioritising: true,
|
2017-01-22 23:31:29 +02:00
|
|
|
authenticationRequired: true,
|
|
|
|
googleApiKey: ""
|
2016-05-10 21:33:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|