|
|
|
@ -49,6 +49,7 @@ type SiteConfig struct {
|
|
|
|
GoogleMapTileType setting.MapGoogleTileType `json:"google_map_tile_type,omitempty"`
|
|
|
|
GoogleMapTileType setting.MapGoogleTileType `json:"google_map_tile_type,omitempty"`
|
|
|
|
MapboxAK string `json:"mapbox_ak,omitempty"`
|
|
|
|
MapboxAK string `json:"mapbox_ak,omitempty"`
|
|
|
|
FileViewers []types.ViewerGroup `json:"file_viewers,omitempty"`
|
|
|
|
FileViewers []types.ViewerGroup `json:"file_viewers,omitempty"`
|
|
|
|
|
|
|
|
DefaultViewerMapping types.DefaultViewerMapping `json:"default_viewer_mapping,omitempty"`
|
|
|
|
MaxBatchSize int `json:"max_batch_size,omitempty"`
|
|
|
|
MaxBatchSize int `json:"max_batch_size,omitempty"`
|
|
|
|
ThumbnailWidth int `json:"thumbnail_width,omitempty"`
|
|
|
|
ThumbnailWidth int `json:"thumbnail_width,omitempty"`
|
|
|
|
ThumbnailHeight int `json:"thumbnail_height,omitempty"`
|
|
|
|
ThumbnailHeight int `json:"thumbnail_height,omitempty"`
|
|
|
|
@ -113,6 +114,7 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) {
|
|
|
|
return &SiteConfig{
|
|
|
|
return &SiteConfig{
|
|
|
|
MaxBatchSize: maxBatchSize,
|
|
|
|
MaxBatchSize: maxBatchSize,
|
|
|
|
FileViewers: fileViewers,
|
|
|
|
FileViewers: fileViewers,
|
|
|
|
|
|
|
|
DefaultViewerMapping: settings.DefaultViewerMapping(c),
|
|
|
|
Icons: explorerSettings.Icons,
|
|
|
|
Icons: explorerSettings.Icons,
|
|
|
|
MapProvider: mapSettings.Provider,
|
|
|
|
MapProvider: mapSettings.Provider,
|
|
|
|
GoogleMapTileType: mapSettings.GoogleTileType,
|
|
|
|
GoogleMapTileType: mapSettings.GoogleTileType,
|
|
|
|
|