1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-14 11:23:17 +02:00
pigallery2/common/config/public/ConfigClass.ts

42 lines
1.0 KiB
TypeScript
Raw Normal View History

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