2016-05-11 03:33:58 +08:00
|
|
|
interface SearchConfig {
|
2017-06-12 05:33:47 +08:00
|
|
|
searchEnabled: boolean
|
|
|
|
instantSearchEnabled: boolean
|
|
|
|
autocompleteEnabled: boolean
|
2016-05-11 03:33:58 +08:00
|
|
|
}
|
|
|
|
|
2017-07-04 01:17:49 +08:00
|
|
|
interface SharingConfig {
|
|
|
|
enabled: boolean;
|
|
|
|
passwordProtected: boolean;
|
|
|
|
}
|
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
interface ClientConfig {
|
2017-07-07 04:54:36 +08:00
|
|
|
applicationTitle: string;
|
2017-06-12 05:33:47 +08:00
|
|
|
iconSize: number;
|
|
|
|
thumbnailSizes: Array<number>;
|
|
|
|
Search: SearchConfig;
|
2017-07-04 01:17:49 +08:00
|
|
|
Sharing: SharingConfig;
|
2017-06-12 05:33:47 +08:00
|
|
|
concurrentThumbnailGenerations: number;
|
|
|
|
enableCache: boolean;
|
|
|
|
enableOnScrollRendering: boolean;
|
|
|
|
enableOnScrollThumbnailPrioritising: boolean;
|
|
|
|
authenticationRequired: boolean;
|
|
|
|
googleApiKey: string;
|
2016-05-11 03:33:58 +08:00
|
|
|
}
|
|
|
|
|
2017-06-04 21:25:08 +08:00
|
|
|
/**
|
|
|
|
* These configuration will be available at frontend and backend too
|
|
|
|
*/
|
|
|
|
export class PublicConfigClass {
|
2016-05-11 03:33:58 +08:00
|
|
|
|
2017-06-12 05:33:47 +08:00
|
|
|
public Client: ClientConfig = {
|
2017-07-07 04:54:36 +08:00
|
|
|
applicationTitle: "PiGallery 2",
|
2017-06-12 05:33:47 +08:00
|
|
|
thumbnailSizes: [200, 400, 600],
|
|
|
|
iconSize: 30,
|
|
|
|
Search: {
|
|
|
|
searchEnabled: true,
|
|
|
|
instantSearchEnabled: true,
|
|
|
|
autocompleteEnabled: true
|
|
|
|
},
|
2017-07-04 01:17:49 +08:00
|
|
|
Sharing: {
|
|
|
|
enabled: true,
|
|
|
|
passwordProtected: true
|
|
|
|
},
|
2017-06-12 05:33:47 +08:00
|
|
|
concurrentThumbnailGenerations: 1,
|
|
|
|
enableCache: false,
|
|
|
|
enableOnScrollRendering: true,
|
|
|
|
enableOnScrollThumbnailPrioritising: true,
|
|
|
|
authenticationRequired: true,
|
|
|
|
googleApiKey: ""
|
|
|
|
};
|
2016-05-11 03:33:58 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|