mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
64 lines
1.3 KiB
TypeScript
64 lines
1.3 KiB
TypeScript
export interface SearchConfig {
|
|
enabled: boolean
|
|
instantSearchEnabled: boolean
|
|
autocompleteEnabled: boolean
|
|
}
|
|
|
|
export interface SharingConfig {
|
|
enabled: boolean;
|
|
passwordProtected: boolean;
|
|
}
|
|
|
|
export interface MapConfig {
|
|
enabled: boolean;
|
|
googleApiKey: string;
|
|
}
|
|
|
|
export interface ClientConfig {
|
|
applicationTitle: string;
|
|
iconSize: number;
|
|
thumbnailSizes: Array<number>;
|
|
Search: SearchConfig;
|
|
Sharing: SharingConfig;
|
|
Map: MapConfig;
|
|
concurrentThumbnailGenerations: number;
|
|
enableCache: boolean;
|
|
enableOnScrollRendering: boolean;
|
|
enableOnScrollThumbnailPrioritising: boolean;
|
|
authenticationRequired: boolean;
|
|
publicUrl: string;
|
|
}
|
|
|
|
/**
|
|
* These configuration will be available at frontend and backend too
|
|
*/
|
|
export class PublicConfigClass {
|
|
|
|
public Client: ClientConfig = {
|
|
applicationTitle: "PiGallery 2",
|
|
thumbnailSizes: [200, 400, 600],
|
|
iconSize: 30,
|
|
Search: {
|
|
enabled: true,
|
|
instantSearchEnabled: true,
|
|
autocompleteEnabled: true
|
|
},
|
|
Sharing: {
|
|
enabled: true,
|
|
passwordProtected: true
|
|
},
|
|
Map: {
|
|
enabled: true,
|
|
googleApiKey: ""
|
|
},
|
|
concurrentThumbnailGenerations: 1,
|
|
enableCache: false,
|
|
enableOnScrollRendering: true,
|
|
enableOnScrollThumbnailPrioritising: true,
|
|
authenticationRequired: true,
|
|
publicUrl: ""
|
|
};
|
|
|
|
}
|
|
|