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

52 lines
1.1 KiB
TypeScript
Raw Normal View History

interface SearchConfig {
searchEnabled: boolean
instantSearchEnabled: boolean
autocompleteEnabled: boolean
}
2017-07-03 19:17:49 +02:00
interface SharingConfig {
enabled: boolean;
passwordProtected: boolean;
}
interface ClientConfig {
iconSize: number;
thumbnailSizes: Array<number>;
Search: SearchConfig;
2017-07-03 19:17:49 +02:00
Sharing: SharingConfig;
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 = {
thumbnailSizes: [200, 400, 600],
iconSize: 30,
Search: {
searchEnabled: true,
instantSearchEnabled: true,
autocompleteEnabled: true
},
2017-07-03 19:17:49 +02:00
Sharing: {
enabled: true,
passwordProtected: true
},
concurrentThumbnailGenerations: 1,
enableCache: false,
enableOnScrollRendering: true,
enableOnScrollThumbnailPrioritising: true,
authenticationRequired: true,
googleApiKey: ""
};
}