Skip to content

Commit

Permalink
feat: add exif panel options to config struct
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed May 28, 2024
1 parent 40e0613 commit 9f7009f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/web/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func DefaultConfig() *config.Config {
},
Sidebar: config.Sidebar{
Shares: config.SidebarShares{},
Exif: config.SidebarExif{},
},
Upload: &config.Upload{},
OpenLinksWithDefaultApp: true,
Expand Down
5 changes: 5 additions & 0 deletions services/web/pkg/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ type FeedbackLink struct {
// Sidebar are the sidebar option
type Sidebar struct {
Shares SidebarShares `json:"shares" yaml:"shares"`
Exif SidebarExif `json:"exif" yaml:"exif"`
}

// SidebarShares are the options for the shares sidebar
type SidebarShares struct {
ShowAllOnLoad bool `json:"showAllOnLoad" yaml:"showAllOnLoad" env:"WEB_OPTION_SIDEBAR_SHARES_SHOW_ALL_ON_LOAD" desc:"Sets the list of the (link) shares list in the sidebar to be initially expanded. Default is a collapsed state, only showing the first three shares." introductionVersion:"pre5.0"`
}

type SidebarExif struct {
ShowLocation bool `json:"showLocation" yaml:"showLocation" env:"WEB_OPTION_SIDEBAR_EXIF_SHOW_LOCATION" desc:"Shows or hides the location data in the EXIF sidebar panel." introductionVersion:"6.0"`
}

// Routing are the routing options
type Routing struct {
IDBased bool `json:"idBased" yaml:"idBased" env:"WEB_OPTION_ROUTING_ID_BASED" desc:"Enable or disable fileIds being added to the URL. Defaults to 'true', because otherwise spaces with name clashes cannot be resolved correctly. Note: Only disable this if you can guarantee on the server side, that spaces of the same namespace cannot have name clashes." introductionVersion:"pre5.0"`
Expand Down

0 comments on commit 9f7009f

Please sign in to comment.