2016-05-10 21:33:58 +02:00
|
|
|
interface SearchConfig {
|
2017-06-11 23:33:47 +02:00
|
|
|
searchEnabled: boolean
|
|
|
|
instantSearchEnabled: boolean
|
|
|
|
autocompleteEnabled: boolean
|
2016-05-10 21:33:58 +02:00
|
|
|
}
|
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
interface SharingConfig {
|
|
|
|
enabled: boolean;
|
|
|
|
passwordProtected: boolean;
|
|
|
|
}
|
|
|
|
|
2016-05-10 21:33:58 +02:00
|
|
|
interface ClientConfig {
|
2017-07-06 22:54:36 +02:00
|
|
|
applicationTitle: string;
|
2017-06-11 23:33:47 +02:00
|
|
|
iconSize: number;
|
|
|
|
thumbnailSizes: Array<number>;
|
|
|
|
Search: SearchConfig;
|
2017-07-03 19:17:49 +02:00
|
|
|
Sharing: SharingConfig;
|
2017-06-11 23:33:47 +02:00
|
|
|
concurrentThumbnailGenerations: number;
|
|
|
|
enableCache: boolean;
|
|
|
|
enableOnScrollRendering: boolean;
|
|
|
|
enableOnScrollThumbnailPrioritising: boolean;
|
|
|
|
authenticationRequired: boolean;
|
|
|
|
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-06-11 23:33:47 +02:00
|
|
|
public Client: ClientConfig = {
|
2017-07-06 22:54:36 +02:00
|
|
|
applicationTitle: "PiGallery 2",
|
2017-06-11 23:33:47 +02:00
|
|
|
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
|
|
|
|
},
|
2017-06-11 23:33:47 +02:00
|
|
|
concurrentThumbnailGenerations: 1,
|
|
|
|
enableCache: false,
|
|
|
|
enableOnScrollRendering: true,
|
|
|
|
enableOnScrollThumbnailPrioritising: true,
|
|
|
|
authenticationRequired: true,
|
|
|
|
googleApiKey: ""
|
|
|
|
};
|
2016-05-10 21:33:58 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|